/* ============================================================
   HOMEPAGE TEMPLATE
   Layout and component styles for the homepage.
   Shared base (tokens, nav, footer, typography, buttons)
   is in main.css — not repeated here.
   ============================================================ */

/* ============================================================
   HERO — 2-col split
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  border-bottom: 0.5px solid var(--surface-alt);
}

.hero-left {
  padding: 6rem 3.5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 0.5px;
  background: var(--accent);
  display: block;
}

.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 62px;
  font-weight: 300;
  line-height: 1.04;
  color: var(--text-primary);
  margin-bottom: 1.6rem;
}
.hero-h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 420px;
  margin-bottom: 2.8rem;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.vc-note {
  display: block;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-top: 5px;
}

.hero-right {
  background: var(--surface);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-img-area {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.hi-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 0.5px solid var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hi-note {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.6;
}

.hero-caption {
  position: relative;
  z-index: 2;
  background: var(--inv-bg);
  padding: 1.4rem 2rem;
  border-top: 0.5px solid var(--accent);
}

.hc-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--inv-text);
  margin-bottom: 3px;
}

.hc-title {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--inv-muted);
}

/* ============================================================
   POSITIONING — 2-col: text left, facts right
   ============================================================ */
.positioning {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 0.5px solid var(--surface-alt);
}

.pos-left {
  padding: 4.5rem 3.5rem;
  border-right: 0.5px solid var(--surface-alt);
}

.pos-right {
  padding: 4.5rem 3.5rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pos-eye {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.pos-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}
.pos-h2 em { font-style: italic; color: var(--accent); }

.pos-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}
.pos-body:last-child { margin-bottom: 0; }

.pos-facts { display: flex; flex-direction: column; }

.pf-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 0.5px solid var(--surface-alt);
  align-items: center;
  gap: 1rem;
}
.pf-row:first-child { border-top: 0.5px solid var(--surface-alt); }

.pf-key {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}

.pf-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--text-primary);
  text-align: right;
}

/* ============================================================
   CREDENTIALS STRIP
   ============================================================ */
.cred-strip {
  border-bottom: 0.5px solid var(--surface-alt);
  padding: 2.4rem 3.5rem;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg);
  justify-content: space-between;
}

.cred-memberships {
  display: flex;
  align-items: center;
  gap: 0;
  align-self: center;
  margin-top: -6px;
}

.cred-block-label {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.55;
  flex-shrink: 0;
  margin-right: 2.8rem;
  line-height: 1.6;
  max-width: 80px;
}

.cred-logos { display: flex; align-items: center; gap: 0; }

.cred-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2.4rem;
  border-right: 0.5px solid var(--surface-alt);
  min-height: 96px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.cred-logo-item:first-child { padding-left: 0; }
.cred-logo-item:last-child { border-right: none; }

.cred-logo-zone {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.cred-logo-zone img {
  display: block;
  opacity: 1;
  filter: brightness(0.82);
}
@media (prefers-color-scheme: dark) {
  .cred-logo-zone img { opacity: 0.86; filter: none; }
}

.cred-logo-name {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.09em;
  color: var(--accent);
  font-family: 'Jost', sans-serif;
  text-align: center;
  line-height: 1.55;
  white-space: normal;
  max-width: 90px;
}

.cred-ht-block {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-left: 3rem;
  border-left: 0.5px solid var(--surface-alt);
}
.cred-ht-block img { display: block; opacity: 1; filter: brightness(0.82); }
@media (prefers-color-scheme: dark) {
  .cred-ht-block img { opacity: 0.88; filter: none; }
}

/* ============================================================
   PRACTICE AREAS — entry cards
   ============================================================ */
.entry-section { border-bottom: 0.5px solid var(--surface-alt); }

.entry-header { padding: 3rem 3.5rem 1.5rem; }

.entry-eye {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.entry-intro {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--surface-alt);
  border-top: 0.5px solid var(--surface-alt);
}

.entry-card {
  background: var(--bg);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  text-decoration: none;
  transition: background 0.2s;
}
.entry-card:hover { background: var(--surface); }

.entry-card.ffs { background: var(--inv-bg); }
.entry-card.ffs:hover { background: #1e1a14; }

.ec-tag {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.entry-card.ffs .ec-tag { color: var(--accent-light); }

.ec-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.entry-card.ffs .ec-h { color: var(--inv-text); }

.ec-body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex: 1;
}
.entry-card.ffs .ec-body { color: rgba(240,234,224,0.65); }

.ec-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.entry-card.ffs .ec-link { color: var(--accent-light); }
.ec-link::after { content: '→'; }

/* ============================================================
   CLINIC TEASER
   ============================================================ */
.clinic-teaser {
  padding: 5rem 3.5rem;
  border-bottom: 0.5px solid var(--surface-alt);
  background: var(--surface);
}

.ct-header {
  max-width: 620px;
  margin-bottom: 3rem;
}

.ct-eye {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.ct-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.ct-h em { font-style: italic; color: var(--accent); }

.ct-intro {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--surface-alt);
  border: 0.5px solid var(--surface-alt);
  margin-bottom: 2rem;
}

.ct-card {
  background: var(--bg);
  padding: 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.12s;
}
.ct-card:hover { background: var(--surface-alt); }

.ct-card-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

.ct-card-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
}

.ct-card-b {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
  flex: 1;
}

.ct-card-link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-top: 0.5rem;
}

.ct-footer { text-align: right; }

.ct-explore {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
}
.ct-explore:hover { color: var(--accent); }

/* ============================================================
   INTERNATIONAL
   ============================================================ */
.intl-block {
  display: grid;
  grid-template-columns: 2fr 1fr;
  border-bottom: 0.5px solid var(--surface-alt);
}

.intl-main {
  padding: 4.5rem 3.5rem;
  border-right: 0.5px solid var(--surface-alt);
}

.intl-eye {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.intl-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}
.intl-h em { font-style: italic; color: var(--accent); }

.intl-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 1.8rem;
}

.intl-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
}
.intl-link:hover { opacity: 0.75; }
.intl-link::after { content: '→'; }

.intl-side {
  padding: 4.5rem 2.5rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intl-items { display: flex; flex-direction: column; }

.intl-item {
  padding: 0.8rem 0;
  border-bottom: 0.5px solid var(--surface-alt);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.intl-item:first-child { border-top: 0.5px solid var(--surface-alt); }

.ii-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.ii-text {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   PHILOSOPHY TEASER — dark background
   ============================================================ */
.philosophy-teaser {
  background: var(--inv-bg);
  padding: 5.5rem 3.5rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
}

.phi-inner { max-width: 780px; }

.phi-eye {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.phi-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--inv-text);
  margin-bottom: 1.4rem;
}
.phi-h em { font-style: italic; color: var(--accent-light); }

.phi-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(240,234,224,0.72);
  margin-bottom: 1.1rem;
  max-width: 640px;
}

.phi-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 300;
  color: var(--inv-text);
  line-height: 1.55;
  margin: 2.5rem 0 2rem;
  border-left: 1.5px solid var(--accent);
  padding-left: 1.5rem;
  max-width: 580px;
}

.phi-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s;
}
.phi-link:hover { opacity: 0.75; }
.phi-link::after { content: '→'; }

/* ============================================================
   FINAL CTA STRIP — 2-col split
   ============================================================ */
.cta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 0.5px solid var(--surface-alt);
}

.cta-left {
  padding: 4.5rem 3.5rem;
  border-right: 0.5px solid var(--surface-alt);
}

.cta-right {
  padding: 4.5rem 3.5rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-eye {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.cta-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}
.cta-h em { font-style: italic; color: var(--accent); }

.cta-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 2rem;
}

.cta-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.cta-note {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1rem;
}

.cta-side-note {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  margin-top: 2rem;
}

.cta-side-note a {
  color: var(--accent);
  text-decoration: none;
}
.cta-side-note a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE — homepage sections (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 3.5rem 1.5rem 2.5rem; justify-content: flex-start; }
  .hero-h1 { font-size: 42px; }
  .hero-right { min-height: 60vw; }

  .positioning { grid-template-columns: 1fr; }
  .pos-left { padding: 3rem 1.5rem; border-right: none; border-bottom: 0.5px solid var(--surface-alt); }
  .pos-right { padding: 2.5rem 1.5rem; }

  .cred-strip { flex-direction: column; align-items: flex-start; gap: 1.8rem; padding: 1.8rem 1.5rem; }
  .cred-block-label { margin-right: 1.8rem; font-size: 8px; }
  .cred-logo-item { padding: 0 1.4rem; padding-top: 0.8rem; padding-bottom: 0.8rem; min-height: 80px; }
  .cred-logo-zone { height: 44px; margin-bottom: 10px; }
  .cred-ht-block { padding-left: 0; border-left: none; border-top: 0.5px solid var(--surface-alt); padding-top: 1.4rem; }

  .entry-header { padding: 2.5rem 1.5rem 1rem; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-card { min-height: auto; padding: 2.5rem 1.5rem; }

  .clinic-teaser { padding: 3rem 1.5rem; }
  .ct-grid { grid-template-columns: 1fr; }

  .intl-block { grid-template-columns: 1fr; }
  .intl-main { padding: 3rem 1.5rem; border-right: none; border-bottom: 0.5px solid var(--surface-alt); }
  .intl-side { padding: 2.5rem 1.5rem; }

  .philosophy-teaser { padding: 3.5rem 1.5rem; }
  .phi-h { font-size: 28px; }

  .cta-strip { grid-template-columns: 1fr; }
  .cta-left { padding: 3rem 1.5rem; border-right: none; border-bottom: 0.5px solid var(--surface-alt); }
  .cta-right { padding: 2.5rem 1.5rem; }
  .pos-h2, .intl-h, .cta-h { font-size: 28px; }
}

/* FFS card in dark mode: match sibling card surface so all cards share the same ground */
html[data-theme="dark"] .entry-card.ffs         { background: var(--bg); }
html[data-theme="dark"] .entry-card.ffs:hover   { background: var(--surface); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .entry-card.ffs       { background: var(--bg); }
  html:not([data-theme="light"]) .entry-card.ffs:hover { background: var(--surface); }
}

/* FFS card in explicit light mode: match sibling cards */
html[data-theme="light"] .entry-card.ffs                { background: var(--bg); }
html[data-theme="light"] .entry-card.ffs:hover          { background: var(--surface); }
html[data-theme="light"] .entry-card.ffs .ec-tag        { color: var(--accent); }
html[data-theme="light"] .entry-card.ffs .ec-h          { color: var(--text-primary); }
html[data-theme="light"] .entry-card.ffs .ec-body       { color: var(--text-secondary); }
html[data-theme="light"] .entry-card.ffs .ec-link       { color: var(--accent); }

@media (max-width: 480px) {
  .cred-logos { flex-wrap: wrap; gap: 0.4rem 0; }
  .cred-logo-item { padding: 0 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
}
