/* ============================================================
   Gil Hodges Freedom — new site
   Design system: warm, premium, modern. Phoenix + Golden Infinity.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); background: var(--base); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink-dark); }

/* ---------- Tokens ----------
   Pearl Iconic Palette — anchored to the real Pearl property in Mississippi.
   See memory file: project_pearl_iconic_palette.md
*/
:root {
  /* === Pearl Iconic Trio (extracted from Gil's photos 2026-05-08) === */
  --pearl-yellow:        #ECD584;   /* the yellow house — warmth surfaces, button fills, the "sunshine" of the brand */
  --pearl-yellow-deep:   #D9BD63;   /* hover/pressed for yellow surfaces */
  --pearl-red:           #BB3A2E;   /* the red barn — action accents (Donate / Subscribe / primary CTAs) */
  --pearl-red-deep:      #9B2E24;   /* hover/pressed for red */
  --pearl-green:         #234A39;   /* the green tiny house — grounding, deep sections, dark surfaces */
  --pearl-green-deep:    #15301F;   /* deepest sections — never use as text directly */
  --pearl-cream:         #FAF6EC;   /* page background — warm cream that complements the trio */
  --pearl-cream-alt:     #F2ECDB;   /* slightly deeper cream for alternating sections */

  /* === Existing tokens remapped to the Pearl trio (so existing CSS keeps working) === */
  --base:        var(--pearl-cream);          /* page bg */
  --base-alt:    var(--pearl-cream-alt);      /* deeper-cream sections */
  --ink:         #1B3A2D;                     /* body text — passes WCAG AA on cream */
  --ink-dark:    var(--pearl-green-deep);     /* headings + dark surfaces */
  --gold:        var(--pearl-yellow);         /* primary warm accent */
  --gold-deep:   var(--pearl-yellow-deep);    /* hover state */
  --bronze:      var(--pearl-red);            /* action accent (Donate / Subscribe / strong CTAs) */
  --bronze-deep: var(--pearl-red-deep);       /* action hover state */
  --taupe:       #6F7A6F;                     /* muted text — green-tinted neutral */
  --line:        rgba(35, 74, 57, 0.12);      /* hairlines tinted with Pearl green */
  --shadow-sm:   0 1px 2px rgba(21, 48, 31, 0.07);
  --shadow-md:   0 6px 24px rgba(21, 48, 31, 0.09);
  --shadow-lg:   0 20px 60px rgba(21, 48, 31, 0.16);

  --container:   1200px;
  --container-sm: 880px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 32px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } .section-sm { padding: 40px 0; } }

/* ---------- Typography scale ---------- */
.eyebrow { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
h1.display, .h-display { font-size: clamp(44px, 6.5vw, 92px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.02; }
h1 { font-size: clamp(36px, 4.5vw, 60px); }
h2 { font-size: clamp(30px, 3.5vw, 48px); }
h3 { font-size: clamp(22px, 2.2vw, 30px); }
h4 { font-size: 20px; }
.lede { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink); line-height: 1.55; max-width: 58ch; }
.muted { color: var(--taupe); }
.fade-italic { font-family: 'Fraunces', serif; font-style: italic; font-weight: 300; color: var(--bronze); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250, 246, 236, 0.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 12px; font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-dark); }
.nav-brand img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { font-size: 15px; color: var(--ink); font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--gold-deep); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--ink-dark); color: #fff !important; padding: 11px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; letter-spacing: 0.01em; transition: background .2s; }
.nav-cta:hover { background: var(--bronze); color: #fff !important; }
.nav-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink-dark); position: relative; transition: all .2s; }
.nav-burger span::before, .nav-burger span::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink-dark); transition: all .2s; }
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--base); border-bottom: 1px solid var(--line); padding: 24px; gap: 20px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; transition: all .2s ease; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--ink-dark); color: #fff; }
.btn-primary:hover { background: var(--bronze); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--ink-dark); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink-dark); border-color: var(--ink-dark); }
.btn-outline:hover { background: var(--ink-dark); color: #fff; }
.btn-ghost { padding: 10px 0; color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; transition: color .2s, border-color .2s; }
.btn-ghost:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.btn-lg { padding: 18px 34px; font-size: 16px; }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 96px; overflow: hidden; background: linear-gradient(180deg, var(--base) 0%, var(--base-alt) 100%); }
.hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 800px; height: 800px; background: radial-gradient(circle, rgba(236, 213, 132, 0.15) 0%, transparent 60%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lede { margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-visual img { max-height: 560px; width: auto; filter: drop-shadow(0 30px 60px rgba(236, 213, 132, 0.3)); }
@media (max-width: 900px) {
  .hero { padding: 72px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-height: 340px; }
}

/* ---------- Sections ---------- */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lede { max-width: 58ch; }
.section-dark { background: var(--ink-dark); color: var(--base); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-cream { background: var(--base-alt); }

/* ---------- Cards / Grid ---------- */
.grid { display: grid; gap: 32px; }
.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: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 4 / 3; background: var(--base-alt); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; font-size: 22px; }
.card-body p { color: var(--taupe); font-size: 15px; line-height: 1.55; flex: 1; margin-bottom: 16px; }
.card-price { font-size: 22px; font-weight: 600; color: var(--gold-deep); font-family: 'Fraunces', serif; margin-bottom: 16px; }

/* ---------- Product / book ---------- */
.book-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .book-row { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 600px) { .book-row { grid-template-columns: 1fr; } }
.book { text-align: center; }
.book-cover { aspect-ratio: 2 / 3; max-width: 260px; margin: 0 auto 20px; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-md); transition: transform .3s; }
.book:hover .book-cover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book h3 { font-size: 22px; margin-bottom: 4px; }
.book .book-meta { font-size: 14px; color: var(--taupe); margin-bottom: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-forthcoming { display: inline-block; background: var(--gold); color: var(--ink-dark); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 12px; text-transform: uppercase; }

/* ---------- Quote / Testimonial ---------- */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote-mark { font-family: 'Fraunces', serif; font-size: 64px; color: var(--gold); line-height: 0.5; margin-bottom: 24px; display: inline-block; }
.quote p { font-family: 'Fraunces', serif; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; font-weight: 400; color: var(--ink-dark); margin-bottom: 20px; font-style: italic; }
.quote-cite { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); font-weight: 500; }

/* ---------- Three Doors ---------- */
.door-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .door-grid { grid-template-columns: 1fr; gap: 20px; } }
.door { padding: 40px 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); transition: all .25s; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.door::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.door:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.door:hover::before { transform: scaleX(1); }
.door-icon { font-size: 34px; margin-bottom: 20px; }
.door h3 { font-size: 26px; margin-bottom: 14px; }
.door p { color: var(--taupe); flex: 1; margin-bottom: 24px; }

/* ---------- Newsletter block ---------- */
.newsletter { background: var(--ink-dark); color: var(--base); padding: 80px 40px; border-radius: var(--radius-lg); text-align: center; max-width: 900px; margin: 0 auto; position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(236, 213, 132, 0.25) 0%, transparent 60%); }
.newsletter h2 { color: #fff; margin-bottom: 16px; position: relative; }
.newsletter p { max-width: 520px; margin: 0 auto 32px; color: rgba(250, 246, 236, 0.8); position: relative; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; position: relative; }
.newsletter-form input { flex: 1; padding: 15px 20px; border-radius: var(--radius-sm); border: 0; font-size: 15px; background: rgba(255,255,255,0.95); color: var(--ink-dark); font-family: inherit; }
.newsletter-form input:focus { outline: 2px solid var(--gold); }
@media (max-width: 640px) { .newsletter { padding: 56px 24px; } .newsletter-form { flex-direction: column; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink-dark); color: rgba(250, 246, 236, 0.75); padding: 72px 0 32px; font-size: 15px; }
.footer a { color: rgba(250, 246, 236, 0.85); transition: color .2s; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-brand-copy { max-width: 320px; color: rgba(250, 246, 236, 0.7); line-height: 1.7; }
.footer-brand img { height: 44px; margin-bottom: 20px; }
.footer-signoff { border-top: 1px solid rgba(250, 246, 236, 0.12); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: rgba(250, 246, 236, 0.5); }
.footer-signoff .tagline { font-family: 'Fraunces', serif; font-style: italic; font-size: 16px; color: var(--gold); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 48px; } .mt-8 { margin-top: 64px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; } .mb-6 { margin-bottom: 48px; } .mb-8 { margin-bottom: 64px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 80px 0; }
.divider-gold { height: 2px; width: 60px; background: var(--gold); border: 0; margin: 24px 0; }

/* ---------- Page-specific helpers ---------- */
.breadcrumb { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--gold-deep); }

/* Product detail page */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; gap: 40px; } }
.product-img { aspect-ratio: 4 / 5; background: var(--base-alt); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info .price-lg { font-family: 'Fraunces', serif; font-size: 42px; color: var(--gold-deep); margin: 16px 0 28px; }
.product-info .desc { font-size: 17px; line-height: 1.7; margin-bottom: 28px; color: var(--ink); }
.product-info ul { padding-left: 20px; margin-bottom: 28px; }
.product-info ul li { margin-bottom: 6px; }
.product-meta { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; font-size: 14px; color: var(--taupe); display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }

/* Events list */
.event-row { display: grid; grid-template-columns: 180px 1fr auto; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: center; }
.event-row:last-child { border-bottom: 0; }
.event-date { font-family: 'Fraunces', serif; }
.event-date .dow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); font-family: 'Inter', sans-serif; font-weight: 600; }
.event-date .day { font-size: 38px; line-height: 1; margin: 4px 0; }
.event-date .time { font-size: 14px; color: var(--taupe); }
.event-body h3 { font-size: 22px; margin-bottom: 4px; }
.event-body .location { font-size: 14px; color: var(--taupe); }
@media (max-width: 700px) {
  .event-row { grid-template-columns: 80px 1fr; gap: 20px; }
  .event-row .btn { grid-column: 2; justify-self: start; margin-top: 10px; }
  .event-date .day { font-size: 28px; }
}
