/* ============================================================
   Kingdom Family Reunions — style.css
   Deep onyx + royal gold + ivory. Regal, generational, warm.
   ============================================================ */

:root {
  /* Palette */
  --onyx:        #0A0A0A;
  --onyx-2:      #121110;
  --onyx-3:      #1a1714;
  --gold:        #D4AF37;
  --gold-light:  #F5D76E;
  --amber:       #B8860B;
  --ivory:       #F5F1E8;
  --ivory-dim:   #c9c3b4;
  --ivory-faint: #8b857a;
  --hairline:    rgba(212, 175, 55, 0.18);
  --hairline-soft: rgba(245, 241, 232, 0.08);

  /* base.css token bindings */
  --color-bg:        var(--onyx);
  --color-text:      var(--ivory);
  --color-primary:   var(--gold);
  --font-body:       'Inter', system-ui, sans-serif;
  --font-display:    'Cormorant Garamond', Georgia, serif;

  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 22px;

  --transition-interactive: 0.28s cubic-bezier(0.22, 1, 0.36, 1);

  /* type scale */
  --text-base: 1.0625rem;

  /* spacing */
  --space-16: 5rem;

  --maxw: 1180px;
}

/* ---------- Type scale (fluid) ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
body { font-family: var(--font-body); background: var(--onyx); color: var(--ivory); }

/* Faint generational grain / vignette on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(212,175,55,0.07), transparent 60%),
    radial-gradient(90% 60% at 50% 120%, rgba(184,134,11,0.05), transparent 60%);
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------- Shared elements ---------- */
.eyebrow,
.section-tag {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}

.section-tag { display: inline-block; margin-bottom: 0.9rem; }

.lede {
  color: var(--ivory-dim);
  font-size: 1.15rem;
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.92rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1405;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.22);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.34);
}

.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--hairline);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn--block { width: 100%; padding: 1.05rem 1.7rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ivory);
}
.brand__mark { width: 34px; height: 34px; color: var(--gold); flex-shrink: 0; }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__text em { font-style: italic; color: var(--gold-light); text-transform: none; font-weight: 500; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  text-decoration: none;
  color: var(--ivory-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--gold-light); }
.nav__cta { color: #1a1405 !important; padding: 0.62rem 1.25rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition-interactive);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.5rem 1.4rem;
  gap: 0.25rem;
  border-top: 1px solid var(--hairline-soft);
}
.nav__mobile a {
  text-decoration: none;
  color: var(--ivory-dim);
  padding: 0.75rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--hairline-soft);
}
.nav__mobile a:last-child {
  border: 0;
  margin-top: 0.75rem;
  color: #1a1405;
  text-align: center;
}
.nav__mobile.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 1.5rem clamp(4.5rem, 9vw, 7rem);
  overflow: hidden;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 55% at 50% 18%, rgba(212,175,55,0.14), transparent 62%);
}
/* faint family-tree filigree behind hero */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 35%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 35%, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; }
.eyebrow { margin-bottom: 1.4rem; }

.hero__title {
  font-size: clamp(2.9rem, 8.5vw, 6rem);
  line-height: 1.02;
  font-weight: 600;
  margin: 0 auto 1.5rem;
  background: linear-gradient(180deg, var(--ivory) 30%, var(--gold-light) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(1.08rem, 2.4vw, 1.4rem);
  color: var(--ivory-dim);
  max-width: 40ch;
  margin: 0 auto 2.4rem;
  line-height: 1.55;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__price {
  margin-top: 2.2rem;
  color: var(--ivory-faint);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.hero__price strong { color: var(--gold-light); font-weight: 600; }

/* ============================================================
   MANIFESTO / THE DIFFERENCE
   ============================================================ */
.manifesto {
  padding: clamp(4.5rem, 9vw, 8rem) 1.5rem;
  border-top: 1px solid var(--hairline-soft);
}
.manifesto__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.manifesto__title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 2.2rem;
}
.manifesto__body { text-align: left; }
.manifesto__body p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.55;
  color: var(--ivory-dim);
  margin: 0 auto 1.4rem;
  max-width: 62ch;
}
.manifesto__body p:first-child {
  color: var(--ivory);
}
.manifesto__body p:first-child::first-letter {
  font-size: 3.4em;
  float: left;
  line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  color: var(--gold);
  font-weight: 600;
}
.manifesto__body p:last-child {
  font-style: italic;
  color: var(--gold-light);
  border-left: 2px solid var(--hairline);
  padding-left: 1.3rem;
  margin-top: 2rem;
}

/* ============================================================
   FIVE PILLARS
   ============================================================ */
.pillars {
  padding: clamp(4.5rem, 9vw, 8rem) 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.pillars__head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.pillars__head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.pillars__head .lede { margin: 0 auto; }

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card {
  background: linear-gradient(160deg, var(--onyx-2), var(--onyx));
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.9rem;
  transition: var(--transition-interactive);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--hairline);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5);
}
.card__icon {
  display: inline-flex;
  width: 52px; height: 52px;
  align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--hairline);
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.6rem;
  color: var(--ivory);
}
.card p { color: var(--ivory-dim); font-size: 0.99rem; line-height: 1.6; }

.card--accent {
  background: linear-gradient(160deg, rgba(184,134,11,0.14), var(--onyx));
  border-color: var(--hairline);
}
.card--accent .card__icon { background: rgba(212,175,55,0.16); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: clamp(4.5rem, 9vw, 8rem) 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--hairline-soft);
}
.how__head { text-align: center; margin-bottom: 3.5rem; }
.how__head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }

.how__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  counter-reset: none;
}
.step { position: relative; padding-top: 0.5rem; }
.step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--gold-light);
  border: 1px solid var(--hairline);
  background: radial-gradient(circle at 30% 25%, rgba(212,175,55,0.18), rgba(10,10,10,0.4));
  margin-bottom: 1.2rem;
}
.step h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.step p { color: var(--ivory-dim); font-size: 0.97rem; line-height: 1.6; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: clamp(4.5rem, 9vw, 8rem) 1.5rem;
  text-align: center;
  border-top: 1px solid var(--hairline-soft);
}
.pricing__head { max-width: 600px; margin: 0 auto 3rem; }
.pricing__head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.pricing__head .lede { margin: 0 auto; }

.plan {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  background: linear-gradient(165deg, var(--onyx-3), var(--onyx));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 3rem 2.4rem 2.6rem;
  overflow: hidden;
  text-align: left;
}
.plan__glow {
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 120%; height: 60%;
  background: radial-gradient(50% 100% at 50% 0%, rgba(212,175,55,0.22), transparent 70%);
  pointer-events: none;
}
.plan__name {
  position: relative;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
}
.plan__price { position: relative; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.plan__amt {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 4.6rem);
  font-weight: 700;
  color: var(--ivory);
  line-height: 1;
}
.plan__per { color: var(--ivory-faint); font-size: 1rem; }
.plan__tagline {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold-light);
  margin: 0.6rem 0 1.8rem;
}
.plan__list {
  position: relative;
  list-style: none;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.85rem;
}
.plan__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ivory);
  font-size: 1rem;
}
.plan__list li::before {
  content: "";
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l3 3 7-7' fill='none' stroke='%231a1405' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat,
    linear-gradient(135deg, var(--gold-light), var(--gold));
}
.plan__note {
  position: relative;
  margin-top: 1.1rem;
  text-align: center;
  color: var(--ivory-faint);
  font-size: 0.85rem;
}

/* ============================================================
   STORIES / TESTIMONY
   ============================================================ */
.stories {
  padding: clamp(4.5rem, 9vw, 8rem) 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.stories__head { text-align: center; margin-bottom: 3.2rem; }
.stories__head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }

.stories__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.testimony {
  background: linear-gradient(160deg, var(--onyx-2), var(--onyx));
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2.2rem;
  position: relative;
}
.testimony::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--hairline);
  position: absolute;
  top: 0.4rem; left: 1.4rem;
  line-height: 1;
}
.testimony blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  line-height: 1.5;
  color: var(--ivory);
  margin: 1.4rem 0 1.6rem;
  position: relative;
}
.testimony figcaption { display: flex; flex-direction: column; gap: 0.2rem; }
.testimony__name { color: var(--gold-light); font-weight: 600; font-size: 1rem; }
.testimony__role { color: var(--ivory-faint); font-size: 0.85rem; letter-spacing: 0.02em; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  text-align: center;
  padding: clamp(4rem, 8vw, 6.5rem) 1.5rem;
  border-top: 1px solid var(--hairline-soft);
}
.cta-strip h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 2rem;
  max-width: 18ch;
  margin-inline: auto;
  background: linear-gradient(180deg, var(--ivory), var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  background: var(--onyx-2);
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem 2rem;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
}
.footer__brand .brand__mark { width: 40px; height: 40px; color: var(--gold); margin-bottom: 0.9rem; }
.footer__brand .brand__text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: block;
}
.footer__brand .brand__text em { font-style: italic; color: var(--gold-light); text-transform: none; }
.footer__tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ivory-dim);
  margin-top: 0.6rem;
  font-size: 1.1rem;
}

.footer__label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer__contact a,
.footer__nav a {
  display: block;
  color: var(--ivory-dim);
  text-decoration: none;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}
.footer__contact a:hover,
.footer__nav a:hover { color: var(--gold-light); }
.footer__contact address {
  font-style: normal;
  color: var(--ivory-dim);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.3rem;
}

.footer__base {
  max-width: var(--maxw);
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline-soft);
  text-align: center;
}
.footer__base p { color: var(--ivory-faint); font-size: 0.85rem; letter-spacing: 0.02em; margin: 0 auto; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .pillars__grid { grid-template-columns: repeat(2, 1fr); }
  .how__steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .brand__text { font-size: 1.1rem; }
}

@media (max-width: 600px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; }
  .stories__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .plan { padding: 2.4rem 1.6rem 2.2rem; }
  .manifesto__body p:first-child::first-letter { font-size: 2.8em; }
}
