/* Literature Burial — shared styles
   Palette: cream / deep forest green / warm gold
   Type: Lora (headings), Inter (body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg:           #FAF6ED;
  --bg-alt:       #F3EDDE;
  --ink:          #1F2A25;
  --ink-soft:     #4A564F;
  --primary:      #1F4E3D;
  --primary-deep: #14362B;
  --gold:         #B8925A;
  --gold-soft:    #E6D9C1;
  --line:         #D9CFBB;
  --white:        #FFFDF7;
  --danger:       #A0432E;
  --radius:       14px;
  --shadow:       0 2px 14px rgba(31,42,37,.06), 0 10px 40px rgba(31,42,37,.05);
  --shadow-lg:    0 8px 24px rgba(31,42,37,.08), 0 24px 60px rgba(31,42,37,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-deep);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: .5em; }
h3 { font-size: 1.3rem; margin-bottom: .4em; }

p { margin-bottom: 1em; color: var(--ink-soft); }
a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--primary-deep); }
.brand-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); display: grid; place-items: center; color: var(--gold-soft); font-family: 'Lora', serif; font-size: 1.1rem; }
.brand-name { font-family: 'Lora', serif; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.brand-sub { font-size: .75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
nav.primary { display: flex; gap: 22px; align-items: center; }
nav.primary a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
nav.primary a:hover { color: var(--primary); }
nav.primary .cta { background: var(--primary); color: var(--white); padding: 10px 18px; border-radius: 999px; }
nav.primary .cta:hover { background: var(--gold); color: var(--white); }

/* Burger toggle — hidden on desktop, revealed on mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin-left: 2px;
  cursor: pointer;
  color: var(--primary-deep);
  border-radius: 8px;
  line-height: 0;
}
.nav-toggle:hover { background: var(--bg-alt); }
.nav-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-toggle svg { width: 26px; height: 20px; display: block; }
.nav-toggle .bar {
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-toggle.is-open .bar-top { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .bar-mid { opacity: 0; }
.nav-toggle.is-open .bar-bot { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer + backdrop — injected by JS, styled only within the mobile breakpoint */
.mobile-drawer, .mobile-drawer-backdrop { display: none; }

@media (max-width: 720px) {
  body { overflow-x: hidden; }
  body.nav-lock { overflow: hidden; }

  /* Header: brand on the left, CTA + burger on the right */
  nav.primary { gap: 8px; }
  nav.primary a:not(.cta) { display: none; }
  nav.primary .cta {
    padding: 9px 16px;
    font-size: .9rem;
    box-shadow: 0 2px 10px rgba(31,78,61,.22);
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* Slide-in drawer (anchored below the sticky header) */
  .mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h, 66px);
    right: 0;
    width: min(84vw, 320px);
    height: calc(100vh - var(--header-h, 66px));
    background: var(--white);
    border-left: 1px solid var(--line);
    box-shadow: -8px 0 40px rgba(31,42,37,.14);
    padding: 18px 22px 26px;
    gap: 2px;
    z-index: 60;
    transform: translateX(100%);
    transition: transform .28s ease, visibility .28s linear;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
  }
  .mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-drawer a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }
  .mobile-drawer a:hover { color: var(--primary); }
  .mobile-drawer a:last-of-type { border-bottom: 0; }

  /* The standout CTA inside the drawer */
  .mobile-drawer .drawer-cta {
    display: block;
    text-align: center;
    margin-top: 18px;
    padding: 15px 18px;
    background: var(--primary);
    color: var(--white);
    border-radius: 999px;
    border-bottom: 0;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(31,78,61,.22);
    letter-spacing: .01em;
  }
  .mobile-drawer .drawer-cta:hover { background: var(--gold); color: var(--white); }

  /* Backdrop — covers everything below the header so the burger stays tappable */
  .mobile-drawer-backdrop {
    display: block;
    position: fixed;
    top: var(--header-h, 66px);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(31,42,37,.42);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 55;
  }
  .mobile-drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  background:
    radial-gradient(1200px 400px at 50% -100px, rgba(31,78,61,.08), transparent 60%),
    var(--bg);
}
.hero .kicker {
  display: inline-block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--gold-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: .01em;
}
.hero h1 { margin-bottom: 16px; max-width: 720px; }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; margin-bottom: 36px; }

/* Calculator card */
.calc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 3.5vw, 40px);
  max-width: 720px;
  margin-top: 12px;
  scroll-margin-top: calc(var(--header-h, 66px) + 16px);
}
.calc-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.calc-card .calc-sub { font-size: .95rem; color: var(--ink-soft); margin-bottom: 24px; }

.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
@media (max-width: 560px) { .calc-row { grid-template-columns: 1fr; } }

.input-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.weight-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1.4rem;
  font-family: 'Lora', serif;
  background: var(--white);
  color: var(--primary-deep);
  transition: border-color .15s ease;
}
.weight-input:focus { outline: none; border-color: var(--primary); }

.unit-toggle { display: flex; background: var(--bg-alt); border-radius: 10px; padding: 4px; gap: 4px; }
.unit-toggle button { flex: 1; border: 0; background: transparent; padding: 12px; font-weight: 500; border-radius: 8px; cursor: pointer; color: var(--ink-soft); font-family: inherit; }
.unit-toggle button.active { background: var(--white); color: var(--primary-deep); box-shadow: 0 1px 4px rgba(0,0,0,.06); }

.price-display {
  margin-top: 28px;
  background: linear-gradient(180deg, var(--bg-alt), var(--white));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.price-display .price-label { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.price-display .price-amount { font-family: 'Lora', serif; font-size: 2.6rem; font-weight: 600; color: var(--primary-deep); line-height: 1; }
.price-display .price-meta { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background .15s ease, transform .1s ease;
}
.btn:hover { background: var(--gold); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: var(--white); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.shipping-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: .9rem;
  color: var(--primary-deep);
}
.shipping-note strong { font-weight: 600; }

.scope-note {
  margin-top: 16px;
  padding: 20px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .92rem;
  color: var(--ink);
}
.scope-note h3 { font-size: 1.05rem; color: var(--primary-deep); margin-bottom: 10px; font-family: 'Inter', sans-serif; font-weight: 600; }
.scope-note p { color: var(--ink-soft); margin-bottom: 10px; }
.scope-note p:last-child { margin-bottom: 0; }
.scope-note strong { color: var(--primary-deep); font-weight: 600; }

/* Trust band */
.trust-band {
  background: var(--bg-alt);
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.trust-item { text-align: center; }
.trust-item .icon { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--primary); }
.trust-item h4 { font-size: 1.05rem; margin-bottom: 4px; color: var(--primary-deep); }
.trust-item p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* Sections */
section { padding: clamp(56px, 7vw, 88px) 0; }
section.alt { background: var(--bg-alt); }
section.inverted { background: var(--primary-deep); color: var(--bg); }
section.inverted h2, section.inverted h3 { color: var(--white); }
section.inverted p { color: rgba(250,246,237,.85); }

.section-header { text-align: center; margin-bottom: 48px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-header .eyebrow { color: var(--gold); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; display: block; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: -18px; left: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: grid; place-items: center;
  font-family: 'Lora', serif; font-weight: 600;
}
.step h3 { margin-top: 12px; font-size: 1.1rem; }
.step p { font-size: .95rem; margin: 0; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.testimonial blockquote { font-family: 'Lora', serif; font-style: italic; font-size: 1.05rem; color: var(--primary-deep); margin-bottom: 14px; }
.testimonial cite { font-style: normal; font-size: .88rem; color: var(--ink-soft); }
.testimonial cite strong { color: var(--ink); font-weight: 600; display: block; }

/* FAQ */
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 14px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow .15s ease;
}
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary {
  list-style: none;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-deep);
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 1.5rem; font-weight: 400;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list .faq-body { padding: 0 24px 22px; color: var(--ink-soft); }
.faq-list .faq-body p { margin-bottom: 10px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,253,247,.85); max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }
.cta-band .btn { background: var(--gold); color: var(--primary-deep); }
.cta-band .btn:hover { background: var(--white); }

/* Footer */
footer.site-footer {
  background: var(--primary-deep);
  color: rgba(255,253,247,.75);
  padding: 56px 0 28px;
  font-size: .92rem;
}
footer.site-footer .footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 720px) { footer.site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; font-family: 'Inter', sans-serif; font-weight: 600; }
footer a { color: rgba(255,253,247,.75); text-decoration: none; display: block; padding: 4px 0; }
footer a:hover { color: var(--gold); }
footer .brand-footer { color: var(--white); font-family: 'Lora', serif; font-size: 1.25rem; margin-bottom: 8px; }
footer .footer-bottom { border-top: 1px solid rgba(255,253,247,.15); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* Blog / content typography */
article.post { max-width: 720px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px; }
article.post h1 { margin-bottom: 16px; }
article.post .post-meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 32px; }
article.post h2 { margin-top: 40px; margin-bottom: 14px; font-size: 1.6rem; }
article.post h3 { margin-top: 28px; margin-bottom: 10px; }
article.post p { font-size: 1.05rem; color: var(--ink); line-height: 1.75; }
article.post ul, article.post ol { margin: 0 0 1em 1.5em; color: var(--ink); }
article.post li { margin-bottom: .5em; }
article.post blockquote { border-left: 3px solid var(--gold); padding: 8px 20px; margin: 20px 0; color: var(--primary-deep); font-family: 'Lora', serif; font-style: italic; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.post-card .tag { color: var(--gold); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { margin: 8px 0 10px; color: var(--primary-deep); font-size: 1.15rem; }
.post-card p { font-size: .95rem; margin: 0; }

/* Forms */
form.contact { display: grid; gap: 18px; max-width: 540px; }
form.contact label { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
form.contact input, form.contact textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--white); font-family: inherit; font-size: 1rem; color: var(--ink);
}
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--primary); }
form.contact textarea { min-height: 140px; resize: vertical; }

/* Utilities */
.center { text-align: center; }
.mt-2 { margin-top: 20px; } .mt-4 { margin-top: 40px; }
.breakdown { margin-top: 16px; font-size: .85rem; color: var(--ink-soft); }
.breakdown span { display: inline-block; margin-right: 14px; }

/* Success / cancel */
.status-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.status-page .status-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: var(--gold-soft); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 20px; }
.status-page .status-icon.err { background: var(--danger); }

/* ---------------- Cookie banner ---------------- */
#bb-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--ink);
  animation: bb-cookie-in .3s ease-out;
}
@keyframes bb-cookie-in { from { transform: translateY(20px); opacity: 0 } to { transform: none; opacity: 1 } }
.bb-cookie-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.bb-cookie-text h2 {
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: .01em;
  color: var(--ink);
}
.bb-cookie-text p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  max-width: 640px;
  color: var(--ink-soft);
}
.bb-cookie-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bb-cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.bb-cookie-btn {
  font-family: 'Inter', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  padding: 11px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
}
.bb-cookie-btn:hover { border-color: var(--ink); }
.bb-cookie-accept {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.bb-cookie-accept:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
@media (max-width: 640px) {
  #bb-cookie-banner { padding: 16px 18px; }
  .bb-cookie-actions { width: 100%; }
  .bb-cookie-btn { flex: 1; }
}
