/* Spark Dental — palette taken from the logo */
:root {
  --navy: #12446a;
  --blue: #13648a;
  --teal: #1fb2ad;
  --teal-soft: #e3f6f5;
  --sun: #f6c23e;
  --sun-soft: #fff4d6;
  --ink: #17324a;
  --muted: #5b7083;
  --bg: #ffffff;
  --tint: #f3fafb;
  --line: #dfecef;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(18, 68, 106, .25);
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
strong { color: var(--navy); }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(19, 100, 138, .7); }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { border-color: var(--teal); color: var(--blue); background: #fff; }
.btn-ghost:hover { background: var(--teal-soft); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-cta { padding: 10px 20px; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .8em;
}
.spark {
  width: 14px; height: 14px; background: var(--sun);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero-badges li {
  font-size: .9rem; font-weight: 700; color: var(--blue);
  background: var(--teal-soft); padding: 6px 14px; border-radius: 999px;
}
.hero-blob {
  position: absolute; inset: 6% 2%;
  background: radial-gradient(circle at 30% 30%, var(--sun-soft), transparent 60%),
              radial-gradient(circle at 70% 70%, var(--teal-soft), transparent 65%);
  border-radius: 50%;
}

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.muted { color: var(--muted); }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.value p { color: var(--muted); margin: 0; }
.value-icon, .service-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--teal-soft); margin-bottom: 18px;
}
.value-icon svg, .service-icon svg, .contact-list svg {
  width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.value:nth-child(3) .value-icon { background: var(--sun-soft); }

/* Services */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.service {
  grid-column: span 2;
  background: #fff; border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow); border-top: 4px solid var(--teal);
}
.service:nth-child(4), .service:nth-child(5) { grid-column: span 3; }
.service:nth-child(2) { border-top-color: var(--sun); }
.service:nth-child(4) { border-top-color: var(--blue); }
.service-tag { font-size: .9rem; font-weight: 700; color: var(--teal); margin-top: -.3em; }
.service p:last-child { color: var(--muted); margin: 0; }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor { text-align: center; padding: 32px 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.doctor p { color: var(--muted); font-size: .95rem; margin: 0; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800;
  color: #fff; background: var(--blue);
}
.avatar-teal { background: var(--teal); }
.avatar-sun { background: var(--sun); color: var(--navy); }
.avatar-navy { background: var(--navy); }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: var(--teal-soft); }
.contact-list a { font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer { background: var(--navy); color: #cfe1ec; padding: 48px 0 32px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer-logo { height: 44px; width: auto; background: #fff; padding: 6px 10px; border-radius: 12px; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: #fff; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px; margin: 0; }

/* ============ Motion & 3D ============ */
.hero { position: relative; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.orb-1 { width: 420px; height: 420px; background: var(--teal-soft); top: -120px; right: 8%; }
.orb-2 { width: 300px; height: 300px; background: var(--sun-soft); bottom: -80px; left: -60px; animation-duration: 22s; }
.orb-3 { width: 220px; height: 220px; background: #d9ecf6; top: 30%; left: 40%; animation-duration: 26s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 20px) scale(.95); }
}


.hero-art { position: relative; width: 100%; max-width: 500px; justify-self: center; display: grid; place-items: center; }
.hero-art .hero-blob { inset: 4%; animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05) rotate(6deg); } }
.hero-art img { position: relative; width: 88%; height: auto; mix-blend-mode: multiply; }

/* "Despre noi" intro with the interactive 3D tooth */
.about-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; margin-bottom: 40px; }
.about-intro .section-head { margin-bottom: 0; }
.tooth-3d { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; justify-self: center; }
.tooth-3d::before {
  content: ""; position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sun-soft), transparent 60%), radial-gradient(circle at 70% 70%, var(--teal-soft), transparent 65%);
}
#tooth-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; touch-action: pan-y; }
.tooth-3d.is-3d #tooth-canvas { opacity: 1; }
.about-intro:has(.tooth-3d:not(.is-3d)) { grid-template-columns: 1fr; }
.tooth-3d:not(.is-3d) { display: none; }
.tooth-hint {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%);
  margin: 0; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  font-size: .85rem; font-weight: 700; color: var(--blue); background: rgba(255, 255, 255, .9);
  box-shadow: 0 6px 18px -10px rgba(18, 68, 106, .5);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, -6px); } }

/* Contact map */
.contact-map { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; aspect-ratio: 4 / 3.4; background: var(--tint); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Top menu: hover pill + current section indicator */
.site-nav ul a { position: relative; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.site-nav ul { gap: 6px; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; border-radius: 3px;
  background: var(--teal); transform: translateX(-50%) scaleX(0); transition: transform .25s ease;
}
.site-nav ul a:hover { background: var(--teal-soft); color: var(--blue); }
.site-nav ul a.active { color: var(--blue); background: var(--teal-soft); }
.site-nav ul a.active::after { transform: translateX(-50%) scaleX(1); }

/* Headline words rise in, "sănătoase" shimmers */
.hero-title .word { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg); animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.shine-text {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue) 20%, var(--teal) 40%, var(--sun) 50%, var(--teal) 60%, var(--blue) 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s ease-in-out infinite;
}
.hero-title .word.shine-text { animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards, shimmer 5s ease-in-out 1s infinite; animation-delay: calc(var(--i) * 70ms + 100ms), 1s; }
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* Scroll reveal (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }


/* 3D tilt cards */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform .25s ease, box-shadow .25s ease; will-change: transform; position: relative; }
.js .tilt[data-reveal]:not(.is-visible) { transform: translateY(28px); }
.js .tilt[data-reveal].is-visible { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); }
.js [data-reveal].revealed { transition: transform .25s ease, box-shadow .25s ease; transition-delay: 0s; }
.tilt::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 178, 173, .12), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.tilt:hover { --lift: -6px; box-shadow: 0 22px 40px -18px rgba(18, 68, 106, .35); }
.tilt:hover::before { opacity: 1; }
.service-icon, .value-icon { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.tilt:hover .service-icon, .tilt:hover .value-icon { transform: rotate(-8deg) scale(1.12); }

/* Doctor avatar with a spinning gradient ring */
.avatar-wrap { position: relative; width: 108px; height: 108px; margin: 0 auto 18px; display: grid; place-items: center; }
.avatar-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--teal), var(--sun), var(--blue), var(--teal));
  -webkit-mask: radial-gradient(circle, transparent 50px, #000 51px); mask: radial-gradient(circle, transparent 50px, #000 51px);
  opacity: .35; animation: spin 8s linear infinite; transition: opacity .3s;
}
.doctor:hover .avatar-wrap::before { opacity: 1; animation-duration: 2.5s; }
.avatar-wrap .avatar { margin: 0; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.doctor:hover .avatar { transform: scale(1.06); }
@keyframes spin { to { transform: rotate(1turn); } }

/* Button shine sweep */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::after { left: 130%; }

/* Header gets a shadow once you scroll */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(18, 68, 106, .45); background: rgba(255, 255, 255, .97); }


/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .contact { grid-template-columns: 1fr; }
  .contact-map { max-width: 560px; width: 100%; }
  .hero-art { order: -1; }
  .hero-art { max-width: 380px; }
  .about-intro { grid-template-columns: 1fr; }
  .tooth-3d { max-width: 360px; }
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service:nth-child(4), .service:nth-child(5) { grid-column: auto; }
  .service:nth-child(5) { grid-column: 1 / -1; }
  .team { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; gap: 5px; padding: 12px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle .bar { width: 24px; height: 3px; background: var(--navy); border-radius: 3px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; padding: 16px 16px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 10px 14px; font-size: 1.1rem; }
  .site-nav ul a::after { left: 14px; transform: scaleX(0); transform-origin: left; bottom: 6px; }
  .site-nav ul a.active::after { transform: scaleX(1); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 32px 0 56px; }
  .values, .services, .team, .prices { grid-template-columns: 1fr; }
  .service:nth-child(5) { grid-column: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .hero-title .word { opacity: 1 !important; transform: none !important; }
  .tilt { transform: none !important; }
}

/* ============ Doctor profile modal ============ */
.doctor { position: relative; cursor: pointer; }
.doctor-open {
  margin-top: 14px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--blue);
}
.doctor-open::after { content: " →"; display: inline-block; transition: transform .2s; }
.doctor:hover .doctor-open::after { transform: translateX(4px); }
.doctor-open:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 6px; }

.doctor-modal {
  width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: 28px; background: transparent; overflow: visible;
  color: var(--ink);
}
.doctor-modal::backdrop { background: rgba(18, 68, 106, .45); backdrop-filter: blur(6px); }
.doctor-modal[open] { animation: modal-in .5s cubic-bezier(.2, 1.25, .3, 1); }
.doctor-modal[open]::backdrop { animation: fade-in .3s ease; }
.doctor-modal.closing { animation: modal-out .22s ease forwards; }
.doctor-modal.closing::backdrop { animation: fade-out .22s ease forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(40px) scale(.9); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.dm-card { position: relative; background: #fff; border-radius: 28px; overflow: auto; max-height: calc(100dvh - 48px); box-shadow: 0 40px 80px -30px rgba(18, 68, 106, .6); }
.dm-head {
  position: relative; overflow: hidden; text-align: center; padding: 40px 28px 52px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}
.dm-head::after { /* soft curve at the bottom of the header */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -36px; height: 64px;
  background: #fff; border-radius: 50% 50% 0 0;
}
.dm-head h3 { color: #fff; font-size: 1.6rem; margin: 14px 0 4px; position: relative; z-index: 1; }
.dm-role { margin: 0 auto; max-width: 30em; opacity: .92; position: relative; z-index: 1; }
.dm-avatar { position: relative; z-index: 1; margin: 0 auto; }
.dm-avatar .avatar { box-shadow: 0 0 0 4px #fff; }
.dm-spark { position: absolute; width: 18px; height: 18px; background: var(--sun); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.4s ease-in-out infinite; }
.dm-spark-1 { top: 26px; left: 14%; }
.dm-spark-2 { top: 64px; right: 13%; width: 12px; height: 12px; animation-delay: .8s; }
.dm-spark-3 { top: 120px; left: 22%; width: 10px; height: 10px; animation-delay: 1.4s; }
@keyframes twinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .5; } }

.dm-body { padding: 0 32px 8px; }
.dm-body h4 { margin: 18px 0 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
.dm-body p { margin: 0; }
.dm-body .placeholder { color: var(--muted); font-style: italic; padding: 12px 16px; background: var(--tint); border-radius: 12px; border-left: 3px solid var(--teal); }
.doctor-modal[open] .dm-body > * { animation: dm-item .5s ease both; }
.dm-body > :nth-child(2) { animation-delay: .12s !important; } .dm-body > :nth-child(3) { animation-delay: .18s !important; }
.dm-body > :nth-child(4) { animation-delay: .24s !important; } .dm-body > :nth-child(5) { animation-delay: .30s !important; }
.dm-body > :nth-child(6) { animation-delay: .36s !important; }
@keyframes dm-item { from { opacity: 0; transform: translateY(12px); } }
.dm-foot { padding: 24px 32px 32px; display: flex; justify-content: center; }

.dm-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(18, 68, 106, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px -6px rgba(18, 68, 106, .6); transition: background .2s, transform .3s;
}
.dm-close:hover { background: var(--navy); transform: rotate(90deg); }
.dm-close:focus { outline: none; }
.dm-close:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.doctor-modal:focus, .doctor-modal:focus-visible { outline: none; }
/* the card scrolls, the close button stays pinned to the modal frame */
.dm-card { scrollbar-width: thin; scrollbar-color: rgba(18, 68, 106, .3) transparent; overscroll-behavior: contain; }
.dm-card::-webkit-scrollbar { width: 6px; }
.dm-card::-webkit-scrollbar-thumb { background: rgba(18, 68, 106, .3); border-radius: 6px; }
.dm-card::-webkit-scrollbar-track { background: transparent; margin: 24px 0; }
@media (max-height: 760px) {
  .dm-head { padding: 28px 24px 44px; }
  .dm-head h3 { font-size: 1.35rem; margin-top: 10px; }
  .dm-avatar { width: 88px; height: 88px; }
  .dm-avatar .avatar { width: 72px; height: 72px; font-size: 1.4rem; }
  .dm-body h4 { margin-top: 14px; }
  .dm-foot { padding: 18px 28px 24px; }
}
.dm-close svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
html.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .doctor-modal[open], .doctor-modal[open]::backdrop, .doctor-modal[open] .dm-body > *, .dm-spark { animation: none; }
}

/* ============ Testimonials carousel ============ */
.section-reviews { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--sun-soft) 0%, #fff 45%, var(--teal-soft) 100%); }
.section-reviews::before { /* giant faded quote mark */
  content: "“"; position: absolute; top: -60px; right: 4%; font: 900 22rem/1 Georgia, serif;
  color: var(--teal); opacity: .07; pointer-events: none;
}
.section-reviews .section-head { text-align: center; margin-inline: auto; }
.stars { display: inline-flex; gap: 2px; color: var(--sun); letter-spacing: 0; text-shadow: 0 2px 6px rgba(246, 194, 62, .35); }
.rating-summary { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rating-summary .stars { font-size: 1.3rem; }
.reviews-note { font-size: .82rem; color: var(--muted); font-style: italic; margin-top: 4px; }

.carousel { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.car-track {
  --per: 3; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * 24px) / var(--per));
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 18px 4px 30px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 24px; }

.review {
  scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 26px 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -28px rgba(18, 68, 106, .45);
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s;
  position: relative;
}
.review::after { content: "”"; position: absolute; top: 6px; right: 20px; font: 900 5rem/1 Georgia, serif; color: var(--teal-soft); }
.review:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(18, 68, 106, .55); }
.review .stars { font-size: 1.15rem; position: relative; z-index: 1; }
.review .stars span { display: inline-block; }
.review.in-view .stars span { animation: star-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.review.in-view .stars span:nth-child(2) { animation-delay: .07s; } .review.in-view .stars span:nth-child(3) { animation-delay: .14s; }
.review.in-view .stars span:nth-child(4) { animation-delay: .21s; } .review.in-view .stars span:nth-child(5) { animation-delay: .28s; }
@keyframes star-pop { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; color: var(--ink); line-height: 1.65; }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.review figcaption strong { display: block; color: var(--navy); }
.review figcaption small { color: var(--muted); font-size: .85rem; }
.avatar.avatar-sm { width: 44px; height: 44px; font-size: .95rem; flex: none; }

.car-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: #fff; box-shadow: 0 10px 24px -12px rgba(18, 68, 106, .5); transition: transform .2s, background .2s;
}
.car-btn:hover { background: var(--navy); transform: scale(1.08); }
.car-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.car-btn:hover svg { stroke: #fff; }
.car-btn:disabled { opacity: .35; pointer-events: none; }

.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.car-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #c9dfe6; cursor: pointer; transition: width .3s, background .3s; }
.car-dots button[aria-selected="true"] { width: 28px; background: var(--teal); }

@media (max-width: 960px) { .car-track { --per: 2; } }
@media (max-width: 620px) {
  .car-track { --per: 1; grid-auto-columns: 86%; }
  .carousel { grid-template-columns: 1fr; }
  .car-btn { display: none; }
  .section-reviews::before { font-size: 12rem; top: -20px; }
}
@media (prefers-reduced-motion: reduce) {
  .car-track { scroll-behavior: auto; }
  .review.in-view .stars span { animation: none; }
}

/* doctor card: "Vezi profilul" aligned at the bottom */
.doctor { display: flex; flex-direction: column; align-items: center; }
.doctor-open { margin-top: auto; padding-top: 14px; }
.doctor-open::after { content: "→"; margin-left: 6px; }

/* ============ Google reviews ============ */
.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; }
.section-google { padding-top: 72px; }
.google-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: stretch; }
.g-logo { width: 22px; height: 22px; flex: none; }

.g-summary {
  position: relative; padding: 32px 28px; border-radius: 28px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center;
}
.g-demo {
  position: absolute; top: 14px; right: 14px; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--sun-soft); color: #9a6b00;
}
.g-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.g-brand .g-logo { width: 28px; height: 28px; }
.g-score { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 0; }
.g-num { font-size: 3.4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.g-score .stars { font-size: 1.5rem; }
.g-count { margin: 6px 0 18px; color: var(--muted); }
.g-bars { display: grid; gap: 6px; margin-bottom: 22px; }
.g-bars div { display: grid; grid-template-columns: 14px 1fr; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.g-bars i { height: 8px; border-radius: 8px; background: #edf2f4; position: relative; overflow: hidden; }
.g-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--sun); transition: width 1.2s cubic-bezier(.2, .8, .3, 1) .3s; }
.g-summary.is-visible .g-bars i::after, html:not(.js) .g-bars i::after { width: var(--w); }
.g-actions { display: grid; gap: 10px; }
.g-actions .btn { justify-content: center; }

.g-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; align-content: center; }
.g-review {
  padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 34px -26px rgba(18, 68, 106, .45); display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s, box-shadow .3s;
}
.g-review:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(18, 68, 106, .55); }
.g-review header { display: flex; align-items: center; gap: 10px; }
.g-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.g-meta { flex: 1; min-width: 0; }
.g-meta strong { display: block; color: var(--ink); font-size: .95rem; }
.g-meta small { color: var(--muted); font-size: .8rem; }
.g-stars { font-size: 1rem; }
.g-review p { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.6; }

@media (max-width: 1100px) { .google-wrap { grid-template-columns: 1fr; } .g-summary { max-width: 460px; margin-inline: auto; width: 100%; } }
@media (max-width: 820px) { .g-list { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { .g-bars i::after { width: var(--w); transition: none; } }

/* ============ Contact map with branded pin ============ */
#clinic-map { width: 100%; height: 100%; background: var(--tint); font: inherit; z-index: 0; }
#clinic-map .leaflet-control-zoom a { color: var(--navy); }
#clinic-map .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .8); }
.spark-pin { background: none; border: 0; }
.spark-pin .pin-body {
  position: absolute; left: 4px; top: 0; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--teal), var(--blue)); border: 3px solid #fff;
  box-shadow: 0 8px 18px -6px rgba(18, 68, 106, .7);
  animation: pin-drop .7s cubic-bezier(.3, 1.5, .5, 1) both;
}
.spark-pin .pin-body svg { width: 20px; height: 20px; fill: var(--sun); transform: rotate(45deg); }
.spark-pin .pin-pulse {
  position: absolute; left: 14px; bottom: 0; width: 20px; height: 8px; border-radius: 50%;
  background: rgba(31, 178, 173, .45); animation: pin-pulse 2s ease-out infinite;
}
@keyframes pin-drop { from { transform: translateY(-40px) rotate(-45deg); opacity: 0; } }
@keyframes pin-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
#clinic-map .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 14px 30px -12px rgba(18, 68, 106, .5); }
#clinic-map .leaflet-popup-content { margin: 12px 16px; }
.pin-popup { display: grid; gap: 4px; font-family: inherit; text-align: center; }
.pin-popup strong { color: var(--navy); font-size: 1rem; }
.pin-popup span { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.pin-popup a { color: var(--blue); font-weight: 700; font-size: .85rem; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .spark-pin .pin-body, .spark-pin .pin-pulse { animation: none; } }
/* ============ Reviews: one combined section ============ */
.section-reviews { padding: 104px 0 96px; }
.section-reviews .section-head { max-width: 640px; }
.reviews-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 36px; align-items: center; }
.reviews-layout .g-summary { box-shadow: 0 30px 60px -34px rgba(18, 68, 106, .55); border: 0; }
.reviews-layout .g-summary::before { /* soft glow ring */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--sun), transparent 40%, transparent 60%, var(--teal));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.reviews-main { min-width: 0; }
.reviews-main .carousel { display: block; }
.reviews-main .car-track { --per: 2; padding: 18px 6px 26px; }
.reviews-main .review { min-height: 100%; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.car-nav .car-dots { margin: 0; }
.car-nav .car-btn { width: 44px; height: 44px; }
.review-src { position: absolute; top: 20px; right: 20px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px -6px rgba(18, 68, 106, .5); }
.review-src .g-logo { width: 18px; height: 18px; }
.review-google::after { display: none; }

@media (max-width: 1100px) {
  .reviews-layout { grid-template-columns: 1fr; }
  .reviews-layout .g-summary { max-width: 460px; margin-inline: auto; width: 100%; }
}
@media (max-width: 700px) { .reviews-main .car-track { --per: 1; grid-auto-columns: 88%; } }
@media (max-width: 620px) { .car-nav .car-btn { display: none; } .section-reviews { padding: 72px 0; } }
