/* ============================================================
   WEBNOVA — Shared inner-page chrome
   Loaded by about / services / contact (before the page's own
   scoped stylesheet). Provides the inner-page hero, section
   heading rhythm, prose helpers, and a couple of reusable
   layout primitives so each page file stays lean.
   ============================================================ */

/* ─── Inner-page hero (dark band, echoes the home hero) ──── */
.wn-page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 18% 18%, rgba(63, 152, 166, 0.22), transparent 55%),
        radial-gradient(ellipse at 82% 8%, rgba(123, 97, 255, 0.18), transparent 55%),
        linear-gradient(180deg, var(--wn-bg-dark) 0%, #0a0d14 100%);
    color: var(--wn-ink-inv);
    padding: clamp(9rem, 16vh, 13rem) 0 clamp(3.5rem, 7vh, 6rem);
    isolation: isolate;
}
.wn-page-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--wn-line-inv);
    pointer-events: none;
}
/* Ambient glow blobs — soft, blurred, decorative */
.wn-page-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}
.wn-page-hero-glow.is-1 {
    top: -120px; right: -80px;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.14) 0%, transparent 70%);
}
.wn-page-hero-glow.is-2 {
    bottom: -140px; left: -100px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.14) 0%, transparent 70%);
}
.wn-page-hero-inner { position: relative; z-index: 1; }

.wn-page-hero-eyebrow {
    font-size: var(--wn-t-label);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(247, 246, 242, 0.6);
    margin: 0 0 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.wn-page-hero-eyebrow::before {
    content: '';
    width: 26px; height: 1px;
    background: rgba(247, 246, 242, 0.4);
}
.wn-page-hero-eyebrow span { color: var(--wn-ink-inv); }

.wn-page-hero-title {
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--wn-ink-inv);
    margin: 0;
    max-width: 18ch;
}
.wn-page-hero-title strong { font-weight: 700; }
.wn-page-hero-title em {
    font-style: italic;
    font-weight: 300;
    color: rgba(247, 246, 242, 0.82);
}

.wn-page-hero-lead {
    font-size: var(--wn-t-lead);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(247, 246, 242, 0.74);
    max-width: 52ch;
    margin: 2rem 0 0;
}

/* ─── Video hero variant (full-bleed Vimeo loop) ────────── */
.wn-page-hero--video {
    padding: 0;
    height: 50vh;
}
.wn-page-hero--video .wn-page-hero-glow { display: none; }
.wn-page-hero-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}
.wn-page-hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Cover 100vw × 50vh while preserving 16:9 — whichever
       min-dimension is binding decides the iframe size. */
    width: max(100vw, 88.89vh);   /* 50vh × 16 / 9 */
    height: max(56.25vw, 50vh);   /* 100vw × 9 / 16 */
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}
.wn-page-hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    background: linear-gradient(180deg, rgba(10, 13, 20, 0.18) 0%, rgba(10, 13, 20, 0.32) 100%);
    pointer-events: none;
}
.wn-page-hero-video-title {
    margin: 0;
    font-size: var(--wn-t-h2);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--wn-ink-inv);
    text-align: center;
    max-width: none;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.wn-page-hero-video-title strong { font-weight: 700; }

/* ─── Section scaffolding ───────────────────────────────── */
.wn-section { padding: var(--wn-s-7) 0; background: var(--wn-bg); }
.wn-section.is-alt { background: var(--wn-bg-alt); }
.wn-section.is-tint { background: var(--wn-bg-tint); }

.wn-section-head {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 3.4rem;
    max-width: 64rem;
}
.wn-section-eyebrow {
    font-size: var(--wn-t-label);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--wn-ink-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.wn-section-eyebrow::before {
    content: '';
    width: 26px; height: 1px;
    background: var(--wn-ink);
}
.wn-section-eyebrow span { color: var(--wn-ink); }

.wn-section-title {
    font-size: var(--wn-t-h2);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0;
    max-width: 20ch;
}
.wn-section-title strong { font-weight: 700; }
.wn-section-title em { font-style: normal; color: var(--wn-ink-muted); }
.wn-section-copy {
    font-size: var(--wn-t-lead);
    font-weight: 300;
    line-height: 1.6;
    color: var(--wn-ink-2);
    max-width: 58ch;
    margin: 0;
}

/* Dark variant of the section head (for use on dark bands) */
.wn-section.is-dark { background: #0a0d14; color: var(--wn-ink-inv); }
.wn-section.is-dark .wn-section-eyebrow { color: var(--wn-ink-inv-muted); }
.wn-section.is-dark .wn-section-eyebrow::before { background: var(--wn-ink-inv); }
.wn-section.is-dark .wn-section-eyebrow span { color: var(--wn-ink-inv); }
.wn-section.is-dark .wn-section-title { color: var(--wn-ink-inv); }
.wn-section.is-dark .wn-section-copy { color: var(--wn-ink-inv-muted); }

/* ─── Prose helper (long-form copy blocks) ──────────────── */
.wn-prose {
    font-size: var(--wn-t-lead);
    font-weight: 300;
    line-height: 1.7;
    color: var(--wn-ink-2);
    max-width: 60ch;
}
.wn-prose p { margin: 0 0 1.2em; }
.wn-prose p:last-child { margin-bottom: 0; }
.wn-prose strong { font-weight: 500; color: var(--wn-ink); }

/* ─── Inline text link with underline + arrow ───────────── */
.wn-textlink {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--wn-ink);
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--wn-ink);
}
.wn-textlink svg { transition: transform var(--wn-t-fast) var(--wn-ease); }
.wn-textlink:hover svg { transform: translateX(4px); }

/* ─── 404 ───────────────────────────────────────────────── */
.wn-page-hero.is-404 {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}
.wn-404-code {
    font-size: clamp(5rem, 18vw, 13rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin: 0 0 1.5rem;
    background: linear-gradient(135deg, #00d4ff, #7b61ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.wn-404-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 2.2rem;
}

/* ─── FAQ accordion (shared: contact + service pages) ───── */
.wn-faq {
    max-width: 60rem;
    border-top: 1px solid var(--wn-line);
}
.wn-faq-item { border-bottom: 1px solid var(--wn-line); }
.wn-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 0;
    text-align: left;
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--wn-ink);
    transition: color var(--wn-t-fast) var(--wn-ease);
}
.wn-faq-q:hover { color: var(--wn-accent); }
.wn-faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--wn-bg-alt);
    transition: background var(--wn-t-med) var(--wn-ease);
}
.wn-faq-icon::before,
.wn-faq-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    background: var(--wn-ink);
    transition: transform var(--wn-t-med) var(--wn-ease), background var(--wn-t-med) var(--wn-ease);
}
.wn-faq-icon::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.wn-faq-icon::after  { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.wn-faq-item.is-open .wn-faq-icon { background: var(--wn-ink); }
.wn-faq-item.is-open .wn-faq-icon::before,
.wn-faq-item.is-open .wn-faq-icon::after { background: var(--wn-ink-inv); }
.wn-faq-item.is-open .wn-faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.wn-faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--wn-t-med) var(--wn-ease);
}
.wn-faq-item.is-open .wn-faq-a { grid-template-rows: 1fr; }
.wn-faq-a-inner { overflow: hidden; }
.wn-faq-a-inner p {
    margin: 0;
    padding: 0 0 1.7rem;
    max-width: 64ch;
    font-size: var(--wn-t-lead);
    font-weight: 300;
    line-height: 1.65;
    color: var(--wn-ink-2);
}
.wn-faq-foot {
    margin: 2.4rem 0 0;
    font-size: 1rem;
    font-weight: 300;
    color: var(--wn-ink-muted);
}
.wn-faq-foot a {
    font-weight: 500;
    color: var(--wn-ink);
    border-bottom: 1px solid var(--wn-ink);
    padding-bottom: 1px;
}
.wn-faq-foot a:hover { color: var(--wn-accent); border-color: var(--wn-accent); }

/* ─── Responsive (shared) ───────────────────────────────── */
@media (max-width: 1024px) {
    .wn-section { padding: 5rem 0; }
    .wn-section-head { margin-bottom: 2.6rem; }
    .wn-page-hero { padding-top: 8.5rem; }
}
@media (max-width: 720px) {
    .wn-section { padding: 4rem 0; }
}
