/*
Theme Name: Primewest Premium
Theme URI: https://pwphysio.ca/
Author: OpenAI
Description: Premium custom homepage theme for Primewest Physiotherapy.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: primewest-premium
*/


:root {
  --bg: #f6f9fc;
  --bg-elevated: rgba(255,255,255,0.78);
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --line: rgba(15, 23, 42, 0.09);
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.10);
  --blue: #2da3df;
  --blue-deep: #1078b8;
  --green: #86b61f;
  --orange: #f4a024;
  --orange-deep: #ef6a2e;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max: 1240px;
  --nav-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(45,163,223,0.15), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(134,182,31,0.12), transparent 26%),
    linear-gradient(180deg, #fbfdff 0%, #f6f9fc 48%, #eff5fa 100%);
  min-width: 320px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 200;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(250,252,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.65);
}

.header-row {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: clamp(158px, 20vw, 230px);
  height: auto;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  position: relative;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 14px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255,255,255,0.9);
  color: var(--text);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button,
.button-secondary,
.button-ghost,
.map-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}

.button {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 14px 30px rgba(16, 120, 184, 0.24);
}
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(16, 120, 184, 0.28);
}

.button-secondary {
  background: linear-gradient(135deg, var(--green), #6ea40f);
  color: #fff;
  box-shadow: 0 14px 30px rgba(134, 182, 31, 0.24);
}
.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-2px);
}

.button-ghost,
.map-pill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(15,23,42,0.06);
}
.button-ghost:hover,
.button-ghost:focus-visible,
.map-pill:hover,
.map-pill:focus-visible {
  transform: translateY(-2px);
  background: #fff;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 42px 0 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.hero-copy {
  padding: 24px 0 8px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(15,23,42,0.06);
  color: var(--blue-deep);
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 10px 26px rgba(15,23,42,0.05);
}
.kicker-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 0 0 6px rgba(134,182,31,0.12);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: .95;
  letter-spacing: -0.055em;
  max-width: 12ch;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--blue), var(--green) 74%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.75;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.hero-point {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15,23,42,0.05);
}
.hero-point-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(45,163,223,0.14), rgba(134,182,31,0.18));
  color: var(--blue-deep);
  font-weight: 800;
}
.hero-point strong {
  display: block;
  margin-bottom: 3px;
  font-size: .98rem;
}
.hero-point span {
  display: block;
  color: var(--muted-2);
  font-size: .95rem;
  line-height: 1.55;
}

.hero-media-wrap {
  position: relative;
}
.hero-panel {
  position: relative;
  min-height: 620px;
  border-radius: 40px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.68));
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-panel::before {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at center, rgba(45,163,223,0.18), transparent 68%);
  right: -60px;
  top: -60px;
}
.hero-panel::after {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at center, rgba(134,182,31,0.16), transparent 68%);
  left: -60px;
  bottom: -80px;
}
.hero-stack {
  position: relative;
  height: 100%;
}
.hero-main-image,
.hero-float-image {
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 50px rgba(15,23,42,0.18);
}
.hero-main-image {
  width: 82%;
  height: 100%;
  min-height: 584px;
  margin-left: auto;
}
.hero-float-image {
  position: absolute;
  width: 56%;
  left: 0;
  bottom: 26px;
  border: 10px solid rgba(255,255,255,0.94);
}
.hero-card {
  position: absolute;
  top: 20px;
  left: 0;
  width: min(300px, 72%);
  padding: 18px 18px 16px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 22px 46px rgba(15,23,42,0.10);
}
.hero-card .eyebrow {
  color: var(--green);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-card h2 {
  margin: 10px 0 10px;
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: .96rem;
}

.section {
  padding: 34px 0;
}
.section-lg {
  padding: 64px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 26px;
}
.section-header h2 {
  margin: 0;
  font-size: clamp(1.95rem, 3.2vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.section-header p {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.glass-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.insurance-bar {
  padding: 30px;
}
.insurance-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}
.insurance-art {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.88));
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.05);
}
.insurance-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.insurance-copy ul {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.insurance-copy li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.65;
}
.insurance-copy li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.location-card {
  padding: 26px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(45,163,223,0.10);
  color: var(--blue-deep);
  font-weight: 800;
  letter-spacing: .01em;
}
.location-card h3 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}
.location-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.location-meta {
  display: grid;
  gap: 14px;
}
.meta-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.meta-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45,163,223,0.14), rgba(134,182,31,0.16));
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 40px;
}
.meta-label {
  display: block;
  font-size: .83rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted-2);
  margin-bottom: 3px;
  font-weight: 800;
}
.meta-value {
  display: block;
  color: var(--text);
  font-weight: 650;
  line-height: 1.6;
}

.inline-actions,
.map-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.services-grid,
.approach-grid,
.billing-grid,
.team-grid,
.faq-grid {
  display: grid;
  gap: 20px;
}
.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.service-card,
.approach-card,
.billing-card,
.team-card,
.faq-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.card-icon.blue { background: rgba(45,163,223,0.12); color: var(--blue-deep); }
.card-icon.green { background: rgba(134,182,31,0.14); color: #5b8d00; }
.card-icon.orange { background: rgba(244,160,36,0.14); color: var(--orange-deep); }
.service-card h3,
.approach-card h3,
.billing-card h3,
.team-card h3,
.faq-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}
.service-card p,
.approach-card p,
.billing-card p,
.team-card p,
.faq-card p,
.small-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.approach-wrap {
  display: grid;
  grid-template-columns: .98fr 1.02fr;
  gap: 24px;
  align-items: stretch;
}
.approach-image-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.approach-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.approach-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.92);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.14);
}
.approach-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-grid,
.team-grid,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-card .team-role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(134,182,31,0.12);
  color: #5f8d05;
  font-weight: 800;
  font-size: .86rem;
}
.team-note {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.7);
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.06);
}

.cta-banner {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(16,120,184,0.98), rgba(45,163,223,0.95) 46%, rgba(134,182,31,0.93));
  color: #fff;
  box-shadow: 0 22px 50px rgba(16,120,184,0.24);
}
.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
}
.cta-banner::before {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -70px;
}
.cta-banner::after {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: -100px;
}
.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.cta-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.95rem, 3vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}
.cta-banner p {
  margin: 0;
  max-width: 56ch;
  line-height: 1.75;
  color: rgba(255,255,255,0.94);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-banner .button,
.cta-banner .button-ghost {
  min-width: 174px;
}
.cta-banner .button { background: #fff; color: var(--blue-deep); box-shadow: 0 18px 34px rgba(255,255,255,0.2); }
.cta-banner .button-ghost { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.22); color: #fff; }

.site-footer {
  padding: 44px 0 96px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: start;
}
.footer-brand {
  padding: 26px;
}
.footer-brand img {
  width: min(240px, 100%);
  margin-bottom: 14px;
}
.footer-brand p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.footer-card {
  padding: 24px;
}
.footer-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}
.footer-list {
  display: grid;
  gap: 12px;
}
.footer-list a,
.footer-list span {
  color: var(--muted);
  line-height: 1.65;
}
.footer-bottom {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: .95rem;
}

.mobile-sticky {
  position: fixed;
  inset: auto 12px 12px 12px;
  z-index: 70;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 18px 40px rgba(15,23,42,0.16);
  backdrop-filter: blur(16px);
}
.mobile-sticky .button,
.mobile-sticky .button-secondary {
  min-height: 48px;
  padding: 0 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: none;
  padding: 18px;
}
.modal-backdrop.active { display: grid; place-items: center; }

.modal {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(45,163,223,0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
  box-shadow: 0 30px 80px rgba(15,23,42,0.28);
  border: 1px solid rgba(255,255,255,0.9);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.95);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15,23,42,0.08);
}
.modal-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  min-height: 100%;
}
.modal-copy {
  padding: 56px clamp(24px, 4vw, 58px) 36px;
}
.modal-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(134,182,31,0.12);
  color: #6c990d;
  font-weight: 800;
}
.modal-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .96;
  letter-spacing: -0.055em;
  max-width: 10ch;
}
.modal-copy p {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}
.modal-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.modal-list li {
  display: flex;
  gap: 12px;
  color: var(--text);
  align-items: flex-start;
  line-height: 1.6;
}
.modal-list li::before {
  content: "✔";
  color: var(--green);
  font-weight: 900;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.modal-side {
  padding: 42px 28px 28px;
  display: grid;
  align-content: center;
  gap: 18px;
}
.modal-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 20px 40px rgba(15,23,42,0.10);
}
.modal-card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}
.modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.modal-insurance {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(15,23,42,0.06);
}
.modal-insurance img { width: 100%; height: auto; }

@media (max-width: 1100px) {
  .hero-grid,
  .insurance-grid,
  .approach-wrap,
  .footer-grid,
  .modal-grid,
  .cta-grid {
    grid-template-columns: 1fr;
  }
  .cta-grid { align-items: start; }
  .hero-copy { order: 1; }
  .hero-media-wrap { order: 2; }
  .hero-panel { min-height: auto; }
  .hero-main-image { min-height: 500px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --nav-height: 74px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 16px; }
  .header-actions .button { display: none; }
  .locations-grid,
  .services-grid,
  .approach-grid,
  .billing-grid,
  .team-grid,
  .faq-grid,
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .section-header { align-items: start; flex-direction: column; }
  .hero-points { grid-template-columns: 1fr; }
  .mobile-sticky { display: grid; }
}

@media (max-width: 720px) {
  .hero { padding-top: 22px; }
  .hero-main-image {
    width: 100%;
    min-height: 340px;
  }
  .hero-float-image {
    position: relative;
    width: 78%;
    left: auto;
    bottom: auto;
    margin: -72px auto 0 12px;
  }
  .hero-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin-bottom: 16px;
  }
  .hero-panel { padding: 14px; border-radius: 28px; }
  .insurance-bar,
  .location-card,
  .service-card,
  .approach-card,
  .billing-card,
  .team-card,
  .faq-card,
  .footer-brand,
  .footer-card,
  .cta-banner,
  .modal-copy,
  .modal-side {
    padding: 22px;
  }
  .cta-actions,
  .hero-cta,
  .inline-actions,
  .map-row,
  .modal-actions {
    flex-direction: column;
  }
  .cta-actions .button,
  .cta-actions .button-ghost,
  .hero-cta .button,
  .hero-cta .button-secondary,
  .hero-cta .button-ghost,
  .inline-actions .button,
  .inline-actions .button-ghost,
  .map-row .map-pill,
  .modal-actions .button,
  .modal-actions .button-secondary,
  .modal-actions .button-ghost {
    width: 100%;
  }
  .footer-bottom { padding-bottom: 90px; }
}

@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; }
}


/* --- Primewest requested update: clean copy, larger insurance logos, illustrated services, no image overlap, team hover cards --- */
.hero-panel { min-height: auto; padding: 22px; }
.hero-stack { height: auto; }
.hero-card { position: relative; top: auto; left: auto; width: 100%; margin-bottom: 18px; }
.hero-image-row { display: grid; grid-template-columns: 1.06fr .94fr; gap: 18px; align-items: end; }
.hero-main-image, .hero-float-image { position: relative; width: 100%; min-height: 0; margin: 0; }
.hero-main-image { height: 540px; }
.hero-float-image { height: 360px; border: 10px solid rgba(255,255,255,0.94); }
.insurance-art { padding: 8px 12px; min-height: 260px; overflow: hidden; display: grid; place-items: center; }
.insurance-art img, .modal-insurance img { width: 95%; max-width: 118%; margin-left: -9%; }
.service-visual { width: 100%; height: 170px; object-fit: cover; border-radius: 20px; border: 1px solid rgba(15,23,42,0.05); background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.86)); margin-bottom: 18px; }
.approach-overlay { position: static; }
.approach-image-card { display: grid; grid-template-rows: minmax(320px, 1fr) auto; }
.approach-image-card img { min-height: 320px; }
.inline-actions, .map-row { align-items: center; }
.directions-button { border: 1px solid rgba(15, 23, 42, 0.09); background: rgba(52, 55, 61, 0.09); }
.team-grid-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-profile { border-radius: 28px; overflow: hidden; background: rgba(255,255,255,0.84); border: 1px solid rgba(255,255,255,0.92); box-shadow: var(--shadow); }
.team-profile-toggle { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.team-photo-wrap { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.team-photo { width: 100%; height: 100%; object-fit: cover; }
.team-overlay { position: absolute; inset: 0; display: flex; align-items: end; padding: 24px; background: linear-gradient(180deg, rgba(15,23,42,0.05) 12%, rgba(15,23,42,0.85) 100%); color: #fff; opacity: 0; transition: opacity .25s ease; }
.team-overlay-inner { transform: translateY(10px); transition: transform .25s ease; }
.team-profile:hover .team-overlay, .team-profile.open .team-overlay, .team-profile:focus-within .team-overlay { opacity: 1; }
.team-profile:hover .team-overlay-inner, .team-profile.open .team-overlay-inner, .team-profile:focus-within .team-overlay-inner { transform: translateY(0); }
.team-overlay .team-role { margin-bottom: 10px; color: #f7fff0; background: rgba(134,182,31,0.2); }
.team-overlay h3 { margin: 0 0 10px; font-size: 1.42rem; letter-spacing: -0.03em; }
.team-overlay p { margin: 0; color: rgba(255,255,255,0.94); line-height: 1.7; }
.team-caption { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 20px 20px; }
.team-caption strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.team-caption span { color: var(--muted-2); font-size: .92rem; }
@media (max-width: 1100px) { .hero-image-row { grid-template-columns: 1fr; } .hero-main-image { height: 420px; } .hero-float-image { height: 300px; } }
@media (max-width: 920px) { .team-grid-profiles { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .hero-main-image, .hero-float-image { height: auto; } .insurance-art img, .modal-insurance img { width: 105%; max-width: 110%; margin-left: -5%; } .team-caption { align-items: start; flex-direction: column; } }

/* --- ICBC entry modal and expanded care team update --- */
.modal-backdrop {
  background: rgba(15,23,42,0.62);
}
.modal-icbc {
  overflow: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(45,163,223,0.18), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
}
.modal-icbc-grid {
  grid-template-columns: 1.02fr .98fr;
}
.modal-icbc-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 18px 36px rgba(16,120,184,0.18);
}
.modal-services-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(238,248,255,0.96));
}
.modal-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.modal-services-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(15,23,42,0.06);
  color: var(--text);
  font-weight: 700;
  line-height: 1.35;
}
.modal-services-grid span::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}
.modal-contact-card a {
  color: var(--blue-deep);
  font-weight: 800;
}
.team-category-block {
  margin-top: 28px;
}
.team-category-block:first-of-type {
  margin-top: 0;
}
.team-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 14px 30px rgba(15,23,42,0.05);
}
.team-category-heading h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.04em;
}
.team-category-heading p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.65;
}
.team-grid-single {
  grid-template-columns: minmax(280px, 560px);
}
.team-overlay-long {
  align-items: stretch;
}
.team-overlay-long .team-overlay-inner {
  max-height: 100%;
  overflow: auto;
  padding-right: 6px;
}
.team-overlay-long p + p {
  margin-top: 12px;
}
.team-overlay-long p {
  font-size: .93rem;
  line-height: 1.58;
}
@media (max-width: 720px) {
	.services-grid {
	  grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}
@media (max-width: 920px) {
  .modal-services-grid {
    grid-template-columns: 1fr;
  }
  .team-category-heading {
    align-items: start;
    flex-direction: column;
  }
  .team-grid-single {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .modal-icbc-logo {
    width: 68px;
    height: 68px;
  }
  .team-overlay {
    padding: 18px;
  }
  .team-overlay-long p {
    font-size: .88rem;
  }
}


/* --- Care team click-to-open modal update --- */
.team-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
  gap: 22px;
}
.team-grid-single-card {
  grid-template-columns: minmax(220px, 260px);
}
.team-profile-card {
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: var(--shadow);
  text-align: center;
}
.team-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.team-photo-small {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  border-radius: 22px;
  margin: 0 auto;
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}
.team-photo-button:hover .team-photo-small,
.team-photo-button:focus-visible .team-photo-small {
  transform: translateY(-2px);
  transition: transform .2s ease;
}
.team-caption-stack {
  display: grid;
  justify-content: center;
  gap: 6px;
  padding: 16px 0 0;
}
.team-caption-stack span {
  color: var(--muted-2);
}
.team-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 135;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(15,23,42,0.62);
  backdrop-filter: blur(5px);
}
.team-modal-backdrop.active {
  display: grid;
}
.team-modal {
  position: relative;
  width: min(880px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #fafdff 100%);
  box-shadow: 0 30px 80px rgba(15,23,42,0.28);
  border: 1px solid rgba(255,255,255,0.9);
}
.team-modal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
}
.team-modal-image-wrap {
  padding: 28px;
  background: linear-gradient(180deg, rgba(45,163,223,0.08), rgba(134,182,31,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-modal-image {
  width: 100%;
  max-width: 260px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 48px rgba(15,23,42,0.16);
}
.team-modal-copy {
  padding: 42px 34px 34px;
}
.team-modal-copy .team-role {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(134,182,31,0.12);
  color: #5f8d05;
  font-weight: 800;
  font-size: .88rem;
}
.team-modal-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.team-modal-bio {
  display: grid;
  gap: 14px;
}
.team-modal-bio p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
@media (max-width: 920px) {
  .team-modal-grid {
    grid-template-columns: 1fr;
  }
  .team-modal-image-wrap {
    padding-bottom: 0;
  }
}
@media (max-width: 720px) {
  .team-profile-card {
    padding: 14px;
  }
  .team-photo-small {
    max-width: 190px;
  }
  .team-modal-copy {
    padding: 28px 22px 24px;
  }
}
