/* ==========================================================================
   Spinel Dental Hamilton — Design System
   Palette: brand royal blue #1B02FF · deep navy #0C3C60 · ice #EDF5FC
            sky #6EA4CA · accent red #E21C21 (emergency only)
   Type:    Source Serif 4 (display) · Figtree (text/UI)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --brand: #1B02FF;
  --blue: #2314E0;          /* primary actions — brand blue, slightly tempered */
  --blue-dark: #1A0BB8;
  --navy: #0C3C60;
  --navy-deep: #082A45;
  --sky: #6EA4CA;
  --ice: #EDF5FC;
  --ice-soft: #F6FAFD;
  --red: #E21C21;
  --red-dark: #C01418;
  --ink: #16283A;
  --slate: #43596C;
  --mist: #7A8FA1;
  --line: #DCE7F1;
  --line-soft: #E8F0F7;
  --white: #FFFFFF;
  --gold: #C9962E;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-text: "Figtree", "Segoe UI", -apple-system, Arial, sans-serif;

  --shadow-sm: 0 1px 3px rgba(12, 60, 96, 0.08), 0 1px 2px rgba(12, 60, 96, 0.05);
  --shadow-md: 0 10px 30px rgba(12, 60, 96, 0.12), 0 3px 8px rgba(12, 60, 96, 0.06);
  --shadow-lg: 0 24px 60px rgba(8, 42, 69, 0.18);

  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --container: 1180px;
  --topbar-h: 40px;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;               /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.18;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; font-family: var(--font-text); font-weight: 700; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }

strong { color: var(--navy); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 3px solid rgba(27, 2, 255, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 12px 20px;
  z-index: 3000; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-text);
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 15px 28px; min-height: 48px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer; text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
  touch-action: manipulation;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(27, 2, 255, 0.25); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--ice); color: var(--navy); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; }

.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(226, 28, 33, 0.28); }
.btn-red:hover { background: var(--red-dark); color: #fff; }

.btn-sm { padding: 10px 20px; min-height: 42px; font-size: 0.95rem; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.92);
  font-size: 0.85rem;
  min-height: var(--topbar-h);
  display: flex; align-items: center;
  position: relative; z-index: 1200;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; width: 100%;
}
.topbar-group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; }
.topbar a:hover { color: var(--sky); text-decoration: none; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { opacity: 0.75; flex: none; }
.topbar .pill {
  background: rgba(110, 164, 202, 0.18);
  border: 1px solid rgba(110, 164, 202, 0.35);
  padding: 3px 12px; border-radius: var(--radius-pill);
  font-weight: 600; color: #DCEBF7;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1300; /* above .topbar so the open mobile menu covers it */
  /* no backdrop-filter here: it would become the containing block for the
     position:fixed mobile menu, shrinking it to the header's height */
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand img { width: 46px; height: 46px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name .brand-word {
  font-weight: 800; font-size: 1.42rem; letter-spacing: 0.16em;
  color: var(--brand); font-family: var(--font-text);
}
.brand-name .brand-sub {
  font-size: 0.68rem; letter-spacing: 0.34em; font-weight: 600;
  color: var(--slate); text-transform: uppercase; margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { margin: 0; position: relative; }
.main-nav a.nav-link, .main-nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 0.99rem var(--font-text); color: var(--ink);
  white-space: nowrap;
  padding: 10px 14px; border-radius: 8px;
  background: none; border: 0; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.main-nav a.nav-link:hover, .main-nav button.nav-link:hover {
  background: var(--ice); color: var(--blue); text-decoration: none;
}
.main-nav a.nav-link[aria-current="page"] { color: var(--blue); }
.main-nav a.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 3px; border-radius: 2px; background: var(--brand);
}
.main-nav .caret { transition: transform 0.2s ease; }
.main-nav .nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px; width: min(640px, 92vw);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1150;
}
.dropdown.open .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Desktop: the panel opens on hover or keyboard focus (no JS needed);
   clicking "Services" navigates to the services hub. */
@media (min-width: 1024px) {
  .dropdown:hover .dropdown-panel,
  .dropdown:focus-within .dropdown-panel {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .dropdown:hover .caret, .dropdown:focus-within .caret { transform: rotate(180deg); }
  /* keep the panel reachable across the hover gap */
  .dropdown-panel::before {
    content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
  }
}
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; list-style: none; margin: 0; padding: 0; }
.dropdown-grid li { margin: 0; }
.dropdown-grid a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: 0.96rem;
}
.dropdown-grid a:hover { background: var(--ice); color: var(--blue); text-decoration: none; }
.dropdown-footer {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.dropdown-footer a { font-weight: 600; font-size: 0.95rem; }

.header-cta { display: flex; align-items: center; gap: 10px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; border-radius: 8px; color: var(--navy);
}
.nav-toggle:hover { background: var(--ice); }

/* ---------- Mobile navigation panel ---------- */
@media (max-width: 1023px) {
  .main-nav {
    position: fixed; inset: 0; top: 0; z-index: 2000;
    background: #fff; overflow-y: auto;
    display: none; padding: 24px;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 56px; }
  .main-nav a.nav-link, .main-nav button.nav-link {
    width: 100%; justify-content: space-between;
    font-size: 1.12rem; padding: 14px 12px;
  }
  .main-nav a.nav-link[aria-current="page"]::after { display: none; }
  .dropdown-panel {
    position: static; transform: none; width: 100%;
    opacity: 1; visibility: hidden; box-shadow: none; border: 0;
    padding: 0 0 0 12px; display: none;
  }
  .dropdown.open .dropdown-panel { display: block; visibility: visible; transform: none; pointer-events: auto; }
  .dropdown-grid { grid-template-columns: 1fr; }
  .nav-close {
    position: absolute; top: 16px; right: 16px;
    background: var(--ice); border: 0; border-radius: 50%;
    width: 44px; height: 44px; cursor: pointer; color: var(--navy);
    display: flex; align-items: center; justify-content: center;
  }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .header-cta .header-phone-btn { display: inline-flex; }
  .mobile-nav-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
}
@media (min-width: 1024px) {
  .nav-close { display: none; }
  .mobile-nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(110, 164, 202, 0.22), transparent 60%),
    linear-gradient(180deg, var(--ice) 0%, #FBFDFF 100%);
  padding: 72px 0 84px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }

.hero .lead { font-size: 1.16rem; color: var(--slate); max-width: 34em; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero-trust li {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 7px 15px;
  font-size: 0.88rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm); margin: 0;
}
.hero-trust svg { color: var(--blue); flex: none; }

/* Background-image hero (homepage): team photo behind the title */
.hero-bg {
  background:
    linear-gradient(90deg, #F3F8FD 0%, rgba(243, 248, 253, 0.97) 48%, rgba(243, 248, 253, 0.72) 68%, rgba(243, 248, 253, 0.1) 100%),
    url("../img/team-group.jpg") right 18% / cover no-repeat, var(--ice);
  padding: 0;
}
.hero-bg .hero-inner { max-width: 620px; padding: 96px 0 104px; }
@media (max-width: 1023px) {
  .hero-bg .hero-inner { padding: 64px 0 72px; }
}
@media (max-width: 700px) {
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(243, 248, 253, 0.93) 0%, rgba(243, 248, 253, 0.88) 100%),
      url("../img/team-group.jpg") center top / cover no-repeat, var(--ice);
  }
  .hero-bg .hero-inner { padding: 48px 0 56px; }
}

/* Compact service list — replaces the big card grid on phones */
.svc-list {
  display: none; list-style: none; padding: 0; margin: 0;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-sm); overflow: hidden;
}
.svc-list li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.svc-list li:last-child { border-bottom: 0; }
.svc-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; font-weight: 600; color: var(--navy); min-height: 48px;
}
.svc-list a:hover { background: var(--ice-soft); text-decoration: none; color: var(--blue); }
.svc-list svg { color: var(--blue); flex: none; }
.svc-list .svc-list-all { color: var(--blue); font-weight: 700; }

.hero-media { position: relative; }
.hero-media > img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: #fff;
}
.hero-badge {
  position: absolute; left: -22px; bottom: 26px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 14px 20px;
  display: flex; align-items: center; gap: 12px; max-width: 300px;
}
.hero-badge img { width: 54px; height: 54px; object-fit: contain; }
.hero-badge strong { display: block; font-size: 0.95rem; line-height: 1.3; }
.hero-badge span { font-size: 0.82rem; color: var(--slate); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-ice { background: var(--ice-soft); }
.section-navy {
  background:
    radial-gradient(900px 400px at 10% 115%, rgba(110, 164, 202, 0.25), transparent 60%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 70%);
  color: rgba(255, 255, 255, 0.92);
}
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--sky); }
.section-navy .eyebrow::before { background: var(--sky); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--slate); font-size: 1.08rem; }
.section-navy .section-head p { color: rgba(255,255,255,0.78); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ice); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 8px; font-size: 1.28rem; }
.card-body p { color: var(--slate); font-size: 0.99rem; flex: 1; }
.card-link {
  margin-top: 16px; font-weight: 700; font-size: 0.97rem;
  display: inline-flex; align-items: center; gap: 7px; color: var(--blue);
}
.card-link svg { transition: transform 0.2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }
.card a.stretched::after { content: ""; position: absolute; inset: 0; }

/* Icon feature blocks */
.feature {
  display: flex; gap: 18px; align-items: flex-start;
}
.icon-circle {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ice); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.section-navy .icon-circle { background: rgba(255,255,255,0.1); color: var(--sky); }
.feature h3 { font-size: 1.15rem; font-family: var(--font-text); font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--slate); font-size: 0.97rem; margin: 0; }
.section-navy .feature p { color: rgba(255,255,255,0.75); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem); color: var(--blue); line-height: 1;
}
.section-navy .stat-num { color: var(--sky); }
.stat-label { font-weight: 600; color: var(--navy); margin-top: 8px; font-size: 0.98rem; }
.section-navy .stat-label { color: rgba(255,255,255,0.85); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li {
  padding-left: 34px; position: relative; margin-bottom: 12px; color: var(--ink);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ice) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="%231B02FF" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center no-repeat;
}

/* ---------- Emergency strip ---------- */
.emergency-strip {
  background: #fff; border: 1px solid var(--line-soft);
  border-left: 6px solid var(--red);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 28px 32px; display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap; justify-content: space-between;
}
.emergency-strip h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
.emergency-strip h3 svg { color: var(--red); }
.emergency-strip p { margin: 0; color: var(--slate); }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background:
    radial-gradient(700px 300px at 90% 10%, rgba(110,164,202,0.35), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff; padding: 64px 56px; text-align: center;
}
.cta-banner h2 { color: #fff; max-width: 18em; margin: 0 auto 14px; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 38em; margin: 0 auto 30px; font-size: 1.08rem; }
.cta-banner .hero-ctas { justify-content: center; margin: 0; }

/* ---------- Doctor spotlight / bio ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; object-fit: cover;
}
.quote {
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.5;
  color: var(--navy); border-left: 4px solid var(--brand);
  padding-left: 22px; margin: 0 0 18px; font-style: italic;
}

/* Team */
.team-card { text-align: left; }
.team-card .card-media { aspect-ratio: 1 / 1; }
.team-card .card-media img { object-position: top center; }
.team-role { color: var(--blue); font-weight: 700; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.team-langs { margin-top: 14px; font-size: 0.88rem; color: var(--mist); display: flex; align-items: center; gap: 7px; }

/* ---------- FAQ (details/summary) ---------- */
.faq { border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 26px;
  font-weight: 700; color: var(--navy); font-size: 1.05rem; position: relative;
  transition: background-color 0.18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--ice-soft); }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 22px; height: 22px; transform: translateY(-50%);
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%232314E0" stroke-width="2.4" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg>') center no-repeat;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-a { padding: 0 26px 22px; color: var(--slate); }

/* ---------- Service page layout ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--ice) 0%, #FBFDFF 100%);
  padding: 52px 0 56px;
}
.breadcrumb {
  font-size: 0.88rem; color: var(--mist); margin-bottom: 18px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  list-style: none; padding: 0;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); margin-right: 2px; }
.breadcrumb a { color: var(--slate); font-weight: 500; }
.page-hero .lead { font-size: 1.14rem; color: var(--slate); max-width: 44em; }

.svc-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px; align-items: start;
}
.svc-content h2 { margin-top: 2.2rem; }
.svc-content h2:first-child { margin-top: 0; }
.svc-content img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin: 10px 0 26px; }

.svc-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 22px; }
.aside-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 28px;
}
.aside-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.aside-card p { color: var(--slate); font-size: 0.95rem; }
.aside-card .btn { width: 100%; margin-top: 8px; }
.aside-card ul { list-style: none; padding: 0; margin: 12px 0 0; }
.aside-card ul li {
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; margin: 0;
}
.aside-card ul li:last-child { border-bottom: 0; }
.aside-card ul li span:first-child { color: var(--slate); }
.aside-card ul li span:last-child { font-weight: 600; color: var(--navy); text-align: right; }
.aside-note { font-size: 0.85rem; color: var(--mist); margin-top: 10px; }

/* Numbered process steps */
.steps { list-style: none; padding: 0; margin: 0 0 1.4em; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 66px; margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ice); color: var(--blue);
  font: 700 1.1rem var(--font-display);
  display: flex; align-items: center; justify-content: center;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px;
  width: 2px; background: var(--line-soft);
}
.steps h3 { font-size: 1.1rem; font-family: var(--font-text); font-weight: 700; margin-bottom: 4px; }
.steps p { color: var(--slate); font-size: 0.98rem; margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.94rem; color: var(--navy); }
.form-field label .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
  font: 400 1rem var(--font-text); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px 16px; min-height: 50px; background: #fff; width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 2, 255, 0.14);
}
.form-field .hint { font-size: 0.84rem; color: var(--mist); }
.form-status { display: none; border-radius: var(--radius); padding: 16px 20px; font-weight: 600; margin-top: 18px; }
.form-status.ok { display: block; background: #E8F7EE; color: #14683A; border: 1px solid #BFE7CF; }
.form-status.err { display: block; background: #FDECEC; color: #98191D; border: 1px solid #F3C2C4; }

/* ---------- Contact page ---------- */
.contact-info-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 26px 28px; height: 100%;
}
.contact-info-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.contact-info-card h3 svg { color: var(--blue); }
.contact-info-card p, .contact-info-card li { color: var(--slate); font-size: 0.98rem; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); color: var(--slate); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.map-frame {
  border: 0; width: 100%; height: 420px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block;
}

/* ---------- Finance page ---------- */
.pay-card { position: relative; }
.pay-card .card-body { padding-top: 28px; }
.pay-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--sky));
}
.tag-pill {
  display: inline-block; background: var(--ice); color: var(--blue);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
  border-radius: var(--radius-pill); padding: 4px 12px; margin-bottom: 14px;
  align-self: flex-start;
}
.compare-wrap {
  overflow-x: auto; background: #fff;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 680px; }
.compare th {
  background: var(--ice); color: var(--navy); text-align: left;
  padding: 14px 20px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.compare td { padding: 15px 20px; border-top: 1px solid var(--line-soft); color: var(--slate); vertical-align: top; }
.compare td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.compare .num { font-variant-numeric: tabular-nums; }

.pay-methods { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.pay-methods li { margin: 0; }
.pay-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 20px; font-weight: 700; color: var(--navy); font-size: 0.96rem;
  box-shadow: var(--shadow-sm); min-height: 50px;
}
.pay-chip svg { color: var(--blue); flex: none; }
.pay-chip .mc { display: inline-flex; }
.pay-chip .mc i { width: 17px; height: 17px; border-radius: 50%; display: inline-block; }
.pay-chip .mc i:first-child { background: #EB001B; }
.pay-chip .mc i:last-child { background: #F79E1B; margin-left: -7px; opacity: 0.92; }
.pay-chip .visa { font-style: italic; font-weight: 800; color: #1A1F71; letter-spacing: 0.02em; }

/* ---------- Reviews ---------- */
.review-band { text-align: center; }
.stars { display: inline-flex; gap: 4px; color: var(--gold); margin-bottom: 12px; }
.testimonial blockquote {
  margin: 0 0 18px; color: var(--slate); font-size: 0.99rem; flex: 1;
}
.testimonial figcaption { display: flex; flex-direction: column; gap: 2px; }
.testimonial figcaption strong { color: var(--navy); }
.testimonial figcaption span { font-size: 0.85rem; color: var(--mist); }
.testimonial:hover { transform: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, 0.78); font-size: 0.95rem;
  padding: 70px 0 0; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: 44px; padding-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-sub { color: var(--sky); }
.site-footer h4 { color: #fff; font-size: 0.92rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: #fff; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 13px; }
.footer-contact svg { flex: none; margin-top: 3px; color: var(--sky); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--brand); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0; font-size: 0.86rem; color: rgba(255,255,255,0.55);
}
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.65); }

/* ---------- Reveal animation ---------- */
/* Hidden state only applies when JS is running (html.js set inline in <head>),
   so content is never lost if scripts fail to load. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero-grid, .split, .svc-layout { grid-template-columns: 1fr; gap: 40px; }
  .svc-aside { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 52px 0 60px; }
  .section { padding: 64px 0; }
  .topbar-group.topbar-right { display: none; }
}
@media (max-width: 700px) {
  /* Keep the phone homepage short: deep-dive sections live on their own
     pages (About, Team, Finance…), reachable from the menu. */
  .m-hide { display: none !important; }
  .svc-list { display: block; }
  .section { padding: 52px 0; }
  .section-tight { padding: 40px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-badge { position: static; margin-top: 14px; max-width: none; }
  .cta-banner { padding: 48px 26px; }
  .emergency-strip { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .header-inner { min-height: 66px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name .brand-word { font-size: 1.2rem; }
  .topbar .container { justify-content: center; }
  .topbar-group { gap: 14px; }
  .topbar .topbar-address { display: none; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 18px; }
  .hero-ctas .btn { width: 100%; }
}
