/* ==========================================================================
   MEADOW DENTAL — Warm wellness template
   Sage green, dusty peach, soft cream — for holistic/wellness practices
   ========================================================================== */

:root {
  --cream: #FBF7F0;
  --cream-warm: #F5EFE2;
  --paper: #EFE7D3;
  --sage: #8FA68E;
  --sage-dark: #6B8369;
  --sage-deep: #4A5F49;
  --peach: #E8B5A0;
  --peach-soft: #F2D4C5;
  --brown: #6B5544;
  --brown-soft: #9B8472;
  --ink: #3A2E20;
  --ink-soft: #6B5544;
  --muted: #A39684;
  --line: rgba(58, 46, 32, 0.12);

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Nunito', system-ui, sans-serif;

  --container: 1200px;
  --container-narrow: 820px;
  --header-height: 80px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--sage-dark); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--peach); }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font: inherit; }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}
h1 em, h2 em { color: var(--sage-dark); font-style: italic; font-weight: 400; }

h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; }
h3 { font-size: 1.5rem; font-weight: 500; }
h4 { font-size: 1.125rem; font-weight: 600; font-family: var(--font-body); }

p { color: var(--ink-soft); line-height: 1.75; }

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-soft);
}

.script {
  font-family: var(--font-script);
  font-size: 1.5em;
  color: var(--peach);
  font-weight: 500;
}

.kicker {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--peach);
  display: inline-block;
}

/* Decorative leaf */
.leaf {
  display: inline-block;
  vertical-align: middle;
  color: var(--sage);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 6rem 0; position: relative; }
.section-sm { padding: 4rem 0; }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.section-header .kicker { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1.25rem; }
.section-header p { font-size: 1.0625rem; max-width: 580px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.875rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  background: var(--ink);
  color: var(--cream);
  border: 1.5px solid var(--ink);
}
.btn:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--cream);
  transform: translateY(-1px);
}

.btn-sage {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}
.btn-sage:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-peach {
  background: var(--peach);
  color: var(--ink);
  border-color: var(--peach);
}
.btn-peach:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--cream);
}

.btn .arrow { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.link-circle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sage-dark);
}
.link-circle .circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: var(--cream);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}
.link-circle:hover .circle { background: var(--peach); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  background: var(--sage);
  border-radius: 50%;
  color: var(--cream);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link {
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.nav-link:hover { background: var(--peach-soft); }
.nav-link.active { background: var(--sage); color: var(--cream); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--peach-soft);
  border-radius: 50%;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

/* HERO — centered vertical flow, organic background shape */
.hero {
  padding: 4rem 0 6rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-organic {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 90vw);
  height: min(900px, 90vw);
  pointer-events: none;
  z-index: -1;
}
.hero-organic svg {
  width: 100%; height: 100%;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}
.hero-tag .dot {
  width: 8px; height: 8px;
  background: var(--peach);
  border-radius: 50%;
}

.hero h1 {
  margin-bottom: 2rem;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1;
}

.hero-script-overlay {
  font-family: var(--font-script);
  color: var(--peach);
  font-size: 0.4em;
  display: inline-block;
  transform: rotate(-4deg);
  vertical-align: middle;
  margin-right: 0.25rem;
}

.hero-lead {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 3rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Hero portrait row — circular */
.hero-portraits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-portrait-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}
.hero-portrait-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--sage);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1.5px var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--cream);
  position: relative;
}
.hero-portrait-card:nth-child(2) .hero-portrait-circle { background: var(--peach); color: var(--ink); }
.hero-portrait-card:nth-child(3) .hero-portrait-circle { background: var(--brown); }
.hero-portrait-card:nth-child(4) .hero-portrait-circle { background: var(--sage-deep); }
.hero-portrait-card .name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink);
}
.hero-portrait-card .role {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* SERVICES — vertical timeline */
.services-block {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.services-timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}
.services-timeline::before {
  content: '';
  position: absolute;
  top: 30px; bottom: 30px;
  left: 60px;
  width: 2px;
  background: var(--ink);
  opacity: 0.15;
}

.timeline-service {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
  position: relative;
}

.timeline-dot {
  position: relative;
  display: flex;
  justify-content: center;
}
.timeline-dot::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  width: 24px; height: 24px;
  margin-left: -12px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.timeline-dot .icon {
  position: absolute;
  top: 14px; left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  background: var(--sage-dark);
  border-radius: 50%;
}
.timeline-service:nth-child(2n) .timeline-dot .icon { background: var(--peach); }
.timeline-service:nth-child(3n) .timeline-dot .icon { background: var(--brown); }

.timeline-content {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  position: relative;
}
.timeline-content::before {
  content: '';
  position: absolute;
  top: 14px; left: -8px;
  width: 14px; height: 14px;
  background: var(--cream);
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
}
.timeline-service:hover .timeline-content {
  transform: translateX(4px);
  transition: transform 0.3s var(--ease);
}

.timeline-content .ts-tag {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.125rem;
  color: var(--sage-dark);
  margin-bottom: 0.25rem;
}
.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.timeline-content p { font-size: 0.9375rem; }

/* Why us / Features — card grid with rotation */
.features-block { background: var(--cream); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  max-width: 1080px;
  margin: 0 auto;
}

.feature-card {
  padding: 2rem;
  background: var(--cream-warm);
  border-radius: 20px;
  position: relative;
}
.feature-card:nth-child(2) { background: var(--peach-soft); }
.feature-card:nth-child(3) { background: var(--paper); }
.feature-card:nth-child(4) { background: var(--peach-soft); }
.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--sage-dark);
  margin-bottom: 1.25rem;
}
.feature-card h3 { margin-bottom: 0.625rem; }
.feature-card p { font-size: 0.9375rem; }

/* Stats — inline ribbon */
.stats-ribbon {
  background: var(--sage-deep);
  color: var(--cream);
  padding: 3rem 0;
  position: relative;
}
.stats-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}
.stats-ribbon .stat {
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid rgba(251, 247, 240, 0.18);
}
.stats-ribbon .stat:last-child { border-right: none; }
.stats-ribbon .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1;
  color: var(--peach-soft);
  margin-bottom: 0.375rem;
}
.stats-ribbon .stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.85);
}

/* Doctors — circular portrait grid */
.doctors-block {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.doctor-card {
  text-align: center;
}
.doctor-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--sage);
  border: 3px solid var(--ink);
  margin: 0 auto 1.5rem;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.doctor-circle::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px;
  right: -8px; bottom: -8px;
  border: 1.5px solid var(--peach);
  border-radius: 50%;
  opacity: 0.5;
}
.doctor-circle img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
}
.doctor-circle .initials {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--cream);
  font-style: italic;
}
.doctor-card:nth-child(1) .doctor-circle { background: var(--peach); }
.doctor-card:nth-child(1) .doctor-circle .initials { color: var(--ink); }
.doctor-card:nth-child(2) .doctor-circle { background: var(--sage); }
.doctor-card:nth-child(3) .doctor-circle { background: var(--brown); }
.doctor-card:nth-child(4) .doctor-circle { background: var(--sage-deep); }
.doctor-card:nth-child(5) .doctor-circle { background: var(--peach); }
.doctor-card:nth-child(5) .doctor-circle .initials { color: var(--ink); }
.doctor-card:nth-child(6) .doctor-circle { background: var(--sage-dark); }

.doctor-card:hover .doctor-circle { transform: scale(1.04); }

.doctor-tag {
  font-family: var(--font-script);
  font-size: 1.125rem;
  color: var(--peach);
  margin-bottom: 0.25rem;
}
.doctor-card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.375rem;
  font-weight: 500;
}
.doctor-role {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-weight: 500;
}
.doctor-bio {
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

/* TESTIMONIALS — soft card grid */
.testimonials-block {
  background: var(--cream-warm);
  padding: 6rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1080px;
  margin: 0 auto;
}

.testimonial {
  background: var(--cream);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
}
.testimonial:nth-child(1) { transform: rotate(-1deg); }
.testimonial:nth-child(2) { transform: rotate(1deg); margin-top: 1.5rem; }
.testimonial:nth-child(3) { transform: rotate(-0.5deg); }
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--peach);
  margin-bottom: 0.5rem;
}
.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: 1.25rem;
  border-top: 1.5px dashed var(--line);
}
.t-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  border: 1.5px solid var(--ink);
}
.testimonial:nth-child(2) .t-avatar { background: var(--peach); color: var(--ink); }
.testimonial:nth-child(3) .t-avatar { background: var(--brown); }
.testimonial-author strong { display: block; font-size: 0.9375rem; }
.testimonial-author span { display: block; font-size: 0.8125rem; color: var(--ink-soft); }

/* FAQ — soft accordion */
.faq-section { background: var(--cream); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.faq-item {
  background: var(--cream-warm);
  border-radius: 20px;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.faq-item.is-open { background: var(--peach-soft); }

.faq-question {
  width: 100%;
  padding: 1.5rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.faq-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
}
.faq-item.is-open .faq-icon {
  background: var(--ink);
  color: var(--cream);
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer-inner {
  padding: 0 1.75rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* CTA — soft organic */
.cta-section {
  padding: 5rem 0;
  background: var(--cream);
}
.cta-card {
  max-width: 980px;
  margin: 0 auto;
  background: var(--sage-deep);
  color: var(--cream);
  border-radius: 32px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: var(--peach);
  border-radius: 50%;
  opacity: 0.25;
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  background: var(--sage);
  border-radius: 50%;
  opacity: 0.4;
}
.cta-card-content { position: relative; z-index: 1; }
.cta-card .kicker { color: var(--peach-soft); margin-bottom: 0.5rem; }
.cta-card h2 { color: var(--cream); margin-bottom: 1.25rem; }
.cta-card p {
  color: rgba(251, 247, 240, 0.85);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-card .btn {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.cta-card .btn:hover {
  background: var(--peach);
  border-color: var(--peach);
  color: var(--ink);
}
.cta-card .btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.cta-card .btn-outline:hover {
  background: var(--cream);
  color: var(--ink);
}

/* Page hero */
.page-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: var(--peach-soft);
  border-radius: 50%;
  opacity: 0.45;
  z-index: -1;
}
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.page-hero .lead { max-width: 620px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.breadcrumb a { color: var(--sage-dark); }

/* About story */
.story-section { background: var(--cream); padding: 5rem 0; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}
.story-visual {
  aspect-ratio: 4 / 5;
  background: var(--peach-soft);
  border-radius: 32px;
  border: 2px solid var(--ink);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.story-visual::before {
  content: '';
  position: absolute;
  top: 1rem; left: 1rem;
  right: -1rem; bottom: -1rem;
  background: var(--sage);
  border-radius: 32px;
  border: 2px solid var(--ink);
  z-index: -1;
}
.story-visual svg { width: 60%; color: var(--sage-dark); opacity: 0.7; }

.story-content h2 { margin-bottom: 1.5rem; }
.story-content p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.story-content .signature {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1.5px dashed var(--line);
  font-family: var(--font-script);
  font-size: 2.25rem;
  color: var(--sage-dark);
  line-height: 1.2;
}
.story-content .signature span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Values — soft cards */
.values-block { background: var(--paper); padding: 5rem 0; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.value-card {
  background: var(--cream);
  border-radius: 24px;
  padding: 2rem;
  border: 2px solid var(--ink);
}
.value-card:nth-child(2n) { background: var(--peach-soft); }
.value-card:nth-child(3n) { background: var(--cream-warm); }
.value-card .v-num {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--sage-dark);
  margin-bottom: 0.625rem;
  display: block;
}
.value-card h3 { margin-bottom: 0.625rem; font-weight: 500; }
.value-card p { font-size: 0.9375rem; }

/* Blog */
.blog-block { background: var(--cream); }

.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--peach-soft);
  border: 2px solid var(--ink);
  border-radius: 32px;
  padding: 3rem;
  margin-bottom: 4rem;
}
.blog-featured-image {
  aspect-ratio: 4 / 3;
  background: var(--sage);
  border-radius: 24px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.blog-featured-image svg { width: 50%; color: var(--cream); opacity: 0.7; }
.blog-tag {
  display: inline-block;
  background: var(--sage-dark);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.blog-featured h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.15;
}
.blog-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.blog-featured p { font-size: 1rem; margin-bottom: 2rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.blog-card {
  background: var(--cream-warm);
  border: 2px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-image {
  aspect-ratio: 16 / 10;
  background: var(--sage);
  display: grid;
  place-items: center;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.blog-card:nth-child(2) .blog-card-image { background: var(--peach); }
.blog-card:nth-child(3) .blog-card-image { background: var(--brown); }
.blog-card:nth-child(4) .blog-card-image { background: var(--sage-dark); }
.blog-card:nth-child(5) .blog-card-image { background: var(--peach-soft); }
.blog-card:nth-child(6) .blog-card-image { background: var(--cream-warm); }
.blog-card-image svg { width: 40%; color: var(--cream); opacity: 0.7; }
.blog-card-image .blog-tag { position: absolute; top: 1rem; left: 1rem; margin: 0; background: var(--cream); color: var(--ink); border: 1.5px solid var(--ink); }

.blog-card-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
  line-height: 1.25;
  font-weight: 500;
}
.blog-card p { font-size: 0.9375rem; flex: 1; margin-bottom: 1.25rem; }

/* Contact */
.contact-block { background: var(--cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card {
  background: var(--cream-warm);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.contact-card:nth-child(1) { background: var(--peach-soft); }
.contact-card:nth-child(2) { background: var(--cream-warm); }
.contact-card:nth-child(3) { background: var(--paper); }
.cc-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--sage-dark);
}
.contact-card h4 { margin-bottom: 0.25rem; font-size: 1.0625rem; font-weight: 500; font-family: var(--font-display); }
.contact-card p, .contact-card a {
  font-size: 0.9375rem;
  color: var(--ink);
  display: block;
  line-height: 1.5;
}
.contact-card a:hover { color: var(--sage-dark); }

.hours-card {
  background: var(--sage-deep);
  color: var(--cream);
  border-radius: 24px;
  border: 2px solid var(--ink);
  padding: 1.75rem;
  margin-top: 0.5rem;
}
.hours-card h4 { color: var(--cream); margin-bottom: 1.25rem; font-family: var(--font-display); }
.hour-line {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(251, 247, 240, 0.18);
  font-size: 0.9375rem;
}
.hour-line:last-child { border-bottom: none; }
.hour-line span:first-child { color: rgba(251, 247, 240, 0.72); }
.hour-line.closed span:last-child { color: var(--peach); font-style: italic; }

/* Form */
.contact-form {
  background: var(--cream-warm);
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 2.5rem;
}
.contact-form h3 { font-size: 1.75rem; margin-bottom: 0.5rem; font-weight: 500; }
.contact-form > p { font-size: 0.9375rem; margin-bottom: 1.75rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.9375rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: var(--cream);
  box-shadow: 0 0 0 3px var(--peach-soft);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Map */
.map-card {
  margin-top: 4rem;
  aspect-ratio: 16 / 6;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}
.map-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,46,32,0.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(58,46,32,0.05) 2px, transparent 2px);
  background-size: 40px 40px;
}
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  background: var(--peach);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.map-pin::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid var(--peach);
  border-radius: 50%;
  animation: pulse-mp 2.5s ease-out infinite;
}
@keyframes pulse-mp {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 5rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1.5px solid rgba(251, 247, 240, 0.12);
}
.footer-brand .logo { color: var(--cream); }
.footer-brand .logo-mark { background: var(--peach); color: var(--ink); }
.footer-brand p {
  margin: 1.25rem 0 1.75rem;
  color: rgba(251, 247, 240, 0.72);
  font-size: 0.9375rem;
  max-width: 320px;
}
.footer-socials { display: flex; gap: 0.5rem; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.08);
  display: grid;
  place-items: center;
  color: var(--cream);
  transition: background 0.3s var(--ease);
}
.footer-socials a:hover { background: var(--peach); color: var(--ink); }

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--peach);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
  color: rgba(251, 247, 240, 0.72);
  font-size: 0.9375rem;
}
.footer-col a:hover { color: var(--cream); }

.footer-newsletter p {
  color: rgba(251, 247, 240, 0.6);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.newsletter-form {
  display: flex;
  background: rgba(251, 247, 240, 0.08);
  border-radius: 100px;
  padding: 4px;
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.625rem 1rem;
  color: var(--cream);
  font-size: 0.875rem;
}
.newsletter-form input::placeholder { color: rgba(251, 247, 240, 0.4); }
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  padding: 0.5rem 1.125rem;
  background: var(--peach);
  color: var(--ink);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(251, 247, 240, 0.5);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.1s; }
.reveal-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 1024px) {
  .section { padding: 4.5rem 0; }
  .doctors-grid, .blog-grid, .testimonials-grid, .values-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-ribbon-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .stats-ribbon .stat:nth-child(2n) { border-right: none; }
  .blog-featured, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .story-visual { max-width: 420px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .nav-list { display: none; }
  .nav-list.is-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-bottom: 1.5px solid var(--ink);
    align-items: stretch;
  }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }

  .hero-portraits { gap: 1rem; }
  .hero-portrait-circle { width: 60px; height: 60px; font-size: 1.125rem; }
  .timeline-service { grid-template-columns: 60px 1fr; }
  .services-timeline::before { left: 30px; }

  .doctors-grid, .blog-grid, .testimonials-grid, .values-grid, .features-grid { grid-template-columns: 1fr; }
  .testimonial:nth-child(2), .testimonial:nth-child(3) { transform: none; margin-top: 0; }
  .stats-ribbon-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.75rem; }
  .blog-featured { padding: 1.75rem; }
  .cta-card { padding: 2.75rem 1.75rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .stats-ribbon-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-ribbon .stat:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(251, 247, 240, 0.12);
    padding-bottom: 1.5rem;
  }
}


/* ───────────────────────────────────────────────────────────────────
   smyleee mobile-nav fix
   - Desktop: hide the drawer entirely so it can't leak into the page.
   - Mobile (≤960px): force an opaque background + high z-index so the
     open drawer actually covers the page content.
   ─────────────────────────────────────────────────────────────────── */
@media (min-width: 961px) {
  .nav-mobile { display: none !important; }
}
@media (max-width: 960px) {
  .nav-mobile {
    background: #ffffff !important;
    z-index: 9999 !important;
  }
}


/* ───────────────────────────────────────────────────────────────────
   smyleee mobile-nav fix
   - Desktop: hide the drawer entirely so it can't leak into the page.
   - Mobile (≤960px):
       * Force opaque white background + high z-index.
       * Remove backdrop-filter on the sticky header — that property
         creates a containing block for position:fixed descendants,
         which trapped the drawer inside the ~80px-tall header.
   ─────────────────────────────────────────────────────────────────── */
@media (min-width: 961px) {
  .nav-mobile { display: none !important; }
}
@media (max-width: 960px) {
  .site-header, header.site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav-mobile {
    background: #ffffff !important;
    z-index: 9999 !important;
  }
}
