/* ============================================================
   Scarlettes Avenue LLC — brand stylesheet (alternate layout)
   Palette: deep indigo navy, warm amber, paper cream
   Type:    Fraunces (display serif) + Hanken Grotesk (body)
   ============================================================ */

:root {
    --navy: #1A237E;
    --navy-deep: #131a5c;
    --navy-soft: #3a429a;
    --amber: #E3A042;
    --amber-soft: #F4B860;
    --paper: #F6F2E9;
    --paper-warm: #EFE8D8;
    --ink: #1C1B22;
    --ink-soft: #4a4954;
    --line: rgba(26, 35, 126, 0.14);
    --line-light: rgba(246, 242, 233, 0.18);
    --shadow: 0 22px 50px -28px rgba(19, 26, 92, 0.55);

    --maxw: 1080px;
    --pad: clamp(1.25rem, 5vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Hanken Grotesk", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle paper grain so the cream isn't a flat fill */
.grain {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.hero-band, main, .site-footer { position: relative; z-index: 1; }

a { color: inherit; }

/* ---------- Dark hero band ---------- */
.hero-band {
    background: var(--navy);
    color: var(--paper);
    border-bottom-left-radius: clamp(20px, 4vw, 40px);
    border-bottom-right-radius: clamp(20px, 4vw, 40px);
    overflow: hidden;
}

/* ---------- Header (on dark) ---------- */
.site-header {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 1.6rem var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-mark svg { display: block; border-radius: 9px; }

.brand-name {
    display: flex;
    flex-direction: column;
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--paper);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.brand-name em {
    font-family: "Hanken Grotesk", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(246, 242, 233, 0.62);
    margin-top: 0.2rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav a { text-decoration: none; color: rgba(246, 242, 233, 0.78); transition: color 0.2s ease; }
.site-nav a:hover { color: var(--paper); }

.nav-cta {
    background: var(--amber-soft);
    color: var(--navy) !important;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--amber); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 4rem) var(--pad) clamp(3.5rem, 8vw, 6rem);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber-soft);
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: rise 0.7s ease forwards;
}

.hero-title {
    font-family: "Fraunces", serif;
    font-weight: 500;
    font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--paper);
    max-width: 18ch;
    opacity: 0;
    animation: rise 0.7s ease 0.08s forwards;
}

.hero-title .accent {
    color: var(--amber-soft);
    font-style: italic;
}

.hero-lede {
    margin-top: 1.75rem;
    max-width: 54ch;
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.18rem);
    color: rgba(246, 242, 233, 0.82);
    opacity: 0;
    animation: rise 0.7s ease 0.16s forwards;
}

.hero-actions {
    margin-top: 2.25rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: rise 0.7s ease 0.24s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--amber-soft);
    color: var(--navy);
    box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--amber); transform: translateY(-2px); }

.btn-ghost {
    color: var(--paper);
    border: 1.5px solid var(--line-light);
    background: transparent;
}
.btn-ghost:hover { border-color: var(--paper); transform: translateY(-2px); }

/* Hero side panel — facts stacked as a card */
.hero-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-light);
    border-radius: 18px;
    padding: 1.6rem 1.6rem 0.4rem;
    opacity: 0;
    animation: rise 0.7s ease 0.32s forwards;
}
.hero-panel-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--amber-soft);
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.hero-facts dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: rgba(246, 242, 233, 0.6);
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.hero-facts dd { font-weight: 500; color: var(--paper); line-height: 1.4; }
.hero-facts > div {
    padding: 1.1rem 0;
    border-top: 1px solid var(--line-light);
}
.hero-facts > div:first-child { border-top: none; }

/* ---------- Sections ---------- */
.section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2.25rem;
}
.section-index {
    font-family: "Fraunces", serif;
    font-size: 1rem;
    color: var(--amber);
    font-weight: 600;
}
.section-head h2 {
    font-family: "Fraunces", serif;
    font-weight: 500;
    font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem);
    letter-spacing: -0.015em;
    color: var(--navy);
    line-height: 1.1;
}

/* Operations — heading and prose side by side */
.section-split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: start;
}
.section-split .section-head { margin-bottom: 0; flex-direction: column; gap: 0.5rem; }

.prose { max-width: 60ch; }
.prose p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Standards — light numbered list ---------- */
.standards-list { list-style: none; }
.standard {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: 1.75rem 0;
    border-top: 1px solid var(--line);
    transition: border-color 0.25s ease;
}
.standard:last-child { border-bottom: 1px solid var(--line); }
.standard:hover { border-top-color: var(--amber); }
.standard-num {
    font-family: "Fraunces", serif;
    font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
    font-weight: 500;
    color: var(--amber);
    line-height: 1;
}
.standard-body h3 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}
.standard-body p { color: var(--ink-soft); max-width: 60ch; }

/* ---------- Onboarding ---------- */
.onboard {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.onboard-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 52ch; }
.onboard-note {
    border-left: 3px solid var(--amber);
    padding-left: 1rem;
    color: var(--ink) !important;
    font-weight: 500;
}
.onboard-copy .btn { margin-top: 0.5rem; }
.onboard-copy .btn-primary { background: var(--navy); color: var(--paper); }
.onboard-copy .btn-primary:hover { background: var(--navy-deep); }

.contact-card {
    background: var(--navy);
    color: var(--paper);
    border-radius: 18px;
    padding: 1.9rem;
    box-shadow: var(--shadow);
}
.contact-card h3 {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--amber-soft);
    margin-bottom: 1.25rem;
}
.contact-list { list-style: none; }
.contact-list li {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 0;
    border-top: 1px solid var(--line-light);
}
.contact-list li:first-child { border-top: none; padding-top: 0; }
.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: rgba(246, 242, 233, 0.6);
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.contact-value { font-weight: 500; color: var(--paper); }
.contact-value a { color: var(--amber-soft); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 2.5rem var(--pad) 3.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-brand {
    font-family: "Fraunces", serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--navy);
}
.footer-meta { font-size: 0.82rem; color: var(--ink-soft); text-align: right; line-height: 1.6; }

/* ---------- Motion ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; align-items: stretch; }
    .section-split { grid-template-columns: 1fr; }
    .onboard { grid-template-columns: 1fr; }
    .footer-meta { text-align: left; }
}

@media (max-width: 560px) {
    .site-nav { gap: 1rem; font-size: 0.88rem; }
    .brand-name { font-size: 1.1rem; }
    .standard { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
