/* ==========================================================================
   Global CSS — portable base layer
   Drop this file into any project. It only sets resets, design tokens
   (as CSS custom properties), base typography, a few safe utilities,
   and accessibility/performance defaults. It defines no project-specific
   component classes, so it won't collide with a project's own styles.
   Override any --token in :root from a project-specific stylesheet.
   ========================================================================== */

:root {
    --color-bg: #faf8f4;
    --color-fg: #0e1b33;
    --color-muted: #6b675c;
    --color-accent: #fc575e;
    --color-accent-2: #f7b42c;

    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;
    --space-6: 96px;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 999px;

    --container-max: 1280px;
}

/* ---- Reset ------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Hide the browser's scrollbar chrome (scroll still works via touch/wheel/
       keyboard) — mainly matters for touch/device-emulation views where a
       persistent scrollbar strip looks out of place on an otherwise native-
       feeling mobile layout. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    /* WebKit/Blink's default tap-highlight is a hard-edged rectangle that
       ignores border-radius — on rounded cards/buttons it looks like the
       rounded border gets clipped by a square gray flash when tapped. */
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
}
.dock__pill {
    list-style: none;
}
/* Prevents layout shift from images/video without explicit dimensions. */
img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

/* ---- Utilities ----------------------------------------------------------
   Prefixed with `u-` so they never collide with a project's own classes. */
.u-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.u-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Accessibility ------------------------------------------------------ */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Respect the OS-level motion preference: collapse decorative motion to
   instant/near-instant transitions instead of disabling layout entirely. */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---- Performance --------------------------------------------------------
   Long, mostly-offscreen sections can skip layout/paint until near the
   viewport. Safe for static content; avoid on elements a script pins or
   measures (e.g. GSAP ScrollTrigger pin targets), since their height
   needs to be known up front. */
.u-defer-offscreen {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

/* ============================================================
   DOCK (header) — floating glass nav. Shared by every page (compiled
   from scss/global/_header.scss) — lives here instead of each page's
   own CSS file so header markup/behavior never drifts between pages.
   ============================================================ */
.dock {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 clamp(24px, 5vw, 64px);
    pointer-events: none;
}

.dock__logo {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
}

.dock__logo img {
    height: 50px;
    width: auto;
    display: block;
}

.dock__pill {
    pointer-events: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 28px;
    border-radius: 999px;
    background: rgba(20, 19, 16, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.45s ease, box-shadow 0.45s ease;
}

.dock__link {
    color: rgba(250, 248, 244, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.25s ease, opacity 0.25s ease;
    white-space: nowrap;
}

.dock__link:hover {
    color: #f7b42c;
}

.dock__link--active {
    color: #fc575e;
}

/* darker pill + smooth opacity on scroll */
.dock--scrolled .dock__pill {
    background: rgba(12, 11, 9, 0.82);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.38),
        0 2px 8px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dock__cta {
    pointer-events: auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f7b42c, #fc575e);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow:
        0 4px 20px rgba(252, 87, 94, 0.40),
        0 1px 4px rgba(247, 180, 44, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dock__cta:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 28px rgba(252, 87, 94, 0.50),
        0 2px 8px rgba(247, 180, 44, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Hamburger toggle — hidden on desktop, shown in the mobile query below */
.dock__toggle {
    display: none;
    pointer-events: auto;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 50%;
    background: rgba(20, 19, 16, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dock__toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #faf8f4;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dock--open .dock__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.dock--open .dock__toggle-bar:nth-child(2) {
    opacity: 0;
}

.dock--open .dock__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767.98px) {
    .dock__toggle {
        display: flex;
    }

    .dock__pill {
        position: absolute;
        top: calc(100% + 12px);
        left: 24px;
        right: 24px;
        /* Base rule's border-radius:999px is a pill shape meant for a short,
           single-row nav — on a tall stacked mobile dropdown that reads as a
           giant oval blob, so it needs its own smaller radius here. */
        border-radius: var(--radius-md, 16px);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        max-width: none;
        overflow-x: visible;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        transform: translateY(-8px);
    }

    .dock--open .dock__pill {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .dock__link {
        font-size: 15px;
        padding: 12px 16px;
        border-radius: 12px;
    }

    .dock__link:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Shrink the logo on mobile so logo + CTA + toggle all fit on one row
       without crowding, down to ~360px-wide phones. */
    .dock__logo img {
        height: 36px;
    }

    /* Kept visible next to the toggle on mobile (just sized down) rather
       than hidden — it's the primary conversion action on the page. */
    .dock__cta {
        margin-left: auto;
        gap: 8px;
        padding: 4px 4px 4px 14px;
        font-size: 11px;
    }

    .dock__cta .btn-arrow {
        width: 22px;
        height: 22px;
    }

    .dock__cta .btn-arrow svg {
        width: 10px;
        height: 10px;
    }
}

/* ============================================================
   BUTTON ARROW — shared circular arrow badge used at the end of every
   CTA/link across the site (header, hero/scene, print CTA, footer,
   about, hscroll cards) so every button follows the same pattern: a
   pill/text label + this badge, never a bare arrow glyph, and the same
   interaction everywhere: white by default, fills with the accent
   gradient on hover (the arrow itself never rotates — only the fill
   transitions, smoothly).
   Two variants:
     .btn-arrow             white badge by default (with a soft shadow so
                             it stays visible over dark or light
                             backgrounds alike) — fills with the accent
                             gradient on hover.
     .btn-arrow--onAccent   for pills whose own background IS the accent
                             gradient already — stays a static white
                             badge (filling it on hover would just blend
                             into the pill behind it).
   ============================================================ */
.btn-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #0e1b33;
    box-shadow: 0 4px 12px rgba(14, 27, 51, 0.15);
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-arrow svg {
    width: 13px;
    height: 13px;
}

.btn-arrow--onAccent {
    box-shadow: none;
}

a:hover .btn-arrow:not(.btn-arrow--onAccent),
button:hover .btn-arrow:not(.btn-arrow--onAccent) {
    background: linear-gradient(135deg, #f7b42c, #fc575e);
    color: #fff;
}

/* ============================================================
   FOOTER — big closing CTA + nav links + bottom bar, shared by every
   page (compiled from scss/global/_footer.scss).
   Reveal mechanic: .page-wrap (everything above the footer) is opaque
   and sits above the footer, which is position:fixed underneath it.
   js/footer.js measures the footer's real height and sets it as
   .page-wrap's bottom margin, so the last stretch of scroll reveals the
   fixed footer from behind instead of it just scrolling into place.
   ============================================================ */
.page-wrap {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 0;
    background: #0e1b33;
    color: #faf8f4;
    padding: clamp(80px, 12vw, 160px) clamp(24px, 6vw, 96px) clamp(32px, 4vw, 48px);
    overflow: hidden;
}

.footer__cta {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(32px, 4vw, 48px);
    text-align: center;
}

.footer__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250, 248, 244, 0.55);
}

.footer__heading {
    margin: 0;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.02em;
    font-size: clamp(40px, 8vw, 112px);
}

.footer__heading em {
    font-style: italic;
    font-weight: 600;
    color: #f7b42c;
}

.footer__line {
    display: block;
    overflow: hidden;
}

.footer__word {
    display: block;
    will-change: transform;
}

.footer__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer__button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 28px;
    border-radius: 999px;
    background: linear-gradient(315deg, #f7b42c 0%, #fc575e 74%);
    color: #faf8f4;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.footer__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(252, 87, 94, 0.35);
}

.footer__email {
    color: rgba(250, 248, 244, 0.65);
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(250, 248, 244, 0.25);
    padding-bottom: 4px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.footer__email:hover {
    color: #faf8f4;
    border-color: #faf8f4;
}

.footer__links {
    max-width: 1400px;
    margin: clamp(64px, 8vw, 96px) auto 0;
    padding-top: clamp(32px, 4vw, 40px);
    border-top: 1px solid rgba(250, 248, 244, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 2.5vw, 32px);
}

.footer__nav-link {
    color: rgba(250, 248, 244, 0.7);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__nav-link:hover {
    color: #faf8f4;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: rgba(250, 248, 244, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.footer__social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer__social-link:hover {
    color: #faf8f4;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.footer__bottom {
    max-width: 1400px;
    margin: clamp(24px, 3vw, 32px) auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.footer__copyright {
    font-size: 12px;
    color: rgba(250, 248, 244, 0.4);
}

.footer__sub {
    margin: 16px 0 0;
    font-size: clamp(14px, 1.4vw, 16px);
    color: rgba(250, 248, 244, 0.55);
    max-width: 480px;
}

.footer__contact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__contact-item {
    font-size: 13px;
    color: rgba(250, 248, 244, 0.6);
}

/* Phone number is a tel: link — brighten on hover like .footer__email */
a.footer__contact-item {
    text-decoration: none;
    transition: color 0.3s ease;
}

a.footer__contact-item:hover,
a.footer__contact-item:focus-visible {
    color: #faf8f4;
}

.footer__bottom-links {
    display: flex;
    gap: 20px;
}

.footer__legal-link {
    font-size: 12px;
    color: rgba(250, 248, 244, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__legal-link:hover {
    color: rgba(250, 248, 244, 0.75);
}

.footer__top-link {
    font-size: 12px;
    font-weight: 600;
    color: rgba(250, 248, 244, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__top-link:hover {
    color: #faf8f4;
}

@media (max-width: 575.98px) {
    .footer {
        padding: 64px 20px 32px;
    }

    .footer__links {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================================
   FAQ — shared accordion, used on every page (compiled from
   scss/global/_faq.scss). Lives here instead of each page's own CSS file
   so the accordion behavior/markup never drifts between pages; only the
   questions/answers change per page.
   Uses the grid-template-rows 0fr->1fr technique for a smooth open/close
   without JS having to measure scrollHeight.
   ============================================================ */
.faq {
    position: relative;
    background: #faf8f4;
    padding: clamp(64px, 8vw, 100px) clamp(24px, 6vw, 96px);
}

.faq__inner {
    max-width: 820px;
    margin: 0 auto;
}

.faq__intro {
    text-align: center;
    margin-bottom: clamp(32px, 4vw, 48px);
}

.faq__eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 14px;
}

.faq__heading {
    margin: 0;
    font-family: "Karla", sans-serif;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-fg);
}

.faq__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(14, 27, 51, 0.08);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: 0;
    text-align: left;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--color-fg);
    cursor: pointer;
}

.faq__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 27, 51, 0.06);
    color: var(--color-fg);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq__icon svg {
    width: 13px;
    height: 13px;
}

.faq__item.is-open .faq__icon {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #f7b42c, #fc575e);
    color: #fff;
}

.faq__answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq__answer-inner {
    overflow: hidden;
}

.faq__answer p {
    margin: 0;
    padding: 0 24px 20px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--color-muted);
}

.faq__item.is-open .faq__answer {
    grid-template-rows: 1fr;
}
