/* ==========================================================
   DENTAL CLINIC MASTER TEMPLATE — style.css
   ----------------------------------------------------------
   CLIENT CUSTOMIZATION: change the brand colours and fonts
   in the :root block below. Everything else inherits them.
   ========================================================== */

:root {
  /* Brand colours */
  --navy: #0e2a47;          /* headings, footer, dark sections */
  --navy-soft: #1b3d5f;
  --teal: #137575;          /* primary buttons, links, icons */
  --teal-dark: #0d5c5c;
  --aqua: #dff1f0;          /* soft icon backgrounds */
  --sky: #eef6fb;           /* very light blue sections */
  --ivory: #fbf9f4;         /* soft ivory sections */
  --white: #ffffff;
  --charcoal: #2b3440;      /* body text */
  --muted: #566473;         /* secondary text */
  --line: #e2e9ee;          /* borders */
  --gold: #a9834a;          /* optional muted accent */
  --whatsapp: #0e7a5f;
  --whatsapp-dark: #0a634d;

  /* Typography */
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;

  /* Shape & depth */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 71, .05), 0 4px 14px rgba(14, 42, 71, .05);
  --shadow: 0 2px 4px rgba(14, 42, 71, .04), 0 14px 36px rgba(14, 42, 71, .09);
  --shadow-lg: 0 24px 60px rgba(14, 42, 71, .16);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-fade .5s ease both;
}
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.section--dark :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px;
}
.skip-link:focus { top: 12px; color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 5.6vw, 4rem); letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; line-height: 1.3; }
h1 em, h2 em {
  font-family: var(--font-accent); font-style: italic; font-weight: 400;
  color: var(--teal); letter-spacing: -.01em; font-size: 1.08em;
}
p { text-wrap: pretty; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.placeholder {
  font-weight: 600; color: var(--navy);
  background: rgba(169, 131, 74, .13); border-radius: 6px; padding: 1px 7px;
  overflow-wrap: anywhere;
}
.note { font-size: .9rem; color: var(--muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--sky { background: var(--sky); }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--navy); color: #d5e0ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: #9fdcd9; }
.section--dark h2 em { color: #9fdcd9; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p { color: #c3d1de; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: center; }
.stack > * + * { margin-top: 18px; }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .97rem; line-height: 1.2; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(19, 117, 117, .25); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 8px 20px rgba(14, 122, 95, .25); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); color: #fff; }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--teal-dark); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 700; font-size: .93rem; color: var(--navy);
}
.text-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .96); border-color: var(--line); box-shadow: 0 6px 24px rgba(14, 42, 71, .07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; background: var(--teal); color: #fff;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.brand-sub { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--charcoal);
  transition: background-color .2s ease, color .2s ease;
}
.nav-link:hover { background: var(--sky); color: var(--navy); }
.nav-link[aria-current="page"] { color: var(--teal-dark); background: var(--aqua); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta-mobile { display: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--ivory); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -220px; width: 620px; height: 620px;
  border-radius: 50%; background: var(--aqua); opacity: .7;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px);
}
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-copy .lead { margin-top: 22px; max-width: 520px; }
.hero-copy .btn-row { margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: .92rem; font-weight: 600; color: var(--navy-soft); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.hero-media { position: relative; animation: rise 1s .15s cubic-bezier(.2, .7, .2, 1) both; }
.hero-photo { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 4.4; background: var(--aqua); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; left: -18px; bottom: 34px; max-width: 260px;
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow);
}
.hero-card strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.3; }
.hero-card span { font-size: .82rem; color: var(--muted); line-height: 1.35; display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--sky); overflow: hidden; padding-block: clamp(48px, 8vw, 104px); }
.page-hero::after {
  content: ""; position: absolute; right: -120px; bottom: -260px; width: 520px; height: 520px;
  border-radius: 50%; border: 60px solid rgba(19, 117, 117, .07);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 880px; font-size: clamp(2rem, 4.8vw, 3.4rem); }
.page-hero .lead { margin-top: 18px; max-width: 640px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.breadcrumb a { color: var(--teal-dark); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #9aa8b5; }

/* ---------- Icon tile ---------- */
.icon-tile {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; background: var(--aqua); color: var(--teal-dark);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--navy { background: var(--navy); color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-top: 18px; }
.card p { margin-top: 10px; color: var(--muted); font-size: .97rem; }
.trust { position: relative; z-index: 2; margin-top: clamp(-56px, -5vw, -32px); }
.trust .card { box-shadow: var(--shadow-sm); }

/* Service cards */
.service-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--aqua); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-tag {
  position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--navy); font-size: .74rem; font-weight: 700; letter-spacing: .04em;
}
.service-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 34px 24px 24px; }
.service-body .icon-tile { position: absolute; top: -26px; left: 24px; border: 4px solid #fff; width: 56px; height: 56px; }
.service-body p { margin-top: 10px; color: var(--muted); font-size: .96rem; }
.service-price { margin-top: 14px; font-size: .88rem; font-weight: 700; color: var(--navy); }
.service-price span { color: var(--muted); font-weight: 500; }
.service-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: auto; padding-top: 20px; }
.service-actions--stack { display: block; }

/* Category cards */
.cat-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.cat-card h3 { font-size: 1.1rem; }
.cat-card p { margin-top: 6px; font-size: .94rem; color: var(--muted); }
.cat-card .text-link { margin-top: 4px; min-height: 36px; }

/* Why-choose (dark) */
.why-card { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); transition: background-color .3s ease, transform .3s ease; }
.why-card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.why-card .icon-tile { background: rgba(159, 220, 217, .16); color: #9fdcd9; }
.why-card h3 { margin-top: 18px; }
.why-card p { margin-top: 8px; font-size: .95rem; color: #c3d1de; }

/* Process */
.process { counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step-num { font-family: var(--font-accent); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--teal); }
.step h3 { margin-top: 14px; }
.step p { margin-top: 8px; color: var(--muted); font-size: .96rem; }
.process-note { margin-top: 28px; text-align: center; font-size: .92rem; color: var(--muted); }

/* ---------- Media blocks ---------- */
.media-frame { position: relative; }
.media-frame img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow); background: var(--aqua); }
.media-frame--portrait img { aspect-ratio: 4 / 5; }
.media-frame--landscape img { aspect-ratio: 4 / 3; }
.media-frame::before {
  content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: var(--radius-lg);
  background: var(--aqua); z-index: -1;
}
.media-frame { z-index: 0; }
.media-badge {
  position: absolute; right: -10px; bottom: 28px; padding: 14px 18px; max-width: 220px;
  background: var(--navy); color: #fff; border-radius: 16px; font-size: .86rem; line-height: 1.4; box-shadow: var(--shadow);
}
.media-badge strong { display: block; font-size: .98rem; }
.check-list li { position: relative; padding-left: 34px; margin-top: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d5c5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section--dark .check-list li::before { background-color: #9fdcd9; }

/* Dentist profile */
.profile { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.profile-name { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.fact { padding: 14px 16px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); min-width: 0; }
.fact dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin-top: 4px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--aqua); color: var(--teal-dark); font-size: .85rem; font-weight: 600; }

/* Testimonials */
.testimonial { display: flex; flex-direction: column; height: 100%; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.testimonial svg.quote { width: 34px; height: 34px; color: var(--gold); }
.testimonial blockquote { margin-top: 16px; color: var(--charcoal); font-size: 1rem; flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--navy); }
.avatar svg { width: 22px; height: 22px; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--navy); display: block; line-height: 1.3; }
.testimonial figcaption span { font-size: .84rem; color: var(--muted); }
.demo-flag { display: inline-block; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(169, 131, 74, .14); color: #6f5529; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; align-self: flex-start; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); color: #d5e0ea;
  padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center;
}
.cta-band::after { content: ""; position: absolute; right: -90px; top: -130px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid rgba(159, 220, 217, .1); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 12px; font-size: 1.08rem; max-width: 520px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 4vw, 40px); }
.filter-btn {
  min-height: 44px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: .92rem; color: var(--charcoal);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal-dark); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-filter-item].is-hidden { display: none; }
[data-filter-item].is-entering { animation: rise .45s ease both; }
.filter-status { margin-bottom: 18px; font-size: .9rem; color: var(--muted); }
.category-block + .category-block { margin-top: clamp(40px, 6vw, 72px); }
.category-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.category-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.category-head p { color: var(--muted); font-size: .95rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.gallery-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--aqua);
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; text-align: left;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 36px 16px 14px; color: #fff; font-weight: 600; font-size: .92rem;
  background: linear-gradient(to top, rgba(8, 27, 47, .82), rgba(8, 27, 47, 0));
}
.gallery-caption small { display: block; font-weight: 600; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.env-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.env-grid figure { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--aqua); aspect-ratio: 4 / 3; grid-column: span 2; }
.env-grid figure:nth-child(-n+2) { grid-column: span 3; aspect-ratio: 16 / 10; }
.env-grid img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center;
  padding: 64px 12px 84px; background: rgba(6, 20, 36, .93);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-figure { max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 200px); border-radius: 14px; object-fit: contain; transform: scale(.97); transition: transform .3s ease; }
.lightbox.is-open .lightbox-figure img { transform: none; }
.lightbox-figure figcaption { color: #e3ecf4; font-size: .95rem; text-align: center; }
.lightbox-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center;
  transition: background-color .2s ease;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox-btn svg { width: 24px; height: 24px; }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 16px; top: 50%; margin-top: -26px; }
.lightbox-next { right: 16px; top: 50%; margin-top: -26px; }
.lightbox-count { position: absolute; top: 26px; left: 20px; color: #c9d6e2; font-size: .9rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.contact-item > div { min-width: 0; }
.contact-item h3 { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-item p, .contact-item a { margin-top: 2px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; display: block; }
.contact-item a:hover { color: var(--teal-dark); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; color: var(--navy); }
.field label span { color: #b3261e; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #cbd6de; border-radius: 12px; background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(19, 117, 117, .16); }
.field .error { font-size: .82rem; font-weight: 600; color: #b3261e; min-height: 0; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form-note { margin-top: 18px; font-size: .86rem; color: var(--muted); }
.form-status { margin-top: 14px; font-weight: 600; color: var(--teal-dark); }
.map-placeholder {
  display: grid; place-items: center; text-align: center; gap: 10px; min-height: clamp(260px, 40vw, 420px); padding: 24px;
  border: 2px dashed #b9c8d3; border-radius: var(--radius-lg); background: var(--sky); color: var(--muted);
}
.map-placeholder .icon-tile { margin-inline: auto; }
.map-embed iframe { display: block; width: 100%; height: clamp(260px, 40vw, 420px); border: 0; border-radius: var(--radius-lg); }

/* ---------- Footer ---------- */
.site-footer { background: #0a2038; color: #b9c7d5; padding-top: clamp(56px, 7vw, 88px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer a { color: #b9c7d5; }
.site-footer a:hover { color: #fff; }
.footer-links a, .footer-contact a { display: inline-flex; align-items: center; min-height: 36px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; overflow-wrap: anywhere; }
.footer-contact svg { flex: none; width: 18px; height: 18px; margin-top: 9px; color: #9fdcd9; }
.footer-contact span { padding-top: 6px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: #9db0c2; }
.footer-about { margin-top: 18px; max-width: 340px; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); transition: background-color .2s ease, border-color .2s ease; }
.social a:hover { background: var(--teal); border-color: var(--teal); }
.social svg { width: 20px; height: 20px; }
.disclaimer { margin-top: clamp(36px, 5vw, 56px); padding: 20px 22px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; line-height: 1.6; }
.disclaimer strong { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .86rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 36px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whatsapp); color: #fff; box-shadow: 0 10px 28px rgba(14, 122, 95, .4);
  transition: transform .25s ease, background-color .2s ease;
  animation: wa-in .6s 1s cubic-bezier(.2, .9, .3, 1.2) both;
}
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: wa-pulse 2.8s 2s ease-out infinite; }
.wa-float:hover { transform: scale(1.07); background: var(--whatsapp-dark); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-in { from { opacity: 0; transform: scale(.5) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes wa-pulse { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
body { padding-bottom: 0; }
.site-footer { padding-bottom: 76px; } /* keeps the floating button clear of footer text */

/* ---------- Scroll reveal (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0 round var(--radius-lg)); transition: clip-path 1s cubic-bezier(.2, .7, .2, 1); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0 round var(--radius-lg)); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-actions .btn span.long { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(14, 42, 71, .12);
    padding: 10px var(--gutter) 22px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { min-height: 50px; padding: 12px 16px; border-radius: 14px; font-size: 1.02rem; }
  .nav-cta-mobile { display: flex; margin-top: 12px; }
  .header-actions .btn { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner, .split, .profile, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { aspect-ratio: 16 / 11; border-radius: var(--radius-lg); }
  .hero-card { left: 14px; bottom: 14px; }
  .media-frame { max-width: 520px; }
  .media-frame::before { inset: 16px -10px -10px 16px; }
  .media-badge { right: 10px; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .trust.grid-4 { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 100%; }
  .form-grid, .facts { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .env-grid figure, .env-grid figure:nth-child(-n+2) { grid-column: span 6; aspect-ratio: 16 / 10; }
  .brand-sub { display: none; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .hero-card { position: static; max-width: none; margin-top: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
  .media-badge { position: static; max-width: none; margin-top: 14px; }
  .lightbox { padding: 64px 8px 96px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; margin-top: 0; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
  .service-actions .btn { flex: 1 1 100%; }
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: none; }
}

@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-name { font-size: .92rem; }
  .cat-card { flex-direction: column; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .wa-float::after { display: none; }
  .btn:hover, .card:hover, .service-card:hover, .cat-card:hover, .why-card:hover { transform: none; }
}

@media print {
  .site-header, .wa-float, .lightbox, .filters { display: none !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
}

/* ==========================================================
   CLINIC TIMINGS + DOCTOR PHOTO (client additions)
   ========================================================== */
.hours { display: grid; gap: 8px; min-width: 0; font-size: .95rem; line-height: 1.45; }
.hours-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: start; }
.hours-days { font-weight: 700; }
.hours-time { text-align: right; white-space: nowrap; }
.hours-row--closed .hours-time { font-weight: 700; color: #b3261e; }
.contact-item .hours { margin-top: 6px; color: var(--navy); }
.contact-item .hours-time { font-weight: 500; color: var(--charcoal); }
.contact-item .hours-row--closed .hours-time { color: #b3261e; font-weight: 700; }
.footer-contact .hours { flex: 1; padding-top: 6px; font-size: .92rem; }
.footer-contact .hours span { padding-top: 0; }
.footer-contact .hours-days { color: #fff; }
.footer-contact .hours-row--closed .hours-time { color: #ffb4a9; }
.hours-box { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--sky); border: 1px solid var(--line); }
.hours-box-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }
.hours-box-title svg { width: 18px; height: 18px; }
.hero-photo--portrait img { object-position: center top; }
@media (max-width: 960px) {
  .hero-media--portrait { max-width: 520px; }
  .hero-photo.hero-photo--portrait { aspect-ratio: 4 / 4.4; }
}
@media (max-width: 380px) {
  .hours-row { grid-template-columns: minmax(0, 1fr); }
  .hours-time { text-align: left; }
}
