@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink: #12200f;
    --cream: #f3ecd8;
    --amber: #e0b24a;
    --amber-deep: #c98a2d;
    --sage: #8fb56a;
    --sage-deep: #6b8e4e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--ink);
    color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Layered background ---------- */

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 0%, rgba(212, 160, 23, 0.16), transparent 60%),
        radial-gradient(ellipse 70% 60% at 100% 20%, rgba(107, 142, 78, 0.22), transparent 55%),
        linear-gradient(180deg, #0e1a0c 0%, #16260f 45%, #1c2410 100%);
}

#brewCanvas {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* ---------- Nav ---------- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5vw;
    background: rgba(18, 32, 15, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(224, 178, 74, 0.12);
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cream);
}

.logo span {
    color: var(--amber);
}

.nav-link {
    display: inline-block;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--amber), var(--amber-deep));
    color: #16260f;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    box-shadow: 0 6px 20px rgba(201, 138, 45, 0.25);
}

.nav-link:hover,
.nav-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(201, 138, 45, 0.4);
    filter: brightness(1.06);
}

.nav-link:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */

main {
    position: relative;
    z-index: 2;
}

section {
    position: relative;
    z-index: 2;
    padding: 90px 5vw;
}

/* ---------- Hero ---------- */

.hero {
    padding-top: 22vh;
    padding-bottom: 8vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.12;
    max-width: 16ch;
    background: linear-gradient(120deg, var(--cream) 20%, var(--amber) 55%, var(--sage) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin-top: 28px;
    max-width: 680px;
    color: #cdd9bd;
    font-size: 1.15rem;
    text-align: center;
}

.hero .eyebrow {
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber);
    background: rgba(224, 178, 74, 0.1);
    border: 1px solid rgba(224, 178, 74, 0.3);
}

.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sage);
    box-shadow: 0 0 0 0 rgba(143, 181, 106, 0.6);
    animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(143, 181, 106, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(143, 181, 106, 0); }
    100% { box-shadow: 0 0 0 0 rgba(143, 181, 106, 0); }
}

/* ---------- Cards ---------- */

.cards-section {
    position: relative;
    z-index: 2;
}

.cards-section h2 {
    text-align: center;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    margin-bottom: 50px;
    color: var(--cream);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    padding: 38px;
    background: rgba(243, 236, 216, 0.06);
    border: 1px solid rgba(224, 178, 74, 0.18);
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(224, 178, 74, 0.45);
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(224, 178, 74, 0.25), rgba(143, 181, 106, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 1.3rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: var(--cream);
}

.card p {
    color: #dbe4cc;
    font-size: 0.98rem;
}

/* ---------- CTA / Signal line ---------- */

.cta,
.signal-line {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 140px;
}

.cta-inner,
.signal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.signal-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage);
    font-weight: 600;
}

.signal-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
}

.signal-cta {
    display: inline-block;
    padding: 20px 52px;
    background: linear-gradient(135deg, var(--amber), var(--amber-deep));
    color: #16260f;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 999px;
    box-shadow: 0 14px 36px rgba(201, 138, 45, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 46px rgba(201, 138, 45, 0.45);
    filter: brightness(1.06);
}

.signal-cta:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 4px;
}

.signal-sub {
    color: #b9c7a8;
    font-size: 0.92rem;
}

/* ---------- Footer ---------- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   contrast, background and spacing live here instead. */

footer {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 28px 5vw;
    color: #d8e2c9;
    font-size: 0.85rem;
    background: rgba(10, 17, 10, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(224, 178, 74, 0.18);
}

footer div {
    margin: 4px 0;
}

footer a {
    color: var(--amber);
    text-decoration: underline;
}

/* ---------- Motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
    .eyebrow .dot {
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {
    nav {
        padding: 14px 5vw;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .hero {
        padding-top: 16vh;
    }

    .hero p {
        font-size: 1rem;
    }

    section {
        padding: 60px 5vw;
    }

    .card {
        padding: 28px;
    }

    .signal-cta {
        width: 100%;
        padding: 18px 20px;
        font-size: 1.05rem;
    }

    .cta,
    .signal-line {
        padding-bottom: 90px;
    }
}
