/* ==========================================================================
   Encino Smile Care — Modern Revamp Stylesheet
   ========================================================================== */

:root {
  --color-primary: #1E88E5;
  --color-primary-dark: #1565C0;
  --color-primary-light: #E3F2FD;
  --color-accent: #f59e0b;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0f172a;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.18);

  --container: 1200px;
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--color-text); margin: 0 0 0.6em; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--color-muted); }
ul { padding-left: 1.25em; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(30, 136, 229, 0.55);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(30, 136, 229, 0.6);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--color-primary);
}
.btn-light:hover { background: var(--color-primary-light); }

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--color-bg-dark);
  color: #cbd5e1;
  font-size: 0.87rem;
  padding: 10px 0;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.emergency-pill {
  background: var(--color-accent);
  color: #0f172a;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
}
.brand:hover { color: var(--color-primary); }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #42A5F5 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}
.site-footer .brand-logo { filter: brightness(0) invert(1); opacity: 0.92; }
.site-footer .brand-logo:hover { opacity: 1; }
.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--color-text);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at top right, rgba(30, 136, 229, 0.12), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(245, 158, 11, 0.08), transparent 55%),
    linear-gradient(180deg, #f0fafb 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero h1 { margin-top: 0; }
.hero h1 .accent { color: var(--color-primary); font-style: italic; }
.hero-lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.hero-stats dd {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--color-muted);
  max-width: 140px;
}
.hero-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideFade 25s infinite;
}
.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 5s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 10s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 15s; }
.hero-slideshow .slide:nth-child(5) { animation-delay: 20s; }
@keyframes slideFade {
  0%, 18%  { opacity: 1; }
  22%, 100% { opacity: 0; }
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.55) 100%);
}
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.hero-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-primary-light);
  display: grid;
  place-items: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.hero-badge strong { display: block; color: var(--color-text); font-size: 0.95rem; }
.hero-badge span { font-size: 0.82rem; color: var(--color-muted); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); color: #e2e8f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #94a3b8; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; }

/* ---------- Services Grid ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; font-family: var(--font-sans); font-weight: 600; }
.service-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- About / Doctor ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, rgba(30, 136, 229, 0.05), transparent 30%),
    #f1f5f9 url("/wp-content/uploads/2014/04/meet_img2.jpg") center/cover;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.credentials-badges {
  display: flex;
  gap: 20px;
  margin: 28px 0 32px;
  flex-wrap: wrap;
  align-items: center;
}
.credentials-badges img {
  height: 64px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity var(--transition);
}
.credentials-badges img:hover { opacity: 1; }
.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: inherit;
  pointer-events: none;
}
.credentials {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 14px;
}
.credentials li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--color-text);
}
.credentials svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---------- Features strip ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}
.feature {
  text-align: center;
  padding: 0 12px;
}
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.feature-icon svg { width: 32px; height: 32px; }
.feature h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  position: relative;
}
.testimonial .stars {
  display: flex;
  gap: 2px;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.testimonial blockquote {
  margin: 0 0 20px;
  font-size: 1.02rem;
  color: var(--color-text);
  line-height: 1.6;
  font-style: italic;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}
.testimonial cite small {
  display: block;
  color: var(--color-muted);
  font-weight: 400;
  font-size: 0.82rem;
  margin-top: 2px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, #42A5F5 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 600px; margin: 0 auto 28px; }
.cta-band .btn-light { color: var(--color-primary-dark); }

/* ---------- Contact / Info grid ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  transition: all var(--transition);
}
.info-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.info-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-card h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.info-card p { margin: 0; font-size: 0.95rem; }
.info-card a { color: var(--color-text); font-weight: 500; }
.info-card a:hover { color: var(--color-primary); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 360px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--color-text); }
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer (zone26-style) ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: #94a3b8;
  padding: 50px 0 30px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer .brand {
  color: #fff;
  font-size: 1.35rem;
}
.site-footer .brand:hover { color: var(--color-primary); }
.footer-phone a {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: 0.5px;
}
.footer-phone a:hover { color: var(--color-primary); }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--container);
  margin: 30px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--color-primary); }
.shak-mark {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.7;
  transition: opacity var(--transition);
  display: inline-block;
}
.shak-mark:hover { opacity: 1; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background:
    radial-gradient(ellipse at top right, rgba(30, 136, 229, 0.14), transparent 60%),
    linear-gradient(180deg, #f0fafb 0%, #ffffff 100%);
  padding: 80px 0 60px;
  text-align: center;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.breadcrumb {
  display: inline-flex;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--color-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 60px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { font-size: 0.8rem; }
  .topbar .container { justify-content: center; text-align: center; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { padding: 10px 18px; font-size: 0.85rem; }
  .nav-cta .btn-outline { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .cta-band { padding: 48px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .page-header { padding: 60px 0 40px; }
}

/* ---------- Zocdoc widget ---------- */
.zocdoc-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all var(--transition);
  gap: 10px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.zocdoc-wrap:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-primary-dark);
}
.zocdoc-wrap img {
  max-height: 28px;
  width: auto;
}

/* ---------- Expanded service detail sections ---------- */
.service-detail {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 44px;
  margin-bottom: 24px;
  scroll-margin-top: 100px;
  transition: box-shadow var(--transition);
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  align-items: start;
}
.service-detail-body { min-width: 0; }
.service-detail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-bg-alt);
}
.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .service-detail { grid-template-columns: 1fr; gap: 24px; }
  .service-detail-image { aspect-ratio: 16 / 10; max-width: 100%; }
}
.service-detail:hover { box-shadow: var(--shadow); }
.service-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.service-detail-header .service-icon {
  margin: 0;
  flex-shrink: 0;
}
.service-detail-header h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}
.service-detail h3 {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-top: 24px;
  margin-bottom: 8px;
}
.service-detail p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.72;
}
.service-detail p:last-child { margin-bottom: 0; }

/* ---------- Philosophy highlights ---------- */
.philosophy-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.philosophy-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}
.philosophy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.philosophy-card .feature-icon {
  margin: 0 0 18px 0;
}
.philosophy-card h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.philosophy-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Service nav anchors ---------- */
.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  position: sticky;
  top: 82px;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.service-nav a {
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 500;
  transition: all var(--transition);
}
.service-nav a:hover {
  background: var(--color-primary);
  color: #fff;
}

@media (max-width: 720px) {
  .service-detail { padding: 28px 22px; }
  .service-detail-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .service-nav { padding: 14px 16px; top: 76px; }
  .service-nav a { font-size: 0.78rem; padding: 6px 10px; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Zocdoc button override --- */
.zocdoc-embed a, .zd-plugin, .zd-plugin a,
[data-type="book-button"], .zd-plugin img + span {
  background: #1E88E5 !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 6px 16px -6px rgba(30,136,229,0.55) !important;
}
.zocdoc-embed a:hover, .zd-plugin:hover {
  background: #1565C0 !important;
  transform: translateY(-2px);
}
.zocdoc-embed img {
  filter: brightness(0) invert(1) !important;
  max-height: 22px !important;
}

/* --- Hero: horizontal image above text --- */
.hero-grid {
  grid-template-columns: 1fr !important;
  max-width: 100% !important;
}
.hero-visual {
  aspect-ratio: 16/9 !important;
  max-width: 100% !important;
  order: -1;
}
.about-grid { grid-template-columns: 200px 1fr !important; }
.about-image { max-width: 200px !important; aspect-ratio: 3/4 !important; }
@media(max-width:960px) {
  .hero-visual { max-width: 100% !important; }
  .about-grid { grid-template-columns: 1fr !important; }
}

/* --- Doctor photo: wider to show full face --- */
.about-grid { grid-template-columns: 280px 1fr !important; }
.about-image { max-width: 280px !important; aspect-ratio: 1/1 !important; border-radius: 12px !important; }

/* --- Hero banner: much smaller --- */
.hero-visual {
  max-height: 200px !important;
  border-radius: 12px !important;
  margin: 0 0 20px !important;
}
@media(max-width:720px) {
  .hero-visual { max-height: 140px !important; }
  .about-grid { grid-template-columns: 1fr !important; }
}

/* --- Doctor photo: wider to show full face --- */
.about-grid { grid-template-columns: 280px 1fr !important; }
.about-image { max-width: 280px !important; aspect-ratio: 1/1 !important; border-radius: 12px !important; }

/* --- Hero banner: much smaller --- */
.hero-visual {
  max-height: 200px !important;
  border-radius: 12px !important;
  margin: 0 0 20px !important;
}
@media(max-width:720px) {
  .hero-visual { max-height: 140px !important; }
  .about-grid { grid-template-columns: 1fr !important; }
}
