/* ============================================================
   BrightSmile Dental — fresh, mint/teal design system
   Palette: white + mint teal + soft beige + deep ink
   ============================================================ */

:root {
  --teal: #4FB39A;
  --teal-deep: #3D9682;
  --teal-dark: #2A7868;
  --teal-soft: #D9F0E9;
  --teal-tint: #EDF7F3;
  --beige: #F6F3EE;
  --beige-deep: #EBE5DA;
  --ink: #0F1A2A;
  --ink-soft: #2B3850;
  --text: #1F2A3E;
  --text-soft: #5A6478;
  --text-muted: #8A93A6;
  --line: #E6E1D8;
  --line-soft: #F1ECE3;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(15, 26, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 26, 42, 0.08);
  --shadow-lg: 0 22px 60px rgba(15, 26, 42, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  /* hero photo */
  --hero-photo: url('https://images.unsplash.com/photo-1704455306251-b4634215d98f?fm=jpg&q=75&w=2400&auto=format&fit=crop');
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--beige);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
p { color: var(--text-soft); }
a { color: var(--ink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-deep); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5.5rem 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 1rem;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
.section-head p { font-size: 1.05rem; margin-top: 0.75rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
/* When hero photo extends behind header on the home page */
.site-header.over-hero {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active,
.nav-links a:hover { color: var(--teal-deep); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-phone svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(79, 179, 154, 0.35);
}
.btn-primary:hover {
  background: var(--teal-deep);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(79, 179, 154, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost-dark:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}
.btn-light {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-light:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

/* ---------- HERO with photo background ---------- */
.hero-photo {
  position: relative;
  min-height: 720px;
  margin-top: -77px; /* extend behind sticky header */
  padding-top: 77px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 26, 42, 0.25) 0%, rgba(15, 26, 42, 0.45) 100%),
    var(--hero-photo) center/cover no-repeat;
  display: flex;
  align-items: center;
}
/* Soft right-side veil so the content area is readable */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 26, 42, 0.55) 0%, rgba(15, 26, 42, 0.25) 50%, rgba(15, 26, 42, 0) 100%);
  pointer-events: none;
}

.hero-photo .container {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.hero-photo-inner {
  max-width: 640px;
  color: var(--white);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  background: rgba(79, 179, 154, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 1.8rem;
}
.hero-pill::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.hero-photo h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-photo h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--teal-soft);
}

.hero-photo .hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-photo .btn-ghost { color: var(--white); }

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.hero-stats .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.5rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.8);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- About Doctor (matches screenshot 2) ---------- */
.about-doctor {
  background: var(--beige);
  padding: 6rem 0;
}
.about-doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5rem;
  align-items: center;
}
.doctor-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--teal-soft) 0%, var(--teal-tint) 50%, var(--beige-deep) 100%);
}
.doctor-photo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.doctor-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--shadow-md);
}
.doctor-badge-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doctor-badge-icon svg { width: 20px; height: 20px; }
.doctor-badge-num {
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.1;
}
.doctor-badge-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.about-doctor-text h2 { margin-bottom: 1.5rem; }
.about-doctor-text p {
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 2rem;
}
.credential {
  background: var(--teal-tint);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  transition: all var(--transition);
}
.credential:hover { background: var(--teal-soft); }
.credential .cred-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.credential .cred-icon svg { width: 16px; height: 16px; }

/* ---------- Generic page intro (non-photo) ---------- */
.page-intro {
  background: linear-gradient(180deg, var(--teal-tint) 0%, var(--beige) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-intro::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 450px;
  background: radial-gradient(closest-side, rgba(79, 179, 154, 0.18) 0%, transparent 70%);
}
.page-intro h1 { position: relative; }
.page-intro h1 em { font-style: italic; font-weight: 500; color: var(--teal-deep); }
.page-intro p { position: relative; max-width: 660px; margin: 1rem auto 0; font-size: 1.08rem; }
.page-intro .breadcrumb {
  position: relative;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.page-intro .breadcrumb a { color: var(--text-muted); }
.page-intro .breadcrumb span { color: var(--teal-deep); margin: 0 0.5rem; }

/* ---------- Service preview cards (home) ---------- */
.services-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--line-soft);
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--teal-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-deep);
}
.card-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Why us (teal section) ---------- */
.why-us {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why-us::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}
.why-us h2 { color: var(--white); }
.why-us .section-eyebrow { color: var(--teal-soft); }
.why-us p { color: rgba(255, 255, 255, 0.82); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
}
.why-item { text-align: center; }
.why-item .card-icon {
  margin: 0 auto 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.why-item h3 { color: var(--white); font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 600; }
.why-item p { font-size: 0.95rem; }

/* ---------- Reviews / Testimonials ---------- */
.reviews { background: var(--white); }
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.review {
  background: var(--teal-tint);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}
.review-stars {
  color: var(--teal);
  margin-bottom: 0.8rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.review-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(79, 179, 154, 0.2);
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.92rem;
}
.review-name { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.review-role { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -150px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(79, 179, 154, 0.3) 0%, transparent 70%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 0.5rem; position: relative; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); position: relative; font-size: 1.05rem; }
.cta-banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; position: relative; }
.cta-banner .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.cta-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

/* ---------- Services page ---------- */
.service-cat { margin-bottom: 4rem; }
.service-cat-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.service-cat-head h2 { margin: 0; }
.service-cat-head .cat-pill {
  background: var(--teal-tint);
  color: var(--teal-deep);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-list { display: grid; gap: 1rem; }
.service-row {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.8rem;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: all var(--transition);
}
.service-row:hover {
  border-color: var(--teal-soft);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}
.service-row .card-icon { margin: 0; width: 50px; height: 50px; border-radius: 12px; }
.service-row .card-icon svg { width: 24px; height: 24px; }
.service-row h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.service-row p { font-size: 0.92rem; margin: 0; }

.price-tag {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.3rem;
  white-space: nowrap;
  text-align: right;
}
.price-tag small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-top: 2px;
}

.insurance-note {
  background: var(--teal-tint);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
  margin-top: 3rem;
}
.insurance-note h3 { font-family: 'Playfair Display', serif; }

/* ---------- Booking page (same logic as v1, restyled) ---------- */
.booking-shell {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.demo-toggle-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: inline-flex;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.demo-toggle-bar button {
  background: transparent;
  border: none;
  padding: 0.6rem 1.2rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  border-radius: 999px;
  transition: all var(--transition);
}
.demo-toggle-bar button.active {
  background: var(--teal);
  color: var(--white);
}

.demo-banner {
  background: var(--teal-tint);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.demo-banner svg { width: 18px; height: 18px; color: var(--teal-deep); flex-shrink: 0; }

.booking-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.booking-step-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}
.step-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
}
.booking-step-head h3 { margin: 0; font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--ink); }

.service-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.7rem;
  margin-bottom: 0;
}
.service-choice label {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  cursor: pointer;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
  background: var(--white);
}
.service-choice label:hover {
  border-color: var(--teal);
  background: var(--teal-tint);
}
.service-choice input { display: none; }
.service-choice label.selected {
  border-color: var(--teal);
  background: var(--teal);
  color: var(--white);
}

/* Calendar */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cal-head h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--ink);
}
.cal-nav { display: flex; gap: 0.4rem; }
.cal-nav button {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal-tint);
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.cal-nav button:hover { background: var(--teal); color: var(--white); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day-name {
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.5rem 0;
  font-weight: 600;
}
.cal-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.18s ease;
  position: relative;
}
.cal-day.muted { color: var(--text-muted); opacity: 0.4; cursor: default; }
.cal-day:hover:not(.muted):not(.full) { background: var(--teal-tint); }
.cal-day.has-slots::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
}
.cal-day.selected {
  background: var(--teal);
  color: var(--white);
}
.cal-day.selected::after { background: var(--white); }
.cal-day.full {
  color: var(--text-muted);
  background: repeating-linear-gradient(
    -45deg,
    var(--beige-deep),
    var(--beige-deep) 2px,
    transparent 2px,
    transparent 6px
  );
  cursor: not-allowed;
}
.cal-day.today { border: 1.5px solid var(--teal); }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.cal-legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.available { background: var(--teal); }
.legend-dot.full {
  background: repeating-linear-gradient(-45deg, var(--beige-deep), var(--beige-deep) 2px, transparent 2px, transparent 5px);
  border: 1px solid var(--line);
}
.legend-dot.today { background: transparent; border: 1.5px solid var(--teal); }

.slot-section h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.slot {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.4rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.slot:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-deep); }
.slot.selected {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}
.slot:disabled, .slot.taken {
  background: var(--beige);
  color: var(--text-muted);
  text-decoration: line-through;
  cursor: not-allowed;
  border-color: transparent;
}

.full-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--teal-tint);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}
.full-state .full-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}
.full-state .full-icon svg { width: 32px; height: 32px; }
.full-state h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.full-state p { max-width: 460px; margin: 0.7rem auto 1.5rem; }

.waitlist-form {
  display: flex;
  gap: 0.6rem;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
}
.waitlist-form input:focus { outline: none; border-color: var(--teal); }

.summary-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}
.summary-card h3 { color: var(--ink); font-family: 'Playfair Display', serif; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
}
.summary-row .label { color: var(--text-muted); }
.summary-row .val { color: var(--ink); font-weight: 500; text-align: right; }
.summary-row .val.empty { color: var(--text-muted); font-style: italic; font-weight: 400; }

.summary-form { margin-top: 1.5rem; }
.summary-form .field { margin-bottom: 1rem; }
.summary-form label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.summary-form input, .summary-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  transition: all var(--transition);
}
.summary-form input:focus, .summary-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.summary-form textarea { resize: vertical; min-height: 80px; }
.summary-confirm-btn {
  width: 100%;
  margin-top: 1rem;
  background: var(--teal);
  color: var(--white);
  padding: 1rem;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 6px 18px rgba(79, 179, 154, 0.35);
}
.summary-confirm-btn:hover { background: var(--teal-deep); }
.summary-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info { display: grid; gap: 1.2rem; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.2rem;
  align-items: start;
  transition: all var(--transition);
}
.contact-card:hover {
  border-color: var(--teal-soft);
  box-shadow: var(--shadow-sm);
}
.contact-card .card-icon { margin: 0; width: 48px; height: 48px; border-radius: 12px; }
.contact-card .card-icon svg { width: 22px; height: 22px; }
.contact-card h4 { font-family: 'Inter', sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.3rem; font-weight: 600; }
.contact-card .val { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--ink); font-weight: 600; }
.contact-card .sub { color: var(--text-soft); font-size: 0.9rem; margin-top: 0.2rem; }

.hours-list { list-style: none; margin-top: 0.5rem; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.92rem;
  border-bottom: 1px dashed var(--line-soft);
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { color: var(--text-soft); }
.hours-list .time { color: var(--ink); font-weight: 500; }
.hours-list .closed { color: var(--teal-deep); }

.map-block {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-dark));
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.map-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 47%, rgba(255,255,255,0.05) 50%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(255,255,255,0.04) 50%, transparent 53%),
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
}
.map-pin {
  position: relative;
  z-index: 2;
  text-align: center;
}
.map-pin .pin {
  width: 64px; height: 64px;
  background: var(--white);
  color: var(--teal-deep);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2), 0 12px 30px rgba(0, 0, 0, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}
.map-pin .pin svg { width: 30px; height: 30px; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2), 0 12px 30px rgba(0, 0, 0, 0.2); }
  50% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.1), 0 12px 30px rgba(0, 0, 0, 0.2); }
}
.map-pin h3 { color: var(--white); }
.map-pin p { color: rgba(255, 255, 255, 0.8); }

.contact-form-card {
  background: var(--teal-tint);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: all var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 100px; }

/* ---------- About / Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-photo {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal-tint));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.team-photo .initials {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--teal-deep);
  font-weight: 500;
}
.team-body { padding: 1.5rem; text-align: center; }
.team-body h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.team-body .role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-deep);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.team-body p { font-size: 0.9rem; }

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-story-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--teal-soft), var(--teal-tint));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-story-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-story-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(15, 26, 42, 0.85);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  z-index: 2;
}
.about-story-badge .est {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--teal-soft);
  font-weight: 600;
  line-height: 1;
}
.about-story-badge .label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.75);
}
.about-story-text h2 { margin-bottom: 1.2rem; }
.about-story-text p { margin-bottom: 1rem; font-size: 1.02rem; line-height: 1.75; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { color: var(--white); }
.footer-brand .brand { color: var(--white); }
.footer-brand p { color: rgba(255, 255, 255, 0.6); margin-top: 1rem; max-width: 300px; font-size: 0.92rem; }
.footer-col h5 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--teal); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .check {
  width: 28px; height: 28px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.toast .check svg { width: 16px; height: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-photo { min-height: 620px; }
  .about-doctor-grid { grid-template-columns: 1fr; gap: 3rem; }
  .doctor-photo { max-width: 460px; margin: 0 auto; }
  .credentials-grid { grid-template-columns: 1fr; }
  .booking-shell { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cta-banner { padding: 2.5rem; }
}

@media (max-width: 700px) {
  section { padding: 3.5rem 0; }
  .hero-photo { min-height: 560px; }
  .hero-photo .container { padding-top: 2.5rem; padding-bottom: 3rem; }
  .about-doctor { padding: 4rem 0; }
  .nav { height: 64px; }
  .hero-photo { margin-top: -65px; padding-top: 65px; }
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a::after { display: none; }
  .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-stats { gap: 1.5rem; }
  .hero-stats .stat-num { font-size: 1.7rem; }
  .service-row {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 0.8rem;
  }
  .service-row .price-tag { text-align: left; font-size: 1.15rem; }
  .service-row .card-icon { width: 42px; height: 42px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-banner { padding: 2rem; flex-direction: column; align-items: flex-start; }
  .demo-toggle-bar { flex-wrap: wrap; }
  .brand small { display: none; }
}
