/* ============================================================
   God Bless You — design system
   A warm, editorial palette built for a Western premium
   digital-product storefront.
   ============================================================ */

:root {
  /* surfaces */
  --ivory: #FCF9F3;
  --cream: #F5EFE3;
  --cream-2: #EFE7D8;
  --paper: #FFFFFF;
  --ink: #221F1A;
  --ink-soft: #56514A;
  --muted: #8B8477;

  /* brand */
  --olive: #55663F;
  --olive-deep: #33402A;
  --olive-soft: #E8EBDE;
  --gold: #B08A3E;
  --gold-bright: #C9A227;
  --gold-soft: #EFE3C4;
  --terracotta: #B4653F;

  --line: rgba(34, 31, 26, .10);
  --line-strong: rgba(34, 31, 26, .18);

  --shadow-sm: 0 1px 2px rgba(34,31,26,.05), 0 4px 14px rgba(34,31,26,.05);
  --shadow: 0 2px 6px rgba(34,31,26,.05), 0 18px 44px -18px rgba(34,31,26,.22);
  --shadow-lg: 0 40px 80px -32px rgba(34,31,26,.34);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --script: 'Great Vibes', 'Cormorant Garamond', cursive;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 2.6rem, 760px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow.olive { color: var(--olive); }
.lede { font-size: 1.14rem; color: var(--ink-soft); line-height: 1.72; }
.small-note { font-size: .82rem; color: var(--muted); }
.script { font-family: var(--script); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--olive-deep);
  color: #FBF9F2;
  font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, opacity .2s ease;
  box-shadow: 0 10px 26px -14px rgba(51,64,42,.85);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(51,64,42,.9); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.gold {
  background: linear-gradient(135deg, #C9A227, #A9822F);
  color: #241C07;
  box-shadow: 0 12px 30px -14px rgba(176,138,62,.9);
}
.btn.gold:hover { box-shadow: 0 20px 40px -16px rgba(176,138,62,.95); }

.btn.ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong); box-shadow: none;
}
.btn.ghost:hover { background: rgba(34,31,26,.04); }

.btn.wide { width: 100%; }
.btn.sm { padding: 11px 20px; font-size: .78rem; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252,249,243,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(0,0,0,.5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.32rem; font-weight: 600; letter-spacing: .01em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-bright), var(--olive));
  color: #fff; font-size: .95rem;
}
.brand small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--gold); transition: right .3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); padding: 6px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    padding: .5rem 1.3rem 1.2rem;
    transform: translateY(-130%); transition: transform .35s cubic-bezier(.2,.7,.2,1);
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav-right .btn { padding: 11px 18px; font-size: .76rem; }
}

/* ============================================================
   Sections
   ============================================================ */
section { padding: clamp(64px, 9vw, 116px) 0; }
.section-head { max-width: 640px; margin: 0 auto 3.4rem; text-align: center; }
.section-head p { color: var(--ink-soft); }

.tint { background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%); }
.tint-2 { background: var(--cream); }
.ink-band { background: var(--olive-deep); color: #F2EEE2; }
.ink-band h1, .ink-band h2, .ink-band h3 { color: #FBF7EB; }
.ink-band .lede, .ink-band p { color: rgba(242,238,226,.8); }

/* ============================================================
   Badges & pills
   ============================================================ */
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: 6px 14px; border-radius: 999px;
  background: var(--olive-soft); color: var(--olive-deep);
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.pill.gold { background: var(--gold-soft); color: #6B5217; }
.pill.outline { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft); }

.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--ink-soft); }
.trust-item b { color: var(--ink); font-weight: 600; }

.stars { color: var(--gold-bright); letter-spacing: .12em; }

/* ============================================================
   Cards & grids
   ============================================================ */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--cream); margin-bottom: 1.1rem;
}
.num-badge {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--olive-deep); color: #F5F1E4;
  font-family: var(--serif); font-size: 1.15rem; margin-bottom: 1.2rem;
}
.stat { text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--olive-deep); line-height: 1; }
.stat span { font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 1.35rem; }
.field label {
  display: block; font-size: .78rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem;
}
.field .hint { font-size: .78rem; color: var(--muted); margin-top: .4rem; text-transform: none; letter-spacing: 0; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(85,102,63,.14);
}
textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B8477' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice {
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper);
  font-size: .82rem; color: var(--ink-soft); transition: all .18s ease;
}
.choice:hover { border-color: var(--olive); color: var(--ink); }
.choice.active { background: var(--olive-deep); border-color: var(--olive-deep); color: #F7F4EA; }

.check-row { display: flex; gap: .65rem; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); }
.check-row input { margin-top: .28rem; accent-color: var(--olive); width: 16px; height: 16px; }
.check-row a { color: var(--olive); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Accordion (FAQ)
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem .2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--serif); font-size: 1.22rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); color: var(--gold); font-size: 1.3rem; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 .2rem 1.5rem; color: var(--ink-soft); max-width: 62ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--olive-deep); color: rgba(240,236,224,.72); padding: 68px 0 34px; }
.site-footer h4 { color: #F7F3E6; font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.4rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: rgba(240,236,224,.72); font-size: .9rem; line-height: 2.1; }
.site-footer a:hover { color: #F7F3E6; }
.footer-brand .brand { color: #F7F3E6; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 34ch; margin-top: 1rem; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(240,236,224,.16);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .8rem; color: rgba(240,236,224,.55);
}
.footer-bottom a { font-size: .8rem; }
.pay-icons { display: flex; gap: .5rem; align-items: center; }
.pay-icons span {
  padding: 4px 10px; border: 1px solid rgba(240,236,224,.25); border-radius: 5px;
  font-size: .68rem; letter-spacing: .08em;
}

/* ============================================================
   Utilities
   ============================================================ */
.stack-sm > * + * { margin-top: .6rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.divider-orn { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--gold); margin: 1.4rem 0; }
.divider-orn::before, .divider-orn::after { content: ''; height: 1px; width: 54px; background: var(--gold-soft); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
