
/* Self-hosted fonts (Inter, Space Grotesk, Material Icons Outlined) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url('/assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Material Icons Outlined';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('/assets/fonts/material-icons-outlined.woff2') format('woff2');
}
.material-icons-outlined {
    font-family: 'Material Icons Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

:root {
    /* space (dark) — warm-neutral */
    --bg-0: #0a0908;
    --bg-1: #110f0f;
    --bg-2: #1b1817;
    --ink: #f7f1e8;
    --ink-2: rgba(247, 241, 232, 0.68);
    --ink-3: rgba(226, 214, 196, 0.46);
    --line: rgba(238, 222, 196, 0.10);
    --line-2: rgba(238, 222, 196, 0.16);

    /* Jupiter accents */
    --gold: #e6a94e;
    --gold-soft: #f2c67e;
    --amber: #d98a3c;
    --on-accent: #241a0b;

    /* daylight (light) — warm parchment, softened so it is easy on the eyes */
    --light-bg: #e6dcc6;
    --light-card: #f1e8d6;
    --light-ink: #241c14;
    --light-ink-2: rgba(36, 28, 20, 0.66);
    --light-ink-3: rgba(36, 28, 20, 0.42);
    --light-line: rgba(36, 28, 20, 0.12);
    --light-accent: #b5622a;

    /* type */
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    /* shape */
    --r-md: 16px;
    --r-lg: 24px;
    --r-surface: clamp(28px, 4vw, 52px);

    --container: 1200px;
    --pad-x: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4.5rem, 9vw, 8rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-1);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

::selection {
    background: rgba(230, 169, 78, 0.3);
    color: #fff;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

/* ---------- layout helpers ---------- */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--pad-x);
}

.section {
    padding-block: var(--section-y);
    position: relative;
}

.section-head {
    max-width: 760px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--gold);
}

.section-head.center .eyebrow::after {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--gold);
}

.section-head h2 {
    font-size: clamp(2rem, 4.6vw, 3.25rem);
    margin-bottom: 1rem;
}

.section-head p {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--ink-2);
    max-width: 60ch;
}

.section-head.center p {
    margin-inline: auto;
}

/* emphasis words — solid warm accent, not a rainbow gradient */
.grad-text {
    color: var(--gold);
}

/* ---------- light "surface" sections ---------- */

.surface {
    background: var(--light-bg);
    color: var(--light-ink);
    border-radius: var(--r-surface);
    margin-inline: clamp(1rem, 4vw, 3.5rem);
    box-shadow: 0 -20px 80px rgba(230, 169, 78, 0.05),
        0 20px 80px rgba(0, 0, 0, 0.25);
}

/* lighter vertical rhythm inside the light panels */
.section.surface {
    padding-block: clamp(2.75rem, 5.5vw, 4.5rem);
}

.surface .eyebrow {
    color: var(--light-accent);
}

.surface .eyebrow::before,
.surface .section-head.center .eyebrow::after {
    background: var(--light-accent);
}

.surface .grad-text {
    color: var(--light-accent);
}

.surface .section-head p,
.surface p {
    color: var(--light-ink-2);
}

/* more breathing room inside the light panels, and a gap between
   two stacked panels so they read as separate cards */
.surface .container {
    padding-inline: clamp(1.25rem, 3vw, 2.25rem);
}

.surface + .surface {
    margin-top: clamp(1rem, 2.4vw, 2rem);
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: var(--gold);
    color: var(--on-accent);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--gold-soft);
    box-shadow: 0 12px 34px rgba(230, 169, 78, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn-ghost:hover {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(230, 169, 78, 0.7),
        0 12px 34px rgba(230, 169, 78, 0.12);
}

.surface .btn-ghost {
    color: var(--light-ink);
    box-shadow: inset 0 0 0 1px rgba(36, 28, 20, 0.25);
}

.surface .btn-ghost:hover {
    box-shadow: inset 0 0 0 1px var(--light-accent);
}

.btn-lg {
    padding: 1.05rem 2.4rem;
    font-size: 1.05rem;
}

.btn .material-icons-outlined {
    font-size: 1.1rem;
}

/* ---------- navbar ---------- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0.9rem var(--pad-x);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 9, 8, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
}

.logo-mark {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(230, 169, 78, 0.45));
}

.footer-brand .logo-mark {
    width: 34px;
    height: 34px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.9rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink-2);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links .nav-cta {
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--on-accent);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-links .nav-cta:hover {
    color: var(--on-accent);
    background: var(--gold-soft);
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(230, 169, 78, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    background: rgba(247, 241, 232, 0.05);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 920px) {
    .nav-toggle {
        display: flex;
    }

    /* while the menu is open the bar must NOT have a backdrop-filter, or it
       becomes a filtered ancestor and cancels the dropdown's own blur */
    .navbar:has(.nav-links.active) {
        background: rgba(12, 11, 9, 0.94);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    /* compact glassy dropdown under the bar (not full-screen) */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.5rem 0.75rem 0.9rem;
        background: rgba(10, 9, 8, 0.82);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1rem;
        font-family: var(--font-display);
        text-align: center;
        padding: 0.7rem;
        border-radius: 10px;
    }

    .nav-links a:hover {
        background: rgba(247, 241, 232, 0.06);
    }

    .nav-links .nav-cta {
        align-self: center;
        margin-top: 0.5rem;
        padding: 0.55rem 1.6rem;
    }
}

/* ---------- pricing ---------- */

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    border-radius: var(--r-lg);
    background: var(--light-card);
    border: 1px solid var(--light-line);
    box-shadow: 0 6px 30px rgba(36, 28, 20, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(36, 28, 20, 0.14);
}

.plan-planet {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    background: radial-gradient(circle at 34% 30%, #fbeccb, var(--tint, #e6a94e) 48%, #4a2c14 96%);
    box-shadow: inset -6px -4px 12px rgba(0, 0, 0, 0.4),
        0 0 18px color-mix(in srgb, var(--tint, #e6a94e) 45%, transparent);
}

.plan h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.plan-tag {
    font-size: 0.85rem;
    color: var(--light-ink-3);
    margin-bottom: 1.1rem;
}

.plan-price {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--light-ink);
    margin-bottom: 0.2rem;
}

.plan-price small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--light-ink-3);
}

.plan ul {
    list-style: none;
    margin: 1.2rem 0 1.6rem;
    flex: 1;
}

.plan li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
    color: var(--light-ink-2);
}

.plan li::before {
    content: "check";
    font-family: "Material Icons Outlined";
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 1rem;
    color: var(--light-accent);
}

.plan-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.plan-ctas .btn {
    width: 100%;
}

.plan--featured {
    position: relative;
    border: 1.5px solid var(--gold);
    box-shadow: 0 18px 60px rgba(230, 169, 78, 0.18);
}

.plan-badge {
    position: absolute;
    top: -0.85rem;
    right: 1.25rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--on-accent);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-note {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--light-ink-3);
}

/* care plan banner */
.care-plan {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.6rem 1.75rem;
    border-radius: var(--r-lg);
    background: var(--bg-2);
    color: var(--ink);
    border: 1px solid rgba(230, 169, 78, 0.35);
}

.care-plan-info {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.care-plan-icon {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(230, 169, 78, 0.12);
    color: var(--gold);
}

.care-plan h3 {
    font-size: 1.15rem;
}

.care-plan p {
    color: var(--ink-2);
    font-size: 0.9rem;
    max-width: 52ch;
}

.care-plan-price {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--gold);
}

.care-plan-price small {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink-3);
}

.care-plan-price .per {
    display: inline-block;
    padding-inline: 0.32em;
    font-weight: 400;
    color: var(--ink-3);
}

@media (max-width: 920px) {
    .plans {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-inline: auto;
    }

    .plan--featured {
        order: -1;
    }

    .care-plan {
        max-width: 460px;
        margin-inline: auto;
        margin-top: 1.25rem;
    }
}

/* ---------- process steps ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.step {
    position: relative;
    padding-top: 1.4rem;
}

.step::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    left: 0;
    right: -1.5rem;
    height: 1px;
    background: var(--light-line);
}

.step:last-child::before {
    right: 0;
}

.step::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(230, 169, 78, 0.16);
}

.step-num {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--light-accent);
}

.step h3 {
    font-size: 1.05rem;
    margin: 0.35rem 0 0.45rem;
}

.step p {
    font-size: 0.88rem;
    color: var(--light-ink-2);
}

@media (max-width: 920px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        max-width: 520px;
    }

    .step {
        padding-top: 0;
        padding-left: 1.75rem;
    }

    .step::before {
        top: 0.4rem;
        bottom: -1.75rem;
        left: 4px;
        right: auto;
        width: 1px;
        height: auto;
    }

    .step:last-child::before {
        display: none;
    }
}

/* ---------- FAQ ---------- */

.faq-list {
    max-width: 780px;
    margin-inline: auto;
}

.faq-item {
    border-bottom: 1px solid var(--light-line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--light-ink);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "add";
    font-family: "Material Icons Outlined";
    font-size: 1.3rem;
    color: var(--light-accent);
    transition: transform 0.25s ease;
    flex: none;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding-bottom: 1.35rem;
    color: var(--light-ink-2);
    font-size: 0.95rem;
    max-width: 65ch;
}

/* ---------- CTA band ---------- */

.cta-band {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-block: clamp(5rem, 11vw, 9rem);
    background: var(--bg-0);
}

.cta-band::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -55vw;
    width: 90vw;
    height: 90vw;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 20%,
        rgba(230, 169, 78, 0.22),
        rgba(196, 86, 47, 0.12) 38%,
        transparent 66%);
    pointer-events: none;
}

.cta-band h2 {
    font-size: clamp(2.4rem, 7vw, 5rem);
    margin-bottom: 1.25rem;
}

.cta-band p {
    color: var(--ink-2);
    max-width: 46ch;
    margin: 0 auto 2.25rem;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.cta-band .btn-row {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ---------- forms ---------- */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: rgba(247, 241, 232, 0.04);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    width: 100%;
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e6a94e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.field select option {
    color: #241c14;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold);
    background: rgba(230, 169, 78, 0.06);
}

/* point-of-collection privacy line under the forms */
.form-legal {
    margin-top: 1.6rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--ink-3);
}

.form-legal a {
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-legal a:hover {
    color: var(--gold);
}

.form-note {
    display: none;
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.form-note.show {
    display: block;
}

.form-note.ok {
    background: rgba(120, 180, 100, 0.12);
    border: 1px solid rgba(120, 180, 100, 0.4);
    color: #cbe6bd;
}

.form-note.err {
    background: rgba(196, 86, 47, 0.12);
    border: 1px solid rgba(196, 86, 47, 0.42);
    color: #f0c0a6;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- footer ---------- */

.footer {
    background: var(--bg-0);
    border-top: 1px solid var(--line);
    padding: clamp(3rem, 6vw, 4.5rem) var(--pad-x) 1.5rem;
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}

.footer-brand p {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--ink-3);
    max-width: 30ch;
}

.footer-clock {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--ink-2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-clock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(230, 169, 78, 0.8);
}

.footer h4 {
    margin-bottom: 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.footer-col a,
.footer-col address {
    display: block;
    font-size: 0.9rem;
    font-style: normal;
    line-height: 2;
    color: var(--ink-2);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    max-width: var(--container);
    margin: 2.5rem auto 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--ink-3);
}

.footer-bottom a {
    display: inline-block;
    padding-block: 0.3rem;
    color: var(--ink-3);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--gold);
}

@media (max-width: 860px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    /* 2-col: put Contact under the brand (left) and Company under Services (right) */
    .footer-col:not([aria-label]) { order: 1; }      /* Contact */
    .footer-col[aria-label="Company"] { order: 2; }
}

@media (max-width: 520px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* stack order on mobile: brand, contact, services, company */
    .footer-brand { order: 0; }
    .footer-col:not([aria-label]) { order: 1; }      /* Contact */
    .footer-col[aria-label="Services"] { order: 2; }
    .footer-col[aria-label="Company"] { order: 3; }
}

/* ---------- reveal on scroll ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- comet cursor ---------- */

#comet-canvas {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

/* ---------- grain ---------- */

.grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    mix-blend-mode: overlay;
}

/* ---------- accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
