/* ==========================================================================
   Dishay Dental Care — main stylesheet
   Brand: navy (tooth) + teal (smile) + leaf green, from the clinic logo.
   ========================================================================== */

:root {
  --primary: #1b2a6b;          /* navy from logo */
  --primary-dark: #111c4e;
  --accent: #0b8c9c;           /* teal smile curve (darkened for contrast) */
  --accent-bright: #19b4c6;
  --accent-soft: #e2f5f7;
  --leaf: #3aa76d;
  --secondary: #eef6fb;        /* soft section background */
  --text: #4d5b70;
  --heading: #1b2a6b;
  --white: #ffffff;
  --border: #1b2a6b14;
  --shadow: 0 4px 40px rgba(17, 28, 78, 0.07);
  --shadow-lg: 0 20px 60px rgba(17, 28, 78, 0.14);
  --radius: 30px;
  --radius-sm: 18px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--primary); }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }
.bg-soft { background: var(--secondary); }
.text-center { text-align: center; }
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.align-center { align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; line-height: 1.4;
  color: var(--white); background: var(--accent);
  padding: 8px 8px 8px 26px; border-radius: 99px; border: 0; cursor: pointer;
  position: relative; overflow: hidden; z-index: 1;
  transition: color .4s ease, transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 10px 24px rgba(11, 140, 156, .25);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--primary);
  transform: scaleX(0); transform-origin: right; transition: transform .45s ease; z-index: -1;
}
.btn:hover { color: var(--white); transform: translateY(-2px); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .btn-icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--white); color: var(--accent);
  display: grid; place-items: center; flex: none; transition: transform .4s ease, color .4s ease;
}
.btn:hover .btn-icon { transform: rotate(-45deg); color: var(--primary); }
.btn .btn-icon svg { width: 16px; height: 16px; }
.btn-navy { background: var(--primary); box-shadow: 0 10px 24px rgba(27, 42, 107, .25); }
.btn-navy::before { background: var(--accent); }
.btn-navy .btn-icon { color: var(--primary); }
.btn-outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn-outline .btn-icon { background: var(--primary); color: var(--white); }
.btn-outline:hover .btn-icon { background: var(--white); color: var(--primary); }
.btn-white { background: var(--white); color: var(--primary); box-shadow: none; }
.btn-white .btn-icon { background: var(--accent); color: var(--white); }
.btn-white:hover .btn-icon { color: var(--white); background: var(--accent); }
.btn-plain { padding: 14px 28px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.link-more {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--primary);
}
.link-more svg { width: 16px; height: 16px; transition: transform .3s ease; }
.link-more:hover { color: var(--accent); }
.link-more:hover svg { transform: translateX(4px); }

/* ---------- Section titles ---------- */
.section-title { margin-bottom: 50px; max-width: 760px; }
.section-title.text-center { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow svg { width: 20px; height: 20px; }
.section-title h2 span, .hero h1 span, .page-header h1 span { color: var(--accent); }
.section-title p { margin-top: 14px; font-size: 17px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.section-head-row .section-title { margin-bottom: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary); color: #d6dcf5; font-size: 14px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 46px; }
.topbar-info { display: flex; gap: 28px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--accent-bright); }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 16px; height: 16px; color: var(--accent-bright); }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08);
}
.topbar-social a:hover { background: var(--accent); color: #fff; }
.topbar-social svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(17,28,78,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--primary); }
.logo:hover { color: var(--primary); }
.logo-mark { width: 54px; height: 54px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 25px; font-weight: 800; letter-spacing: .04em; color: var(--primary); }
.logo-text em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .06em; }
.logo-text small { font-size: 10.5px; color: var(--text); font-style: italic; margin-top: 3px; }

.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link, .main-nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 99px;
  font-weight: 500; font-size: 15.5px; color: var(--primary); background: none; border: 0; cursor: pointer;
}
.main-nav a.nav-link:hover, .main-nav .nav-link.active, .main-nav button.nav-link:hover { color: var(--accent); }
.main-nav .nav-link.active { background: var(--accent-soft); }
.nav-link svg { width: 14px; height: 14px; transition: transform .3s; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 10px);
  width: 560px; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); padding: 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: all .3s ease;
}
.dropdown::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .nav-link svg { transform: rotate(180deg); }
.dropdown a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  font-size: 14.5px; font-weight: 500; color: var(--primary);
}
.dropdown a:hover { background: var(--secondary); color: var(--accent); }
.dropdown a .dd-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); flex: none; }
.dropdown a .dd-icon svg { width: 22px; height: 22px; }
.dropdown .dd-all { grid-column: 1 / -1; justify-content: center; background: var(--primary); color: #fff; margin-top: 6px; }
.dropdown .dd-all:hover { background: var(--accent); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-call { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.header-call .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.header-call .ic svg { width: 20px; height: 20px; }
.header-call span { display: flex; flex-direction: column; font-size: 12px; line-height: 1.3; }
.header-call strong { font-size: 15px; color: var(--primary); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--secondary); padding: 70px 0 0; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0;
}
.hero::before { width: 620px; height: 620px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(25,180,198,.18), transparent 70%); }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: 40px; background: radial-gradient(circle, rgba(58,167,109,.12), transparent 70%); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: end; }
.hero-content { padding-bottom: 90px; }
.hero-content p.lead { font-size: 18px; max-width: 560px; margin: 22px 0 34px; }
.hero-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.trust-chip { display: inline-flex; align-items: center; gap: 12px; }
.trust-chip .ic { width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--accent); }
.trust-chip .ic svg { width: 24px; height: 24px; }
.trust-chip strong { display: block; color: var(--primary); font-size: 15px; line-height: 1.3; }
.trust-chip span { font-size: 13.5px; }
.hero-visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.hero-arch {
  position: relative; width: 100%; max-width: 500px; aspect-ratio: 4 / 5;
  border-radius: 260px 260px 0 0; overflow: hidden; background: linear-gradient(160deg, var(--accent-bright), var(--primary));
  box-shadow: var(--shadow-lg);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35;
  animation: floaty 5s ease-in-out infinite;
}
.hero-float .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--accent); flex: none; }
.hero-float .ic svg { width: 22px; height: 22px; }
.hero-float strong { display: block; color: var(--primary); font-size: 15px; }
.hero-float.f1 { left: -10px; top: 26%; }
.hero-float.f2 { right: -10px; bottom: 18%; animation-delay: -2.5s; }
.hero-float.f2 .ic { background: var(--leaf); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Info strip below hero */
.hero-info { position: relative; z-index: 2; margin-top: -1px; }
.hero-info-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--primary); border-radius: var(--radius);
  transform: translateY(-50%); margin-bottom: -60px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.info-box { display: flex; align-items: center; gap: 18px; padding: 30px 32px; color: #c9d1ef; }
.info-box + .info-box { border-left: 1px solid rgba(255,255,255,.12); }
.info-box .ic { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--accent-bright); display: grid; place-items: center; flex: none; }
.info-box .ic svg { width: 26px; height: 26px; }
.info-box h3 { color: #fff; font-size: 17px; margin-bottom: 2px; }
.info-box a { color: #fff; font-weight: 600; }
.info-box a:hover { color: var(--accent-bright); }
.info-box p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.info-box.highlight { background: var(--accent); color: #e8fbfd; }
.info-box.highlight .ic { background: rgba(255,255,255,.18); color: #fff; }

/* ---------- About ---------- */
.about-images { position: relative; padding: 0 60px 60px 0; }
.about-images .img-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/4.4; }
.about-images .img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-images .img-sub {
  position: absolute; right: 0; bottom: 0; width: 52%; border-radius: var(--radius); overflow: hidden;
  border: 8px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 1;
}
.about-images .img-sub img { width: 100%; height: 100%; object-fit: cover; }
.circle-badge { position: absolute; left: -30px; bottom: 40px; width: 150px; height: 150px; }
.circle-badge .ring { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.circle-badge .center {
  position: absolute; inset: 28px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: #fff;
  box-shadow: 0 10px 30px rgba(11,140,156,.35);
}
.circle-badge .center svg { width: 46px; height: 46px; }
@keyframes spin { to { transform: rotate(360deg); } }
.check-list { display: grid; gap: 14px; margin: 26px 0 34px; }
.check-list.two-col { grid-template-columns: 1fr 1fr; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--primary); font-weight: 500; }
.check-list li svg { width: 24px; height: 24px; flex: none; color: var(--accent); margin-top: 2px; }

/* ---------- Service cards ---------- */
.service-card {
  position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 30px;
  overflow: hidden; z-index: 1; height: 100%; display: flex; flex-direction: column;
  transition: transform .4s ease, box-shadow .4s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: var(--primary); z-index: -1;
  transition: height .45s ease; border-radius: var(--radius);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { height: 100%; }
.service-card .s-icon {
  width: 78px; height: 78px; border-radius: 22px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 24px; transition: background .4s, color .4s;
}
.service-card .s-icon svg { width: 46px; height: 46px; }
.service-card h3 { font-size: 20px; transition: color .4s; }
.service-card h3 a { color: inherit; }
.service-card p { font-size: 15px; flex: 1; transition: color .4s; }
.service-card .link-more { transition: color .4s; }
.service-card:hover .s-icon { background: var(--accent); color: #fff; }
.service-card:hover h3, .service-card:hover .link-more { color: #fff; }
.service-card:hover p { color: #c9d1ef; }
.service-card .s-num { position: absolute; top: 24px; right: 28px; font-size: 44px; font-weight: 800; color: var(--secondary); line-height: 1; transition: color .4s; z-index: -1; }
.service-card:hover .s-num { color: rgba(255,255,255,.07); }
.services-footer { text-align: center; margin-top: 50px; }
.services-footer p { margin-bottom: 18px; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 40px; align-items: center; }
.why-col { display: grid; gap: 46px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-col.left .why-item { flex-direction: row-reverse; text-align: right; }
.why-item .ic { width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--accent); flex: none; transition: all .4s; }
.why-item:hover .ic { background: var(--accent); color: #fff; transform: rotate(-8deg); }
.why-item .ic svg { width: 30px; height: 30px; }
.why-item h3 { font-size: 18px; margin-bottom: 6px; }
.why-item p { font-size: 15px; margin: 0; }
.why-image { position: relative; border-radius: 260px 260px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-lg); }
.why-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stats band ---------- */
.stats-band { position: relative; background: var(--primary); color: #c9d1ef; overflow: hidden; }
.stats-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(25,180,198,.12);
}
.stats-band .grid { position: relative; z-index: 1; }
.stat { text-align: center; padding: 10px; }
.stat .ic { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--accent-bright); }
.stat .ic svg { width: 32px; height: 32px; }
.stat .num { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; color: #fff; line-height: 1.1; }
.stat p { margin: 6px 0 0; font-size: 15px; }

/* ---------- Doctor ---------- */
.doctor-card { display: grid; grid-template-columns: 380px 1fr; gap: 70px; align-items: center; }
.doctor-photo { position: relative; }
.doctor-photo .frame {
  border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; background: linear-gradient(160deg, #6b4a2f, #2b1d12);
  aspect-ratio: 3/4; box-shadow: var(--shadow-lg); border: 10px solid #fff;
}
.doctor-photo .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor-photo .name-tag {
  position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); background: var(--accent); color: #fff;
  padding: 12px 26px; border-radius: 99px; white-space: nowrap; text-align: center; line-height: 1.3; box-shadow: var(--shadow-lg);
}
.doctor-photo .name-tag strong { display: block; font-size: 17px; }
.doctor-photo .name-tag span { font-size: 13px; opacity: .9; }
.doctor-photo .leaf-deco { position: absolute; top: -20px; right: -10px; width: 90px; color: var(--leaf); opacity: .9; }
.quote-box {
  position: relative; background: var(--secondary); border-radius: var(--radius-sm); padding: 26px 30px 26px 76px; margin: 26px 0;
  color: var(--primary); font-weight: 500; font-style: italic;
}
.quote-box svg { position: absolute; left: 24px; top: 24px; width: 34px; height: 34px; color: var(--accent); }
.expertise-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px; }
.expertise-tags span { background: #fff; border: 1px solid var(--border); border-radius: 99px; padding: 8px 16px; font-size: 14px; color: var(--primary); font-weight: 500; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step-card { position: relative; background: #fff; border-radius: var(--radius); padding: 36px 28px 30px; box-shadow: var(--shadow); text-align: center; height: 100%; }
.step-card .step-no {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff;
  font-weight: 700; font-size: 14px; padding: 6px 16px; border-radius: 99px; letter-spacing: .05em;
}
.step-card .ic { width: 76px; height: 76px; margin: 8px auto 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.step-card .ic svg { width: 36px; height: 36px; }
.step-card h3 { font-size: 18px; }
.step-card p { font-size: 15px; margin: 0; }
.steps-line { position: relative; }
.steps-line::before { content: ""; position: absolute; top: 50%; left: 8%; right: 8%; border-top: 2px dashed #19b4c655; z-index: 0; }
.steps-line > * { position: relative; z-index: 1; }

/* ---------- Before / after ---------- */
.ba-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.ba-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; padding: 12px; }
.ba-image img { border-radius: 20px; }
.ba-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 32px; }
.ba-point { background: #fff; border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow); }
.ba-point strong { display: block; color: var(--primary); }
.ba-point span { font-size: 14px; }

/* ---------- Testimonials ---------- */
.review-summary { display: flex; align-items: center; gap: 18px; background: #fff; border-radius: 22px; padding: 18px 24px; box-shadow: var(--shadow); }
.review-summary .g { width: 46px; height: 46px; }
.review-summary strong { display: block; color: var(--primary); font-size: 18px; }
.stars { display: inline-flex; gap: 3px; color: #f5b301; }
.stars svg { width: 18px; height: 18px; }
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); height: 100%; display: flex; flex-direction: column; }
.testimonial-card .q { width: 42px; height: 42px; color: var(--accent); opacity: .35; margin-bottom: 10px; }
.testimonial-card p { flex: 1; font-size: 15.5px; color: var(--primary); }
.testimonial-card .who { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--border); margin-top: 10px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 18px; flex: none; }
.testimonial-card .who strong { display: block; color: var(--primary); line-height: 1.3; }
.testimonial-card .who span { font-size: 13px; }
.placeholder-note { font-size: 13px; color: #8a6d00; background: #fff8e0; border: 1px dashed #e6c85c; padding: 6px 12px; border-radius: 10px; display: inline-block; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 20px; }
.gallery-grid .g-item { position: relative; border-radius: 22px; overflow: hidden; cursor: zoom-in; background: var(--secondary); border: 0; padding: 0; }
.gallery-grid .g-item.wide { grid-column: span 2; }
.gallery-grid .g-item.tall { grid-row: span 2; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-grid .g-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(17,28,78,.75)); opacity: 0; transition: opacity .4s;
}
.gallery-grid .g-item:hover img { transform: scale(1.07); }
.gallery-grid .g-item:hover::after { opacity: 1; }
.gallery-grid .g-cap { position: absolute; left: 18px; bottom: 14px; color: #fff; font-weight: 600; z-index: 1; opacity: 0; transform: translateY(10px); transition: all .4s; text-align: left; }
.gallery-grid .g-item:hover .g-cap { opacity: 1; transform: none; }
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-bar button { border: 0; background: #fff; box-shadow: var(--shadow); padding: 10px 22px; border-radius: 99px; color: var(--primary); font-weight: 500; cursor: pointer; }
.filter-bar button.active, .filter-bar button:hover { background: var(--accent); color: #fff; }

.lightbox { position: fixed; inset: 0; background: rgba(10,16,46,.92); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 92vw; width: auto; border-radius: 16px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--accent); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 16px; }
.faq-item { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 70px 22px 26px; position: relative; color: var(--primary); font-weight: 600; font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 22px; font-weight: 500; transition: all .3s;
}
.faq-item[open] summary::after { content: "–"; background: var(--accent); color: #fff; }
.faq-item[open] summary { color: var(--accent); }
.faq-item .faq-body { padding: 0 26px 22px; font-size: 15.5px; }
.faq-item .faq-body p:last-child { margin: 0; }
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.faq-side { position: sticky; top: 120px; }
.faq-side .img { border-radius: var(--radius); overflow: hidden; margin-top: 24px; aspect-ratio: 4/3; }
.faq-side .img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius); overflow: hidden; padding: 60px; color: #d9f4f7;
  background: linear-gradient(120deg, var(--accent) 0%, #0a6f86 55%, var(--primary) 100%);
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(255,255,255,.07); right: 10%; top: -170px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; font-size: 17px; }
.cta-band > * { position: relative; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 44px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #dbe3ef; background: var(--secondary); border-radius: 14px; padding: 14px 18px; color: var(--primary);
  transition: border-color .3s, background .3s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13.5px; margin: 14px 0 0; display: flex; gap: 8px; align-items: center; }
.form-note svg { width: 18px; height: 18px; color: #25d366; flex: none; }
.form-error { color: #c0392b; font-size: 14px; margin-top: 10px; display: none; }
.form-error.show { display: block; }

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 34px 26px; box-shadow: var(--shadow); text-align: center; }
.contact-card .ic { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; transition: all .4s; }
.contact-card:hover .ic { background: var(--accent); color: #fff; }
.contact-card .ic svg { width: 30px; height: 30px; }
.contact-card h3 { font-size: 18px; }
.contact-card p, .contact-card a { margin: 0; font-size: 15px; }
.contact-card a { display: block; color: var(--text); font-weight: 500; }
.contact-card a:hover { color: var(--accent); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 100%; min-height: 420px; background: var(--secondary); }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.contact-list { display: grid; gap: 22px; margin: 26px 0 30px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-list .ic svg { width: 24px; height: 24px; }
.contact-list strong { display: block; color: var(--primary); }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--accent); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours-table td { padding: 10px 0; border-bottom: 1px dashed #d6dfec; }
.hours-table td:last-child { text-align: right; color: var(--primary); font-weight: 600; }
.hours-table tr.closed td:last-child { color: #c0392b; }

/* ---------- Blog ---------- */
.blog-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .4s, box-shadow .4s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card .thumb { aspect-ratio: 16/10; overflow: hidden; display: block; }
.blog-card .thumb svg, .blog-card .thumb img { width: 100%; height: 100%; display: block; transition: transform .6s; }
.blog-card:hover .thumb svg { transform: scale(1.05); }
.blog-card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; gap: 14px; font-size: 13px; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; flex-wrap: wrap; }
.blog-card h3 { font-size: 19px; }
.blog-card h3 a { color: var(--primary); }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { font-size: 15px; flex: 1; }
.article { max-width: 820px; margin: 0 auto; }
.article .cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; aspect-ratio: 16/8; }
.article .cover svg { width: 100%; height: 100%; display: block; }
.article h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article ul.bullets { list-style: none; margin: 0 0 1.2em; display: grid; gap: 10px; }
.article ul.bullets li { position: relative; padding-left: 30px; }
.article ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.article .callout { background: var(--secondary); border-left: 4px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 22px 26px; margin: 30px 0; color: var(--primary); }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  position: relative; background: var(--secondary); padding: 80px 0 86px; overflow: hidden; text-align: center;
}
.page-header::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; right: -150px; top: -260px; background: radial-gradient(circle, rgba(25,180,198,.2), transparent 70%); }
.page-header::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; left: -140px; bottom: -200px; background: radial-gradient(circle, rgba(58,167,109,.14), transparent 70%); }
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 14px; }
.page-header p { max-width: 680px; margin: 0 auto 18px; font-size: 17px; }
.breadcrumb { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; background: #fff; padding: 8px 20px; border-radius: 99px; box-shadow: var(--shadow); font-size: 14px; }
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--accent); font-weight: 500; }
.breadcrumb .sep { color: #a9b4c8; }
.tooth-deco { position: absolute; width: 90px; color: var(--accent); opacity: .12; }
.tooth-deco.t1 { left: 8%; top: 22%; transform: rotate(-14deg); }
.tooth-deco.t2 { right: 10%; bottom: 16%; transform: rotate(12deg); width: 70px; }

/* ---------- Treatment detail ---------- */
.detail-layout { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: start; }
.sidebar { position: sticky; top: 118px; display: grid; gap: 30px; }
.side-box { background: var(--secondary); border-radius: var(--radius); padding: 30px 24px; }
.side-box h3 { font-size: 19px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.side-links { display: grid; gap: 8px; }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--primary); font-weight: 500; font-size: 15px; transition: all .3s; }
.side-links a svg { width: 16px; height: 16px; flex: none; }
.side-links a:hover, .side-links a.active { background: var(--accent); color: #fff; }
.side-cta { position: relative; border-radius: var(--radius); overflow: hidden; padding: 34px 28px; color: #d6dcf5; background: var(--primary); text-align: center; }
.side-cta::before { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; border: 36px solid rgba(25,180,198,.15); }
.side-cta > * { position: relative; }
.side-cta .ic { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 16px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.side-cta .ic svg { width: 30px; height: 30px; }
.side-cta h3 { color: #fff; }
.side-cta .phone { display: block; color: #fff; font-size: 21px; font-weight: 700; margin: 6px 0 20px; }
.detail-hero { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/8.5; margin-bottom: 40px; background: var(--secondary); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .badge-icon { position: absolute; left: 26px; bottom: 26px; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 20px; padding: 12px 20px 12px 12px; box-shadow: var(--shadow-lg); }
.detail-hero .badge-icon .ic { width: 58px; height: 58px; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.detail-hero .badge-icon .ic svg { width: 36px; height: 36px; }
.detail-hero .badge-icon strong { color: var(--primary); display: block; line-height: 1.3; }
.detail-hero .badge-icon span { font-size: 13px; }
.detail-content h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.detail-content h3 { margin-top: 1.6em; }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0 10px; }
.benefit { display: flex; gap: 14px; background: var(--secondary); border-radius: var(--radius-sm); padding: 20px; }
.benefit .ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--accent); display: grid; place-items: center; flex: none; }
.benefit .ic svg { width: 22px; height: 22px; }
.benefit strong { display: block; color: var(--primary); line-height: 1.35; margin-bottom: 2px; }
.benefit span { font-size: 14.5px; line-height: 1.6; }
.process-list { display: grid; gap: 16px; margin: 24px 0; counter-reset: proc; }
.process-list li { position: relative; padding: 20px 22px 20px 84px; border-radius: var(--radius-sm); border: 1px solid var(--border); counter-increment: proc; }
.process-list li::before {
  content: counter(proc, decimal-leading-zero); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
.process-list strong { color: var(--primary); display: block; }
.process-list span { font-size: 15px; }
.signs-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 10px; }
.signs-list li { background: #fff; border: 1px solid var(--border); border-radius: 99px; padding: 8px 16px; font-size: 14.5px; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }
.signs-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }

/* ---------- Values / mission ---------- */
.value-card { background: #fff; border-radius: var(--radius); padding: 36px 30px; box-shadow: var(--shadow); height: 100%; }
.value-card .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.value-card .ic svg { width: 30px; height: 30px; }
.value-card h3 { font-size: 20px; }
.value-card p { margin: 0; font-size: 15px; }
.facility-card { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3.2; }
.facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.facility-card:hover img { transform: scale(1.06); }
.facility-card .cap { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,.95); border-radius: 16px; padding: 14px 18px; }
.facility-card .cap strong { color: var(--primary); display: block; line-height: 1.3; }
.facility-card .cap span { font-size: 13.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #aab4dd; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; left: -220px; top: -260px; background: radial-gradient(circle, rgba(25,180,198,.14), transparent 70%); }
.footer-cta { position: relative; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-cta .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-top: 50px; padding-bottom: 50px; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; }
.footer-cta h2 span { color: var(--accent-bright); }
.footer-main { position: relative; display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.1fr; gap: 50px; padding: 70px 20px 60px; }
.site-footer .logo-text strong { color: #fff; }
.site-footer .logo-text em { color: var(--accent-bright); }
.site-footer .logo-text small { color: #aab4dd; }
.site-footer h3 { color: #fff; font-size: 18px; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--accent-bright); }
.footer-about p { margin: 20px 0 24px; font-size: 15px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #aab4dd; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); opacity: .6; transition: opacity .3s; }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { opacity: 1; }
.footer-contact { display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; font-size: 15px; }
.footer-contact svg { width: 20px; height: 20px; color: var(--accent-bright); flex: none; margin-top: 4px; }
.footer-contact a { color: #fff; }
.footer-contact a:hover { color: var(--accent-bright); }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: all .3s; }
.social-row a:hover { background: var(--accent); transform: translateY(-3px); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 14px; }
.footer-bottom a { color: #aab4dd; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom nav { display: flex; gap: 22px; }

/* ---------- Floating actions ---------- */
.float-actions { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; gap: 12px; }
.float-btn { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: transform .3s; position: relative; }
.float-btn:hover { transform: scale(1.08); color: #fff; }
.float-btn svg { width: 28px; height: 28px; }
.float-btn.wa { background: #25d366; }
.float-btn.wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; animation: pulse 2s infinite; z-index: -1; }
.float-btn.call { background: var(--accent); }
.float-btn.top { background: var(--primary); width: 46px; height: 46px; justify-self: center; opacity: 0; visibility: hidden; }
.float-btn.top.show { opacity: 1; visibility: visible; }
.float-btn.top svg { width: 20px; height: 20px; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.mobile-bar { display: none; }

/* ---------- Misc ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.error-page { text-align: center; padding: 120px 0; }
.error-page .big { font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; color: var(--primary); line-height: 1; display: flex; justify-content: center; align-items: center; gap: 6px; }
.error-page .big svg { width: .8em; height: .8em; color: var(--accent); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; } .reveal.d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
  .header-call { display: none; }
  .main-nav a.nav-link, .main-nav button.nav-link { padding: 10px 10px; font-size: 15px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-image { grid-column: 1 / -1; grid-row: 1; max-width: 460px; margin: 0 auto; aspect-ratio: 4/3; border-radius: var(--radius); }
  .why-col.left .why-item { flex-direction: row; text-align: left; }
}
@media (max-width: 991px) {
  .section { padding: 80px 0; }
  .topbar .topbar-hide-md { display: none; }
  .nav-toggle { display: grid; }
  .header-actions .btn { display: none; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; z-index: 200; padding: 90px 24px 30px;
    transform: translateX(100%); transition: transform .4s ease; overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a.nav-link, .main-nav button.nav-link { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 16px; }
  .dropdown { position: static; transform: none; width: auto; box-shadow: none; padding: 0 0 0 10px; grid-template-columns: 1fr; opacity: 1; visibility: visible; display: none; }
  .has-dropdown.open .dropdown { display: grid; }
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { transform: none; }
  .has-dropdown.open .nav-link svg { transform: rotate(180deg); }
  .nav-close { position: absolute; top: 22px; right: 22px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,16,46,.5); z-index: 150; opacity: 0; visibility: hidden; transition: all .3s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .mobile-nav-cta { display: block !important; margin-top: 20px; }
  .hero-grid, .doctor-card, .ba-wrap, .faq-layout, .detail-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; }
  .hero-content { padding-bottom: 20px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-info-inner { grid-template-columns: 1fr; transform: none; margin: 30px 0 0; }
  .info-box + .info-box { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .hero-info { padding-bottom: 10px; background: linear-gradient(var(--secondary) 50%, #fff 50%); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 50px; }
  .doctor-photo { max-width: 360px; margin: 0 auto 30px; }
  .faq-side, .sidebar { position: static; }
  .sidebar { order: 2; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 34px; }
  .steps-line::before { display: none; }
  .first-after-hero { padding-top: 70px; }
}
@media (max-width: 767px) {
  body { font-size: 15.5px; }
  .section { padding: 64px 0; }
  .topbar { display: none; }
  .site-header .container { min-height: 74px; }
  .logo-mark { width: 44px; height: 44px; }
  .logo-text strong { font-size: 21px; }
  .logo-text small { display: none; }
  .grid-3, .grid-4, .why-grid, .contact-cards, .benefit-grid, .ba-points, .form-grid, .check-list.two-col { grid-template-columns: 1fr; }
  .why-image { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding-top: 50px; }
  .about-images { padding: 0 30px 40px 0; }
  .circle-badge { width: 110px; height: 110px; left: -6px; }
  .circle-badge .center { inset: 20px; }
  .circle-badge .center svg { width: 32px; height: 32px; }
  .hero-float { padding: 10px 14px; font-size: 12.5px; }
  .hero-float.f1 { left: 0; } .hero-float.f2 { right: 0; }
  .form-card { padding: 28px 22px; }
  .gallery-grid .g-item.wide { grid-column: span 2; }
  .gallery-grid .g-item.tall { grid-row: span 1; }
  .float-actions { bottom: 84px; right: 14px; }
  .float-btn.call { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; box-shadow: 0 -6px 24px rgba(17,28,78,.12);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 10px; font-weight: 600; color: var(--primary); }
  .mobile-bar a + a { background: var(--accent); color: #fff; }
  .mobile-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: 58px; }
  .footer-bottom nav { flex-wrap: wrap; gap: 14px; }
  .detail-hero .badge-icon { left: 14px; bottom: 14px; padding: 8px 14px 8px 8px; }
  .detail-hero .badge-icon .ic { width: 44px; height: 44px; }
  .detail-hero { aspect-ratio: 4/3; }
  .page-header { padding: 60px 0 64px; }
  .tooth-deco { display: none; }
}
.mobile-nav-cta, .nav-close { display: none; }
.nav-close { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--secondary); color: var(--primary); place-items: center; cursor: pointer; }
.nav-close svg { width: 22px; height: 22px; }
.mobile-nav-cta .btn { width: 100%; justify-content: space-between; }
.mobile-nav-cta p { margin: 16px 0 0; font-size: 14px; }
@media (max-width: 991px) { .nav-close { display: grid; } }

/* ---------- Fixes / refinements ---------- */
.site-footer .logo { color: #fff; }
.gallery-grid { grid-auto-flow: dense; }
.review-summary { color: var(--primary); }
.review-summary:hover { color: var(--accent); }
.review-summary > svg:last-child { width: 22px; height: 22px; flex: none; }
.review-summary .g { flex: none; }
.review-summary strong { white-space: nowrap; }
.review-summary .stars svg { width: 16px; height: 16px; }
.ba-image { max-width: 500px; justify-self: center; }
.section-title { max-width: 820px; }
.process-list { list-style: none; padding: 0; }

/* ==========================================================================
   Motion layer (preloader, cursor, marquee, split text, hero extras)
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 3000; background: #fff; display: grid; place-items: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader-inner { display: grid; justify-items: center; gap: 18px; }
.preloader .logo-mark { width: 84px; height: 84px; color: var(--primary); animation: preloadPulse 1.2s ease-in-out infinite; }
.preloader-bar { width: 140px; height: 4px; border-radius: 4px; background: var(--accent-soft); overflow: hidden; }
.preloader-bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--accent-bright), var(--primary)); animation: preloadBar 1s ease-in-out infinite; }
@keyframes preloadPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes preloadBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
html:not(.js) .preloader, html.no-preload .preloader { display: none; }
html.loaded .preloader { opacity: 0; visibility: hidden; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2500; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent-bright), var(--leaf), var(--primary));
}

/* custom cursor (desktop with a mouse only) */
.cursor-dot, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor .cursor-dot, html.has-cursor .cursor-ring { display: block; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 2600; border-radius: 50%; }
  html.has-cursor .cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--accent); }
  html.has-cursor .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid rgba(11, 140, 156, .55);
    transition: width .3s ease, height .3s ease, margin .3s ease, background-color .3s ease, border-color .3s ease;
  }
  html.has-cursor .cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(25, 180, 198, .12); border-color: transparent; }
}

/* split-text words */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }

/* hero extras */
.hero-ring {
  position: absolute; width: 112%; max-width: 560px; aspect-ratio: 1; left: 50%; top: 4%; transform: translateX(-50%);
  border-radius: 50%; border: 2px dashed rgba(11, 140, 156, .28); animation: spin 40s linear infinite; z-index: 0;
}
.hero-arch { z-index: 1; }
.hero-float { z-index: 2; }
.hero-float .avatar-img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 28% 18%; border: 2px solid var(--leaf); flex: none; }
.hero-spark { position: absolute; z-index: 2; color: var(--accent); display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite; }
.hero-spark svg { width: 60%; height: 60%; }
.hero-spark.s1 { width: 50px; height: 50px; right: 6%; top: 8%; color: #f5b301; animation-delay: -1s; }
.hero-spark.s2 { width: 58px; height: 58px; left: 2%; bottom: 10%; animation-delay: -3s; }

/* marquee */
.marquee {
  position: relative; overflow: hidden; margin-top: 50px; padding: 20px 0;
  background: linear-gradient(90deg, var(--primary), #13457e 50%, var(--accent));
  transform: rotate(-1.2deg) scale(1.02); box-shadow: 0 16px 40px rgba(17, 28, 78, .18);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.mq-item { display: inline-flex; align-items: center; gap: 14px; padding: 0 30px; color: #fff; font-size: 19px; font-weight: 600; white-space: nowrap; }
.mq-item svg { width: 30px; height: 30px; color: var(--accent-bright); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee + .first-after-hero { padding-top: 110px; }

/* doctor photo (new clinic portrait) */
.doctor-photo .frame { background: #f3eee8; }
.doctor-photo .frame img { object-position: 30% 30%; }

/* micro-interactions */
.service-card .s-icon svg { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.service-card:hover .s-icon svg { transform: scale(1.12) rotate(-8deg); }
.step-card { transition: transform .4s ease, box-shadow .4s ease; }
.step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.step-card .ic { transition: background .4s, color .4s, transform .6s; }
.step-card:hover .ic { background: var(--accent); color: #fff; transform: rotateY(180deg); }
.value-card, .contact-card, .testimonial-card, .ba-point { transition: transform .4s ease, box-shadow .4s ease; }
.value-card:hover, .contact-card:hover, .testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.eyebrow svg { animation: wiggle 3s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
.btn .btn-icon { position: relative; overflow: hidden; }

/* booking layout */
.booking-grid { grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: start; }

/* ==========================================================================
   Mobile responsiveness pass
   ========================================================================== */
@media (max-width: 1199px) {
  .hero-grid { gap: 30px; }
  .doctor-card { grid-template-columns: 320px 1fr; gap: 50px; }
  .detail-layout { grid-template-columns: 290px 1fr; gap: 36px; }
}
@media (max-width: 991px) {
  .booking-grid { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .marquee { margin-top: 40px; }
  .marquee + .first-after-hero { padding-top: 80px; }
  .hero-ring { width: 100%; }
  .section-head-row { align-items: flex-start; }
  .faq-layout { gap: 40px; }
  .ba-wrap { gap: 40px; }
  .footer-cta .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  h2 { font-size: clamp(1.55rem, 6.6vw, 2rem); }
  .container { padding: 0 18px; }
  .section-title { margin-bottom: 36px; }
  .section-title p { font-size: 15.5px; }
  .hero { padding-top: 36px; }
  .hero-content p.lead { font-size: 16px; margin: 16px 0 26px; }
  .hero-trust { gap: 14px; margin-top: 28px; padding-top: 22px; }
  .btn-group { gap: 12px; }
  .btn { font-size: 14.5px; padding: 6px 6px 6px 20px; }
  .btn .btn-icon { width: 34px; height: 34px; }
  .hero-visual { max-width: 360px; }
  .hero-float .avatar-img { width: 38px; height: 38px; }
  .hero-float .ic { width: 36px; height: 36px; }
  .hero-spark.s1 { width: 40px; height: 40px; right: 2%; }
  .hero-spark.s2 { display: none; }
  .info-box { padding: 22px 22px; gap: 14px; }
  .info-box .ic { width: 50px; height: 50px; }
  .marquee { padding: 14px 0; margin-top: 30px; }
  .mq-item { font-size: 16px; padding: 0 20px; }
  .mq-item svg { width: 24px; height: 24px; }
  .marquee + .first-after-hero { padding-top: 64px; }
  .service-card { padding: 28px 24px; }
  .why-col { gap: 30px; }
  .why-image { aspect-ratio: 4/3.4; }
  .stats-band .grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat .ic { width: 56px; height: 56px; }
  .doctor-photo { max-width: 300px; }
  .doctor-photo .name-tag { padding: 10px 20px; }
  .quote-box { padding: 22px 20px 22px 62px; }
  .quote-box svg { left: 18px; width: 28px; height: 28px; }
  .section-head-row { margin-bottom: 36px; gap: 20px; }
  .review-summary { width: 100%; padding: 14px 18px; }
  .review-summary strong { white-space: normal; font-size: 16px; }
  .testimonial-card { padding: 28px 24px; }
  .gallery-grid { grid-auto-rows: 150px; gap: 12px; }
  .gallery-grid .g-item { border-radius: 16px; }
  .faq-item summary { padding: 18px 60px 18px 20px; font-size: 15.5px; }
  .faq-item summary::after { right: 16px; width: 30px; height: 30px; }
  .faq-item .faq-body { padding: 0 20px 18px; }
  .cta-band { padding: 36px 24px; }
  .cta-band .btn-group { width: 100%; }
  .page-header h1 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .page-header p { font-size: 15.5px; }
  .breadcrumb { font-size: 13px; padding: 7px 16px; }
  .detail-hero .badge-icon strong { font-size: 14px; }
  .benefit { padding: 16px; }
  .process-list li { padding: 18px 16px 18px 74px; }
  .process-list li::before { left: 14px; width: 42px; height: 42px; }
  .signs-list li { font-size: 13.5px; }
  .contact-cards { gap: 16px; }
  .map-frame, .map-frame iframe { min-height: 320px; }
  .side-box, .side-cta { padding: 26px 20px; }
  .footer-cta .container { padding-top: 40px; padding-bottom: 40px; }
  .footer-bottom .container { flex-direction: column; text-align: center; align-items: center; }
  .footer-bottom nav { justify-content: center; }
  .article .cover { aspect-ratio: 16/10; margin-bottom: 28px; }
  .error-page { padding: 70px 0; }
  .lightbox { padding: 16px; }
  .lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }
  .lightbox button { width: 44px; height: 44px; }
}
@media (max-width: 400px) {
  .logo-text strong { font-size: 19px; }
  .logo-mark { width: 40px; height: 40px; }
  .btn-group .btn { width: 100%; justify-content: space-between; }
  .hero-float { font-size: 11.5px; padding: 8px 10px; gap: 8px; }
  .hero-float strong { font-size: 13px; }
  .stats-band .stat .num { font-size: 2rem; }
  .stat p { font-size: 13.5px; }
}
/* keep slide-in animations from creating sideways scroll on phones (clip keeps position:sticky working) */
main { overflow-x: hidden; }
@supports (overflow: clip) { main { overflow-x: clip; } }
html, body { max-width: 100%; }
/* split words inherit colour from their real parent (keeps accent spans teal, the rest navy/white) */
.w, .wi { color: inherit !important; }
.reveal > h2 > span:not(.w) { color: var(--accent); }
/* doctor portrait: trim the dark strip at the top of the source photo */
.doctor-photo .frame { aspect-ratio: 3 / 3.85; }
.doctor-photo .frame img { object-position: 30% 100%; }
@media (max-width: 767px) {
  .float-actions { right: 12px; bottom: 74px; gap: 10px; }
  .float-btn.wa { width: 50px; height: 50px; }
  .float-btn.wa svg { width: 24px; height: 24px; }
  .float-btn.top { width: 40px; height: 40px; }
}
