/*
 * Linden Medical — warm editorial serif for private GP practices.
 * Deep teal + cream canvas, Newsreader display serif, Geist UI sans.
 *
 * All palette values are defaults set via --color-* vars so tenant overrides
 * (set on :root inline from website_settings) take precedence naturally.
 */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,400&family=Geist:wght@400;500;600&display=swap');

:root {
  --color-primary: #0F4C4E;
  --color-secondary: #083638;
  --color-subdued: #6E7A77;
  --color-link: #0F4C4E;
  --color-page-bg: #FAF7F2;
  --color-container-bg: #FFFFFF;
  --color-text: #14201E;

  --font-heading: "Newsreader", "Cormorant Garamond", Georgia, serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --linden-soft: #E8F1EE;
  --linden-softer: #F4F9F6;
  --linden-band: #F4EFE7;
  --linden-hair: rgba(20, 32, 30, 0.12);
  --linden-hair-strong: rgba(20, 32, 30, 0.2);
  --linden-accent: #C97B5C;
}

html, body {
  background: var(--color-page-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { opacity: 0.8; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

/* ── Nav / header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 0;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--linden-hair);
}
.logo-area {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-secondary);
  white-space: nowrap;
}
.logo-area::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: inset 0 0 0 2px rgba(232, 241, 238, 0.9);
  flex-shrink: 0;
}
.logo-area.has-logo::before { display: none; }
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14.5px;
  color: #3E4A47;
}
.main-nav a {
  color: inherit;
  padding: 4px 0;
  transition: color .15s;
}
.main-nav a:hover { color: var(--color-primary); }

/* ── Buttons ── */
.btn, .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font: 500 14px var(--font-body);
  border: 1px solid transparent;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
}
.btn:hover, .cta-button:hover { background: var(--color-secondary); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-secondary { background: var(--linden-soft); color: var(--color-secondary); }
.btn-outline, .btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--linden-hair-strong);
}
.btn-outline:hover, .btn-ghost:hover {
  background: var(--linden-softer);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ── Layout ── */
.page-content { padding: 0; min-height: 60vh; }
.container, .wrap {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 56px 0; }
.section-alt { background: var(--linden-band); }
/* Highlights / stats sit just under the hero — keep them tight so the
   stats row reads as a continuation of the headline, not its own
   loosely-spaced section. */
.section:has(> .container > .stats-row) { padding: 24px 0 32px; }
.stats-row { padding: 16px 0 8px; }
/* Booking panel — the `.section` already gives top breathing room; trim
   the inner `.booking-inline` bottom pad so the band hugs the panel
   rather than leaving a deep gap before the next section. */
.booking-inline { padding: 0 0 8px; }

/* ── Hero ── */
.hero-section, .hero {
  padding: 40px 40px 24px;
  background:
    radial-gradient(1200px 520px at 80% -10%, var(--linden-soft) 0%, transparent 65%),
    var(--color-page-bg);
}
/* Tighten the hero grid that sits inside `.hero-section` — base.css
   ships `padding: 48px 0 32px` which doubles up with the section's own
   vertical padding. Linden hero already has its own breathing room from
   the radial gradient, so the inner grid only needs token spacing. */
.hero-section .hero-grid { padding: 16px 0 8px; }
.hero-section h1, .hero h1 {
  max-width: 16ch;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  letter-spacing: -0.025em;
}
.hero-section p, .hero p {
  max-width: 52ch;
  color: #3E4A47;
  font-size: 18px;
  line-height: 1.55;
}
.hero-section .cta-button { margin-top: 24px; }

/* ── Card ── */
.card {
  background: var(--color-container-bg);
  border: 1px solid var(--linden-hair);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15, 76, 78, 0.06), 0 8px 24px rgba(15, 76, 78, 0.06);
}

/* ── Grids ── */
.services-grid, .team-grid, .feature-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 40px 0;
}
.feature-item {
  padding: 24px;
  background: var(--color-container-bg);
  border: 1px solid var(--linden-hair);
  border-radius: 14px;
}

/* ── Services (editorial menu) ── */
.services-menu {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--linden-hair);
}
.services-menu li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--linden-hair);
  font-family: var(--font-heading);
  font-size: 22px;
}
.services-menu li .svc-meta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-subdued);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.services-menu li .svc-price {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-primary);
}

/* ── HCP / team cards ── */
.team-grid .card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-grid .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px rgba(15, 76, 78, 0.06), 0 24px 48px rgba(15, 76, 78, 0.14);
}
.team-grid .card img,
.team-grid .card .avatar {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--linden-soft);
  border-radius: 0;
  margin: 0;
  display: block;
}
.team-grid .card .card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  background: var(--color-container-bg);
}
.team-grid .card h4 {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0;
}
.team-grid .card .role {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}
.team-grid .card .card-bio {
  color: var(--color-subdued);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 6px;
}
.team-grid .card .card-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--linden-hair);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-subdued);
}

/* ── Booking widget ── */
.booking-widget, .booking-widget-placeholder {
  background: var(--color-container-bg);
  border: 1px solid var(--linden-hair);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 2px 4px rgba(15, 76, 78, 0.06), 0 16px 40px rgba(15, 76, 78, 0.08);
}
.booking-widget h3 { font-family: var(--font-heading); font-size: 26px; margin: 0 0 16px; }
.booking-widget select,
.booking-widget input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--linden-hair-strong);
  border-radius: 10px;
  background: var(--linden-softer);
  color: var(--color-text);
  font-family: inherit;
  font-size: 14px;
}
.booking-widget label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-subdued);
  margin: 16px 0 6px;
}

/* ── Footer ── */
.site-footer {
  background: var(--color-secondary);
  color: rgba(232, 241, 238, 0.84);
  padding: 72px 40px 40px;
  margin-top: 80px;
}
.site-footer h4 { color: #fff; font-family: var(--font-heading); font-size: 18px; }
.site-footer a { color: rgba(232, 241, 238, 0.84); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: var(--container-max-width);
  margin: 0 auto;
}
.footer-col h4 { margin-bottom: 16px; }
.footer-bottom {
  max-width: var(--container-max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 241, 238, 0.14);
  font-size: 13px;
  color: rgba(232, 241, 238, 0.56);
}
.footer-cqc {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(232, 241, 238, 0.24);
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 241, 238, 0.84);
}
.footer-cqc strong { color: #fff; }

@media (max-width: 800px) {
  .site-header { padding: 14px 0; }
  .main-nav { display: none; }
  .hero-section, .hero { padding: 48px 20px; }
  .container, .wrap { padding: 0 20px; }
  .section { padding: 48px 0; }
  .services-menu li { grid-template-columns: 1fr; gap: 6px; }
}

/* ── Banner & Editorial ────────────────────────────────────────
   Warm linen panels echoing .section-alt's --linden-band, with
   serif-appropriate radius and the practice's hair-line dividers. */

.section-banner { background: var(--linden-band); padding: 64px 0; }
.section-banner .banner-image {
  border-radius: 18px;
  box-shadow: 0 4px 30px rgba(20, 32, 30, 0.06);
  aspect-ratio: 21/9;
}

.section-editorial { background: var(--linden-band); padding: 80px 0; }
.section-editorial .editorial-grid { gap: 72px; }
.section-editorial .editorial-image img {
  border-radius: 22px;box-shadow: 0 6px 30px rgba(20, 32, 30, 0.08);
}
.section-editorial .editorial-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.section-editorial .editorial-content h2 em {
  color: var(--color-secondary);
  font-style: italic;
}
.section-editorial .editorial-body p { color: var(--color-text); opacity: 0.78; }
.section-editorial .editorial-body li {
  border-color: var(--linden-hair);
  font-family: var(--font-body);
  color: var(--color-text);
}
.section-editorial .editorial-body li:last-child { border-bottom-color: var(--linden-hair); }
.section-editorial .editorial-body li::before {
  background: rgba(15, 76, 78, 0.10);
  color: var(--color-primary);
  font-family: var(--font-heading);
}

/* ── Nav dropdown — track the Linden Medical design ────────────────
   Mockup uses brand-softer (warm green tint) for the item hover, with
   the parent trigger turning brand-coloured when its dropdown is open.
   Hairline border tracks the practice's existing --linden-hair. */
.main-nav .nav-submenu {
  border-color: var(--linden-hair);
}
.main-nav .nav-submenu a:hover,
.main-nav .nav-submenu a:focus-visible {
  background: var(--linden-softer);
  color: var(--color-primary);
}
.nav-item--has-children:hover > .nav-item-link,
.nav-item--has-children:focus-within > .nav-item-link {
  color: var(--color-primary);
}

/* ── New section blocks — Linden tweaks ─────────────────────────
   Warm hairlines tracking --linden-hair, longer vertical rhythm,
   serif treatment for testimonial quotes / FAQ questions. */

.section-stats { border-color: var(--linden-hair); padding: 64px 0; }
.stat-bar-cell { border-left-color: var(--linden-hair); }
.stat-bar-value { font-style: italic; color: var(--color-primary); }
.stat-bar-sub { color: var(--color-subdued); }

.section-how { background: var(--color-page-bg); padding: 96px 0; }
.section-how .how-step-line { background: var(--linden-hair); }

.section-testimonials { background: var(--linden-soft); padding: 96px 0; }
.testi-card {
  border-color: var(--linden-hair);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 76, 78, 0.05), 0 8px 24px rgba(15, 76, 78, 0.06);
}
.testi-quote { font-style: italic; }
.testi-stars { color: var(--linden-accent); }
.testi-byline { border-top-color: var(--linden-hair); }

.section-partners { background: var(--color-page-bg); padding: 88px 0; }
.partners-logos { border-bottom-color: var(--linden-hair); }
.partner-logo-text { font-family: var(--font-heading); font-style: italic; color: var(--color-secondary); }
.accred-mark { border-color: var(--linden-hair-strong); }
.accred-abbr { font-family: var(--font-heading); }

.section-journal { background: var(--color-container-bg); padding: 96px 0; }
.journal-image { border-radius: 14px; }
.journal-title { font-family: var(--font-heading); }
.journal-card.is-feature .journal-title { font-style: italic; }

.section-faq { background: var(--color-page-bg); padding: 96px 0; }
.faq-item { border-bottom-color: var(--linden-hair); }
.faq-list { border-top-color: var(--linden-hair); }
.faq-q { font-family: var(--font-heading); }

.section-cta { background: var(--color-secondary); padding: 104px 0; }
.section-cta .cta-headline { font-family: var(--font-heading); }
.section-cta .cta-headline em { color: var(--linden-soft); }
.section-cta .cta-actions .btn,
.section-cta .cta-actions .cta-primary {
  background: #fff;
  color: var(--color-secondary);
  border-radius: 999px;
}
