/* ============================================================
   CSS VARIABLES — Clinic Theme
   ============================================================ */
:root {
  /* Brand */
  --primary:        #1565C0;
  --primary-dark:   #0D47A1;
  --accent:         #26C6DA;
  --secondary:      #0A1628;

  /* Surfaces — light mode */
  --bg:             #F5F8FF;
  --bg-alt:         #EAF0FF;
  --text:           #0A1628;
  --text-muted:     #5A6E8C;
  --border:         #C8D8F0;

  /* Typography */
  --font-heading:   'Nunito', system-ui, sans-serif;
  --font-body:      'Inter', system-ui, sans-serif;

  /* Shape */
  --radius:         12px;
  --radius-sm:      8px;
  --shadow-sm:      0 2px 16px rgba(21,101,192,.07);
  --shadow-md:      0 8px 36px rgba(21,101,192,.13);
  --shadow-lg:      0 24px 64px rgba(21,101,192,.19);
  --transition:     .3s ease;
  --section-gap:    100px;
}

[data-theme="dark"] {
  --bg:             #0A1628;
  --bg-alt:         #0F2040;
  --text:           #E4EEFF;
  --text-muted:     #7A9ABF;
  --border:         #1E3557;
  --shadow-sm:      0 2px 16px rgba(0,0,0,.32);
  --shadow-md:      0 8px 36px rgba(0,0,0,.42);
  --shadow-lg:      0 24px 64px rgba(0,0,0,.52);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

section.section {
  padding: var(--section-gap) 0;
}

section.section.section--alt {
  background: var(--bg-alt);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ============================================================
   NAVBAR — centered links, accent underline on scroll
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  border-bottom: 2px solid transparent;
  transition: background var(--transition), border-bottom-color var(--transition),
              box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: var(--bg);
  border-bottom-color: var(--accent);
  box-shadow: 0 4px 28px rgba(21,101,192,.07);
  padding: .65rem 0;
}

[data-theme="dark"] .navbar.scrolled { background: var(--bg); }

/* Three-column grid: logo | links (centered) | actions */
.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .55rem;
  transition: color var(--transition);
}

/* Medical cross badge before brand text */
.navbar-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  font-size: 1.1rem;
  font-weight: 900;
  flex-shrink: 0;
  transition: background var(--transition);
  line-height: 1;
}

.navbar-logo {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.navbar.hero-overlap .navbar-brand { color: #fff; }
.navbar.hero-overlap .navbar-brand-icon { background: rgba(255,255,255,.2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  justify-content: center;
}

.nav-link {
  display: block;
  padding: .42rem .85rem;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--primary); background: rgba(21,101,192,.08); }

.nav-link--active {
  color: var(--primary) !important;
  background: rgba(21,101,192,.1) !important;
}

.navbar.hero-overlap .nav-link { color: rgba(255,255,255,.8); }
.navbar.hero-overlap .nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.navbar.hero-overlap .nav-link--active { color: var(--accent) !important; background: rgba(38,198,218,.15) !important; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--text);
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
}
.theme-toggle:hover { color: var(--primary); background: rgba(21,101,192,.1); }
.navbar.hero-overlap .theme-toggle { color: rgba(255,255,255,.82); }
.theme-toggle svg { width: 20px; height: 20px; }

[data-theme="light"] .icon-sun,
[data-theme="dark"]  .icon-moon { display: none; }

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .58rem 1.35rem;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .01em;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21,101,192,.35);
}

/* Mobile drawer — hidden by default */
.nav-close-item { display: none; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .35rem;
  color: var(--text);
}
.navbar.hero-overlap .hamburger { color: #fff; }
.hamburger svg { width: 24px; height: 24px; }

/* ============================================================
   HERO — clinic split layout
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #0A1628 0%, #0E2244 45%, #1565C0 100%);
  display: flex;
  flex-direction: column;
}

/* Subtle cross pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38,198,218,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,198,218,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Glow orbs */
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,101,192,.35), transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38,198,218,.12), transparent 70%);
  bottom: 80px; left: -80px;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 4rem;
  align-items: center;
  padding: 8rem 0 4rem;
}

.hero-content { color: #fff; }

.hero-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,.68);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 2.25rem;
  background: var(--accent);
  color: #0A1628;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-hero:hover {
  background: #00ACC1;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(38,198,218,.35);
  color: #0A1628;
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 2.25rem;
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color var(--transition), background var(--transition);
}
.btn-hero-ghost:hover {
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08);
  color: #fff;
}

/* Trust badges */
.hero-trust {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
}

.hero-trust-item svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Hero image */
.hero-image-wrap {
  position: relative;
  z-index: 1;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  top: -16px; right: -16px;
  bottom: 16px; left: 16px;
  border: 2px solid rgba(38,198,218,.25);
  border-radius: 20px;
  z-index: 0;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  border: 3px solid rgba(255,255,255,.1);
  display: block;
}

.hero-portrait-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 2px dashed rgba(255,255,255,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: rgba(255,255,255,.3);
  font-size: .85rem;
}

.hero-portrait-placeholder svg { width: 64px; height: 64px; opacity: .25; }

/* Stats bar */
.hero-stats-bar {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.75rem 0;
}

.hero-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: 0 3rem;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  right: 16px; bottom: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  z-index: 0;
  transition: border-color var(--transition);
}

.about-image-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
}

.about-image-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--bg-alt) 0%, var(--border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 4rem;
  font-weight: 300;
}

.about-image-badge {
  position: absolute;
  z-index: 2;
  bottom: -1rem;
  right: -1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-image-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.about-image-badge span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .8;
}

.about-body { max-width: 500px; }
.about-body .section-title { margin-bottom: 1.5rem; }
.about-body p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-values {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.about-value-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.about-value-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.about-value-label {
  font-size: .68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-header { text-align: center; margin-bottom: 3rem; }
.services-header .section-label { justify-content: center; }
.services-header .section-subtitle { margin: 0 auto; }

.services-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: .45rem 1.2rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn--active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.filter-btn--active:hover { color: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.service-card-image {
  aspect-ratio: 16/10;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}
.service-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-card-image img { transform: scale(1.05); }

/* Placeholder */
.service-card-image--placeholder {
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 55%, var(--secondary) 100%);
}
.service-card-image--placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(38,198,218,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 50%);
}
.svc-placeholder-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  z-index: 1;
}
.svc-placeholder-initial {
  position: absolute;
  bottom: -.2em;
  right: .1em;
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,.08);
  user-select: none;
  z-index: 0;
}

.service-card-body { padding: 1.35rem 1.5rem 1.5rem; }

.service-card-cat {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .4rem;
  opacity: .85;
}

.service-card-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.service-card-desc {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.service-card-price {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  padding: .3rem .85rem;
  border-radius: 20px;
  letter-spacing: .02em;
}

/* ============================================================
   GALLERY — Editorial mosaic grid (6-col, repeating 6-item pattern)
   ============================================================ */
.gallery-header { text-align: center; margin-bottom: 3.5rem; }
.gallery-header .section-label { justify-content: center; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: .6rem;
  grid-auto-flow: dense;
}

/* Default: 2-col × 1-row tile */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--bg-alt);
  grid-column: span 2;
}

/* Feature tile — wide + tall: 4-col × 2-row */
.gallery-item:nth-child(6n+1) {
  grid-column: span 4;
  grid-row: span 2;
}

/* Two portrait tiles beside the feature: 2-col × 1-row each (stack to fill 2 rows) */
.gallery-item:nth-child(6n+2),
.gallery-item:nth-child(6n+3) {
  grid-column: span 2;
}

/* Items 4, 5, 6: three equal 2-col tiles across the bottom row */
/* (default span 2 already covers this) */

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .65s ease;
}
.gallery-item:hover img { transform: scale(1.07); }

/* Overlay: invisible until hover, then slides up from bottom */
.gallery-item-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,22,40,.88) 0%, rgba(10,22,40,.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2rem .85rem .75rem;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.gallery-item:hover .gallery-item-overlay { transform: translateY(0); }

.gallery-item-caption-text {
  color: #fff;
  font-size: .8rem;
  letter-spacing: .025em;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  flex: 1;
}

.gallery-item-overlay svg {
  color: rgba(255,255,255,.9);
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-left: .5rem;
}

/* Placeholder */
.gallery-item--placeholder { cursor: default; }
.gallery-item--placeholder:hover img { transform: none; }
.gallery-item--placeholder:hover .gallery-item-overlay { transform: translateY(100%); }

.gallery-item-ph {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, var(--bg-alt) 0%, var(--border) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1.25rem .75rem;
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: .04em;
  text-align: center;
  line-height: 1.45;
}
.gallery-item-ph svg { opacity: .3; flex-shrink: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }

/* ============================================================
   REVIEWS — Typographic split-row layout (carousel)
   ============================================================ */
.reviews-header { text-align: center; margin-bottom: 3.5rem; }
.reviews-header .section-label { justify-content: center; }

/* Carousel wrapper */
.reviews-carousel { position: relative; }
.reviews-carousel-track { position: relative; }

/* Each row is absolutely positioned when inactive, relative when active */
.review-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  /* Carousel mechanics */
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.review-row:first-child { border-top: 1px solid var(--border); }
.review-row.active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Left panel: avatar, name, stars */
.review-row-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  padding-right: 2.5rem;
  padding-left: .5rem;
  border-right: 2px solid var(--accent);
}

.review-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  flex-shrink: 0;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.review-avatar-placeholder {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(38,198,218,.3);
}

.review-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  line-height: 1.2;
}

.stars { display: flex; gap: .1rem; }
.star.filled { color: #F59E0B; }
.star        { color: var(--border); font-size: .9rem; }

/* Right panel: pull quote */
.review-row-right {
  padding-left: 2.5rem;
}

.review-pull-quote {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  position: relative;
  padding-left: 1.25rem;
}

/* Opening curly quote as a decorative left element */
.review-pull-quote::before {
  content: '\201C';
  position: absolute;
  left: -.1rem;
  top: -.15rem;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--primary);
  opacity: .25;
  font-style: normal;
  font-family: Georgia, serif;
}

/* Carousel nav */
.reviews-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.reviews-carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.reviews-carousel-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.reviews-carousel-btn svg { width: 16px; height: 16px; }

.reviews-carousel-dots {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.reviews-carousel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition), width var(--transition);
}
.reviews-carousel-dot.active {
  background: var(--primary);
  width: 20px;
  border-radius: 4px;
}

/* ============================================================
   FAQs
   ============================================================ */
.faqs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 5rem;
  align-items: start;
}
.faqs-left {
  position: sticky;
  top: 7rem;
}
.faqs-left .section-label { margin-bottom: .75rem; }
.faqs-left .section-title { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 1rem; }
.faqs-deco {
  font-family: var(--font-heading);
  font-size: 7rem;
  line-height: 1;
  color: var(--border);
  user-select: none;
  font-weight: 800;
  transition: color var(--transition);
}
.faqs-items { min-width: 0; }

.faq-item {
  border-bottom: 1.5px solid var(--border);
  transition: border-color var(--transition);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }

.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease, padding .3s ease;
}
.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding-bottom: 1.5rem;
  font-size: .975rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================================
   LOCATION
   ============================================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.location-map-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .75rem;
  color: var(--text-muted);
}

.location-info .section-title { margin-bottom: 1.5rem; }

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: .975rem;
}
.location-detail svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: .2rem;
  color: var(--primary);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.hours-table td { padding: .45rem 0; font-size: .9rem; }
.hours-table td:first-child { color: var(--text); font-weight: 600; padding-right: 1.5rem; }
.hours-table td:last-child  { color: var(--text-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  background: var(--secondary);
  color: #fff;
}
[data-theme="dark"] .contact-section { background: #060E1A; }

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.contact-split-info .section-label { color: var(--accent); }
.contact-split-info .section-label::before { background: var(--accent); }
.contact-split-info .section-title {
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 1.25rem;
}
.contact-split-info .section-subtitle {
  color: rgba(255,255,255,.5);
  max-width: 100%;
  margin-bottom: 2rem;
}

.contact-split-meta {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.contact-split-meta-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.42);
  font-size: .9rem;
}
.contact-split-meta-item svg { color: var(--accent); flex-shrink: 0; opacity: .8; }
.contact-split-meta-item a { color: rgba(255,255,255,.62); transition: color var(--transition); }
.contact-split-meta-item a:hover { color: var(--accent); }
.contact-split-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}
.contact-split-cta .contact-btn { justify-content: center; }
.contact-split-cta .contact-form { max-width: 100%; }

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .95rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.contact-btn:hover { transform: translateY(-2px); }

.contact-btn--primary {
  background: var(--accent);
  color: #0A1628;
}
.contact-btn--primary:hover {
  background: #00ACC1;
  box-shadow: 0 8px 28px rgba(38,198,218,.35);
  color: #0A1628;
}

.contact-btn--ghost {
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
}
.contact-btn--ghost:hover {
  border-color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.07);
  color: #fff;
}

/* Contact form */
.contact-form { text-align: left; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .2s;
  outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.35); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* Footer email */
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .5rem;
  margin-bottom: .75rem;
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}
.footer-email:hover { color: var(--primary); border-bottom-color: var(--primary); }
.footer-email svg { flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--secondary);
  padding: 4rem 0 2rem;
}

[data-theme="dark"] .footer { background: #060E1A; }

.footer .footer-brand { color: rgba(255,255,255,.9); }
.footer .footer-tagline { color: rgba(255,255,255,.38); }
.footer .footer-email { color: rgba(255,255,255,.38); border-bottom-color: transparent; }
.footer .footer-email:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer .footer-email svg { opacity: .5; }
.footer .footer-links a { color: rgba(255,255,255,.38); }
.footer .footer-links a:hover { color: var(--accent); }
.footer .footer-social a { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.35); }
.footer .footer-social a:hover { color: var(--accent); border-color: var(--accent); background: rgba(38,198,218,.1); }
.footer .footer-bottom { border-top-color: rgba(255,255,255,.07); color: rgba(255,255,255,.25); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.footer-logo-link { display: inline-block; margin-bottom: .5rem; }

.footer-logo {
  height: 52px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .5rem;
}

.footer-tagline {
  font-size: .875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: .875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }

.footer-social {
  display: flex;
  gap: .85rem;
  margin-top: 1rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.footer-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(21,101,192,.08);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 360px; }
}

@media (max-width: 900px) {
  :root { --section-gap: 80px; }

  .hero-inner { grid-template-columns: 1fr; padding-bottom: 3rem; }
  .hero-image-wrap { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 480px; margin: 0 auto; }

  /* Gallery: collapse to 4 columns (still mosaic, feature spans 2×2 → smaller) */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
  .gallery-item:nth-child(6n+2),
  .gallery-item:nth-child(6n+3) { grid-column: span 2; }

  /* Reviews: tighten the left panel */
  .review-row { grid-template-columns: 180px 1fr; }

  .location-grid { grid-template-columns: 1fr; }

  .faqs-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .faqs-left { position: static; }
  .faqs-deco { display: none; }

  .contact-split { grid-template-columns: 1fr; gap: 3rem; }

  .hero-stats-inner { flex-wrap: wrap; gap: 1.5rem; }
  .hero-stat { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
  /* Switch from grid to flex for mobile (logo left, hamburger right) */
  .navbar-inner {
    display: flex;
    justify-content: space-between;
  }

  /* Drawer panel — slides in from the right */
  .nav-links {
    display: flex !important;   /* override list display */
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: min(300px, 80vw);
    height: 100%;
    background: var(--secondary);
    z-index: 200;
    padding: 5rem 2rem 2rem;
    gap: .25rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.4,0,.2,1), visibility .38s;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Dim backdrop */
  .navbar.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 199;
  }

  .nav-links .nav-link {
    display: block;
    padding: .85rem 1rem;
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    background: none;
  }
  .nav-links .nav-link:hover { color: var(--accent); background: rgba(255,255,255,.07); }

  .hamburger { display: flex; }

  .nav-links .nav-close-item { display: list-item; list-style: none; }
  .nav-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,.7);
    padding: .4rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
  }
  .nav-close:hover { background: rgba(255,255,255,.12); color: #fff; }

  .navbar-actions .btn-cta { display: none; }

  .hero-content { padding: 1rem 0 2rem; }
  .hero-trust { gap: 1rem; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Gallery: 2-column, smaller rows */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
  }
  .gallery-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(6n+2),
  .gallery-item:nth-child(6n+3) { grid-column: span 1; }

  /* Reviews: stack vertically */
  .review-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .review-row-left {
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 2px solid var(--accent);
    padding-right: 0;
    padding-bottom: .85rem;
  }
  .review-row-right {
    padding-left: 0;
  }
}

@media (max-width: 540px) {
  :root { --section-gap: 64px; }
  .container { padding: 0 1.25rem; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .hero-trust { flex-direction: column; gap: .75rem; }
  .hero-stats-inner { justify-content: flex-start; }
  .hero-stat { padding: 0 1rem; }
  .about-values { gap: 1.25rem; }
}

/* ============================================================
   PAGE HERO (inner pages — services, gallery)
   ============================================================ */
.page-hero {
  background: linear-gradient(145deg, #0A1628 0%, #0E2244 50%, #1565C0 100%);
  padding: 8rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(38,198,218,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,198,218,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.page-hero .section-label { color: var(--accent); justify-content: center; }
.page-hero .section-label::before { background: var(--accent); }

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #fff;
  margin-top: .5rem;
  letter-spacing: -.01em;
}

/* ============================================================
   SERVICES TOOLBAR (filter + search row)
   ============================================================ */
.services-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.services-toolbar .services-filter { margin-bottom: 0; }

.services-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.services-search-wrap svg {
  position: absolute;
  left: .85rem;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.services-search {
  padding: .48rem 1rem .48rem 2.4rem;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .85rem;
  width: 220px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.services-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}
.services-search::placeholder { color: var(--text-muted); }

/* ============================================================
   NO RESULTS / EMPTY STATE
   ============================================================ */
.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
  font-size: 1rem;
}

/* ============================================================
   VIEW ALL LINK
   ============================================================ */
.section-view-all { text-align: center; margin-top: 3rem; }

.section-view-all a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--transition);
}
.section-view-all a:hover { border-color: var(--primary); }

/* ============================================================
   ACTIVE NAV LINK (inner pages)
   ============================================================ */
.nav-link--active { color: var(--primary) !important; }

/* ============================================================
   LIGHTBOX — prev/next navigation
   ============================================================ */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
  z-index: 2;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.25); }

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  max-width: 90vw;
}

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: opacity .18s ease;
}

.lightbox-img--fade { opacity: 0; }

.lightbox-caption {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  text-align: center;
  max-width: 55ch;
  line-height: 1.5;
}

/* ============================================================
   CAROUSEL CONTROLS (shared)
   ============================================================ */
.carousel-ctrl {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.carousel-ctrl:hover:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(21,101,192,.28);
}
.carousel-ctrl:disabled { opacity: .25; cursor: default; pointer-events: none; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(21,101,192,.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease, box-shadow .2s ease;
}
.back-to-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 28px rgba(21,101,192,.55);
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE — small additions
   ============================================================ */
@media (max-width: 600px) {
  .services-toolbar { flex-direction: column; align-items: stretch; }
  .services-search  { width: 100%; }
  .lightbox-prev    { left: .6rem; width: 40px; height: 40px; }
  .lightbox-next    { right: .6rem; width: 40px; height: 40px; }
  .gallery-grid     { grid-template-columns: repeat(2, 1fr); }
}
