/* ─── Design Tokens ─────────────────────────────────── */
:root {
    --cream:      #eddabc;
    --cream-dark: #d9c49e;
    --rust:       #b16448;
    --rust-dark:  #8a4a33;
    --olive:      #5b5d34;
    --olive-dark: #3f4124;
    --sand:       #f5eed9;
    --text-dark:  #2c2215;
    --text-mid:   #5a4030;
    --white:      #fffdf7;
    --font-display: 'Caveat', cursive;
    --font-body:    'Nunito', sans-serif;
    --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius:       12px;
}

/* ─── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family:    var(--font-body);
    background:     var(--sand);
    color:          var(--text-dark);
    overflow-x:     hidden;
}

/* Noise texture */
body::before {
    content:          '';
    position:         fixed;
    inset:            0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events:   none;
    z-index:          9999;
    opacity:          0.4;
}

/* ─── Shared atoms ───────────────────────────────────── */
.section-label {
    font-family:    var(--font-body);
    font-size:      0.72rem;
    font-weight:    800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color:          var(--rust);
    display:        block;
    margin-bottom:  0.6rem;
}
.section-title {
    font-family: var(--font-display);
    font-size:   clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color:       var(--olive);
    line-height: 1.15;
}

.btn {
    display:         inline-flex;
    align-items:     center;
    gap:             0.5rem;
    font-family:     var(--font-body);
    font-weight:     800;
    font-size:       0.88rem;
    letter-spacing:  0.06em;
    text-transform:  uppercase;
    text-decoration: none;
    padding:         0.85rem 2rem;
    border-radius:   99px;
    border:          none;
    cursor:          pointer;
    transition:      transform 0.2s ease, box-shadow 0.2s ease, background var(--transition);
    width:           fit-content;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--rust);
    color:      var(--white);
    box-shadow: 0 6px 24px rgba(177,100,72,0.35);
}
.btn-primary:hover { background: var(--rust-dark); box-shadow: 0 10px 32px rgba(177,100,72,0.5); }
.btn-cream {
    background: var(--cream);
    color:      var(--olive-dark);
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}
.btn-cream:hover { background: var(--white); }
.btn-outline {
    background:   transparent;
    color:        var(--cream);
    border:       2px solid rgba(237,218,188,0.6);
}
.btn-outline:hover { background: rgba(237,218,188,0.15); border-color: var(--cream); }

/* ─── Breadcrumb ─────────────────────────────────────── */
.breadcrumb {
    margin-top:    72px;
    background:    var(--white);
    border-bottom: 1.5px solid rgba(177,100,72,0.1);
    padding:       0.8rem 5%;
}
.breadcrumb-inner {
    max-width:   1200px;
    margin:      0 auto;
    display:     flex;
    align-items: center;
    gap:         0.5rem;
    font-size:   0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color:       var(--text-mid);
}
.breadcrumb-inner a { color: var(--rust); text-decoration: none; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.bc-sep { opacity: 0.4; }

/* ─── Page Hero ──────────────────────────────────────── */
.faq-hero {
    background:  var(--white);
    padding:     5rem 5% 4rem;
    position:    relative;
    overflow:    hidden;
    border-bottom: 1.5px solid rgba(177,100,72,0.08);
}

/* Decorative background wave */
.faq-hero::before {
    content:     '';
    position:    absolute;
    right:       -120px;
    top:         -80px;
    width:       500px;
    height:      500px;
    border-radius: 50%;
    background:  radial-gradient(circle, rgba(177,100,72,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.faq-hero::after {
    content:     '';
    position:    absolute;
    left:        -80px;
    bottom:      -60px;
    width:       320px;
    height:      320px;
    border-radius: 50%;
    background:  radial-gradient(circle, rgba(91,93,52,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.faq-hero-inner {
    max-width:  640px;
    position:   relative;
    z-index:    1;
}
.faq-hero-inner h1 {
    font-family: var(--font-display);
    font-size:   clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color:       var(--olive);
    line-height: 1.05;
    margin-bottom: 1.2rem;
}
.hero-accent { color: var(--rust); }
.faq-hero-inner p {
    font-size:     0.98rem;
    line-height:   1.75;
    color:         var(--text-mid);
    max-width:     480px;
    margin-bottom: 2rem;
}

/* Pill row */
.hero-pills {
    display:    flex;
    gap:        0.7rem;
    flex-wrap:  wrap;
    margin-top: 3rem;
}
.hero-pill {
    display:        inline-flex;
    align-items:    center;
    gap:            0.4rem;
    font-size:      0.72rem;
    font-weight:    800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color:          var(--olive);
    background:     rgba(91,93,52,0.08);
    border:         1.5px solid rgba(91,93,52,0.18);
    padding:        0.35rem 0.9rem;
    border-radius:  99px;
}

/* ─── FAQ Body Layout ────────────────────────────────── */
.faq-body {
    padding: 4rem 5% 5rem;
}
.faq-inner {
    max-width: 1200px;
    margin:    0 auto;
    display:   grid;
    grid-template-columns: 220px 1fr;
    gap:       4rem;
    align-items: start;
}

/* ─── Sidebar ────────────────────────────────────────── */
.faq-sidebar {
    position:   sticky;
    top:        92px;
    display:    flex;
    flex-direction: column;
    gap:        1.5rem;
}

.faq-cat-nav {
    background:    var(--white);
    border-radius: 16px;
    border:        1.5px solid rgba(177,100,72,0.12);
    overflow:      hidden;
    padding:       1.2rem 0;
}
.cat-nav-label {
    font-size:      0.65rem;
    font-weight:    800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color:          var(--rust);
    padding:        0 1.2rem 0.8rem;
    display:        block;
    border-bottom:  1px solid rgba(177,100,72,0.08);
    margin-bottom:  0.4rem;
}
.cat-link {
    display:      block;
    padding:      0.6rem 1.2rem;
    font-size:    0.82rem;
    font-weight:  700;
    color:        var(--text-mid);
    text-decoration: none;
    transition:   color var(--transition), background var(--transition), padding-left var(--transition);
    border-left:  3px solid transparent;
    position:     relative;
}
.cat-link:hover {
    color:        var(--rust);
    background:   rgba(177,100,72,0.04);
    padding-left: 1.5rem;
}
.cat-link.active {
    color:        var(--rust);
    background:   rgba(177,100,72,0.07);
    border-left-color: var(--rust);
    padding-left: 1.5rem;
}

/* Sidebar CTA card */
.sidebar-cta {
    background:     var(--olive);
    border-radius:  16px;
    padding:        1.6rem 1.2rem;
    text-align:     center;
    display:        flex;
    flex-direction: column;
    align-items:    center;
    gap:            0.8rem;
}
.sidebar-cta-icon { font-size: 2.2rem; }
.sidebar-cta p {
    font-size:   0.82rem;
    line-height: 1.6;
    color:       rgba(237,218,188,0.75);
}

/* ─── FAQ Sections ───────────────────────────────────── */
.faq-sections {
    display:        flex;
    flex-direction: column;
    gap:            3.5rem;
}

.faq-section {
    scroll-margin-top: 100px;
}

.faq-section-header {
    display:     flex;
    align-items: flex-start;
    gap:         1rem;
    margin-bottom: 1.5rem;
}
.faq-section-icon {
    font-size:     2.4rem;
    line-height:   1;
    flex-shrink:   0;
    margin-top:    0.2rem;
}

/* ─── FAQ Accordion ──────────────────────────────────── */
.faq-list {
    display:        flex;
    flex-direction: column;
    gap:            0;
    border-radius:  16px;
    overflow:       hidden;
    border:         1.5px solid rgba(177,100,72,0.12);
    background:     var(--white);
}

.faq-item {
    border-bottom: 1px solid rgba(177,100,72,0.08);
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
    width:       100%;
    padding:     1.2rem 1.4rem;
    display:     flex;
    align-items: center;
    justify-content: space-between;
    gap:         1rem;
    background:  none;
    border:      none;
    cursor:      pointer;
    text-align:  left;
    font-family: var(--font-body);
    font-size:   0.92rem;
    font-weight: 800;
    color:       var(--text-dark);
    transition:  background var(--transition), color var(--transition);
}
.faq-q:hover {
    background: rgba(177,100,72,0.04);
    color:      var(--rust);
}
.faq-item.open .faq-q {
    color:      var(--rust);
    background: rgba(177,100,72,0.05);
}

.faq-chevron {
    font-size:    1.3rem;
    color:        var(--rust);
    opacity:      0.5;
    flex-shrink:  0;
    transition:   transform var(--transition), opacity var(--transition);
    line-height:  1;
}
.faq-item.open .faq-chevron {
    transform: rotate(90deg);
    opacity:   1;
}

.faq-a {
    display:    grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow:   hidden;
}
.faq-item.open .faq-a {
    grid-template-rows: 1fr;
}
.faq-a > p {
    /* overflow hidden wrapper */
    overflow: hidden;
}
.faq-a p {
    padding:     0 1.4rem 1.3rem;
    font-size:   0.88rem;
    line-height: 1.75;
    color:       var(--text-mid);
}

/* ─── Contact Band ───────────────────────────────────── */
.contact-band {
    background:  var(--olive-dark);
    padding:     6rem 5%;
    text-align:  center;
}
.contact-band h2 {
    font-family: var(--font-display);
    font-size:   clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color:       var(--cream);
    margin-bottom: 1rem;
}
.contact-band p {
    font-size:     1rem;
    line-height:   1.75;
    color:         rgba(237,218,188,0.72);
    max-width:     520px;
    margin:        0 auto 2.5rem;
}
.band-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Footer ────────────────────────────────────────── */
footer {
    background: var(--text-dark);
    color:      var(--cream);
    padding:    4rem 5% 2rem;
}
.footer-grid {
    display:               grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap:                   3rem;
    max-width:             1200px;
    margin:                0 auto;
    padding-bottom:        3rem;
    border-bottom:         1px solid rgba(237,218,188,0.1);
}
.footer-brand p {
    font-size:   0.85rem;
    line-height: 1.7;
    color:       rgba(237,218,188,0.55);
    margin-top:  0.8rem;
    max-width:   280px;
}
.footer-col h4 {
    font-size:      0.72rem;
    font-weight:    800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color:          var(--rust);
    margin-bottom:  1rem;
}
.footer-col a {
    display:         block;
    margin-bottom:   0.6rem;
    font-size:       0.85rem;
    color:           rgba(237,218,188,0.55);
    text-decoration: none;
    transition:      color var(--transition);
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
    display:         flex;
    justify-content: space-between;
    align-items:     center;
    padding-top:     2rem;
    max-width:       1200px;
    margin:          0 auto;
    font-size:       0.78rem;
    color:           rgba(237,218,188,0.35);
    flex-wrap:       wrap;
    gap:             0.5rem;
}
.social-links { display: flex; gap: 0.8rem; }
.social-links a {
    width:           36px;
    height:          36px;
    border-radius:   50%;
    background:      rgba(237,218,188,0.08);
    border:          1px solid rgba(237,218,188,0.12);
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       0.9rem;
    text-decoration: none;
    transition:      background var(--transition);
}
.social-links a:hover { background: var(--rust); }
footer .nav-logo {
    font-family:     var(--font-display);
    font-size:       2rem;
    font-weight:     700;
    color:           var(--cream);
    text-decoration: none;
}
footer .nav-logo span { color: var(--rust); }

/* ─── Scroll Reveal ──────────────────────────────────── */
.reveal {
    opacity:    0;
    transform:  translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity:   1;
    transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1000px) {
    .faq-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .faq-sidebar { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .faq-hero   { padding: 3.5rem 5% 3rem; }
    .faq-body   { padding: 2.5rem 5% 4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-pills { gap: 0.5rem; }
    .faq-q      { font-size: 0.85rem; padding: 1rem 1.1rem; }
    .faq-a p    { padding: 0 1.1rem 1.1rem; }
}
