/* ============================================================
   CP Care — Design System (Premium & Light)
   ============================================================ */

:root {
  --ink: #1c2130;
  --ink-soft: #565f75;
  --ink-faint: #8890a3;

  --bg: #ffffff;
  --bg-alt: #f3f6fb;
  --bg-deep: #171a2b;
  --bg-deep-soft: #21253b;

  --card: #ffffff;
  --border: rgba(28, 33, 48, 0.1);
  --border-soft: rgba(28, 33, 48, 0.07);
  --border-dark: rgba(255, 255, 255, 0.12);

  --primary: #3538CD;
  --primary-dark: #2a2ca3;
  --primary-soft: #7678e0;
  --primary-tint: #ecedfc;

  --accent: #FF6A4D;
  --accent-light: #ffab93;
  --accent-tint: #ffe6df;

  --success: #12875a;
  --error: #e0503a;

  --cream-text: #f0f1fb;
  --cream-muted: #a4a8c4;

  --shadow-sm: 0 1px 2px rgba(28, 34, 37, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(28, 34, 37, 0.14);
  --shadow-lg: 0 24px 48px -16px rgba(28, 34, 37, 0.18);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1240px;
  --container-pad: 28px;
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

svg {
  display: block;
}

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

@media (max-width: 640px) {
  :root { --container-pad: 20px; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--primary);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.3s var(--ease); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1f2178 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  border-color: var(--border);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--primary);
  display: inline-block;
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

section {
  position: relative;
  padding: 108px 0;
}
@media (max-width: 900px) {
  section { padding: 76px 0; }
  .section-head { margin-bottom: 40px; }
}

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

/* ============================================================
   Header (flat nav, no dropdowns)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), height 0.3s var(--ease);
}
.site-header.is-solid {
  border-bottom-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
  height: 74px;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: none;
}
.logo-link img {
  height: 44px;
  width: auto;
  transition: height 0.3s var(--ease);
}
.is-solid .logo-link img { height: 38px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1px;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 13px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-link:hover, .nav-link:focus-visible {
  background: var(--primary-tint);
  color: var(--primary-dark);
}
.nav-link.is-active {
  background: var(--primary-tint);
  color: var(--primary-dark);
}
.nav-link svg { width: 12px; height: 12px; opacity: 0.7; transition: transform 0.25s var(--ease); }
.nav-item.has-dropdown.open .nav-link svg { transform: rotate(180deg); }

/* Dropdown panels (Services / Our Team) */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
  display: grid;
  gap: 2px;
  z-index: 10;
  pointer-events: none;
}
.dropdown.dropdown-wide { min-width: 360px; grid-template-columns: 1fr 1fr; }
.nav-item.has-dropdown.open { z-index: 20; }
.nav-item.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 26px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--border-soft);
  border-top: 1px solid var(--border-soft);
  transform: rotate(45deg);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.dropdown a:hover { background: var(--bg-alt); color: var(--primary-dark); }
.dropdown a.dropdown-view-all { color: var(--primary); font-weight: 700; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.header-phone svg { width: 17px; height: 17px; color: var(--accent); }

.menu-toggle {
  display: none;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  align-items: center;
  justify-content: center;
  position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s;
}
.menu-toggle span::before { position: absolute; transform: translateY(-6px); }
.menu-toggle span::after { position: absolute; transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); background: var(--ink); }
.menu-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 1320px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
}

/* Mobile nav panel — flat list, no accordions */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 480;
  background: var(--bg-deep);
  padding: calc(var(--header-h) + 20px) 24px 40px;
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.45s var(--ease), visibility 0.45s;
}
.mobile-nav.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav a.mobile-link {
  display: block;
  padding: 18px 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  color: #fff;
  border-bottom: 1px solid var(--border-dark);
}
.mobile-nav a.mobile-link.is-active { color: var(--accent-light); }

.mobile-nav-group { border-bottom: 1px solid var(--border-dark); }
.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 4px;
}
.mobile-nav-top > a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  color: #fff;
  flex: 1;
}
.mobile-nav-top > a.is-active { color: var(--accent-light); }
.mobile-nav-top .mobile-chevron {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-top .mobile-chevron svg { width: 15px; height: 15px; color: var(--cream-muted); transition: transform 0.3s var(--ease); }
.mobile-nav-group.open .mobile-chevron svg { transform: rotate(180deg); }
.mobile-sub { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.mobile-nav-group.open .mobile-sub { max-height: 900px; }
.mobile-sub a {
  display: block;
  padding: 12px 4px 12px 16px;
  color: var(--cream-muted);
  font-size: 16px;
  border-left: 2px solid var(--border-dark);
  margin: 0 0 4px 4px;
}
.mobile-sub a:hover { color: var(--accent-light); }
.mobile-sub a.dropdown-view-all { color: var(--accent-light); font-weight: 700; }
.mobile-nav-cta {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav-cta .header-phone { color: var(--cream-text); justify-content: center; }
.mobile-nav-cta .header-phone svg { color: var(--accent-light); }

/* ============================================================
   Hero — split layout (light, photo on the right)
   ============================================================ */
.hero {
  padding: calc(var(--header-h) + 56px) 0 96px;
  background: var(--bg-alt);
  overflow: hidden;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--accent); }
.hero-copy .eyebrow::before { background: var(--accent); }
.hero-copy h1 {
  margin-top: 20px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-copy .lede {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  line-height: 1.75;
}
.hero-cta-row {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-facts {
  margin-top: 48px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-fact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.hero-fact svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.hero-visual-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
}
.hero-visual-badge svg { width: 26px; height: 26px; color: var(--primary); flex: none; }
.hero-visual-badge strong { display: block; font-family: var(--font-head); font-size: 14px; }
.hero-visual-badge span { display: block; font-size: 12px; color: var(--ink-faint); }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: calc(var(--header-h) + 32px) 0 64px; }
  .hero-visual { aspect-ratio: 16/11; order: -1; }
}

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip { padding: 0 0 0; margin-top: -8px; }
.trust-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 30px 26px;
  border-right: 1px solid var(--border-soft);
}
.trust-item:last-child { border-right: none; }
.trust-item .icon-badge { margin-top: 1px; }
.trust-item .trust-copy { padding-top: 2px; }
.trust-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
}
.trust-item span {
  display: block;
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
  line-height: 1.5;
}
@media (max-width: 980px) {
  .trust-card { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
}
@media (max-width: 640px) {
  .trust-card { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; border-bottom: 1px solid var(--border-soft); }
  .trust-item:last-child { border-bottom: none; }
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.icon-badge svg { width: 22px; height: 22px; color: var(--primary); }

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* Alternate icon tint between the two brand accents for visual rhythm */
.service-card:nth-child(3n+2) .icon-badge { background: var(--accent-tint); }
.service-card:nth-child(3n+2) .icon-badge svg { color: var(--accent); }
.service-card:nth-child(3n+2):hover .icon-badge { background: var(--accent); }
.service-card:nth-child(3n+2):hover .icon-badge svg { color: #fff; }

.service-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card .icon-badge { margin-bottom: 20px; }
.service-card:hover .icon-badge { background: var(--primary); }
.service-card:hover .icon-badge svg { color: #fff; }

.service-card h3 { font-size: 19px; font-weight: 700; }
.service-card p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
  flex: 1;
}
.service-card .card-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--primary);
}
.service-card .card-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* ============================================================
   Journey / steps
   ============================================================ */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.journey-step { padding: 8px 26px 8px 0; position: relative; }
.journey-step .num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--accent);
  line-height: 1;
}
.journey-step h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.journey-step p { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  width: 1px;
  height: 60%;
  background: var(--border);
}
@media (max-width: 900px) {
  .journey-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .journey-step:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .journey-grid { grid-template-columns: 1fr; }
  .journey-step::after { display: none; }
}

/* ============================================================
   About split
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(165deg, rgba(63,102,89,0.06), rgba(63,102,89,0.14)),
    url("../assets/images/leaf-texture.jpg");
  background-size: cover, 640px;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  border: 1px solid var(--border-soft);
}
.about-visual .brandmark {
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-sm);
  padding: 26px 28px;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.about-visual .brandmark img { width: 170px; }
.about-visual .brandmark p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.about-copy p.lede {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.75;
}
.about-points { margin-top: 30px; display: grid; gap: 16px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point svg { flex: none; width: 22px; height: 22px; color: var(--success); margin-top: 2px; }
.about-point p { color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.6; }
.about-copy .btn { margin-top: 34px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { aspect-ratio: 16/10; }
}

/* ============================================================
   Results (light)
   ============================================================ */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.result-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.result-card h3 { font-size: 20px; font-weight: 700; }
.result-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat .stat-num {
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat .stat-label { margin-top: 8px; font-size: 13px; color: var(--ink-faint); line-height: 1.5; }
.results-note { margin-top: 36px; font-size: 13px; color: var(--ink-faint); max-width: 640px; }
@media (max-width: 760px) {
  .results-grid { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Team
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } }

.provider-card {
  background: var(--card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: block;
}
.provider-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.provider-photo { aspect-ratio: 4/5; background: var(--bg-alt); overflow: hidden; position: relative; }
.provider-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.provider-card:hover .provider-photo img { transform: scale(1.05); }
.provider-photo .monogram {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(150deg, var(--primary-soft), var(--primary-dark) 70%, var(--accent));
}
.provider-body { padding: 18px 20px 22px; }
.provider-body h3 { font-size: 16.5px; font-weight: 700; }
.provider-body .role { display: block; margin-top: 4px; font-size: 13px; color: var(--accent); font-weight: 600; }
.provider-body .view {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-head);
}
.provider-body .view svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease); }
.provider-card:hover .view svg { transform: translateX(4px); }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 calc(var(--container-pad) * -1);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  scrollbar-width: thin;
}
.testimonial-rail::-webkit-scrollbar { height: 6px; }
.testimonial-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

.testimonial-card {
  flex: none;
  width: min(400px, 84vw);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.stars { display: flex; gap: 3px; }
.stars svg { width: 15px; height: 15px; color: var(--accent); }
.testimonial-card p.quote { margin-top: 16px; color: var(--ink); font-size: 15px; line-height: 1.7; flex: 1; }
.testimonial-card .author {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.author strong { display: block; font-size: 14px; font-family: var(--font-head); }
.author span { font-size: 12.5px; color: var(--ink-faint); }

.rail-controls { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.rail-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.25s;
}
.rail-btn:hover { background: var(--primary); border-color: var(--primary); }
.rail-btn:hover svg { color: #fff; }
.rail-btn svg { width: 16px; height: 16px; color: var(--ink); }

/* ============================================================
   Insurance
   ============================================================ */
.insurance-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.insurance-logo {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  height: 84px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.insurance-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.insurance-logo img { max-height: 34px; max-width: 100%; width: auto; object-fit: contain; }
@media (max-width: 980px) { .insurance-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .insurance-grid { grid-template-columns: repeat(2, 1fr); } }
.insurance-note { margin-top: 26px; font-size: 14.5px; color: var(--ink-soft); }
.insurance-note a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Locations
   ============================================================ */
.locations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 860px) { .locations-grid { grid-template-columns: 1fr; } }

.location-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.location-card .loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 7px 14px;
  border-radius: 999px;
}
.location-card h3 { margin-top: 18px; font-size: 23px; font-weight: 700; }
.loc-detail { display: flex; gap: 12px; margin-top: 18px; align-items: flex-start; }
.loc-detail svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 2px; }
.loc-detail p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.loc-detail strong { color: var(--ink); font-weight: 600; }
.loc-services { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.loc-services span {
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-alt);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
}
.location-card .loc-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 75%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,0.82); font-size: 16px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .hero-cta-row { justify-content: center; margin-top: 32px; }
@media (max-width: 640px) { .cta-band { padding: 44px 24px; } }

/* ============================================================
   Blog
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.blog-card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-alt); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-card-media img { transform: scale(1.06); }
.blog-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-date svg { width: 12px; height: 12px; }
.blog-card h3 {
  margin-top: 9px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
}
.blog-card p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .card-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--primary);
}
.blog-card .card-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.blog-card:hover .card-link svg { transform: translateX(4px); }
.blog-card.is-page-hidden { display: none; }

.pagination {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pagination .page-btn,
.pagination .page-arrow {
  min-width: 42px;
  height: 42px;
  padding: 0 6px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.pagination .page-btn:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-arrow svg { width: 15px; height: 15px; }
.pagination .page-arrow:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-arrow:disabled { opacity: 0.35; cursor: default; pointer-events: none; }

/* ============================================================
   Internal page hero (Services / Team / Locations / Contact / Blog)
   ============================================================ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 76px;
  background: var(--bg-alt);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
}
.page-hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -120px;
  background: var(--primary-soft);
}
.page-hero::after {
  width: 360px;
  height: 360px;
  bottom: -180px;
  right: 6%;
  background: var(--accent-light);
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.page-hero .crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}
.page-hero .crumb a { color: var(--ink-faint); }
.page-hero .crumb a:hover { color: var(--primary); }
.page-hero .crumb svg { width: 10px; height: 10px; opacity: 0.5; transform: rotate(-90deg); }
.page-hero-copy .eyebrow { color: var(--accent); }
.page-hero-copy .eyebrow::before { background: var(--accent); }
.page-hero-copy h1 {
  margin-top: 14px;
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-hero-copy p {
  margin-top: 16px;
  max-width: 480px;
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.page-hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
}
.page-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-visual .hero-visual-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
}
@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .page-hero-visual { order: -1; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .page-hero { padding: calc(var(--header-h) + 24px) 0 44px; }
  .page-hero-visual .hero-visual-badge { right: auto; }
}

/* ============================================================
   Coming soon stub pages
   ============================================================ */
.coming-soon { padding: 8px 0 100px; }
.coming-soon-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}
.coming-soon-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 16px;
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coming-soon-icon svg { width: 28px; height: 28px; color: var(--primary); }
.coming-soon-card p.lede {
  font-size: 16.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.coming-soon-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.coming-soon-back {
  margin-top: 26px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.coming-soon-back:hover { color: var(--primary); }
.coming-soon-back svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .coming-soon-card { padding: 36px 24px; }
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 18px;
}
.contact-info-card h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.contact-info-card h3 svg { width: 19px; height: 19px; color: var(--accent); }
.contact-info-card .value { margin-top: 12px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; }
.contact-info-card .value a { color: var(--primary); font-weight: 600; }
.contact-info-card .value a:hover { text-decoration: underline; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--bg-deep); color: var(--cream-muted); padding: 88px 0 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand img { height: 44px; filter: brightness(0) invert(1); }
.footer-brand p { margin-top: 18px; font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, border-color 0.25s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }

.footer-col h4 { color: #fff; font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.footer-col ul { margin-top: 18px; display: grid; gap: 12px; }
.footer-col a { font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.footer-col .contact-line svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 26px 0;
  font-size: 13px;
}
.footer-bottom .legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom .legal-links a:hover { color: #fff; }

@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

[data-load-reveal] {
  opacity: 0;
  transform: translateY(18px);
  animation: load-reveal 0.9s var(--ease) 0.35s forwards;
}
@keyframes load-reveal { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  [data-load-reveal] { opacity: 1; transform: none; animation: none; }
}

/* ============================================================
   Mobile sticky CTA bar (app-like quick actions)
   ============================================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid var(--border-soft);
  padding: 12px var(--container-pad) calc(12px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 26px rgba(28,34,37,0.08);
  gap: 10px;
}
.mobile-cta-bar .btn { flex: 1; }
.mobile-cta-bar .mobile-cta-call {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-cta-bar .mobile-cta-call svg { width: 20px; height: 20px; color: var(--accent); }
@media (max-width: 1320px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 78px; }
}

/* Emergency banner */
.emergency-note {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 16px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: center;
}
.emergency-note strong { color: var(--error); }
