/* ============================================================
   Jayanagar Dental Clinic — DEMO BASE (structure only)
   LOCAL DEMO ONLY. Not deployed. Does not touch ../jayanagar-dental/.

   Ported from the live stylesheet, with theme-able variable names:
     --navy       -> --brand
     --navy-dark  -> --brand-dark
     --orange     -> --accent
     --orange-dark-> --accent-dark
   Each theme file overrides these + a few structural hooks.
   ============================================================ */

:root {
  --brand: #0E7A88;
  --brand-dark: #0B5F6B;
  --accent: #1EAEC0;
  --accent-dark: #0E7A88;
  --text: #1f2937;
  --text-soft: #475569;
  --text-mute: #6B7280;
  /* was #9ca3af — only 2.54:1 on white, failed WCAG AA.
                            Used for reviewer subtitles; #6B7280 clears 4.8:1. */
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --bg-tint: #eceff3;
  --line: #e7e7e7;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -24px rgba(14, 122, 136, .30);
  --shadow-sm: 0 10px 28px -14px rgba(14, 122, 136, .20);
  --shadow-accent: 0 16px 36px -16px rgba(30, 174, 192, .5);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Lato', system-ui, sans-serif;
  /* Was ../../jayanagar-dental/assets/images/hero.jpg — a path outside this
     project that would 404 on deploy. Currently unreachable (theme-7 overrides
     .hero's background and disables the mobile ::before that reads this), but
     it stays a landmine if the load order ever changes, so it now points at a
     file that actually ships. */
  --hero-img: url('images/hero.jpg');
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: -.01em
}

a {
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  display: block
}

svg {
  display: block
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px
}

.eyebrow {
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent)
}

/* ---------- DEMO SWITCHER (demo-only chrome, never ships) ---------- */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 12.5px
}

.demo-bar .lbl {
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
  font-size: 11px
}

.demo-bar a {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  font-weight: 700;
  transition: .2s;
  white-space: nowrap
}

.demo-bar a:hover {
  background: rgba(255, 255, 255, .12)
}

.demo-bar a.on {
  background: #1EAEC0;
  border-color: #1EAEC0;
  color: #fff
}

.demo-bar .note {
  margin-left: auto;
  opacity: .55;
  font-size: 11.5px
}

@media(max-width:700px) {
  .demo-bar .note {
    display: none
  }
}

/* ---------- Pill badge ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-tint);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  margin-bottom: 18px
}

.badge-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 8px
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: .25s var(--ease);
  white-space: nowrap
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm)
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent)
}

.btn-ghost {
  background: #fff;
  color: var(--brand);
  border-color: var(--bg-tint)
}

.btn-ghost:hover {
  border-color: var(--brand);
  transform: translateY(-3px)
}

.btn-white {
  background: #fff;
  color: var(--brand)
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow)
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent)
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px)
}

/* ---------- Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand)
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  color: #fff
}

.logo .mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm)
}

.logo .mark svg {
  fill: var(--brand)
}

.navlinks {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
}

.navlinks a {
  position: relative;
  transition: .2s;
  white-space: nowrap;
}

.navlinks a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: .25s var(--ease)
}

.navlinks a:hover {
  color: #fff
}

.navlinks a:hover::after {
  width: 100%
}

/* ---------- Nav dropdown (About / Before & After) ---------- */
.nav-drop {
  position: relative;
}

.nav-drop-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
  position: relative;
}

.nav-drop-btn .caret {
  transition: transform .2s ease;
  flex: 0 0 10px;
}

.nav-drop-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: .25s var(--ease);
}

.nav-drop:hover .nav-drop-btn,
.nav-drop.open .nav-drop-btn {
  color: #fff;
}

.nav-drop:hover .nav-drop-btn::after,
.nav-drop.open .nav-drop-btn::after,
.nav-drop-btn.current-parent::after {
  width: 100%;
}

.nav-drop:hover .nav-drop-btn .caret,
.nav-drop.open .nav-drop-btn .caret {
  transform: rotate(180deg);
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  min-width: 190px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 44px -18px rgba(16, 35, 42, .35);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: .2s var(--ease);
  z-index: 60;
}

.nav-drop:hover .nav-drop-menu,
.nav-drop.open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-drop-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.nav-drop-menu a:hover {
  background: var(--bg-tint);
  color: var(--brand);
}

.nav-drop-menu a.current {
  color: var(--brand);
  background: var(--bg-tint);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.nav-phone {
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.burger {
  display: none;
  background: var(--accent);
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  padding: 9px 12px;
  border-radius: 10px;
}

/* ---------- Treatment Page Icons ---------- */
.tx-ico {
  width: 46px !important;
  height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  border-radius: 12px;
  background: var(--bg-tint);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.tx-ico svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  stroke: var(--brand);
}

/* ---------- Hero ---------- */
.hero {
  padding: 0;
  color: #fff;
  position: relative;
  background:
    linear-gradient(90deg, rgba(11, 95, 107, .94) 0%, rgba(11, 95, 107, .82) 42%, rgba(11, 95, 107, .35) 100%),
    var(--hero-img) center/cover no-repeat;
}

.hero .hero-inner {
  padding: 84px 22px 92px;
  max-width: 1180px
}

.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.2vw, 56px);
  margin: 0 0 18px;
  max-width: 700px;
  line-height: 1.12
}

.hero h1 span {
  color: var(--accent)
}

.hero .lead {
  color: rgba(255, 255, 255, .86);
  font-size: 17.5px;
  max-width: 560px;
  margin: 0 0 30px
}

.badge-pill.on-dark {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  backdrop-filter: blur(6px)
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  font-weight: 600;
  flex-wrap: wrap
}

.hero-trust .stars {
  display: flex;
  gap: 2px;
  color: var(--accent)
}

.hero-trust .stars svg {
  width: 15px;
  height: 15px
}

.hero-trust .sep {
  opacity: .45
}

/* ---------- Hero Photo Slideshow ---------- */
.hero-photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg)
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 24px
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1
}

/* ---------- Sections ---------- */
section {
  padding: 84px 0
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 12px 0
}

.section-head p {
  color: var(--text-soft);
  font-size: 16.5px
}

.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow)
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ph-500 {
  height: 500px
}

.ph-440 {
  height: 440px
}

.ph-430 {
  height: 430px
}

.mobile-bar {
  display: none
}

/* ---------- Before / After ---------- */
.compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 28px 0;
  -webkit-user-select: none;
  user-select: none;
  cursor: ew-resize;
  touch-action: pan-y
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none
}

.compare-before {
  clip-path: inset(0 50% 0 0)
}

.compare-tag {
  position: absolute;
  top: 16px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(11, 95, 107, .75);
  backdrop-filter: blur(4px);
  z-index: 2
}

.compare-tag.before {
  left: 16px
}

.compare-tag.after {
  right: 16px;
  background: rgba(30, 174, 192, .9)
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, .3);
  pointer-events: none;
  z-index: 2
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  color: var(--brand);
  z-index: 3
}

.compare-handle svg {
  width: 20px;
  height: 20px
}

/* ---------- Before / After (static, side-by-side) ---------- */
.ba-static {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 28px 0;
}

.ba-half {
  position: relative;
  overflow: hidden
}

.ba-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

/* ---------- Icon square ---------- */
.ico-sq {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 12px;
  background: none;
  border: none;
  display: block;
  margin-bottom: 16px;
  transition: .3s var(--ease);
  overflow: hidden
}

.ico-sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px
}

.ico-sq svg {
  width: 26px;
  height: 26px
}

.svc:hover .ico-sq {
  transform: scale(1.08) rotate(-4deg)
}

/* ---------- Strip ---------- */
.strip {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, .82)
}

.strip .wrap {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 16px 22px;
  font-size: 13.5px;
  font-weight: 600
}

.strip span {
  display: flex;
  align-items: center;
  gap: 8px
}

.strip .dot {
  color: var(--accent)
}

/* ---------- Trust / stats band ---------- */
.trust-band {
  background: var(--brand)
}

.trust-band .section-head h2 {
  color: #fff
}

.trust-band .section-head p {
  color: rgba(255, 255, 255, .7)
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px
}

.stat .stat-icon {
  width: 38px;
  height: 38px;
  color: var(--accent);
  margin-bottom: 6px
}

.stat b {
  font-size: clamp(32px, 4.6vw, 46px);
  color: #fff;
  display: inline-flex;
  line-height: 1
}

.stat small {
  color: rgba(255, 255, 255, .7);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 6px;
  display: block
}

/* ---------- Service cards ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: .3s var(--ease);
  display: block
}

.svc:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent)
}

.svc h3 {
  font-size: 18.5px;
  margin-bottom: 8px;
  color: var(--brand)
}

.svc p {
  color: var(--text-soft);
  font-size: 14px
}

.svc .more {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px
}

.svc.feature {
  background: linear-gradient(160deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: 0
}

.svc.feature h3,
.svc.feature p,
.svc.feature .more {
  color: #fff
}

.svc.feature .ico-sq {
  background: rgba(255, 255, 255, .16)
}

.svc.feature .tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px
}

/* ---------- Checks ---------- */
.checks {
  list-style: none;
  display: grid;
  gap: 14px
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px
}

.checks .c {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  margin-top: 1px
}

/* ---------- Band ---------- */
.band {
  background: var(--bg-soft)
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center
}

.band h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 12px 0 14px
}

.band p {
  color: var(--text-soft);
  font-size: 16px
}

/* ---------- Results (before/after gallery) ---------- */
.results-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px
}

.result-card {
  width: 100%;
  max-width: 440px;
  text-align: center
}

.result-card .compare {
  margin: 0 0 18px
}

.result-card h3 {
  font-size: 19px;
  margin: 0 0 2px
}

.result-card .role {
  color: var(--text-soft);
  font-size: 14.5px
}

/* ---------- Doctors ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px
}

.doc-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: .3s var(--ease)
}

.doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm)
}

.doc-card .ava {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 26px;
  box-shadow: var(--shadow-sm);
  overflow: hidden
}

.doc-card .ava img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.doc-card h3 {
  font-size: 21px;
  margin-bottom: 2px;
  color: var(--brand)
}

.doc-card .role {
  color: var(--accent);
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 12px
}

.doc-card p {
  color: var(--text-soft);
  font-size: 14.5px;
  margin-bottom: 14px
}

.cred {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.cred span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand)
}

/* ---------- Review Carousel Slider ---------- */
.rev-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin: 32px 0 16px;
  width: 100%
}

.rev-track-container {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 12px 4px;
}

.rev-track-container::-webkit-scrollbar {
  display: none
}

.rev-track {
  display: flex;
  gap: 22px;
  width: max-content
}

.rev-card {
  flex: 0 0 340px;
  width: 340px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.rev-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(14, 122, 136, 0.12)
}

.rev-card .star-row {
  color: var(--brand);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px
}

.rev-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 22px
}

.rev-card .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto
}

.rev-card .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0
}

.rev-card .who b {
  display: block;
  font-size: 14.5px;
  color: var(--brand);
  font-weight: 700
}

.rev-card .who small {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px
}

/* Carousel Arrows */
.rev-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 25;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.rev-arrow:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-50%) scale(1.08)
}

.rev-prev {
  left: -20px
}

.rev-next {
  right: -20px
}

.rev-arrow svg {
  width: 20px;
  height: 20px;
  pointer-events: none
}

/* Dots */
.rev-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px
}

.rev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rev-dot.active {
  background: var(--brand);
  width: 24px;
  border-radius: 12px
}

/* ---------- Review grid ----------
   The HTML actually renders reviews as a static .rev-grid of .rev cards, not
   the .rev-card carousel above (that carousel wrapper is never used in the
   markup — its JS in app.js is a harmless no-op since #revTrackContainer
   doesn't exist). These cards had NO styling at all: no grid, no card box,
   and critically no size on the star SVGs, which is why they were rendering
   at native/huge size and blowing up the section's height. */
.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.rev {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.rev:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(14, 122, 136, 0.12)
}

.rev .star-row {
  display: flex;
  gap: 2px;
  color: var(--brand);
  margin-bottom: 14px
}

.rev .star-row svg {
  width: 16px;
  height: 16px;
}

.rev p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);
  font-style: italic;
  flex-grow: 1;
  margin-bottom: 22px
}

.rev .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto
}

.rev .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0
}

.rev .who b {
  display: block;
  font-size: 14.5px;
  color: var(--brand);
  font-weight: 700
}

.rev .who small {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px
}

@media(max-width:768px) {
  .rev-card {
    flex: 0 0 280px;
    width: 280px
  }

  .rev-prev {
    left: 4px
  }

  .rev-next {
    right: 4px
  }
}

/* ---------- Map / Location Band ---------- */
.map-band {
  background: var(--bg-soft);
  padding: 60px 0
}

.map-band-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center
}

.map-embed {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--line)
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(.95)
}

.map-panel {
  display: flex;
  flex-direction: column;
  justify-content: center
}

.map-panel h2 {
  margin: 10px 0 14px;
  font-size: 28px;
  color: var(--brand)
}

.map-panel p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px
}

.map-marks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 18px
}

.map-marks li {
  display: flex;
  align-items: flex-start;
  gap: 14px
}

.map-marks .mk {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  margin-top: 1px;
}

.map-marks b {
  display: block;
  font-size: 15px;
  color: var(--brand);
  line-height: 1.35
}

.map-marks span:not(.mk) {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px
}

.map-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

@media(max-width:900px) {
  .map-band-wrap {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .map-embed {
    height: 300px
  }
}

/* ---------- About & Doctor Details ---------- */
.doc-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px
}

.doc-detail+.doc-detail {
  padding-top: 50px;
  border-top: 1px solid var(--line)
}

.doc-detail-photo img,
.doc-detail-photo .doc-initials {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.doc-detail-photo .doc-initials {
  display: grid;
  place-items: center;
  font-size: 56px;
  font-weight: 800;
  color: var(--brand);
  background: var(--bg-tint);
  border: 1px dashed var(--accent);
}

.doc-detail h3 {
  font-size: 24px;
  color: var(--brand);
  margin: 0 0 6px
}

.doc-detail .role {
  display: inline-block;
  background: var(--bg-tint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.cv {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 0
}

.cv li {
  position: relative;
  padding: 0 0 20px 28px;
  border-left: 2px solid var(--line);
}

.cv li:last-child {
  border-left-color: transparent;
  padding-bottom: 0
}

.cv li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
}

.cv b {
  display: block;
  font-size: 14.5px;
  color: var(--brand);
  line-height: 1.4
}

.cv span {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 3px;
  line-height: 1.5
}

.cv .yr {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand);
  background: var(--bg-tint);
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 5px;
}

/* ---------- Tech Grid & Icons ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px
}

.tech-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(14, 122, 136, 0.12)
}

.tech-item .t-ico {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg-tint);
  color: var(--brand);
}

.tech-item .t-ico svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand);
  flex-shrink: 0
}

.tech-item b {
  display: block;
  font-size: 15px;
  color: var(--brand);
  margin-bottom: 4px
}

.tech-item span {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6
}

/* ---------- Sterilisation ---------- */
.steril {
  background: var(--bg-soft);
  padding: 60px 0
}

.steril-checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px
}

.steril-checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start
}

.steril-checks .sc {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  margin-top: 2px;
  color: #fff;
}

.steril-checks .sc svg {
  width: 13px;
  height: 13px;
  stroke: #fff
}

.steril-checks b {
  display: block;
  font-size: 15px;
  color: var(--brand)
}

.steril-checks span {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
  line-height: 1.5
}

/* ---------- Trust badges (sterilisation, About page) ---------- */
.trust-badges {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px
}

.trust-badges li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm)
}

.trust-badges .tb-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 14px
}

.trust-badges .tb-ico svg {
  width: 22px;
  height: 22px
}

.trust-badges b {
  display: block;
  font-size: 15px;
  color: var(--brand);
  margin-bottom: 4px
}

.trust-badges span {
  display: block;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.55
}

@media(max-width:900px) {
  .doc-detail {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .tech-grid {
    grid-template-columns: 1fr
  }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-soft)
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start
}

.info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start
}

.icon-box {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brand)
}

.icon-box svg {
  width: 21px;
  height: 21px
}

.info-row b {
  display: block;
  color: var(--brand);
  margin-bottom: 3px;
  font-size: 14.5px
}

.info-row span,
.info-row a {
  color: var(--text-soft);
  font-size: 14.5px
}

.info-row a:hover {
  color: var(--brand)
}

.pay-badges {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 8px
}

.pay-badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand)
}

form {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  color: var(--text);
  box-shadow: var(--shadow-sm)
}

form h3 {
  font-size: 21px;
  margin-bottom: 6px;
  color: var(--brand)
}

form p.sub {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 20px
}

.field {
  margin-bottom: 16px
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--brand)
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  transition: .2s
}

.field input:focus,
.field select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 174, 192, .15)
}

form .btn {
  width: 100%;
  justify-content: center
}

/* ---------- Floating ---------- */
.float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease
}

.float.visible {
  opacity: 1;
  pointer-events: auto
}

.float a {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: .2s
}

.float a svg {
  width: 24px;
  height: 24px
}

.float a:hover {
  transform: scale(1.1)
}

.float .wa {
  background: #25d366
}

.float .call {
  background: var(--accent)
}

/* ---------- Footer ---------- */
footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, .65);
  padding: 44px 0 34px;
  font-size: 13.5px
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 28px
}

.foot-grid h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 800
}

.foot-grid a {
  display: block;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 8px
}

.foot-grid a:hover {
  color: #fff
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, .4)
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: .7s var(--ease)
}

.reveal.in {
  opacity: 1;
  transform: none
}

/* Service grid: stagger left-to-right so each row cascades in as it crosses
   the viewport, instead of all 3 cards in a row fading in at once. Rows
   already stagger against each other naturally (each crosses the
   IntersectionObserver threshold at a different scroll position) — this
   adds the missing within-row cascade. */
.svc-grid .svc.reveal:nth-child(3n+1) {
  transition-delay: 0s
}

.svc-grid .svc.reveal:nth-child(3n+2) {
  transition-delay: .12s
}

.svc-grid .svc.reveal:nth-child(3n+3) {
  transition-delay: .24s
}

@media(prefers-reduced-motion:reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }
}

/* ---------- Responsive ---------- */
@media(max-width:900px) {

  /* minmax(0,1fr), not 1fr: plain `1fr` is minmax(auto,1fr), and that `auto`
     floors the column at its content's MIN-CONTENT width. Any nowrap button or
     wide <select> inside then makes the column refuse to shrink and pushes
     horizontal scroll onto the whole page. minmax(0,…) lets it actually
     collapse. Same reason the single-column mobile layouts still overflowed. */
  .band-grid,
  .doc-grid,
  .contact-grid,
  .foot-grid {
    grid-template-columns: minmax(0, 1fr)
  }

  .ph-500,
  .ph-440,
  .ph-430 {
    height: 280px
  }

  .compare {
    aspect-ratio: 16/11
  }

  .svc-grid,
  .rev-grid {
    grid-template-columns: minmax(0, 1fr)
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px
  }

  .navlinks,
  .nav-phone {
    display: none
  }

  .burger {
    display: block
  }

  .navlinks.open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--brand-dark);
    flex-direction: column;
    padding: 20px 22px;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    z-index: 40
  }

  .navlinks.open a {
    color: #fff;
    font-size: 16px
  }

  /* Accordion, not a floating panel — the mobile nav is already a full-width
     overlay, so a second absolutely-positioned dropdown on top of it would
     clip against the viewport edge. Expand in place instead. */
  .navlinks.open .nav-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navlinks.open .nav-drop-btn {
    justify-content: center;
    color: #fff;
    font-size: 16px;
    padding: 6px 0;
    min-height: 44px;
  }

  .navlinks.open .nav-drop-btn::after {
    display: none;
  }

  .navlinks.open .nav-drop-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    border-radius: 10px;
    transition: max-height .25s ease;
  }

  .navlinks.open .nav-drop.open .nav-drop-menu {
    max-height: 160px;
    padding: 6px 0 6px 16px;
    margin-top: 6px;
  }

  .navlinks.open .nav-drop.open .nav-drop-btn .caret {
    transform: rotate(180deg);
  }

  .navlinks.open .nav-drop-menu a {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    padding: 9px 0;
    min-height: 0;
  }

  .navlinks.open .nav-drop-menu a:hover,
  .navlinks.open .nav-drop-menu a.current {
    color: #fff;
    background: none;
  }

  section {
    padding: 56px 0
  }

  .doc-card {
    flex-direction: column;
    text-align: center
  }

  .doc-card .ava {
    margin: 0 auto
  }

  .cred {
    justify-content: center
  }
}

@media(max-width:700px) {
  nav {
    height: 64px;
    flex-wrap: nowrap;
    gap: 12px
  }

  .nav-cta {
    display: none
  }

  .navlinks.open {
    top: 64px
  }

  .logo {
    font-size: 14.5px;
    gap: 9px;
    line-height: 1.25
  }

  .logo .mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px
  }

  .logo .mark svg {
    width: 18px;
    height: 18px
  }

  .float {
    display: none
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 24px -12px rgba(14, 122, 136, .28);
  }

  .mobile-bar .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 10px;
    font-size: 14.5px
  }

  body {
    padding-bottom: 84px
  }

  .hero {
    background: var(--brand)
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 258px;
    background: var(--hero-img) 38% 26%/cover no-repeat;
  }

  .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 258px;
    background: linear-gradient(180deg, rgba(11, 95, 107, .06) 0%, rgba(11, 95, 107, .20) 45%, rgba(11, 95, 107, .74) 78%, var(--brand) 100%);
  }

  .hero .hero-inner {
    position: relative;
    z-index: 2;
    padding: 222px 20px 46px
  }

  .hero h1 {
    font-size: clamp(28px, 7.6vw, 35px)
  }

  .hero .lead {
    font-size: 14.8px;
    line-height: 1.55;
    margin-bottom: 22px
  }

  .hero-cta {
    gap: 11px
  }

  .hero-cta .btn {
    flex: 1 1 100%;
    justify-content: center
  }

  .hero-trust {
    margin-top: 22px;
    font-size: 13px;
    gap: 8px
  }

  .hero-trust .sep {
    display: none
  }

  .badge-pill {
    font-size: 12px;
    padding: 7px 14px 7px 12px;
    margin-bottom: 14px
  }
}

@media(max-width:480px) {
  .wrap {
    padding: 0 16px
  }

  .ph-500,
  .ph-440,
  .ph-430 {
    height: 220px
  }

  .compare {
    aspect-ratio: 4/3
  }

  section {
    padding: 44px 0
  }

  .btn {
    padding: 13px 20px;
    font-size: 14px
  }

  .strip .wrap {
    gap: 16px 22px;
    font-size: 12.5px
  }

  .foot-grid {
    gap: 26px
  }

  form {
    padding: 24px 20px
  }
}
/* ---------- Mobile WhatsApp bubble ----------
   Below 700px the .float stack is hidden in favour of .mobile-bar, which
   only carries Call + Book. That left no WhatsApp entry point on mobile,
   which is the channel most patients here actually use. Bring back just
   the WhatsApp bubble, lifted above the bottom bar so the two don't
   collide. The .call bubble stays hidden — .mobile-bar already has it. */
@media(max-width:700px){
  .float{
    display:flex;
    bottom:calc(92px + env(safe-area-inset-bottom, 0px));
    right:16px
  }
  .float .call{display:none}
  .float a{width:52px;height:52px}
}
