/* ==========================================================================
   A BRIDGE WITHIN — Rachael Tutwiler Fortune
   Shared design system
   ========================================================================== */

:root {
  /* Brand palette (from the book cover) */
  --teal:        #0e3a40;   /* deep teal */
  --teal-dark:   #0a2c31;   /* darker teal for footers/depth */
  --teal-700:    #12474e;
  --gold:        #c2892f;   /* primary gold */
  --gold-soft:   #d8a850;
  --ivory:       #f8f1e4;   /* warm ivory background */
  --cream:       #fcf8f0;
  --ink:         #1c1c1c;   /* near-black text */
  --muted:       #5a5a55;   /* muted body text */
  --line:        #e4dccb;   /* hairline on ivory */
  --white:       #ffffff;

  /* Typography */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --shadow-soft: 0 18px 50px rgba(14, 58, 64, 0.16);
  --shadow-book: 0 30px 60px rgba(10, 44, 49, 0.35);
}

/* --------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; }
p { margin: 0 0 1rem; }

/* --------------------------------------------------------------- Helpers */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }
.gold-text { color: var(--gold); }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Gold divider line */
.divider { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 1.4rem 0; }
.divider.center { margin-inline: auto; }

/* Section headings */
.h-display { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: 0.01em; }
.h-section { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.h-section.upper { text-transform: uppercase; letter-spacing: 0.04em; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-weight: 600; font-size: 0.86rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-indent: 0.12em; /* offsets trailing letter-spacing so the label sits centered */
  padding: 15px 30px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #ad7826; }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--teal); border-color: #fff; }
.btn-ink { background: var(--teal); color: #fff; }
.btn-ink:hover { background: var(--teal-dark); }

/* ============================================================ Announcement */
.announce {
  background: var(--gold); color: #fff; text-align: center;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px 16px;
}

/* ================================================================== Navbar */
.nav {
  background: var(--teal); color: #fff;
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand .brand-name {
  font-family: var(--serif); font-size: 1.18rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.brand .brand-tag {
  font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.1em;
  color: var(--gold-soft); text-transform: uppercase; margin-top: 3px;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.3vw, 32px); }
.nav-links a.navlink {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,.86); padding: 6px 0; position: relative;
  transition: color .2s ease;
}
.nav-links a.navlink:hover { color: #fff; }
.nav-links a.navlink.active { color: var(--gold-soft); }
.nav-links a.navlink.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}
.nav-cta { padding: 11px 20px; font-size: 0.74rem; }
.menu-btn {
  display: none; background: none; border: 0; color: #fff;
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}

/* =================================================================== Forms */
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.input, .field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194,137,47,.18);
}
textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Honeypot (spam trap) — visually hidden, off-screen */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Inline newsletter form (light backgrounds) */
.signup { display: grid; gap: .8rem; max-width: 440px; }
.signup .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.note { font-size: 0.82rem; color: var(--muted); }

/* =================================================================== Cards */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.icon-card { text-align: center; }
.icon-card .ic {
  width: 54px; height: 54px; margin: 0 auto 1rem;
  display: grid; place-items: center; color: var(--gold);
}
.icon-card h3 {
  font-family: var(--sans); font-size: 0.92rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: .6rem;
}
.icon-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* Value pillars with serif headers */
.pillar h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .6rem; }
.pillar p { color: var(--muted); margin: 0; }

/* Quote / endorsement blocks */
.quote-card {
  background: #fff; border: 1px solid var(--gold);
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius);
}
.quote-card .mark { font-family: var(--serif); font-size: 3.4rem; color: var(--gold); line-height: .6; }
.quote-card blockquote {
  margin: .4rem 0 1.4rem; font-size: 1.12rem; font-style: italic; color: var(--ink);
}
.quote-card .attrib { font-weight: 700; color: var(--teal); }
.quote-card .attrib span { display: block; font-weight: 400; font-style: normal; font-size: 0.9rem; color: var(--muted); }

/* =============================================================== Utilities */
.bg-ivory { background: var(--ivory); }
.bg-cream { background: var(--cream); }
.bg-white { background: #fff; }
.bg-teal  { background: var(--teal); color: #fff; }
.bg-teal .eyebrow { color: var(--gold-soft); }
.bg-teal .h-section, .bg-teal h2, .bg-teal h3 { color: #fff; }
.bg-teal p { color: rgba(255,255,255,.84); }

/* =================================================================== Footer */
.site-footer { background: var(--teal-dark); color: #fff; }
.footer-feature {
  text-align: center; padding-block: clamp(48px, 7vw, 80px);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-feature h2 {
  font-family: var(--serif); color: var(--gold-soft);
  font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: 0.02em;
}
.footer-bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-block: 30px;
}
.footer-bottom .fb-left .name {
  font-family: var(--serif); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
}
.footer-bottom .fb-left .tag { font-size: 0.78rem; color: var(--gold-soft); }
.footer-bottom .fb-center { text-align: center; font-size: 0.82rem; color: rgba(255,255,255,.7); }
.footer-bottom .fb-right { display: flex; justify-content: flex-end; }
.footer-bottom .fb-right a { color: rgba(255,255,255,.8); transition: color .2s; }
.footer-bottom .fb-right a:hover { color: var(--gold-soft); }
.footer-minimal {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 26px; font-size: 0.82rem; color: rgba(255,255,255,.75);
}

/* ================================================================== Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 44, 49, 0.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 6vh 16px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; width: 100%; max-width: 680px; border-radius: 6px;
  box-shadow: var(--shadow-soft); padding: clamp(26px, 4vw, 46px); position: relative;
  animation: modal-in .25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 12px; right: 16px; background: none; border: 0;
  font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px;
}
.modal-close:hover { color: var(--ink); }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .modal { animation: none; } }

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

/* ================================================================== Heroes */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.hero h1.h-display { letter-spacing: 0.02em; }
.hero .subhead { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin-top: .6rem; }

/* Teal hero (homepage) */
.hero-teal {
  background:
    radial-gradient(120% 120% at 80% 0%, #14525a 0%, var(--teal) 45%, var(--teal-dark) 100%);
  color: #fff;
}
.hero-teal .subhead { color: var(--gold-soft); }
.hero-teal p { color: rgba(255,255,255,.85); }
.hero-teal .eyebrow { color: var(--gold-soft); }

/* Book showcase */
.book-stage { display: grid; place-items: center; }
.book-3d { filter: drop-shadow(var(--shadow-book)); max-height: 560px; width: auto; }
.book-flat { border-radius: 6px; box-shadow: var(--shadow-book); max-height: 560px; width: auto; }

/* Portrait framing */
.portrait { border-radius: 6px; box-shadow: var(--shadow-soft); width: 100%; object-fit: cover; }
.portrait-tall { aspect-ratio: 3/4.2; }

/* Decorative bridge arcs (CSS-only, low opacity) */
.bridge-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bridge-deco svg { position: absolute; right: -4%; bottom: -10%; width: 60%; opacity: .12; }

/* Highlighted text block */
.highlight {
  border-left: 3px solid var(--gold); padding: 4px 0 4px 20px;
  font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--teal);
}

/* Newsletter card on dark teal */
.signup-card {
  background: var(--teal); color: #fff; border-radius: 6px;
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-soft);
}
.signup-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: .8rem; }
.signup-card .benefits li {
  display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .5rem;
  color: rgba(255,255,255,.9);
}
.signup-card .benefits li::before { content: "✓"; color: var(--gold-soft); font-weight: 700; }
.signup-card input { background: rgba(255,255,255,.95); border-color: transparent; }

/* Timeline (Leadership in Action) */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-items: start; }
.timeline .step { text-align: center; position: relative; padding: 0 12px; }
.timeline .step:not(:last-child)::after {
  content: "→"; position: absolute; right: -10px; top: 26px;
  color: var(--gold); font-size: 1.3rem;
}
.timeline .step .dot {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700;
}
.timeline .step h3 {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: .4rem;
}
.timeline .step p { font-size: 0.85rem; color: var(--muted); margin: 0; }

/* Audience chips */
.audience-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.audience-grid .chip {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 12px 22px; font-size: 0.9rem; font-weight: 600; color: var(--teal);
}
.audience-grid .chip svg { color: var(--gold); }

/* Callout box */
.callout {
  display: flex; gap: 20px; align-items: center;
  border: 2px solid var(--gold); border-radius: 6px;
  padding: clamp(20px, 3vw, 32px); background: var(--cream);
}
.callout .callout-ic { color: var(--gold); flex: 0 0 auto; }
.callout p { margin: 0; color: var(--muted); }

/* Endorsement editorial blocks */
.endorse { max-width: 820px; margin-inline: auto; padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.endorse:last-of-type { border-bottom: 0; }
.endorse blockquote { font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.4rem); font-style: italic; color: var(--ink); margin: 0 0 1rem; }
.endorse .by { font-weight: 700; color: var(--teal); }
.endorse .by span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.endorse .by span.by-name2 { font-weight: 700; font-size: 1rem; color: var(--teal); margin-top: .5rem; }

/* Personal reflection / signature card */
.reflection { max-width: 760px; margin-inline: auto; text-align: center; }
.reflection .quote { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.9rem); font-style: italic; color: var(--teal); }
.reflection .sig { font-family: "Playfair Display", cursive; font-size: 2.2rem; color: var(--gold); margin-top: 1rem; }
.reflection .who { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* Final CTA two-column (endorsements / generic) */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

/* Generic responsive 2-up panel */
.panel-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }

/* ============================================================== Responsive */
@media (max-width: 900px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .timeline .step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -20px; transform: translateX(-50%); }
}
@media (max-width: 860px) {
  .hero-grid, .cta-split, .panel-split { grid-template-columns: 1fr; }
  .book-3d, .book-flat { max-height: 420px; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--teal); padding: 8px var(--gutter) 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a.navlink { width: 100%; padding: 12px 0; }
  .nav-links .nav-cta { margin-top: 10px; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .form-row, .signup .row { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom .fb-right { justify-content: center; }
  .footer-bottom .fb-left { order: 1; }
}
@media (max-width: 560px) {
  .cols-4 { grid-template-columns: 1fr; }
}
