/* ============================================
   Balfour Dental — One-page redesign
   Local CSS only
   ============================================ */

:root {
  --ink: #1a1f2c;
  --ink-soft: #4a5160;
  --muted: #717889;
  --paper: #f7f9fc;
  --paper-deep: #eef2f8;
  --surface: #ffffff;
  --blue: #1e5aff;
  --blue-deep: #1346d4;
  --blue-soft: #d6e2ff;
  --sky: #eef3ff;
  --accent: #8b7355;
  --accent-soft: #efe7db;
  --line: rgba(26, 31, 44, 0.1);
  --line-strong: rgba(26, 31, 44, 0.18);
  --danger: #b42318;
  --success: #0f7a4c;
  --shadow-soft: 0 20px 50px rgba(30, 90, 255, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 72px;
  --sticky-bar-h: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Lato", "Segoe UI", sans-serif;
  --font-body: "Lato", "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: calc(var(--sticky-bar-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(214, 226, 255, 0.55), transparent 58%),
    radial-gradient(800px 420px at 100% 12%, rgba(239, 231, 219, 0.35), transparent 50%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--sticky-bar-h);
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .sticky-book,
body.is-locked .scroll-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  background: var(--blue-deep);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head h2,
.practice-copy h2,
.contact-copy h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 34rem;
}

/* ---------- Buttons ---------- */

.btn {
  appearance: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.65rem 1.05rem;
  font-size: 0.82rem;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(30, 90, 255, 0.28);
}

.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  box-shadow: 0 10px 26px rgba(19, 70, 212, 0.32);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.practice .btn-ghost,
.modal .btn-ghost,
.contact .btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}

.practice .btn-ghost:hover,
.modal .btn-ghost:hover,
.contact .btn-ghost:hover {
  background: var(--sky);
  border-color: var(--blue);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition:
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

.site-header.is-scrolled .logo,
body.nav-open .site-header .logo {
  color: var(--ink);
}

.logo-mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
  fill: currentColor;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
  opacity: 0.9;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: #fff;
}

.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after,
.nav-desktop a.is-active::after {
  transform: scaleX(1);
}

.nav-desktop a.is-active {
  color: #fff;
  font-weight: 700;
}

.site-header.is-scrolled .nav-desktop a {
  color: var(--ink-soft);
}

.site-header.is-scrolled .nav-desktop a:hover,
.site-header.is-scrolled .nav-desktop a:focus-visible,
.site-header.is-scrolled .nav-desktop a.is-active {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 130;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  margin: 6px auto;
  transition:
    transform 0.3s var(--ease),
    background 0.3s ease,
    opacity 0.2s ease;
}

.site-header.is-scrolled .menu-toggle span,
body.nav-open .menu-toggle span {
  background: var(--ink);
}

body.nav-open .menu-toggle span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

body.nav-open .menu-toggle span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ---------- Mobile offcanvas nav ---------- */

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(10, 20, 55, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

body.nav-open .offcanvas-backdrop {
  opacity: 1;
  visibility: visible;
}

.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 190;
  width: min(100vw, 100%);
  height: 100%;
  padding: 0;
  transform: translateX(105%);
  visibility: hidden;
  transition:
    transform 0.4s var(--ease),
    visibility 0.4s ease;
  pointer-events: none;
}

body.nav-open .offcanvas {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.offcanvas-inner {
  position: relative;
  height: 100%;
  width: min(94vw, 420px);
  margin-left: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f7f9ff 0%, #ffffff 28%, #ffffff 100%);
  border-radius: 24px 0 0 24px;
  box-shadow: -24px 0 70px rgba(10, 30, 90, 0.24);
}

@media (max-width: 520px) {
  .offcanvas-inner {
    width: 100%;
    border-radius: 0;
  }
}

.offcanvas-glow {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 90, 255, 0.18), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.offcanvas-head,
.offcanvas-lede,
.offcanvas-nav,
.offcanvas-footer {
  position: relative;
  z-index: 1;
}

.offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-shrink: 0;
  padding: 1.4rem 1.35rem 1rem;
  padding-top: max(1.4rem, calc(env(safe-area-inset-top, 0px) + 0.85rem));
}

.offcanvas-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.offcanvas-brand strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.offcanvas-brand em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.offcanvas-close.modal-close {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(30, 90, 255, 0.08);
}

.offcanvas-lede {
  margin: 0;
  padding: 0 1.45rem 0.35rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.offcanvas-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 1rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.offcanvas-nav a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  padding: 1.05rem 1rem;
  border: 0;
  border-radius: 14px;
  background: transparent;
  transition:
    background 0.25s var(--ease),
    color 0.25s ease,
    transform 0.25s var(--ease);
}

.offcanvas-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 99px;
  background: var(--blue);
  opacity: 0;
  transform: scaleY(0.4);
  transition:
    opacity 0.25s ease,
    transform 0.25s var(--ease);
}

.offcanvas-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  opacity: 0.7;
}

.offcanvas-label {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.offcanvas-arrow {
  color: var(--muted);
  opacity: 0.55;
  transition:
    transform 0.25s var(--ease),
    color 0.25s ease,
    opacity 0.25s ease;
}

.offcanvas-nav a:hover,
.offcanvas-nav a:focus-visible {
  color: var(--blue-deep);
  background: rgba(30, 90, 255, 0.06);
}

.offcanvas-nav a:hover .offcanvas-arrow,
.offcanvas-nav a:focus-visible .offcanvas-arrow,
.offcanvas-nav a.is-active .offcanvas-arrow {
  color: var(--blue);
  opacity: 1;
  transform: translateX(3px);
}

.offcanvas-nav a:hover .offcanvas-num,
.offcanvas-nav a:focus-visible .offcanvas-num,
.offcanvas-nav a.is-active .offcanvas-num {
  opacity: 1;
}

.offcanvas-nav a.is-active {
  color: var(--blue-deep);
  background: linear-gradient(90deg, rgba(30, 90, 255, 0.1), rgba(30, 90, 255, 0.03));
}

.offcanvas-nav a.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.offcanvas-footer {
  flex-shrink: 0;
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(180deg, rgba(247, 249, 255, 0), #f7f9ff 28%, #f7f9ff 100%);
}

.offcanvas-footer .btn {
  width: 100%;
  padding: 1.05rem 1.25rem;
  font-size: 1rem;
  box-shadow: 0 12px 28px rgba(30, 90, 255, 0.28);
}

.offcanvas-call {
  display: grid;
  gap: 0.12rem;
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(26, 31, 44, 0.04);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.offcanvas-call span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}

.offcanvas-call strong {
  font-size: 1rem;
  color: var(--blue);
  font-weight: 700;
}

.offcanvas-call:hover {
  background: var(--sky);
  transform: translateY(-1px);
}

.offcanvas-meta {
  margin: 0.1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-parallax {
  position: absolute;
  inset: -18% 0;
  will-change: transform;
}

.hero-parallax img,
.hero-parallax picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-parallax img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12, 40, 160, 0.28) 0%, rgba(12, 40, 160, 0.12) 36%, rgba(8, 24, 110, 0.82) 100%),
    linear-gradient(90deg, rgba(8, 24, 110, 0.78) 0%, rgba(8, 24, 110, 0.32) 42%, transparent 68%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 1rem) 0 1rem;
  max-width: 40rem;
  margin-left: max(20px, calc((100% - var(--max)) / 2));
  animation: rise 1s var(--ease) both;
}

.brand-lockup {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  color: #fff;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.12rem, 2.2vw, 1.4rem);
  font-weight: 400;
  font-style: normal;
  max-width: 28ch;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.96);
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.hero-lede {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 36ch;
  margin-bottom: 1.75rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-trust {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.hero-trust li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
}

.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff;
}

.hero-scroll {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  bottom: 2rem;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  animation: pulse-soft 2.4s ease-in-out infinite;
}

/* ---------- Practice ---------- */

.practice {
  background:
    linear-gradient(180deg, var(--paper) 0%, #eef2fb 100%);
}

.practice-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.practice-copy p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.doctor-credit {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue) !important;
  letter-spacing: -0.02em;
  margin-bottom: 1.15rem !important;
}

.doctor-credit strong {
  font-weight: 700;
}

.practice-points {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.practice-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.practice-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--blue);
}

.practice-visual {
  position: relative;
}

.practice-frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: var(--sky);
}

.practice-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.practice-visual:hover .practice-frame img {
  transform: scale(1.04);
}

.practice-note {
  position: absolute;
  left: -1.5rem;
  bottom: 1.5rem;
  width: min(260px, 80%);
  background: var(--blue-deep);
  color: #fff;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  animation: float-soft 5s ease-in-out infinite;
}

.practice-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.practice-note span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

/* ---------- Services ---------- */

.services {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.services-list {
  display: grid;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease);
}

.service-row:last-child {
  border-bottom: 1px solid var(--line);
}

.service-row:hover {
  padding-left: 0.5rem;
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 0.15rem;
}

.service-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.service-body p {
  color: var(--ink-soft);
  max-width: 42rem;
  font-size: 0.98rem;
}

.emergency-banner {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 1.75rem;
  background:
    linear-gradient(120deg, var(--blue-deep), #1e5aff 65%, #3d74ff);
  color: #fff;
  border-radius: var(--radius-lg);
}

.emergency-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.emergency-banner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
}

.emergency-banner .btn-primary {
  background: #fff;
  color: var(--blue-deep);
  border-color: #fff;
}

.emergency-banner .btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

/* ---------- Testimonials ---------- */

.clients {
  background: #1e5aff;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.clients-inner {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.clients-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.clients .eyebrow {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.testimonials {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.testimonials-stage {
  position: relative;
  min-height: clamp(420px, 58vw, 520px);
  grid-column: 2;
}

.testimonial {
  margin: 0;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  opacity: 0;
  transform: translateX(24px);
  pointer-events: none;
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}

.testimonial.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial-arch {
  margin: 0;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(10, 30, 120, 0.28);
  justify-self: center;
}

.testimonial-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.testimonial blockquote {
  margin: 0;
  max-width: 34rem;
}

.testimonial blockquote p {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.96);
  margin: 0 0 1.35rem;
}

.testimonial .underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 1.5rem;
}

.testimonial cite {
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
}

.testimonial footer span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 0;
  background: #fff;
  color: #111;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s ease;
}

.btn-pill:hover {
  transform: translateY(-1px);
  background: #f2f4f8;
}

.testimonial-nav {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.25s ease;
  z-index: 2;
  align-self: center;
}

.testimonial-nav:hover {
  color: #fff;
  background: transparent;
  border-color: transparent;
}

.testimonial-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.testimonial-dot {
  width: 9px;
  height: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    width 0.3s var(--ease);
}

.testimonial-dot.is-active {
  background: #fff;
  border-color: #fff;
  width: 9px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.contact-copy .section-lede {
  margin-bottom: 2rem;
}

.contact-details {
  margin: 0 0 2rem;
  display: grid;
  gap: 1.5rem;
}

.contact-details div {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.contact-details dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.contact-details dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.contact-details dd strong {
  color: var(--ink);
  font-weight: 600;
}

.contact-details a {
  text-decoration: none;
  color: var(--ink);
}

.contact-details a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  background: var(--sky);
  box-shadow: var(--shadow-soft);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  background: #eef2fb;
}

@media (max-width: 768px) {
  .site-footer {
    padding-bottom: 1.25rem;
  }
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.footer-brand .logo-mark {
  width: 22px;
  height: 22px;
}

.site-footer a {
  text-decoration: none;
  color: var(--blue);
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ---------- Sticky book bar + scroll top ---------- */

.sticky-book {
  display: none;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 95;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(30, 90, 255, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s var(--ease),
    background 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--blue-deep);
}

/* ---------- Modal / Booking ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 55, 0.58);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(90svh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 28px 70px rgba(10, 30, 90, 0.22);
  padding: 0;
  transform: translateY(22px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal.is-open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.modal-close:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--sky);
}

.modal-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.modal-view[hidden] {
  display: none !important;
}

.modal-head {
  flex-shrink: 0;
  margin: 0;
  padding: 1.35rem 1.35rem 1rem;
  padding-right: 3.1rem;
  background: linear-gradient(180deg, var(--sky) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
}

.modal-head .eyebrow {
  margin-bottom: 0.35rem;
}

.modal-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.booking-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.booking-steps li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.booking-steps li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-size: 0.7rem;
  color: var(--muted);
  flex-shrink: 0;
}

.booking-steps li.is-active {
  color: var(--blue-deep);
}

.booking-steps li.is-active span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.booking-steps li.is-done {
  color: var(--success);
}

.booking-steps li.is-done span {
  background: #e8f6ef;
  border-color: #b7e0cb;
  color: var(--success);
}

#booking-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 0;
}

.modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.1rem 1.35rem 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.booking-pane[hidden] {
  display: none !important;
}

.booking-pane .form-section-title {
  margin-bottom: 0.85rem;
}

.form-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.field span em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #9aa3b2;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  outline: none;
  min-height: 46px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #aeb6c8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(30, 90, 255, 0.12);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.1);
}

.field textarea {
  resize: none;
  min-height: 72px;
}

.slots-fieldset {
  border: 0;
  margin: 0.85rem 0 0;
  padding: 0;
}

.slots-fieldset legend {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
  padding: 0;
}

.slots-hint {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.slots-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.slots-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.slots-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.slots-legend .dot.available {
  background: var(--blue);
}

.slots-legend .dot.booked {
  background: #c5cbd6;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.slot {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  padding: 0.65rem 0.3rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 42px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.slot:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--sky);
  transform: translateY(-1px);
}

.slot.is-selected {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(30, 90, 255, 0.25);
}

.slot:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #f1f3f7;
}

.slot.is-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: default;
  text-decoration: none;
  opacity: 1;
  padding: 0.9rem;
  font-weight: 500;
}

.booking-summary {
  margin-bottom: 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--sky);
  border: 1px solid var(--blue-soft);
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.booking-summary strong {
  color: var(--ink);
  font-weight: 700;
}

.form-error {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.85rem;
  background: #fef3f2;
  border: 1px solid #f5c6c2;
  border-radius: 12px;
}

.form-trust {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  padding-left: 1.1rem;
  position: relative;
}

.form-trust::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
}

.modal-actions {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin: 0;
  padding: 0.9rem 1.35rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #fff;
  border-radius: 0 0 20px 20px;
}

.modal-actions .btn {
  min-width: 120px;
}

.modal-actions .btn-confirm,
.modal-actions #booking-next {
  flex: 1;
  max-width: 220px;
}

.modal .btn-ghost {
  border-radius: 999px;
}

.success-state {
  text-align: center;
  padding: 2rem 1.4rem 1.6rem;
}

.success-state .eyebrow {
  margin-bottom: 0.5rem;
}

.success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: #e8f6ef;
  position: relative;
  box-shadow: 0 0 0 8px rgba(15, 122, 76, 0.08);
}

.success-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 14px;
  height: 24px;
  border-right: 2.5px solid var(--success);
  border-bottom: 2.5px solid var(--success);
  transform: translate(-50%, -60%) rotate(45deg);
}

.success-state h2 {
  font-size: 1.55rem;
  margin-bottom: 0.7rem;
}

.success-state p {
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.success-note {
  font-size: 0.88rem;
  margin-bottom: 1.35rem !important;
}

.success-state .btn {
  min-width: 140px;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.12s;
}

/* ---------- Keyframes ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-ken {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-parallax img {
    animation: hero-ken 22s var(--ease) infinite alternate;
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (min-width: 769px) {
  .offcanvas,
  .offcanvas-backdrop {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .practice-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .practice-note {
    left: 1rem;
    bottom: 1rem;
  }

  .practice-frame {
    aspect-ratio: 5 / 4;
    max-height: 420px;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 320px;
  }

  .testimonial {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 1.25rem;
  }

  .testimonials-stage {
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  :root {
    --sticky-bar-h: 84px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-desktop {
    display: none;
  }

  .sticky-book {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 0.75rem 16px calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(18, 21, 28, 0.08);
  }

  .sticky-book-btn {
    width: 100%;
    padding: 1.05rem 1.25rem;
    font-size: 1.02rem;
    font-weight: 700;
    border-radius: 999px;
    letter-spacing: 0.01em;
  }

  .modal {
    padding: 10px;
    place-items: end center;
  }

  .modal-panel {
    width: 100%;
    max-height: min(88svh, 680px);
    border-radius: 20px;
  }

  .modal-head {
    border-radius: 20px 20px 0 0;
    padding: 1.15rem 1.1rem 0.85rem;
    padding-right: 3rem;
  }

  .modal-body {
    padding: 0.95rem 1.1rem 0.25rem;
  }

  .modal-actions {
    flex-direction: row;
    border-radius: 0 0 20px 20px;
    padding: 0.8rem 1.1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
  }

  .modal-actions .btn {
    width: auto;
    flex: 1;
  }

  .modal-actions .btn-ghost {
    flex: 0 0 auto;
    min-width: 96px;
  }

  .booking-steps li {
    font-size: 0.65rem;
  }

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

  .slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .scroll-top {
    right: 16px;
    bottom: calc(var(--sticky-bar-h) + 14px);
  }

  .hero-parallax img {
    object-position: center top;
  }

  .hero-content {
    padding: calc(var(--header-h) + 0.5rem) 0 0.5rem;
    max-width: none;
    margin-left: auto;
  }

  .brand-lockup {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .hero-scroll {
    display: none;
  }

  .service-row {
    grid-template-columns: 3rem 1fr;
  }

  .form-grid,
  .slots-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .testimonials-stage {
    grid-column: 1;
    min-height: auto;
  }

  .testimonial {
    position: absolute;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 0.5rem 0 1rem;
  }

  .testimonial.is-active {
    position: relative;
  }

  .testimonial-arch {
    max-width: 220px;
    aspect-ratio: 3 / 3.6;
  }

  .testimonial blockquote {
    max-width: 28rem;
  }

  .testimonial-nav {
    position: absolute;
    top: 38%;
    z-index: 3;
  }

  .testimonial-nav-prev {
    left: -8px;
  }

  .testimonial-nav-next {
    right: -8px;
  }

  .testimonial-dots {
    grid-column: 1;
    margin-top: 0.5rem;
  }
}

@media (max-width: 520px) {
  .container,
  .header-inner,
  .hero-content {
    width: min(100% - 28px, var(--max));
  }

  .clients-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero-actions,
  .emergency-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .btn-pill {
    width: auto;
  }

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial blockquote p {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .hero-parallax {
    inset: 0;
    transform: none !important;
  }

  .hero-parallax img {
    animation: none !important;
    transform: scale(1.05);
  }
}
