/* ============================================================
   Frank DiVenuto — shared stylesheet
   One base + two themes (coaching / therapy) via [data-theme].
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --maxw: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* neutral defaults (landing page) */
  --ink: #1c2330;
  --muted: #5b6675;
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --line: rgba(0, 0, 0, 0.09);
  --accent: #c9a25a;
  --accent-ink: #1c2330;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Theme: COACHING (premium plum + gold) ---------- */
[data-theme="coaching"] {
  --ink: #2a1228;            /* dark plum ink */
  --muted: #6f5a6c;
  --paper: #ffffff;
  --paper-2: #f8f2f7;        /* faint lilac tint */
  --deep: #4d1449;          /* brand plum (sampled from logo) */
  --deep-ink: #f4e9f1;
  --line: rgba(77, 20, 73, 0.14);
  --accent: #c9a25a;         /* gold — pairs with plum */
  --accent-ink: #2a1228;
  --font-display: "Fraunces", Georgia, serif;
}

/* ---------- Theme: THERAPY (warm, calm) ---------- */
[data-theme="therapy"] {
  --ink: #2f3a33;
  --muted: #6a766c;
  --paper: #fbf8f2;          /* warm cream */
  --paper-2: #f1ece1;
  --deep: #4f6a57;          /* sage */
  --deep-ink: #f3f1e9;
  --line: rgba(79, 106, 87, 0.16);
  --accent: #7fa389;         /* soft sage-green */
  --accent-ink: #ffffff;
  --font-display: "Cormorant Garamond", Georgia, serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--paper-2); }
.kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.74rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.6rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--on-dark { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--on-dark:hover { background: #fff; color: var(--deep); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; background: var(--deep, var(--ink)); color: var(--deep-ink, #fff);
}
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.1; }
.brand__name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__switch { font-size: 0.86rem !important; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; }
.nav__switch:hover { border-color: var(--accent); color: var(--accent) !important; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.3s; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.2rem;
    transform: translateY(-130%); transition: transform 0.35s var(--ease); z-index: -1;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__switch { margin-top: 0.6rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); overflow: hidden; }
.hero__inner { max-width: 760px; }
.hero h1 { margin-bottom: 0.5em; }
.hero .lead { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero--coaching { background: radial-gradient(120% 120% at 85% 0%, #16294d 0%, var(--deep) 55%); color: #eef3fc; }
.hero--coaching .kicker { color: var(--accent); }
.hero--coaching .lead { color: #c4d2ea; }
.hero--therapy { background: linear-gradient(180deg, #fbf8f2 0%, #eef2e9 100%); }

/* ---------- Generic grid + cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card__num { font-family: var(--font-display); font-size: 0.9rem; color: var(--accent); font-weight: 700; }

/* section heading block */
.sect-head { max-width: 60ch; margin-bottom: 2.6rem; }
.sect-head.center { margin-inline: auto; }

/* ---------- About (split) ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--paper-2);
  border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden;
}
.portrait span { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 1rem; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.role-pill { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1rem; }

/* ---------- Pills / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1.1rem; font-size: 0.92rem; font-weight: 500; }
[data-theme] .chips li:hover { border-color: var(--accent); color: var(--accent); }

/* feature list with check */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 2rem; color: var(--muted); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0.18em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; line-height: 1.3rem; text-align: center;
}

/* ---------- Clients / trusted-by ---------- */
.clients { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.2rem, 5vw, 3.5rem); }
.clients span { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; color: var(--muted); opacity: 0.85; }

/* ---------- Fees table ---------- */
.fees { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.fees__row { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); }
.fees__row:last-child { border-bottom: 0; }
.fees__row b { font-weight: 600; }
.fees__row span { color: var(--muted); text-align: right; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--deep, var(--ink)); color: var(--deep-ink, #fff); border-radius: var(--radius); padding: clamp(2.2rem, 6vw, 4rem); text-align: center; }
.cta-band h2 { color: inherit; }
.cta-band p { color: color-mix(in srgb, var(--deep-ink, #fff) 80%, transparent); max-width: 52ch; margin-inline: auto; }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px){ .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: 0.8rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep, var(--ink)); color: var(--deep-ink, #fff); padding-block: 3rem 2rem; }
.site-footer a { color: inherit; text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.footer-note { font-size: 0.82rem; opacity: 0.65; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.4rem; }

/* ---------- Brand logo in nav/footer ---------- */
.brand__logo { height: 42px; width: auto; display: block; }
.site-footer .brand__logo { height: 58px; }
@media (max-width: 480px) { .brand__logo { height: 34px; } }

/* ---------- Ratings badge ---------- */
.ratings { display: flex; flex-wrap: wrap; gap: clamp(1rem, 4vw, 2.5rem); align-items: center; }
.rating { text-align: center; }
.rating b { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.rating small { color: var(--muted); font-size: 0.82rem; }
.stars { color: var(--accent); letter-spacing: 2px; }

/* ---------- Testimonials ---------- */
.quotes { columns: 2; column-gap: 1.4rem; }
@media (max-width: 760px) { .quotes { columns: 1; } }
.quote {
  break-inside: avoid; margin: 0 0 1.4rem; padding: 1.6rem 1.7rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.quote__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 0.6rem; font-size: 0.95rem; }
.quote blockquote { margin: 0 0 0.8rem; font-size: 1.02rem; line-height: 1.55; }
.quote figcaption { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

/* ---------- Landing split ---------- */
.landing { min-height: calc(100vh - 0px); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .landing { grid-template-columns: 1fr; min-height: 0; } }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(7rem, 17vh, 11rem) clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  min-height: 60vh; text-decoration: none;
  overflow: hidden; transition: flex 0.4s var(--ease);
}
.door--coaching { background: radial-gradient(120% 120% at 80% 10%, #6a1e60 0%, #4d1449 55%, #34102f 100%); color: #f4e9f1; }
.door--therapy {
  color: #eef3ee;
  background: radial-gradient(120% 120% at 80% 10%, #46654f 0%, #2e4636 52%, #1c2b22 100%);
}
/* soft organic shapes for movement */
.door--therapy::after {
  content: ""; position: absolute; width: 460px; height: 460px;
  right: -130px; bottom: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(150,194,162,0.30) 0%, transparent 70%);
  filter: blur(14px); pointer-events: none; z-index: 0;
  transition: transform 0.6s var(--ease);
}
.door--therapy:hover::after { transform: scale(1.12) translate(-12px, -10px); }
.door__glow {
  position: absolute; width: 320px; height: 320px; left: -110px; top: 8%;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(122,168,138,0.32) 0%, transparent 70%);
  filter: blur(16px);
}
.door__kicker, .door__wordmark, .door h2, .door p, .door__badge, .door__cta { position: relative; z-index: 1; }

/* Therapy door wordmark — mirrors the coaching logo's role */
.door__wordmark { margin-bottom: 1.5rem; }
.door__wordmark-name {
  display: block; font-family: "Great Vibes", cursive; font-weight: 400;
  font-size: clamp(3.4rem, 7.5vw, 5.6rem); line-height: 1.0; letter-spacing: 0.01em; color: #f2f6f0;
}
.door__wordmark-sub {
  display: block; margin-top: 0.55rem; text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.72rem; font-weight: 600; color: rgba(242,246,240,0.7);
}
.door__kicker { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 700; opacity: 0.8; margin-bottom: 1.1rem; }
.door--coaching .door__kicker { color: var(--c-accent, #d8b877); }
.door h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin-bottom: 0.6rem; }
.door p { max-width: 38ch; opacity: 0.92; margin-bottom: 1.8rem; }
.door__cta { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.door__cta::after { content: "→"; transition: transform 0.3s var(--ease); }
.door:hover .door__cta::after { transform: translateX(6px); }
.door::before {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.12);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.door:hover::before { opacity: 1; }
.door__logo { width: min(460px, 80%); height: auto; margin-bottom: 1.6rem; }
.door__badge {
  display: inline-flex; align-items: center; gap: 0.55rem; align-self: flex-start;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px; padding: 0.5rem 1.1rem; margin-bottom: 1.6rem;
  font-size: 0.84rem; font-weight: 600; color: #f4f3ef;
  backdrop-filter: blur(2px);
}
.door__stars { color: #e6b15c; letter-spacing: 1px; font-size: 0.9rem; }

.landing-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: center;
  padding: clamp(1.4rem, 4vh, 2.6rem) 1.4rem 1rem;
  pointer-events: none;
}
.nameplate {
  display: inline-block; padding: 3px; border-radius: 20px;
  background: linear-gradient(135deg, #f6e6b4 0%, #c9a25a 32%, #9c7732 55%, #f0d99b 80%, #c9a25a 100%);
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.55), 0 0 50px rgba(201, 162, 90, 0.33);
}
.nameplate__inner {
  position: relative; display: block; border-radius: 17px;
  padding: 0.85rem 3rem 0.95rem;
  background: linear-gradient(180deg, rgba(36, 21, 36, 0.95) 0%, rgba(12, 8, 14, 0.96) 100%);
  font-family: "Great Vibes", cursive; font-weight: 400; line-height: 1.15;
  font-size: clamp(3.1rem, 7.6vw, 5.3rem); letter-spacing: 0.01em;
  color: #fdf6e7; text-shadow: 0 3px 22px rgba(0, 0, 0, 0.55);
}
.nameplate__inner::after {
  content: ""; position: absolute; inset: 8px; border-radius: 11px;
  border: 1px solid rgba(201, 162, 90, 0.5); pointer-events: none;
}

/* ---------- Legal / policy page ---------- */
.legal { margin-top: 1.5rem; }
.legal h3 { margin-top: 2rem; }
.legal p { color: var(--muted); }
.legal a { color: var(--accent); }

/* ---------- Credibility / trust strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.8rem 1.4rem; margin-bottom: 2.6rem;
}
.trust-strip__rating { font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; }
.trust-strip__rating b { font-size: 1.05rem; }
.trust-strip .stars { color: var(--accent); letter-spacing: 1px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 1.05rem; font-size: 0.88rem; font-weight: 600; color: var(--ink);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.trust-badge:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.trust-badge::before { content: "✓"; display: grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.66rem; }

/* ---------- Form extras (consent, messages) ---------- */
.consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); }
.consent input { width: auto; margin-top: 0.2rem; flex: none; }
.consent a { color: var(--accent); }
.form-msg { font-size: 0.92rem; margin: 0; min-height: 1.2em; }
.form-msg.ok { color: #2f7d4f; }
.form-msg.err { color: #c0432f; }
.form button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Modal (appointment request) ---------- */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  padding: clamp(0.5rem, 3vw, 2rem);
}
.modal__overlay { position: absolute; inset: 0; background: rgba(20, 14, 22, 0.55); backdrop-filter: blur(2px); }
.modal__dialog {
  position: relative; z-index: 1; background: var(--paper); color: var(--ink);
  width: min(820px, 100%); max-height: 92vh; overflow-y: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 0.8rem; right: 0.9rem; z-index: 2;
  background: none; border: 0; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted);
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
}
.modal__close:hover { background: var(--paper-2); color: var(--ink); }
.modal__head { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 1.8rem 1rem; border-bottom: 1px solid var(--line); }
.modal__avatar { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; object-position: center top; flex: none; }
.modal__eyebrow { margin: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.modal__head h3 { margin: 0.1rem 0 0; }
.modal__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.8rem; padding: 1.6rem 1.8rem; }
@media (max-width: 680px) { .modal__grid { grid-template-columns: 1fr; gap: 1.2rem; } }
.modal__tips { background: var(--paper-2); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; align-self: start; }
.modal__tips h4 { margin: 0 0 0.8rem; font-family: var(--font-body); font-size: 0.95rem; }
.modal__tips ol { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; display: grid; gap: 0.6rem; }
.modal__disclaimer { grid-column: 1 / -1; margin: 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
body.modal-open { overflow: hidden; }

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