/* ============================================================
   BRANDY TYSON-CUMMINGS · Founder, Becoming Real Estate
   a.k.a. Your Carolina Home Girl
   Shared stylesheet · editorial luxury, warm + feminine
   ------------------------------------------------------------
   LOCKED CLIENT PALETTE — the 7 tokens below are from Brandy.
   Every tint, border, and wash derives from them via color-mix(),
   so any future adjustment stays a 7-line change in :root.
   Champagne is deliberately rationed: ONE moment sitewide
   (the readiness CTA). Do not spread it around.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* ==== LOCKED BRAND PALETTE (client-supplied) ==== */
  --ivory:      #F7F3EE;  /* Warm Ivory — page ground        */
  --beige:      #E8DFD5;  /* Soft Beige — washes, alt bands  */
  --black:      #121212;  /* Luxury Black — display, dark bands */
  --rose:       #B76E79;  /* Rose Gold — primary accent      */
  --rose-soft:  #C98B8B;  /* Metallic Rose — hovers, tints   */
  --champagne:  #D9C5A1;  /* Champagne — readiness CTA ONLY  */
  --charcoal:   #3B3B3B;  /* Charcoal — body text            */
  /* ================================================ */

  /* Derived — do not hand-edit, they follow the palette */
  --rose-deep:   color-mix(in srgb, var(--rose) 78%, var(--black));
  --rose-faint:  color-mix(in srgb, var(--rose) 14%, var(--ivory));
  --beige-deep:  color-mix(in srgb, var(--beige) 88%, var(--charcoal));
  --line:        color-mix(in srgb, var(--charcoal) 16%, var(--ivory));
  --line-dark:   color-mix(in srgb, var(--ivory) 16%, var(--black));
  --muted:       color-mix(in srgb, var(--charcoal) 68%, var(--ivory));
  --ivory-dim:   color-mix(in srgb, var(--ivory) 80%, var(--black));

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;

  /* Scale (fluid) */
  --text-xs:   0.78rem;
  --text-sm:   0.9rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem);
  --text-2xl:  clamp(2rem, 1.5rem + 2.6vw, 3.4rem);
  --text-name: clamp(2.9rem, 1.4rem + 8vw, 8.75rem); /* the name lockup */

  /* Rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: clamp(4rem, 3rem + 6vw, 8rem);
  --wrap: 72rem;
  --wrap-narrow: 46rem;
  --radius: 3px;
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.12;
  color: var(--black);
  text-wrap: balance;
}

p { max-width: 65ch; }

a { color: var(--black); text-underline-offset: 3px; text-decoration-color: var(--rose); }
a:hover { color: var(--rose-deep); }

::selection { background: var(--rose); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--black);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. SHARED LAYOUT ---------- */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(var(--wrap-narrow), 100% - 2.5rem); margin-inline: auto; }

.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }

.section--dark { background: var(--black); color: var(--ivory-dim); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--ivory); }
.section--dark p { color: var(--ivory-dim); }
.section--dark a { color: var(--ivory); }

.section--wash { background: var(--beige); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: block;
  margin-bottom: var(--space-2);
}
.section--dark .eyebrow { color: var(--rose-soft); }

.lede { font-size: var(--text-lg); line-height: 1.5; }

/* Quiet divider — a hairline with a rose point */
.rule {
  border: none;
  height: 1px;
  background: var(--line);
  position: relative;
  margin: var(--space-4) auto;
  width: min(340px, 70%);
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--rose);
}
.section--dark .rule { background: var(--line-dark); }

/* ---------- 4. HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: 0.85rem;
}

.brand { text-decoration: none; line-height: 1.1; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 0;
  font-size: 1.2rem;
  font-weight: 560;
  color: var(--black);
  display: block;
}
.brand-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: block;
  margin-top: 2px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  padding-block: 0.4rem;
}
.site-nav a:hover { color: var(--black); }
/* The nav's muted link color outranks .btn--rose — keep the Book a Consult button text white. */
.site-nav a.btn--rose { color: #fff; }
.site-nav a.btn--rose:hover { color: #fff; background: var(--rose-deep); }
.site-nav a[aria-current="page"] {
  color: var(--black);
  box-shadow: 0 2px 0 0 var(--rose);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  color: var(--black);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.7rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--black); color: var(--ivory); }
.btn--primary:hover { background: var(--charcoal); color: var(--ivory); }

.btn--rose { background: var(--rose); color: var(--ivory); }
.btn--rose:hover { background: var(--rose-deep); color: var(--ivory); }

.btn--ghost { border-color: var(--black); color: var(--black); background: transparent; }
.btn--ghost:hover { background: var(--black); color: var(--ivory); }

.section--dark .btn--ghost { border-color: var(--ivory); color: var(--ivory); }
.section--dark .btn--ghost:hover { background: var(--ivory); color: var(--black); }

/* THE champagne moment — readiness CTA only. Use once per page, max. */
.btn--champagne {
  background: linear-gradient(135deg, var(--champagne), color-mix(in srgb, var(--champagne) 82%, #fff));
  color: var(--black);
  border-color: color-mix(in srgb, var(--champagne) 70%, var(--charcoal));
}
.btn--champagne:hover {
  background: var(--black);
  color: var(--champagne);
  border-color: var(--black);
}

/* ============================================================
   6. THE BECOMING — signature device (index hero)
   Her name at extreme scale, then one word from her own
   company — Becoming — completing itself three ways:
   educated (the Educator), approved (the Credit Coach),
   home (the Realtor®). Her business name IS her thesis;
   the hero just lets it finish the sentence.
   ============================================================ */
.hero {
  padding-block: var(--space-6) var(--space-5);
  text-align: center;
  overflow: hidden;
}

.hero-kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-kicker .sep { color: var(--rose); }

.hero-name {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-weight: 480;
  font-size: var(--text-name);
  line-height: 0.98;
  color: var(--black);
  margin-top: var(--space-2);
  letter-spacing: -0.01em;
}
.hero-name .ln {
  display: block;
  opacity: 0;
  transform: translateY(0.35em);
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-name .ln:nth-child(1) { animation-delay: 0.1s; }
.hero-name .ln:nth-child(2) { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* The becoming line */
.becoming {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--black);
  margin-top: var(--space-3);
  opacity: 0;
  animation: rise 0.8s ease forwards;
  animation-delay: 0.9s;
}
.becoming .fixed { font-style: italic; }
.becoming .flip {
  display: inline-block;
  height: 1.25em;
  overflow: hidden;
  vertical-align: bottom;
  text-align: left;
}
.becoming .flip span {
  display: block;
  height: 1.25em;
  line-height: 1.25em;
  color: var(--rose-deep);
  animation: becomeCycle 7.5s cubic-bezier(0.6, 0, 0.2, 1) infinite;
  animation-delay: 1.6s;
}
@keyframes becomeCycle {
  0%, 26%   { transform: translateY(0); }        /* educated. */
  33%, 59%  { transform: translateY(-1.25em); }  /* approved. */
  66%, 92%  { transform: translateY(-2.5em); }   /* home.     */
  100%      { transform: translateY(-3.75em); }  /* loop → educated. */
}

.hero-sub {
  margin: var(--space-3) auto 0;
  opacity: 0;
  animation: rise 0.8s ease forwards;
  animation-delay: 1.2s;
}
.hero-sub .lede { margin-inline: auto; }
.hero-cta {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-name .ln, .becoming, .hero-sub { animation: none; opacity: 1; transform: none; }
  .becoming .flip span { animation: none; }
  .btn { transition: none; }
}

/* ---------- 7. PILLAR CARDS ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.pillar {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rose);
  border-radius: var(--radius);
  padding: var(--space-3);
}
.pillar .becoming-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-base);
  color: var(--rose-deep);
}
.pillar h3 { font-size: var(--text-lg); margin: var(--space-1) 0; }
.pillar p { font-size: var(--text-sm); color: var(--muted); }
.pillar a { font-size: var(--text-sm); font-weight: 700; }

/* ---------- 8. IMAGE PLACEHOLDER SLOTS ---------- */
.img-slot {
  background: var(--beige);
  border: 1px dashed color-mix(in srgb, var(--charcoal) 30%, var(--beige));
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--charcoal);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-2);
  min-height: 240px;
}
.img-slot--portrait { aspect-ratio: 4 / 5; }
.img-slot--wide { aspect-ratio: 16 / 9; }

/* Real photography */
.photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--black) 35%, transparent);
}

/* ---------- 9. SPLIT LAYOUTS ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.split--tight { gap: var(--space-4); }
.split--top { align-items: start; }

/* ---------- 10. PATH / PROCESS ---------- */
.path {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.path--stack { grid-template-columns: 1fr; }
.path li {
  counter-increment: step;
  border-left: 2px solid var(--rose);
  padding-left: var(--space-2);
}
.path li::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--rose-deep);
  display: block;
}
.path h3 { font-size: var(--text-lg); margin-block: var(--space-1); }
.path p { font-size: var(--text-sm); color: var(--muted); }
.section--dark .path li::before { color: var(--rose-soft); }
.section--dark .path p { color: var(--ivory-dim); }
.section--dark .path h3 { color: var(--ivory); }

/* ---------- 11. TESTIMONIALS ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.quote-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--black);
  flex: 1;
}
.quote-card blockquote::before {
  content: "\201C";
  display: block;
  font-size: 2.2rem;
  line-height: 0.6;
  color: var(--rose);
  margin-bottom: 0.35rem;
}
.quote-grid--full { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.quote-photo { width: 100%; border-radius: var(--radius); }
.quote-card blockquote p { max-width: none; }
.quote-card blockquote p + p { margin-top: 0.75em; }
.quote-card figcaption { font-size: var(--text-sm); color: var(--muted); }
.quote-card figcaption strong { color: var(--charcoal); }

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: var(--rose-faint);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  align-self: flex-start;
}

/* ---------- 12. SERVICES ---------- */
.svc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  list-style: none;
  padding: 0;
  margin-top: var(--space-3);
}
.svc-nav a {
  display: inline-block;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: var(--ivory);
}
.svc-nav a:hover { border-color: var(--rose); }

.svc {
  border-top: 1px solid var(--line);
  padding-block: var(--space-5);
  scroll-margin-top: 5rem;
}
.svc--flagship {
  background: var(--beige);
  border-top: 3px solid var(--rose);
}
.svc-head { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.svc-head h2 { font-size: var(--text-xl); }
.svc-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-3);
  display: grid;
  gap: var(--space-1);
}
.svc-list li { padding-left: 1.4rem; position: relative; font-size: var(--text-sm); }
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 2px;
  background: var(--rose);
}

/* ---------- 13. FORMS ---------- */
.form-grid { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.form-row { display: grid; gap: var(--space-2); grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: var(--text-sm); font-weight: 700; color: var(--black); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: var(--text-sm);
  color: var(--charcoal);
  background: var(--ivory);
  border: 1px solid color-mix(in srgb, var(--charcoal) 30%, var(--ivory));
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 1px;
}
.field .hint { font-size: var(--text-xs); color: var(--muted); }

.embed-slot {
  background: var(--beige);
  border: 1px dashed color-mix(in srgb, var(--charcoal) 30%, var(--beige));
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--charcoal);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--space-3);
  min-height: 480px;
}

/* ---------- 14. FAQ ---------- */
.faq { margin-top: var(--space-3); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--black);
  padding-block: var(--space-2);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  color: var(--rose-deep);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: var(--space-3); color: var(--muted); }

/* ---------- 15. CTA BAND / MANIFESTO ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--text-2xl); }
.cta-band .lede { margin: var(--space-2) auto var(--space-3); }

.manifesto {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-size: var(--text-xl);
  line-height: 1.3;
  color: var(--ivory);
  text-align: center;
  max-width: 24ch;
  margin-inline: auto;
}
.manifesto .accent { color: var(--rose-soft); }

/* ---------- 16. FOOTER ---------- */
.site-footer {
  background: var(--black);
  color: var(--ivory-dim);
  padding-block: var(--space-5) var(--space-3);
  font-size: var(--text-sm);
}
.site-footer a { color: var(--ivory); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand-name { color: var(--ivory); font-size: 1.35rem; }
.footer-brand .brand-tag { color: var(--rose-soft); }
.site-footer h4 {
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: var(--space-3);
  font-size: var(--text-xs);
}
.footer-badges { display: flex; gap: var(--space-2); align-items: center; }
.badge-img { height: 40px; width: auto; opacity: 0.85; }
.badge-slot {
  border: 1px dashed color-mix(in srgb, var(--ivory) 35%, var(--black));
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- 17. TIMELINE (about) ---------- */
.timeline { list-style: none; padding: 0; margin-top: var(--space-4); display: grid; gap: var(--space-4); }
.timeline > li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--space-3);
}
.timeline .marker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--rose-deep);
  border-top: 2px solid var(--rose);
  padding-top: var(--space-1);
}
.timeline h3 { font-size: var(--text-xl); margin-bottom: var(--space-1); }
.timeline p + p { margin-top: var(--space-2); }

/* ---------- 18. PROSE (verbatim client copy) ---------- */
.prose > * + * { margin-top: var(--space-2); }
.prose p { max-width: 62ch; }
.prose .pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--rose-deep);
  border-left: 2px solid var(--rose);
  padding-left: var(--space-2);
  max-width: 55ch;
}

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 860px) {
  .split, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: var(--space-3); }
  .pillars, .path { grid-template-columns: 1fr; }
  .path li { border-left: none; border-top: 2px solid var(--rose); padding: var(--space-2) 0 0; }
  .timeline > li { grid-template-columns: 1fr; gap: var(--space-1); }

  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: var(--space-2) 1.25rem var(--space-3);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .site-nav .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-block: var(--space-5) var(--space-4); }
}

/* ---------- 20. PRINT ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-cta { display: none; }
  body { background: #fff; color: #000; }
}
