:root {
  --ink: #0b1e33;
  --ink-soft: #1c2a44;
  --accent: #1f6fb2;
  --accent-2: #1f6fb2;
  --sand: #f2f7fb;
  --mist: #e8f2fb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(13, 27, 42, 0.18);
  --radius: 26px;
  --container: 1120px;
  --font-heading: "Fraunces", serif;
  --font-body: "Karla", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 55%, #f8fbff 100%);
  line-height: 1.6;
}

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

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

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5f7388;
  font-weight: 600;
}

.muted {
  color: #4f6074;
}

.stepper-hint {
  font-size: 0.92rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: #0c2a4a;
  color: var(--white);
}

.btn-secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.text-link {
  font-weight: 600;
  color: var(--accent);
}

.section {
  padding: 3.2rem 0;
}

.section-title {
  max-width: 640px;
  margin-bottom: 1.6rem;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0.6rem 0 1rem;
}

.section-title p {
  margin: 0;
  color: #41546a;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(244, 249, 255, 0.9);
  border-bottom: 1px solid rgba(20, 42, 58, 0.08);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.topbar.header-hidden {
  transform: translateY(-100%);
}

/* Membership flow - fixed topbar with integrated progress bar */
.membership-topbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
}

.membership-topbar .nav-cta:active,
.membership-topbar .nav-cta:focus {
  box-shadow: none;
}

.membership-progress-bar {
  padding: 0.5rem 0 0.65rem;
  background: rgba(244, 249, 255, 0.9);
  backdrop-filter: blur(20px);
}

.membership-progress-bar .progress-bar-steps {
  max-width: 900px;
  margin: 0 auto;
}

.membership-progress-bar .progress-step-circle {
  width: 20px;
  height: 20px;
  font-size: 0.62rem;
  border-width: 2px;
}

.membership-progress-bar .progress-step {
  gap: 0.22rem;
}

.membership-progress-bar .progress-step-label {
  font-size: 0.62rem;
  max-width: 58px;
}

.membership-progress-bar .progress-bar-bg {
  height: 2px;
}

.membership-progress-bar .progress-step.active .progress-step-circle {
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-text {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.brand-text-lg {
  font-size: clamp(1.1rem, 2.2vw, 1.9rem);
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(circle at top, var(--accent), #155a93);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  display: inline-block;
  color: #2b3a42;
  font-weight: 500;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-dropdown-link {
  color: #2b3a42;
  font-weight: 500;
}

.nav-dropdown-toggle {
  border: none;
  background: transparent;
  color: #2b3a42;
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(20, 42, 58, 0.08);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(13, 27, 42, 0.16);
  padding: 0.45rem;
  display: none;
  z-index: 120;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2b3a42;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--accent);
  background: rgba(31, 111, 178, 0.08);
  transform: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: grid;
  gap: 0.12rem;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle {
  transform: rotate(180deg);
  color: var(--accent);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  transform: scale(1.08);
  color: var(--accent);
}

.nav-cta {
  white-space: nowrap;
}

.nav-cta.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-question {
  font-weight: 600;
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: #1c2a3a;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(31, 111, 178, 0.3), transparent 70%);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-copy {
  grid-column: span 6;
}

.hero-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4rem);
  margin: 1rem 0 1rem;
}

.hero-copy .lead {
  font-size: 1.1rem;
  color: #39464d;
  margin-bottom: 1.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.hero-bullets {
  display: grid;
  gap: 0.6rem;
  font-weight: 600;
  color: #22313a;
  margin-bottom: 1.4rem;
}

.bullet {
  padding-left: 1.6rem;
  position: relative;
}

.bullet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
}

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

.hero-metrics h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0 0 0.4rem;
  white-space: nowrap;
}

.hero-metrics p {
  margin: 0;
  color: #47565f;
  font-size: 0.92rem;
}

.hero-media {
  grid-column: span 6;
  position: relative;
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.5rem;
  border-radius: 20px;
  width: min(300px, 80%);
  box-shadow: 0 20px 40px rgba(15, 25, 30, 0.2);
}

.hero-card h4 {
  margin: 0.4rem 0;
  font-size: 1.2rem;
}

.hero-card p {
  margin: 0 0 0.6rem;
  color: #46545d;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  padding: 1.8rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.card.muted {
  background: #eef4fb;
}

.card.accent {
  background: linear-gradient(140deg, #1f6fb2 0%, #2a7ccf 100%);
  color: var(--white);
}

.card.accent ul,
.card.accent li {
  color: rgba(255, 255, 255, 0.85);
}

.feature-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-grid .tall {
  height: 280px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0;
  display: grid;
  gap: 0.6rem;
}

.service-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(20, 42, 58, 0.08);
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(13, 27, 42, 0.08);
  font-weight: 600;
}

.service-list li::before {
  content: "*";
  color: var(--accent-2);
  margin-top: 0.1rem;
}

.service-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-header {
  display: grid;
  gap: 0.6rem;
}

.service-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  margin: 0;
}

.name-nowrap {
  white-space: nowrap;
}

.about-page .service-title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  white-space: nowrap;
}

.about-page .signup-hero {
  padding-bottom: 0.5rem;
}

.about-page .signup-hero + .section {
  padding-top: 1.4rem;
}

.about-page .signup-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.9rem, 4.6vw, 3.9rem);
  letter-spacing: -0.02em;
}

.about-page .experience-grid {
  grid-template-columns: 1fr;
  align-items: start;
}

.specialist-intro {
  margin: 1rem 0 0.8rem;
}

.specialist-quote {
  margin-top: 0.8rem;
}

.about-page .service-list {
  gap: 0.45rem;
}

.about-page .service-list li {
  font-size: 0.92rem;
  padding: 0.45rem 0.65rem;
  line-height: 1.35;
}

.service-price {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(31, 111, 178, 0.12);
  color: #0b1e33;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  width: fit-content;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.8rem;
}

.service-savings {
  margin-top: 1.2rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: #eef6fb;
  border: 1px solid rgba(31, 111, 178, 0.12);
  display: grid;
  gap: 0.9rem;
}

.service-savings h4 {
  margin: 0;
  font-size: 1.05rem;
}

.service-savings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}

.service-savings-item {
  background: var(--white);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(20, 42, 58, 0.08);
  display: grid;
  gap: 0.2rem;
}

.service-savings-item strong {
  font-size: 1.1rem;
}

.service-savings-note {
  font-size: 0.85rem;
  color: #4f6074;
  margin: 0;
}

.stepper-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.stepper-tab {
  border: 1px solid rgba(20, 42, 58, 0.2);
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.stepper-tab.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: transparent;
}

.stepper-panel {
  display: none;
}

.stepper-panel.is-active {
  display: block;
}

.stepper-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  flex-wrap: wrap;
}

.feature-card {
  display: block;
  padding: 1.4rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(20, 42, 58, 0.08);
}

#how-it-works .feature-card h4 {
  font-size: 1.2rem;
  color: var(--accent);
}

#how-it-works .feature-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#how-it-works .feature-link:hover,
#how-it-works .feature-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

#how-it-works .step-number {
  color: var(--accent);
  font-weight: 700;
  font-size: 1em;
}

#why .feature-card h4 {
  font-size: 1.3rem;
}

.glass-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(13, 27, 42, 0.22);
}

.glass-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 30, 51, 0.04) 0%, rgba(11, 30, 51, 0.12) 100%);
}

.glass-image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

.glass-overlay {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  width: min(380px, 44%);
  padding: 1.2rem 1.4rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 50px rgba(13, 27, 42, 0.2);
  backdrop-filter: blur(12px) saturate(140%);
  z-index: 1;
}

.services-page .glass-overlay {
  top: 1.8rem;
  left: 2rem;
  transform: none;
}

.glass-overlay .service-title {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0.4rem 0 0.6rem;
}

.glass-overlay .service-price {
  margin-bottom: 0.8rem;
}

.glass-list {
  gap: 0.5rem;
}

.glass-list li {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: none;
  font-size: 0.9rem;
}

.membership {
  background: var(--mist);
}

.plan-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.plan-toggle button {
  border: 1px solid rgba(15, 25, 30, 0.2);
  background: transparent;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.plan-toggle .is-active {
  background: var(--ink);
  color: var(--white);
  border-color: transparent;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.plan-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.plan-card h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin: 0.4rem 0;
}

.plan-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #3f4e57;
}

.plan-details {
  display: grid;
  gap: 1.5rem;
}

.upsell-section {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
}

.upsell-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.upsell-card {
  background: var(--white);
  padding: 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(20, 42, 58, 0.08);
  box-shadow: 0 16px 32px rgba(13, 27, 42, 0.08);
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  background: rgba(31, 111, 178, 0.12);
  color: #0b3a66;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.note-box {
  background: var(--white);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(15, 25, 30, 0.1);
}

.link-disabled {
  pointer-events: none;
  opacity: 1;
}

.cta-banner {
  margin-top: 1.4rem;
  padding: 1.8rem;
  border-radius: var(--radius);
  background: #0e2236;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.cta-banner p {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.cta-banner .btn {
  background: var(--white);
  color: var(--ink);
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.care-card {
  display: block;
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(20, 42, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.care-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.care-card:hover,
.care-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  padding: 0.3rem 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.services-page .experience-grid {
  grid-template-columns: 1fr;
  padding: 0;
  background: transparent;
}

.services-page .experience-media {
  display: none;
}

.comparison {
  background: #eef5fb;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.comparison-card {
  padding: 1.6rem;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(20, 42, 58, 0.08);
}

.comparison-card h4 {
  margin: 0 0 1rem;
}

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

.comparison-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(20, 42, 58, 0.08);
}

.comparison-card li:last-child {
  border-bottom: none;
}

.comparison-card.accent {
  background: linear-gradient(140deg, #1f6fb2 0%, #2a7ccf 100%);
  color: var(--white);
}

.savings-table {
  display: grid;
  gap: 0.8rem;
}

.savings-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(20, 42, 58, 0.08);
  box-shadow: 0 10px 24px rgba(13, 27, 42, 0.08);
}

.savings-head {
  background: #0e2236;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.savings-head div:last-child {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
}

.savings-cell {
  display: grid;
  gap: 0.2rem;
  font-weight: 600;
}

.savings-cell[data-label="W/ ONEVIA"] {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
}

.savings-cell[data-label="W/ ONEVIA"]::before {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Blue styling for W/ Onevia costs */
.savings-with-onevia {
  color: var(--accent) !important;
  font-weight: 700 !important;
  font-size: 1.15rem;
}

.savings-cell span {
  font-size: 0.82rem;
  color: #4f6074;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Savings intro text highlight */
.comparison .section-title p strong,
.comparison .section-title strong {
  color: var(--accent);
  font-weight: 700;
}

.comparison-card.accent li {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.experience-steps {
  display: grid;
  gap: 1.2rem;
  margin: 2rem 0;
}

.image-stack {
  display: grid;
  gap: 1rem;
}

.image-stack img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.credibility {
  background: #eef6fb;
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cred-card {
  padding: 1.4rem;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(20, 42, 58, 0.08);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  padding: 1.6rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.testimonial-glass-grid .testimonial {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.testimonial-card {
  position: relative;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.2);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--testimonial-image);
  background-size: cover;
  background-position: center;
}

.testimonial-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 30, 51, 0.05) 0%, rgba(11, 30, 51, 0.35) 100%);
}

.testimonial-glass {
  position: relative;
  z-index: 1;
  margin: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 40px rgba(13, 27, 42, 0.18);
  backdrop-filter: blur(10px) saturate(130%);
}

.testimonial-glass p {
  margin: 0 0 0.6rem;
}

.testimonial-glass span {
  font-weight: 600;
  color: #2b3d4f;
}

.testimonial p {
  font-style: italic;
}

.faq-grid {
  display: grid;
  gap: 1rem;
}

.faq-grid details {
  background: var(--white);
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(20, 42, 58, 0.08);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.6rem;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 0;
  transition: transform 0.2s ease;
}

.faq-grid details[open] summary {
  color: var(--accent);
}

.faq-grid details[open] summary::after {
  transform: rotate(90deg);
}

.contact {
  background: var(--mist);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.cta-strip {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  background: var(--white);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.cta-strip img {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  object-fit: cover;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(20, 42, 58, 0.2);
  font-family: inherit;
}

.form-note {
  font-size: 0.85rem;
  color: #55646c;
}

.footer {
  padding: 3rem 0 2rem;
  background: #0e2236;
  color: rgba(255, 255, 255, 0.85);
}

.footer a {
  color: #7ec1ff;
  display: block;
  margin: 0.3rem 0;
}

.footer .muted {
  color: rgba(255, 255, 255, 0.7);
}

.footer h4 {
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.credit-links a {
  margin-right: 0.4rem;
}

.signup-hero {
  padding: 2.8rem 0 1.2rem;
}

.signup-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.signup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.signup-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
  border-radius: 24px;
  padding: 2.1rem;
  border: 1px solid rgba(31, 111, 178, 0.16);
  box-shadow: 0 20px 50px rgba(13, 27, 42, 0.12);
  display: grid;
  gap: 1.2rem;
}

.plan-options {
  display: grid;
  gap: 1rem;
}

.plan-option {
  display: grid;
  gap: 0.6rem;
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(31, 111, 178, 0.16);
  padding: 1rem 1.2rem;
  box-shadow: 0 14px 28px rgba(13, 27, 42, 0.08);
}

.plan-option--featured {
  border-color: rgba(31, 111, 178, 0.4);
  background: linear-gradient(160deg, rgba(31, 111, 178, 0.08), rgba(43, 182, 115, 0.08));
}

.plan-option .plan-price {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(31, 111, 178, 0.12);
  color: #0b1e33;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  width: fit-content;
}

.plan-option label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.plan-option .plan-meta {
  color: #41546a;
  font-size: 0.95rem;
}

.signup-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 24px 24px 0 0;
}

.signup-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.signup-card .form-row {
  display: grid;
  gap: 0.5rem;
}

.signup-card fieldset.form-row {
  border: none;
  padding: 0;
  margin: 0;
  gap: 0.9rem;
}

.signup-card fieldset.form-row label {
  background: var(--white);
  border: 1px solid rgba(20, 42, 58, 0.12);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 12px 24px rgba(13, 27, 42, 0.08);
  font-weight: 600;
}

.signup-card input[type="radio"],
.signup-card input[type="checkbox"] {
  accent-color: var(--accent-2);
}

.membership-flow .signup-card input[type="radio"],
.membership-flow .signup-card input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-width: 1.05rem;
  min-height: 1.05rem;
  margin: 0;
  flex: 0 0 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 111, 178, 0.12);
  color: #0b3a66;
  font-size: 0.8rem;
  font-weight: 600;
}

.order-summary {
  background: #0e2236;
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.membership-flow .signup-hero {
  padding: 2.2rem 0 0.5rem;
}

.membership-flow .signup-hero h1 {
  margin-bottom: 0.6rem;
}

.membership-flow .signup-hero + .section {
  padding-top: 1.2rem;
}

.membership-flow .signup-card {
  padding: 1.7rem;
  gap: 1rem;
}

.membership-flow .signup-grid {
  gap: 1.6rem;
}

.membership-flow .service-list {
  margin: 0.9rem 0;
}

.membership-flow .service-list li {
  font-size: 0.88rem;
  padding: 0.45rem 0.65rem;
}

.membership-flow .upsell-item {
  padding: 0.85rem;
}

.membership-flow .note-box {
  padding: 0.7rem 0.9rem;
  margin-top: 0.6rem;
  display: grid;
  gap: 0.2rem;
}

.membership-flow .note-box p {
  margin: 0;
  font-size: 0.9rem;
}

.compact-copy {
  margin: 0;
  font-size: 0.92rem;
  color: #4f6074;
}

.membership-flow .note-box a {
  margin-top: 0.1rem;
}

.order-summary .btn-primary {
  background: var(--accent-2);
  color: #0b1e33;
}

.order-summary .btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.order-summary .btn-secondary:hover {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.order-summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.order-summary li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.order-total {
  font-size: 1.6rem;
  font-weight: 700;
}

.upsell-grid {
  display: grid;
  gap: 0.8rem;
}

.upsell-item {
  border: 1px solid rgba(20, 42, 58, 0.12);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(31, 111, 178, 0.16);
  box-shadow: 0 12px 24px rgba(13, 27, 42, 0.08);
  display: grid;
  gap: 0.4rem;
}

.upsell-item label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.order-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   MEMBERSHIP FLOW PROGRESS BAR & IMPROVEMENTS
   ============================================ */

.progress-bar-container {
  background: transparent;
  border-radius: 0;
  padding: 1.5rem 0 2rem;
  box-shadow: none;
  margin-bottom: 0;
  border: none;
  position: sticky;
  top: 64px;
  z-index: 100;
  transition: background 0.3s ease;
}

.progress-bar-container.is-stuck {
  background: #f8fbff;
  border-bottom: 1px solid rgba(31, 111, 178, 0.1);
  padding: 0.75rem 0;
}

.progress-bar-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.progress-bar-bg {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(31, 111, 178, 0.15);
  transform: translateY(-50%);
  z-index: 1;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s ease;
  border-radius: 3px;
}

.progress-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.progress-step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(31, 111, 178, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #7a8fa5;
  transition: all 0.3s ease;
}

.progress-step.completed .progress-step-circle {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #0b1e33;
}

.progress-step.completed .progress-step-circle::before {
  content: "✓";
}

.progress-step.active .progress-step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(31, 111, 178, 0.12);
}

.progress-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #7a8fa5;
  text-align: center;
  max-width: 70px;
  line-height: 1.2;
}

.progress-step.active .progress-step-label {
  color: var(--accent);
}

.progress-step.completed .progress-step-label {
  color: #41546a;
}

/* Enhanced signup hero for membership flow */
.membership-flow {
  padding-top: 120px;
}

.membership-flow .signup-hero {
  padding: 2rem 0 1rem;
}

.membership-flow .signup-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.membership-flow .signup-hero .muted {
  font-size: 1.05rem;
  max-width: 600px;
}

/* Improved signup card with better hierarchy */
.membership-flow .signup-card {
  padding: 2rem;
  gap: 1.5rem;
}

.membership-flow .signup-card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.3rem;
}

.membership-flow .signup-card > p.muted {
  margin-top: -0.8rem;
  font-size: 0.95rem;
}

/* Enhanced plan options with better visual separation */
.membership-flow .plan-option {
  padding: 1.3rem 1.5rem;
  transition: all 0.3s ease;
}

.membership-flow .plan-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(13, 27, 42, 0.14);
}

.membership-flow .plan-option--featured {
  border-width: 2px;
  position: relative;
}

.membership-flow .plan-option--featured::after {
  content: "Most Popular";
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: var(--accent-2);
  color: #0b1e33;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.membership-flow .plan-price {
  font-size: 1.25rem;
  padding: 0.45rem 1rem;
}

/* Better stepper actions */
.membership-flow .stepper-actions {
  margin-top: 1.5rem;
  gap: 1rem;
}

.membership-flow .stepper-actions .btn {
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  flex: 1;
  white-space: nowrap;
}

.membership-flow .stepper-actions .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(31, 111, 178, 0.25);
}

.membership-flow .stepper-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(31, 111, 178, 0.35);
}

/* Enhanced order summary */
.membership-flow .order-summary {
  position: sticky;
  top: 144px;
  max-height: calc(100vh - 164px);
  overflow: auto;
  height: fit-content;
  padding: 2rem;
  gap: 1.5rem;
  background: linear-gradient(135deg, #0e2236 0%, #1a3a52 100%);
}

.membership-flow .order-summary h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.membership-flow .order-total {
  font-size: 2rem;
  color: var(--accent-2);
  margin-top: 0.5rem;
}

/* Selected location indicator improvements */
.selected-location-indicator {
  background: rgba(31, 111, 178, 0.08);
  border-radius: 16px;
  padding: 1.2rem;
  display: grid;
  gap: 0.3rem;
  border: 1px solid rgba(31, 111, 178, 0.2);
}

.selected-location-indicator .eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
}

.selected-location-indicator h4 {
  margin: 0;
  font-size: 1.15rem;
  color: #0b1e33;
}

.selected-location-indicator .text-link {
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

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

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media {
    grid-column: span 12;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .glass-image {
    height: 360px;
  }

  .glass-overlay {
    left: 1rem;
    width: min(90%, 360px);
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 5%;
    background: var(--white);
    padding: 1rem;
    border-radius: 16px;
    flex-direction: column;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
    padding: 0.65rem 1.1rem;
    margin-left: auto;
  }

  .brand {
    order: 1;
  }

  .nav-cta {
    order: 2;
  }

  .menu-toggle {
    order: 3;
    margin-left: 0.6rem;
  }

  .nav-links {
    order: 4;
  }

  .nav-actions {
    display: none;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .order-summary {
    order: 2;
  }

  .signup-card {
    order: 1;
  }

  .stepper-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .membership-flow .stepper-actions {
    flex-direction: column-reverse;
  }

  .stepper-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .membership-flow .stepper-actions .btn {
    font-size: 0.92rem;
  }

  .membership-progress-bar .progress-step-circle {
    width: 18px;
    height: 18px;
    font-size: 0.58rem;
  }

  .membership-progress-bar .progress-step-label {
    font-size: 0.58rem;
    max-width: 50px;
  }

  .membership-flow {
    padding-top: 115px;
  }

  .membership-flow .order-summary {
    position: static;
  }
}

@media (max-width: 700px) {
  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero-card {
    position: static;
    width: 100%;
    margin-top: -2rem;
  }

  .hero-copy,
  .hero-media {
    min-width: 0;
  }

  .hero-media,
  .hero-image {
    width: 100%;
  }

  .hero-copy .eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    white-space: normal;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-copy h1 {
    font-size: 2.3rem;
  }

  .hero-copy .lead {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

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

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.3rem;
    box-sizing: border-box;
  }

  .hero-metrics h3 {
    font-size: 1.5rem;
  }

  .glass-overlay {
    left: 1rem;
    width: min(90%, 320px);
  }

  .cta-strip {
    flex-direction: column;
    text-align: center;
  }

  .service-image {
    height: 260px;
  }

  .primary-hero .experience-grid {
    position: relative;
    padding: 1.2rem;
    border-radius: 18px;
    overflow: hidden;
    background: #f2f7ff;
  }

  .primary-hero .experience-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(\"../assets/images/vision.jpg\");
    background-size: cover;
    background-position: center;
    opacity: 0.25;
  }

  .primary-hero .experience-copy {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 16px;
    padding: 1rem;
  }

  .primary-hero .experience-media {
    display: none;
  }

  .services-page .experience-grid {
    padding: 1.4rem;
  }

  .services-page .experience-grid::before {
    opacity: 0.4;
  }

  .services-page .experience-grid::after {
    background: rgba(255, 255, 255, 0.25);
  }

  .about-page .service-title {
    font-size: 1.6rem;
  }

  .membership-flow .signup-hero {
    padding: 1.8rem 0 0.6rem;
  }

  .membership-flow .signup-card {
    padding: 1.4rem;
    gap: 0.9rem;
  }

  .membership-flow .service-list li {
    font-size: 0.86rem;
    padding: 0.42rem 0.6rem;
  }

  .savings-head {
    display: none;
  }

  .savings-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .savings-cell::before {
    content: attr(data-label);
    display: inline;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5f7388;
    margin-bottom: 0.2rem;
  }

  .savings-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .savings-cell::before {
    margin: 0;
  }

  /* Make W/ Onevia label blue and bold on mobile */
  .savings-with-onevia::before {
    color: var(--accent) !important;
    font-weight: 700;
  }

  /* Make W/ Onevia value bold on mobile */
  .savings-with-onevia {
    font-weight: 700 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   LIQUID GLASS AESTHETIC - ENHANCED STYLES
   ============================================ */

/* Video Hero Section */
.video-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1e33 0%, #1f6fb2 100%);
}

.video-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.video-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 30, 51, 0.55) 0%,
    rgba(31, 111, 178, 0.30) 100%
  );
  z-index: 1;
}

.video-hero .container {
  position: relative;
  z-index: 2;
}

.video-hero-content {
  display: grid;
  gap: 2rem;
  max-width: 780px;
}

/* When using split layout, override the grid and constrained max-width */
.video-hero-content.hero-split-layout {
  display: flex;
  max-width: none;
  width: 100%;
  justify-content: center;
  align-items: flex-end;
  min-height: 75vh;
  padding-bottom: 3rem;
}

/* Glass Hero Card */
.glass-hero-card {
  padding: 1.4rem 1.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(11, 30, 51, 0.3);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  animation: none;
}

/* Combined Hero Card - Single card at bottom center */
.glass-hero-combined {
  max-width: 480px;
  padding: 1.3rem 1.6rem;
  margin: 0 auto;
}

.glass-hero-combined .hero-title-glass {
  margin-bottom: 1rem;
  font-size: 1.8rem;
  white-space: nowrap;
}

.glass-hero-combined .hero-services-label {
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
}

.glass-hero-combined .hero-slider {
  margin-top: 1rem;
}

.glass-hero-combined .hero-dots {
  margin-top: 0.8rem;
}

/* FORCE hero section to bottom - override everything */
#hero.video-hero {
  align-items: flex-end !important;
}

#hero .video-hero-content.hero-split-layout {
  align-items: flex-end !important;
  justify-content: center !important;
}

#hero .hero-dot {
  width: 5px !important;
  height: 5px !important;
}

#hero .hero-dot.active {
  transform: none !important;
}

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

.hero-title-glass {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 0.3rem;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  line-height: 1.15;
}

.hero-lead-glass {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

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

.hero-actions-glass .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-glass-outline {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-glass-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
}

/* Glass Metrics Grid */
.glass-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.glass-metric-card {
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px) saturate(130%);
  -webkit-backdrop-filter: blur(15px) saturate(130%);
  transition: all 0.3s ease;
}

.glass-metric-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.glass-metric-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  color: var(--white);
}

.glass-metric-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* Feature Grid Glass */
.feature-grid-glass {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card-glass {
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 50px rgba(13, 27, 42, 0.12);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: all 0.3s ease;
}

.feature-card-glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(13, 27, 42, 0.2);
  background: rgba(255, 255, 255, 0.75);
}

.feature-card-glass h4 {
  font-size: 1.3rem;
  margin: 0.5rem 0 0.8rem;
  color: var(--ink);
}

.feature-card-glass p {
  margin: 0;
  color: var(--ink-soft);
}

.glass-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 111, 178, 0.15), rgba(31, 111, 178, 0.25));
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid rgba(31, 111, 178, 0.3);
}

/* Section Glass Background */
.section-glass-bg {
  position: relative;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5fb 100%);
  overflow: hidden;
}

.section-glass-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(31, 111, 178, 0.08), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.section-glass-bg::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(31, 111, 178, 0.06), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.section-glass-bg .container {
  position: relative;
  z-index: 1;
}

/* Care Grid Glass */
.care-grid-glass {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.care-card-glass {
  display: block;
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(13, 27, 42, 0.1);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  transition: all 0.3s ease;
}

.care-card-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.18);
  background: rgba(255, 255, 255, 0.85);
}

.care-card-glass h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.care-card-glass p {
  color: var(--ink-soft);
}

/* Testimonial Glass Cards */
.testimonial-grid-glass {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-glass-card {
  padding: 2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(13, 27, 42, 0.12);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  transition: all 0.3s ease;
}

.testimonial-glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.18);
  background: rgba(255, 255, 255, 0.85);
}

.testimonial-glass-card p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--ink);
  line-height: 1.7;
}

.testimonial-glass-card span {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Location Cards */
.location-preview {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.location-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.location-card {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 111, 178, 0.1);
  box-shadow: 0 20px 50px rgba(13, 27, 42, 0.12);
  transition: all 0.3s ease;
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(13, 27, 42, 0.2);
}

.location-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.location-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.location-card:hover .location-card-image img {
  transform: scale(1.05);
}

.location-card-content {
  padding: 1.8rem;
}

.location-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

.location-card-content p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.location-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(31, 111, 178, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.location-tag-soon {
  background: rgba(255, 159, 28, 0.15);
  color: #c77700;
}

.location-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.distance-badge {
  display: none;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background: rgba(31, 111, 178, 0.08);
  border-radius: 999px;
  white-space: nowrap;
}

.distance-badge:empty {
  display: none;
}

.center-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================
   LOCATIONS PAGE STYLES
   ============================================ */

.locations-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5fb 100%);
  position: relative;
  overflow: hidden;
}

.locations-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(31, 111, 178, 0.1), transparent 70%);
  border-radius: 50%;
}

.locations-hero-content {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.locations-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4.5vw, 3.8rem);
  margin: 1rem 0;
  color: var(--ink);
}

.locations-hero-content .lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Search Bar */
.locations-search-bar {
  display: grid;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(13, 27, 42, 0.12);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.search-input-wrapper {
  position: relative;
}

.location-search-input {
  width: 100%;
  padding: 1rem 1.2rem 1rem 3rem;
  border: 1px solid rgba(31, 111, 178, 0.2);
  border-radius: 999px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.location-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(31, 111, 178, 0.15);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.filter-chip {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 178, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-chip:hover {
  background: rgba(31, 111, 178, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.filter-chip.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Location Card Glass Overlay */
.location-card-glass-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.8rem;
  background: linear-gradient(to top, rgba(11, 30, 51, 0.85), rgba(11, 30, 51, 0.4) 80%, transparent);
  z-index: 2;
}

.location-card-glass-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 0;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.location-badge-coming-soon {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 159, 28, 0.9);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Updated location card for glass overlay design */
.location-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

/* No Results Message */
.no-results-message {
  text-align: center;
  padding: 3rem 1rem;
}

.no-results-message p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* Services Hotbar */
.services-hotbar {
  position: sticky;
  top: 64px;
  z-index: 90;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border-bottom: 1px solid rgba(31, 111, 178, 0.1);
}

.services-hotbar-item {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.services-hotbar-item:hover {
  color: var(--accent);
  background: rgba(31, 111, 178, 0.08);
}

.services-hotbar-item.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* Compact Glass Location Card for Hero */
.glass-location-card-compact {
  padding: 2rem;
  max-width: 560px;
}


/* Home link in location headers */
.brand-home-link {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.brand-home-link:hover {
  color: var(--accent);
}

/* Map Section */
.locations-map-section {
  background: #e8f2fb;
}

.locations-map-container {
  height: 400px;
  position: relative;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef5fb 0%, #dce9f7 100%);
  position: relative;
}

.map-overlay {
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.map-overlay p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.map-overlay small {
  color: var(--ink-soft);
}

/* Locations Grid Section */
.locations-grid-section {
  background: var(--white);
}

.locations-count {
  margin-bottom: 2rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.locations-count span {
  color: var(--accent);
  font-size: 1.1rem;
}

.locations-grid {
  display: grid;
  gap: 2.5rem;
}

.location-card-full {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 111, 178, 0.1);
  box-shadow: 0 20px 50px rgba(13, 27, 42, 0.1);
  transition: all 0.3s ease;
}

.location-card-full:hover {
  box-shadow: 0 30px 70px rgba(13, 27, 42, 0.18);
  transform: translateY(-4px);
}

.location-card-full-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 300px;
}

.location-card-full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.status-open {
  background: rgba(67, 160, 71, 0.9);
  color: var(--white);
}

.status-coming {
  background: rgba(255, 159, 28, 0.9);
  color: var(--white);
}

.status-future {
  background: rgba(158, 158, 158, 0.9);
  color: var(--white);
}

.location-card-full-content {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.location-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.location-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0;
  color: var(--ink);
}

.location-type {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 111, 178, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.location-description {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.location-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.service-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(31, 111, 178, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.service-badge-future {
  background: rgba(158, 158, 158, 0.15);
  color: #5a5a5a;
}

.location-info {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(31, 111, 178, 0.05);
}

.info-item {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.info-item strong {
  color: var(--ink);
  font-weight: 600;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-soft);
}

/* ============================================
   LOCATION TEMPLATE PAGE STYLES
   ============================================ */

.location-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1e33 0%, #1f6fb2 100%);
}

.location-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.location-hero-image,
.location-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.location-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 30, 51, 0.7) 0%,
    rgba(31, 111, 178, 0.5) 100%
  );
  z-index: 1;
}

.location-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}

.location-hero-content {
  max-width: 520px;
}

.glass-location-card {
  padding: 2.5rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 70px rgba(11, 30, 51, 0.4);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.location-breadcrumb {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.location-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.location-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 0 0 0.5rem;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.location-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem;
}

.location-quick-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.quick-info-item {
  display: grid;
  gap: 0.3rem;
}

.quick-info-item strong {
  color: var(--white);
  font-size: 1.1rem;
}

.quick-info-item span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

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

/* Location Services Grid */
.location-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.location-service-card {
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(13, 27, 42, 0.1);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  transition: all 0.3s ease;
}

.location-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.18);
}

.location-service-card h3 {
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
  color: var(--ink);
}

.location-service-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}

.service-features li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Physician Grid */
.physician-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

.physician-card-glass {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 45px rgba(13, 27, 42, 0.12);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  transition: all 0.3s ease;
}

.physician-card-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.18);
}

.physician-photo {
  border-radius: 18px;
  overflow: hidden;
}

.physician-photo img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.physician-info h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 0 0 0.3rem;
  color: var(--ink);
}

.physician-title {
  display: block;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.physician-bio {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.physician-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.credential-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 111, 178, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.physician-quote {
  margin: 1rem 0 0;
  padding: 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(31, 111, 178, 0.05);
  border-radius: 8px;
  font-style: italic;
  color: var(--ink-soft);
}

/* Clinic Gallery */
.clinic-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(13, 27, 42, 0.12);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(11, 30, 51, 0.85), transparent);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Location Details Grid */
.location-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.location-details-card {
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(13, 27, 42, 0.1);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.location-details-card h3 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

/* Modern Hours Grid Display */
.hours-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(31, 111, 178, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.hours-row:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(13, 27, 42, 0.08);
}

.hours-row.today {
  background: linear-gradient(135deg, rgba(31, 111, 178, 0.12), rgba(31, 111, 178, 0.08));
  border: 1px solid rgba(31, 111, 178, 0.2);
  box-shadow: 0 4px 16px rgba(31, 111, 178, 0.15);
}

.hours-row.today .hours-day {
  color: var(--accent);
  font-weight: 700;
}

.hours-day {
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-day::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

.hours-row.today .hours-day::before {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 8px rgba(31, 111, 178, 0.4);
}

.hours-time {
  color: var(--ink-soft);
  font-weight: 500;
  text-align: right;
}

.hours-row.closed .hours-time {
  color: #94a3b8;
  font-style: italic;
}

.hours-note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(31, 111, 178, 0.08);
  color: var(--ink-soft);
  font-size: 0.9rem;
  border: 1px solid rgba(31, 111, 178, 0.12);
}

/* Getting There Section */
.getting-there-info {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(31, 111, 178, 0.08);
  transition: all 0.2s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(4px);
}

.contact-item strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item strong::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
}

.contact-item.address strong::before {
  content: '📍';
  font-size: 16px;
}

.contact-item.phone strong::before {
  content: '📞';
  font-size: 16px;
}

.contact-item.email strong::before {
  content: '✉️';
  font-size: 16px;
}

.contact-item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 1.5rem;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: #155a93;
  text-decoration: underline;
}

.maps-buttons {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.maps-buttons .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.9rem 1.4rem;
}

.maps-buttons .btn-primary {
  background: var(--accent);
  border: 1px solid transparent;
}

.maps-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(31, 111, 178, 0.2);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.maps-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--accent);
}

/* Hide Apple Maps button by default - JS will show for iOS */
.maps-buttons .btn-apple-maps {
  display: none;
}

.location-map-embed {
  margin-top: 2rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(13, 27, 42, 0.15);
}

.map-placeholder-inline {
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef5fb 0%, #dce9f7 100%);
}

.map-placeholder-inline p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.map-placeholder-inline small {
  color: var(--ink-soft);
}

/* Mobile Responsive Styles */
@media (max-width: 960px) {
  .video-hero {
    min-height: 70vh;
  }

  .glass-hero-card {
    padding: 1.2rem 1.5rem;
  }

  .glass-metrics-grid {
    grid-template-columns: 1fr;
  }

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

  .location-card-full-image {
    min-height: 250px;
  }

  .physician-card-glass {
    grid-template-columns: 1fr;
  }

  .physician-photo img {
    height: 300px;
  }

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

@media (max-width: 700px) {
  .hero-title-glass {
    font-size: 1.5rem;
  }

  .hero-lead-glass {
    font-size: 0.9rem;
  }

  .glass-hero-card {
    padding: 1rem 1.2rem;
  }

  .filter-chips {
    gap: 0.6rem;
  }

  .filter-chip {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .location-hero-actions {
    flex-direction: column;
  }

  .location-hero-actions .btn {
    width: 100%;
  }

  .hours-row {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .hours-day {
    font-size: 0.9rem;
  }

  .hours-time {
    font-size: 0.85rem;
  }

  .contact-item {
    padding: 0.85rem;
  }

  .maps-buttons {
    gap: 0.6rem;
  }
}

/* Smooth animations for glass elements */
@media (prefers-reduced-motion: no-preference) {
  .glass-hero-card,
  .glass-metric-card,
  .feature-card-glass,
  .care-card-glass,
  .testimonial-glass-card,
  .location-card,
  .location-service-card,
  .physician-card-glass {
    animation: fadeInUp 0.6s ease-out;
  }
}

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

/* ============================================
   LOCATION-AWARE MEMBERSHIP FLOW
   ============================================ */

/* Location Selection Grid */
.location-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Location Option Cards */
.location-option-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 40px rgba(13, 27, 42, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.location-option-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.24);
}

/* Location Option Image Container */
.location-option-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.location-option-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.location-option-card:hover .location-option-image img {
  transform: scale(1.05);
}

/* Location Badge */
.location-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.location-open {
  background: rgba(43, 182, 115, 0.95);
  color: white;
}

.location-planned {
  background: rgba(248, 164, 79, 0.95);
  color: white;
}

/* Location Option Content */
.location-option-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.location-option-content h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--ink);
}

.location-address {
  color: #4f6074;
  font-size: 0.95rem;
  margin: 0;
}

/* Services Available */
.services-available {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.service-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(31, 111, 178, 0.1);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.location-option-card:hover .service-badge {
  background: rgba(31, 111, 178, 0.15);
}

/* Location Option Button */
.location-option-content .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* Selected Location Indicator */
.selected-location-indicator {
  background: rgba(31, 111, 178, 0.08);
  border: 1px solid rgba(31, 111, 178, 0.2);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.selected-location-indicator .eyebrow {
  font-size: 0.75rem;
  color: #5f7388;
  display: block;
  margin-bottom: 0.25rem;
}

.selected-location-indicator h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.selected-location-indicator .text-link {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Fallback for browsers without backdrop-filter */
.no-backdrop-filter .location-option-card {
  background: rgba(255, 255, 255, 0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .location-selection {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .location-option-image {
    height: 180px;
  }

  .location-option-content {
    padding: 1.25rem;
  }

  .location-option-content h3 {
    font-size: 1.35rem;
  }

  .service-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
  }

  .location-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }

  .selected-location-indicator {
    padding: 0.9rem 1rem;
  }

  .selected-location-indicator h4 {
    font-size: 1.1rem;
  }
}

/* ============================================
   HERO SLIDING TAGLINES & URGENCY
   ============================================ */

/* Hero Services Label - smaller to fit on one line */
.hero-services-label {
  font-family: var(--font-body);
  font-size: clamp(0.68rem, 1.2vw, 0.78rem);
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.25rem;
  letter-spacing: 0.06em;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Sliding tagline container */
.hero-slider {
  position: relative;
  min-height: 2.2rem;
  margin-bottom: 0.6rem;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* Dot indicators - centered at bottom middle */
.hero-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0;
  margin-top: 0.8rem;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-dot.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
}

.hero-dot:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.4);
}

/* Urgency badge */
.urgency-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(200, 80, 40, 0.65);
  border: 1px solid rgba(255, 160, 100, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

/* Story CTA button - prominent */
.story-cta-btn {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

/* ============================================
   NEW HOMEPAGE REDESIGN STYLES
   ============================================ */

/* Glass Hero Card Wide (for Why Onevia section) */
.glass-hero-card-wide {
  max-width: 900px;
  margin: 0 auto;
}

/* Compact glass card – smaller footprint on video sections so background is more visible */
.glass-hero-card-compact {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

.glass-hero-card-compact .hero-title-glass,
.glass-hero-card-compact h2 {
  font-size: 2rem;
}

.glass-hero-card-compact .glass-benefits-grid {
  gap: 1rem;
  margin-top: 1.5rem;
}

.glass-hero-card-compact .glass-benefit-card {
  padding: 1.2rem;
}

/* Glass Benefits Grid (2x2 grid) */
.glass-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.glass-benefit-card {
  padding: 1.8rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.glass-benefit-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.glass-benefit-card h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
  color: var(--white);
  font-weight: 600;
}

.glass-benefit-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Section Title Glass (for video sections) */
.section-title-glass {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--white);
}

.section-title-glass h2 {
  font-size: 2.5rem;
  margin: 0.5rem 0 1rem;
  color: var(--white);
}

.section-title-glass p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* Testimonial Photo Cards */
.testimonial-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial-photo-card {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 20px 50px rgba(13, 27, 42, 0.15);
}

.testimonial-photo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(13, 27, 42, 0.25);
}

.testimonial-photo-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.testimonial-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.7), rgba(31, 111, 178, 0.6));
  z-index: 2;
}

.testimonial-glass-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  padding: 2.5rem;
  color: var(--white);
}

.testimonial-glass-content p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
  color: var(--white);
  font-style: italic;
}

.testimonial-glass-content span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .glass-benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .glass-benefit-card {
    padding: 1.5rem;
  }

  .glass-benefit-card h4 {
    font-size: 1.1rem;
  }

  .glass-benefit-card p {
    font-size: 0.9rem;
  }

  .section-title-glass h2 {
    font-size: 1.8rem;
  }

  .section-title-glass p {
    font-size: 1rem;
  }

  .testimonial-photo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial-photo-card {
    min-height: 300px;
  }

  .testimonial-glass-content {
    min-height: 300px;
    padding: 2rem;
  }

  .testimonial-glass-content p {
    font-size: 1rem;
  }
}

/* ============================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS
   ============================================ */

/* Mobile-specific improvements for video backgrounds */
@media (max-width: 768px) {
  .video-hero {
    min-height: auto;
    padding: 3.5rem 0;
  }

  .video-hero-bg {
    object-position: center center;
  }

  .video-hero-content {
    gap: 1.5rem;
  }

  .glass-hero-card {
    padding: 1rem 1.2rem;
    max-width: 92%;
    margin: 0 auto;
    animation: none;
  }

  /* Reduce blur intensity on mobile for better performance */
  .glass-hero-card,
  .glass-metric-card,
  .feature-card-glass,
  .care-card-glass,
  .testimonial-glass-card,
  .location-service-card,
  .physician-card-glass,
  .location-details-card,
  .glass-overlay {
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
  }

  /* Increase contrast for better readability on mobile */
  .glass-hero-card {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
  }

  .glass-metric-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .feature-card-glass,
  .care-card-glass,
  .testimonial-glass-card {
    background: rgba(255, 255, 255, 0.8);
  }

  /* Touch target optimization - minimum 44x44px */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.4rem;
    font-size: 1rem;
    border-width: 1px;
  }

  .btn-primary,
  .nav-cta.btn-primary {
    border: 1px solid transparent;
  }

  .filter-chip {
    min-height: 44px;
    padding: 0.65rem 1.2rem;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
  }

  /* Stack hero metrics in single column */
  .glass-metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .glass-metric-card {
    padding: 1.2rem;
  }

  .glass-metric-card h3 {
    font-size: 1.5rem;
  }

  /* Reduce hero title size */
  .hero-title-glass {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero-lead-glass {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  /* Why Onevia section - 2x2 grid becomes 1 column */
  .feature-grid-glass {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .feature-card-glass {
    padding: 1.5rem;
  }

  .feature-card-glass h4 {
    font-size: 1.2rem;
  }

  /* How It Works - 3 steps becomes 1 column */
  #how-it-works .feature-grid-glass {
    grid-template-columns: 1fr;
  }

  /* Locations - stack vertically */
  .location-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .location-card-full {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .location-card-full-image {
    min-height: 220px;
    order: -1;
  }

  /* Testimonials - 3 columns becomes 1 column */
  .testimonial-grid-glass {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .testimonial-glass-card {
    padding: 1.5rem;
  }

  /* Services grid */
  .care-grid-glass {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .care-card-glass {
    padding: 1.5rem;
  }

  /* Glass overlays on mobile */
  .glass-overlay {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: calc(100% - 1.5rem);
    padding: 1rem 1.2rem;
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
  }

  /* Navigation drawer improvements */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 5rem 1.5rem 1.5rem;
    border-radius: 0;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(13, 27, 42, 0.3);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.is-open {
    right: 0;
  }

  .nav-links a {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(20, 42, 58, 0.08);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  /* Overlay for mobile menu */
  .nav-links.is-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 280px;
    bottom: 0;
    background: rgba(11, 30, 51, 0.5);
    z-index: -1;
  }

  /* Ensure CTA button remains visible */
  .nav-cta {
    position: static;
    display: inline-flex;
  }

  /* Optimize section padding */
  .section {
    padding: 2rem 0;
  }

  .video-hero,
  .location-hero,
  .locations-hero {
    padding: 2.5rem 0;
  }

  /* Font size scaling */
  .section-title h2 {
    font-size: clamp(1.75rem, 5vw, 2.2rem);
  }

  .section-title p {
    font-size: 0.95rem;
  }

  /* Card spacing optimization */
  .card,
  .feature-card,
  .plan-card {
    padding: 1.4rem;
  }

  /* Savings table mobile optimization */
  .savings-table {
    gap: 0.6rem;
  }

  .savings-row {
    padding: 0.85rem 1rem;
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .savings-cell {
    font-size: 0.9rem;
  }

  /* CTA banner stacking */
  .cta-banner {
    padding: 1.5rem;
    gap: 1rem;
  }

  .cta-banner h3 {
    font-size: 1.3rem;
  }

  /* Footer optimization */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Form elements touch optimization */
  .contact-form input,
  .contact-form textarea,
  .contact-form select,
  .location-search-input {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Membership flow optimization */
  .signup-grid {
    gap: 1.5rem;
  }

  .signup-card {
    padding: 1.4rem;
  }

  .order-summary {
    padding: 1.5rem;
  }

  /* Physician cards */
  .physician-card-glass {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .physician-photo img {
    height: 260px;
  }

  /* Location details */
  .location-details-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .location-details-card {
    padding: 1.5rem;
  }

  /* Hours grid mobile */
  .hours-row {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  /* Clinic gallery */
  .clinic-gallery {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .gallery-item img {
    height: 220px;
  }

  /* Location services grid */
  .location-services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .location-service-card {
    padding: 1.5rem;
  }

  /* Reduce animation complexity on mobile */
  * {
    animation-duration: 0.3s !important;
  }

  .glass-hero-card,
  .glass-metric-card,
  .feature-card-glass {
    animation: none !important;
  }

  /* Performance: Disable parallax on mobile */
  .glass-hero-card,
  .glass-metric-card,
  .feature-card-glass {
    transform: none !important;
  }
}

/* Small mobile devices (< 480px) */
@media (max-width: 480px) {
  .container {
    width: 94%;
  }

  .hero-title-glass {
    font-size: 1.35rem;
  }

  .hero-lead-glass {
    font-size: 0.82rem;
  }

  .glass-hero-card {
    padding: 0.9rem 1rem;
  }

  .glass-metric-card {
    padding: 1rem;
  }

  .glass-metric-card h3 {
    font-size: 1.3rem;
  }

  .feature-card-glass,
  .care-card-glass,
  .testimonial-glass-card {
    padding: 1.25rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    border-width: 1px;
  }

  .btn-primary {
    border: 1px solid transparent !important;
  }

  .glass-overlay {
    left: 0.5rem;
    right: 0.5rem;
    padding: 0.85rem 1rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }
}

/* Tablet landscape (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .feature-grid-glass {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid-glass {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .glass-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .care-grid-glass {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
  .video-hero {
    min-height: 100vh;
  }

  .glass-hero-card {
    padding: 1rem 1.5rem;
  }

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

  .hero-title-glass {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .hero-lead-glass {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
}

/* Accessibility: Ensure focus states are visible on mobile */
@media (max-width: 768px) {
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible,
  select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
  }

  /* Screen reader only text */
  .sr-only {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-hero-card,
  .glass-metric-card,
  .feature-card-glass,
  .care-card-glass,
  .testimonial-glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--ink);
  }

  .glass-overlay {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(11, 30, 51, 0.5);
  }
}

/* Performance: Lazy loading placeholder */
img[data-src] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ============================================
   EMPLOYER SECTION (Homepage)
   ============================================ */

.employer-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.employer-benefit {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.employer-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.employer-benefit h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.employer-benefit p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

.employer-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.employer-cta .muted {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* ============================================
   NOTIFY / EMAIL CAPTURE (Homepage)
   ============================================ */

.notify-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.notify-card .section-title {
  margin-bottom: 2rem;
}

.notify-form-row {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
}

.notify-form-row input[type="email"] {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgba(31, 111, 178, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--sand);
  transition: border-color 0.3s ease;
}

.notify-form-row input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.1);
}

.notify-form .form-note {
  font-size: 0.8rem;
  color: rgba(11, 30, 51, 0.5);
  margin-top: 1rem;
}

/* ============================================
   GLASS STORY LINK (Why Onevia section)
   ============================================ */

.glass-story-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.glass-story-link:hover {
  color: #ffffff;
}

/* Pricing anchor emphasis */
.pricing-anchor strong {
  color: var(--accent);
  font-size: 1.05em;
}

/* ============================================
   ABOUT / OUR STORY PAGE
   ============================================ */

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.story-layout-reverse {
  grid-template-columns: 1.4fr 1fr;
}

.story-layout-reverse .story-photo {
  order: 2;
}

.story-layout-reverse .story-content {
  order: 1;
}

.story-photo img {
  border-radius: var(--radius);
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.story-content .eyebrow {
  margin-bottom: 0.5rem;
}

.story-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.story-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.story-centered {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.story-centered h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: 0.5rem 0 1.25rem;
  line-height: 1.2;
}

.story-centered p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.story-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.story-value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.story-value-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.story-value-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ========================================
   Mobile Optimizations for New Features
======================================== */

/* Video Sections Mobile */
@media (max-width: 768px) {
  /* Video hero: shrink so video background is visible */
  .video-hero {
    min-height: auto;
    padding: 3.5rem 0;
  }

  .video-hero-bg {
    object-position: center center;
  }

  .video-hero-content {
    max-width: 100%;
  }

  /* Glass cards: constrain width so video peeks through on sides */
  .glass-hero-card,
  .glass-hero-card-wide,
  .glass-hero-card-compact {
    padding: 1rem 1.2rem;
    margin: 0 auto;
    max-width: 92%;
    border-radius: 16px;
  }

  .glass-hero-card-compact {
    padding: 0.9rem 1rem;
  }

  .hero-title-glass {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
  }

  .hero-lead-glass {
    font-size: 0.88rem;
    margin-bottom: 0;
    line-height: 1.4;
  }

  /* Benefits grid - stack on mobile, compact */
  .glass-benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .glass-benefit-card {
    padding: 0.75rem;
  }

  .glass-benefit-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .glass-benefit-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  /* Metrics: horizontal row on mobile instead of stacking */
  .glass-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .glass-metric-card {
    padding: 0.75rem;
    text-align: center;
  }

  .glass-metric-card h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  .glass-metric-card p {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  /* Feature grid stack */
  .feature-grid-glass {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Section title glass */
  .section-title-glass h2 {
    font-size: 2rem;
  }

  .section-title-glass p {
    font-size: 1rem;
  }

  /* Location hero: shrink glass card */
  .location-hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .location-hero-content {
    max-width: 100%;
  }

  .glass-location-card,
  .glass-location-card-compact {
    padding: 1.25rem;
    border-radius: 20px;
    max-width: 92%;
    margin: 0 auto;
  }

  .location-title {
    font-size: 1.75rem;
    margin-bottom: 0.3rem;
  }

  .location-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .location-breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .location-quick-info {
    padding: 1rem;
    border-radius: 14px;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .quick-info-item strong {
    font-size: 0.95rem;
  }

  .quick-info-item span {
    font-size: 0.8rem;
  }

  .location-hero-actions {
    gap: 0.75rem;
  }

  .location-hero-actions .btn {
    font-size: 0.9rem;
    padding: 0.65rem 1.2rem;
  }

  /* Brand home link on mobile */
  .brand-home-link {
    display: none;
  }
}

/* Testimonial Photo Cards Mobile */
@media (max-width: 768px) {
  .testimonial-photo-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial-photo-card {
    min-height: 240px;
  }

  .testimonial-glass-content {
    padding: 1.25rem;
  }

  .testimonial-glass-content p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Locations search bar mobile */
  .locations-search-bar {
    padding: 1.25rem;
    border-radius: 18px;
    gap: 1rem;
  }

  #location-search {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .filter-chips {
    gap: 0.5rem;
  }

  .filter-chip {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  /* Location card images */
  .location-card-image img {
    height: 180px;
  }

  .location-card-glass-overlay h3 {
    font-size: 1.3rem;
  }

  .service-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }
}

/* Location Cards with Distance Badges Mobile */
@media (max-width: 768px) {
  .location-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .location-card {
    display: block;
  }
  
  .location-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .distance-badge {
    align-self: flex-end;
  }
}

/* Membership Flow Mobile */
@media (max-width: 768px) {
  .location-selection {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .location-option-card {
    display: flex;
    flex-direction: column;
  }
  
  .location-option-image {
    height: 200px;
  }
  
  .location-option-content {
    padding: 1.5rem;
  }
  
  .services-available {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .service-badge {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
  }
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn,
  .location-card,
  .care-card-glass,
  a.text-link {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Remove hover effects that don't work on touch */
  .location-card:hover,
  .care-card-glass:hover,
  .testimonial-photo-card:hover {
    transform: none;
  }
  
  /* Tap highlight */
  .btn,
  .location-card,
  .care-card-glass {
    -webkit-tap-highlight-color: rgba(31, 111, 178, 0.2);
  }
}

/* New Sections Mobile */
@media (max-width: 768px) {
  /* Employer grid */
  .employer-benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .employer-benefit {
    padding: 1.5rem;
  }

  /* Notify card */
  .notify-card {
    padding: 2rem 1.5rem;
  }

  .notify-form-row {
    flex-direction: column;
  }

  .notify-form-row input[type="email"] {
    width: 100%;
  }

  /* About / Story page */
  .story-layout,
  .story-layout-reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .story-layout-reverse .story-photo {
    order: 0;
  }

  .story-layout-reverse .story-content {
    order: 0;
  }

  .story-photo img {
    height: 280px;
  }

  .story-content h2 {
    font-size: 1.6rem;
  }

  .story-centered h2 {
    font-size: 1.6rem;
  }

  .story-values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Small Mobile (iPhone SE, etc.) */
@media (max-width: 375px) {
  .hero-title-glass {
    font-size: 1.2rem;
  }

  .glass-hero-card,
  .glass-hero-card-wide,
  .glass-hero-card-compact {
    padding: 0.8rem 0.9rem;
    max-width: 94%;
    border-radius: 14px;
  }

  .glass-location-card,
  .glass-location-card-compact {
    padding: 1rem;
    max-width: 94%;
    border-radius: 16px;
  }

  .location-title {
    font-size: 1.5rem;
  }

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

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

  .btn {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
  }

  .badge {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
  }
}

/* Mobile Glass Cards - More Compact */
@media (max-width: 768px) {
  /* Fix video zoom on mobile */
  .video-hero-bg {
    object-fit: cover;
    object-position: center top;
    transform: scale(1.05);
  }

  /* Ensure video always shows, never just blue */
  .video-hero {
    background: #0b1e33;
  }

  .video-hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(11, 30, 51, 0.4) 0%,
      rgba(31, 111, 178, 0.25) 100%
    );
  }

  /* Further reduce glass card size on mobile so video shows through more */
  .glass-hero-card {
    padding: 0.85rem 1rem !important;
    border-radius: 16px !important;
    max-width: 84% !important;
  }

  .glass-hero-combined {
    max-width: 72% !important;
    padding: 0.9rem 1.1rem !important;
    margin: 0 auto;
  }

  .glass-hero-combined .hero-title-glass {
    margin-bottom: 0.7rem;
    font-size: 1.05rem !important;
    white-space: normal !important;
  }

  .glass-hero-combined .hero-services-label {
    font-size: 0.6rem !important;
    margin-bottom: 0.25rem;
  }

  .glass-hero-combined .hero-slider {
    margin-top: 0.7rem;
  }

  .glass-hero-combined .hero-slide {
    font-size: 0.75rem !important;
    line-height: 1.4;
  }

  .glass-hero-combined .hero-dots {
    margin-top: 0.55rem;
  }

  .video-hero-content.hero-split-layout {
    justify-content: center;
    align-items: flex-end;
    min-height: 70vh;
    padding-bottom: 2rem;
  }

  /* Make dots smaller on mobile */
  .hero-dot {
    width: 5px !important;
    height: 5px !important;
    border-width: 1px !important;
  }

  .hero-title-glass {
    font-size: 1.25rem !important;
  }

  .hero-lead-glass {
    font-size: 0.85rem !important;
  }

  .hero-slide {
    font-size: 0.86rem !important;
    line-height: 1.4;
  }

  .hero-slider {
    min-height: 2.4rem !important;
  }

  .urgency-badge {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.7rem !important;
  }

  .location-hero-actions-inline .btn {
    padding: 0.5rem 0.9rem !important;
    font-size: 0.82rem !important;
  }

  /* Ensure buttons on location pages have clean borders */
  .location-hero-actions-inline .btn-primary,
  .location-hero-actions .btn-primary {
    border: none !important;
    box-shadow: 0 4px 12px rgba(31, 111, 178, 0.25);
  }
}

/* Video Performance on Mobile */
@media (max-width: 768px) {
  /* Reduce video quality impact on mobile */
  .video-hero-bg {
    will-change: transform;
    transform: translateZ(0);
  }

  /* Ensure video overlay is strong enough on small screens */
  .video-hero-overlay {
    background: linear-gradient(
      135deg,
      rgba(11, 30, 51, 0.5) 0%,
      rgba(31, 111, 178, 0.35) 100%
    );
  }

  /* Reduce blur on mobile for performance */
  .glass-hero-card,
  .glass-hero-card-wide,
  .glass-hero-card-compact,
  .glass-benefit-card,
  .glass-metric-card,
  .feature-card-glass {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .video-hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .location-hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .glass-hero-card,
  .glass-hero-card-compact {
    max-width: 520px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
  }

  .glass-location-card,
  .glass-location-card-compact {
    max-width: 520px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
  }

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

  .hero-title-glass {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .hero-lead-glass {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .glass-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
  /* Fix for iOS viewport height */
  .video-hero {
    min-height: -webkit-fill-available;
  }
  
  /* Fix for iOS backdrop-filter */
  .glass-hero-card,
  .glass-hero-card-wide,
  .glass-hero-card-compact,
  .glass-benefit-card {
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .video-hero-bg {
    animation: none;
  }

  .location-card,
  .care-card-glass,
  .testimonial-photo-card {
    transition: none;
  }

  .glass-hero-card,
  .glass-benefit-card {
    animation: none;
  }

  .hero-slide {
    transition: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .glass-hero-card,
  .glass-hero-card-wide,
  .glass-hero-card-compact,
  .glass-benefit-card,
  .glass-metric-card,
  .testimonial-glass-content {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--ink);
  }
  
  .video-hero-overlay,
  .testimonial-photo-overlay {
    background: rgba(0, 0, 0, 0.8);
  }
}

/* Print Styles */
@media print {
  .video-hero-bg,
  .video-hero-overlay,
  .topbar,
  .footer,
  .nav-cta,
  .btn {
    display: none;
  }

  .glass-hero-card,
  .glass-benefit-card,
  .testimonial-glass-content {
    background: white;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* ============================================
   MOBILE: SLIDER, URGENCY, LOCATION GLASS
   ============================================ */

@media (max-width: 768px) {
  .hero-services-label {
    font-size: 0.82rem;
  }

  .hero-slider {
    min-height: 3rem;
  }

  .hero-slide {
    font-size: 0.95rem;
  }

  .hero-dots {
    margin-bottom: 0.8rem;
  }

  .hero-dot {
    width: 5px !important;
    height: 5px !important;
    border-width: 1px !important;
  }

  .urgency-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.8rem;
  }

  .story-cta-btn {
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
  }

  /* Location glass card - tighter on mobile so background image shows */
  .glass-location-card,
  .glass-location-card-compact {
    padding: 1.1rem 1.3rem;
    max-width: 84%;
    margin: 0 auto;
  }

  .location-title {
    font-size: 1.55rem;
    margin-bottom: 0.25rem;
  }

  .location-subtitle {
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
  }

  .location-quick-info {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .quick-info-item strong {
    font-size: 0.9rem;
  }

  .quick-info-item span {
    font-size: 0.82rem;
  }

  .location-hero-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .location-hero-actions .btn {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .location-hero-actions .btn-primary {
    border: none !important;
  }
}

@media (max-width: 480px) {
  .glass-location-card,
  .glass-location-card-compact {
    padding: 0.95rem 1.1rem;
    max-width: 86%;
    border-radius: 16px;
  }

  .location-title {
    font-size: 1.3rem;
  }

  .location-subtitle {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
  }

  .location-quick-info {
    padding: 0.6rem;
    border-radius: 12px;
    margin-bottom: 0.6rem;
  }

  .urgency-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.7rem;
  }
}

/* ============================================
   HERO SPLIT LAYOUT - Dual Glass Cards
   ============================================ */

/* Split layout: two glass cards positioned top-left and bottom-left,
   with space between so the video/image background shows through */
.hero-split-layout {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70vh;
  padding: 2rem 0;
  gap: 2rem;
}

.video-hero .hero-split-layout {
  min-height: 85vh;
}

/* Why Onevia section: match main hero height */
#why.video-hero {
  min-height: 92vh;
}

#why .hero-split-layout {
  min-height: 85vh;
  padding: 2rem 0 3rem;
  justify-content: flex-start;
  position: relative;
}

#why .hero-slider {
  min-height: 3.2rem;
}

/* Why Onevia title card - smaller, stays at top */
#why .glass-hero-title-card {
  max-width: 340px;
  padding: 0.9rem 1.2rem;
  align-self: flex-start;
}

#why .hero-title-glass {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

#why .hero-lead-glass {
  font-size: 0.92rem;
}

/* Why Onevia Q&A card - FORCE to bottom-left using absolute positioning */
#why .glass-hero-tagline-card {
  position: absolute;
  bottom: 3rem;
  left: 0;
  align-self: flex-start;
}

/* Why Onevia slides - match homepage hero styling exactly */
#why .hero-slide {
  font-size: 0.88rem;
  line-height: 1.5;
}

#why .hero-slide strong {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--white);
  display: inline;
  margin-bottom: 0;
}

.location-hero {
  min-height: 85vh;
}

/* Override the default max-width on location-hero-content when it's a split layout */
.location-hero-content.hero-split-layout {
  max-width: none;
}

/* Title card - top left */
.glass-hero-title-card {
  align-self: flex-start;
  max-width: 420px;
  padding: 1rem 1.4rem;
  animation: none;
}

/* Tagline card - bottom left */
.glass-hero-tagline-card {
  align-self: flex-start;
  max-width: 400px;
  padding: 0.9rem 1.2rem;
  animation: none;
}

/* Story card for Why Onevia "Read Our Story" - bottom right, smaller */
.glass-hero-story-card {
  align-self: flex-end;
  max-width: 200px;
  padding: 0.8rem 1rem;
  animation: none;
}

/* Story CTA link - smaller, more subtle */
.story-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.story-cta-link:hover {
  color: rgba(255, 255, 255, 1);
  gap: 0.8rem;
}

.story-cta-link span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.story-cta-link:hover span {
  transform: translateX(4px);
}

/* ============================================
   HOMEPAGE SERVICES GRID - 2x2
   ============================================ */

.services-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.service-preview-card {
  padding: 2rem;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(20, 42, 58, 0.08);
  box-shadow: 0 16px 40px rgba(13, 27, 42, 0.08);
  transition: all 0.3s ease;
}

.service-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(13, 27, 42, 0.16);
}

.service-preview-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: var(--ink);
}

.service-preview-card .service-features {
  margin-bottom: 1.2rem;
}

.service-preview-card .text-link {
  font-size: 0.95rem;
}

/* ============================================
   LOCATION HERO ACTIONS - Always Inline
   ============================================ */

.location-hero-actions-inline {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
}

.location-hero-actions-inline .btn {
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  width: auto;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

/* ============================================
   BRAND TEXT & CTA - Responsive Sizing
   ============================================ */

.brand-text-lg {
  font-size: clamp(1.1rem, 2.2vw, 1.9rem);
  white-space: nowrap;
}

.nav-cta {
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  padding: clamp(0.5rem, 0.8vw, 0.85rem) clamp(0.8rem, 1.3vw, 1.6rem);
}

/* ============================================
   PLANNED LOCATION BADGE (Great Falls hero)
   ============================================ */

.location-status-badge-hero.status-planned {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(248, 164, 79, 0.85);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.urgency-badge-waitlist {
  background: rgba(31, 111, 178, 0.6);
  border-color: rgba(126, 193, 255, 0.4);
}

/* ============================================
   RESPONSIVE: SPLIT LAYOUT & NEW CLASSES
   ============================================ */

/* Tablet (768-1024) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-split-layout {
    min-height: 60vh;
    padding: 1.5rem 0;
  }

  .glass-hero-title-card {
    max-width: 520px;
  }

  .glass-hero-tagline-card {
    max-width: 480px;
  }

  .services-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
  .hero-split-layout {
    min-height: auto;
    padding: 1rem 0;
    gap: 1.5rem;
  }

  .video-hero .hero-split-layout,
  .location-hero .hero-split-layout {
    min-height: auto;
  }

  .glass-hero-title-card,
  .glass-hero-tagline-card,
  .glass-hero-story-card {
    max-width: 92%;
    align-self: center;
  }

  .glass-hero-story-card {
    padding: 1.2rem 1.5rem;
  }

  .story-cta-link {
    font-size: 1.1rem;
  }

  /* Services 2x2 → 1 column on mobile */
  .services-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .service-preview-card {
    padding: 1.5rem;
  }

  .service-preview-card h3 {
    font-size: 1.3rem;
  }

  /* Location hero buttons: still inline but smaller */
  .location-hero-actions-inline {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .location-hero-actions-inline .btn {
    width: auto;
    font-size: clamp(0.78rem, 2.5vw, 0.9rem);
    padding: 0.6rem clamp(0.6rem, 2vw, 1.2rem);
  }

  /* Brand text minimum */
  .brand-text-lg {
    font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  }
}

/* Small mobile (< 480px) */
@media (max-width: 480px) {
  .glass-hero-title-card,
  .glass-hero-tagline-card,
  .glass-hero-story-card {
    max-width: 96%;
  }

  /* Even more aggressive sizing for small mobile */
  .glass-hero-combined {
    max-width: 85% !important;
    padding: 0.75rem 0.9rem !important;
  }

  .glass-hero-combined .hero-title-glass {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem;
  }

  .glass-hero-combined .hero-services-label {
    font-size: 0.55rem !important;
    margin-bottom: 0.2rem;
  }

  .glass-hero-combined .hero-slide {
    font-size: 0.7rem !important;
    line-height: 1.35;
  }

  .glass-hero-combined .hero-slider {
    margin-top: 0.6rem;
  }

  .glass-hero-combined .hero-dots {
    margin-top: 0.5rem;
  }

  .video-hero-content.hero-split-layout {
    min-height: 65vh;
    padding-bottom: 1.5rem;
    justify-content: center;
    align-items: flex-end;
  }

  /* Fix video zoom for very small screens */
  .video-hero-bg {
    transform: scale(1.02);
  }

  .hero-split-layout {
    gap: 1rem;
  }

  /* Dots same size as 768px - small and consistent */
  .hero-dot {
    width: 5px !important;
    height: 5px !important;
    border-width: 1px !important;
  }

  .membership-progress-bar {
    padding: 0.45rem 0 0.55rem;
  }

  .membership-progress-bar .progress-step-circle {
    width: 17px;
    height: 17px;
    font-size: 0.54rem;
  }

  .membership-progress-bar .progress-step-label {
    font-size: 0.55rem;
    max-width: 44px;
  }

  .membership-flow {
    padding-top: 110px;
  }

  /* Buttons stack on very small screens */
  .location-hero-actions-inline {
    flex-wrap: wrap;
  }

  .location-hero-actions-inline .btn {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
  }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-split-layout {
    min-height: auto;
    flex-direction: row;
    align-items: flex-end;
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .glass-hero-title-card,
  .glass-hero-tagline-card {
    max-width: 48%;
    align-self: auto;
  }

  .glass-hero-story-card {
    max-width: 240px;
  }
}

/* ============================================
   HERO CANONICAL OVERRIDES
   Keep homepage hero card bottom-centered and dots consistent on mobile
   ============================================ */

#hero.video-hero {
  align-items: flex-end;
}

#hero.video-hero .video-hero-content.hero-split-layout {
  justify-content: center;
  align-items: flex-end;
  min-height: 74vh;
  padding-bottom: 2rem;
}

#hero .glass-hero-combined {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  max-width: clamp(300px, 86vw, 520px);
}

#hero .hero-dots,
#why .hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.42rem;
}

#hero .hero-dot,
#why .hero-dot {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  aspect-ratio: 1 / 1;
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  max-width: 6px;
  max-height: 6px;
  flex: 0 0 6px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  line-height: 0;
  font-size: 0;
  transform: none;
}

#hero .hero-dot.active,
#why .hero-dot.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
}

#hero .hero-dot:hover,
#why .hero-dot:hover,
#hero .hero-dot:focus-visible,
#why .hero-dot:focus-visible {
  transform: none;
}

@media (max-width: 768px) {
  #hero.video-hero .video-hero-content.hero-split-layout {
    min-height: 70vh;
    padding-bottom: 1.6rem;
  }

  #hero .glass-hero-combined {
    max-width: min(88vw, 420px);
    padding: 0.95rem 1.1rem;
  }

  #hero .hero-dot,
  #why .hero-dot {
    width: 5px;
    height: 5px;
    min-width: 5px;
    min-height: 5px;
    max-width: 5px;
    max-height: 5px;
    flex-basis: 5px;
  }
}

@media (max-width: 480px) {
  #hero.video-hero .video-hero-content.hero-split-layout {
    min-height: 66vh;
    padding-bottom: 1.4rem;
  }

  #hero .glass-hero-combined {
    max-width: 89vw;
    padding: 0.82rem 0.95rem;
  }

  #hero .glass-hero-combined .hero-title-glass {
    white-space: normal;
    font-size: clamp(1rem, 4.6vw, 1.15rem);
  }

  #hero .glass-hero-combined .hero-services-label {
    white-space: normal;
    font-size: 0.58rem;
    line-height: 1.35;
  }

  #hero .glass-hero-combined .hero-slide {
    font-size: 0.74rem;
    line-height: 1.34;
  }
}

/* ============================================
   HOMEPAGE NAV + WHY VIDEO STACK + CHECKOUT SCROLL
   ============================================ */

.nav-portal-inline {
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.9rem;
  margin-left: 0.2rem;
}

.why-testimonials {
  padding: 3rem 0 3.4rem;
}

.why-testimonials .section-title h2 {
  white-space: nowrap;
}

.video-testimonial-carousel {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}

.video-testimonial-track-wrap {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 0.65rem;
}

.video-testimonial-track {
  position: relative;
  min-height: clamp(430px, 64vh, 620px);
  margin: 0;
  overflow: hidden;
  perspective: 1300px;
}

.story-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 178, 0.3);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(234, 245, 255, 0.92));
  color: #0b3b63;
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(8, 31, 52, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.story-nav:hover,
.story-nav:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(31, 111, 178, 0.5);
  box-shadow: 0 14px 24px rgba(8, 31, 52, 0.18);
}

.video-testimonial-slide {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: clamp(72px, 8.2vw, 104px);
  opacity: 0;
  transform-origin: center center;
  transform: translateX(-50%) rotateY(0deg) scale(0.88);
  transition: transform 0.42s ease, opacity 0.42s ease, width 0.42s ease;
  pointer-events: auto;
  z-index: 1;
}

.video-testimonial-slide[data-position="center"] {
  width: min(62vw, 760px);
  transform: translateX(-50%) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 6;
}

.video-testimonial-slide[data-position="left-1"] {
  transform: translateX(calc(-50% - min(33vw, 410px))) rotateY(38deg) scale(0.98);
  opacity: 1;
  z-index: 5;
}

.video-testimonial-slide[data-position="left-2"] {
  transform: translateX(calc(-50% - min(44vw, 540px))) rotateY(50deg) scale(0.93);
  opacity: 0.96;
  z-index: 4;
}

.video-testimonial-slide[data-position="right-1"] {
  transform: translateX(calc(-50% + min(33vw, 410px))) rotateY(-38deg) scale(0.98);
  opacity: 1;
  z-index: 5;
}

.video-testimonial-slide[data-position="right-2"] {
  transform: translateX(calc(-50% + min(44vw, 540px))) rotateY(-50deg) scale(0.93);
  opacity: 0.96;
  z-index: 4;
}

.video-testimonial-slide[data-position="hidden"] {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.82);
  z-index: 1;
}

/* Initial render fallback before JS assigns positions */
.video-testimonial-slide.is-active:not([data-position]) {
  width: min(62vw, 760px);
  transform: translateX(-50%) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 6;
}

.story-spine {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(31, 111, 178, 0.24);
  background: linear-gradient(180deg, rgba(33, 93, 143, 0.92), rgba(27, 76, 119, 0.92));
  color: #eef8ff;
  border-radius: 12px;
  padding: 0.55rem 0.35rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(233, 246, 255, 0.24), 0 16px 24px rgba(9, 27, 47, 0.2);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.story-spine:hover,
.story-spine:focus-visible {
  filter: brightness(1.04);
  box-shadow: inset 0 0 0 1px rgba(233, 246, 255, 0.32), 0 20px 26px rgba(9, 27, 47, 0.24);
}

.story-spine-name {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
}

.story-face {
  display: none;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.8rem;
  height: 100%;
}

.video-testimonial-slide[data-position="center"] .story-face {
  display: grid;
}

.video-testimonial-slide[data-position="center"] .story-spine {
  display: none;
}

.video-testimonial-slide.is-active:not([data-position]) .story-face {
  display: grid;
}

.video-testimonial-slide.is-active:not([data-position]) .story-spine {
  display: none;
}

.video-testimonial-media {
  position: relative;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(31, 111, 178, 0.26);
  box-shadow: 0 20px 42px rgba(13, 27, 42, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.24) inset;
}

.video-testimonial-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(162deg, rgba(2, 21, 43, 0.22) 22%, rgba(2, 21, 43, 0.05) 56%, rgba(2, 21, 43, 0.38) 100%);
  pointer-events: none;
  z-index: 2;
}

.video-testimonial-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-copy-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(239, 248, 255, 0.94));
  border: 1px solid rgba(31, 111, 178, 0.18);
  border-radius: 14px;
  padding: 0.82rem 0.92rem;
  box-shadow: 0 14px 28px rgba(9, 31, 52, 0.1);
}

.video-testimonial-id {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.06rem, 1.6vw, 1.26rem);
  color: #0a385c;
  line-height: 1.2;
  text-wrap: balance;
}

.video-testimonial-copy {
  margin: 0.34rem 0 0;
  color: #35526c;
  font-size: clamp(0.9rem, 1.05vw, 0.97rem);
  line-height: 1.42;
  font-weight: 600;
  text-wrap: balance;
}

/* ============================================
   SERVICES PAGE REDESIGN
   ============================================ */

.services-hero {
  padding-bottom: 1rem;
}

.services-jump {
  padding-top: 1rem;
}

.services-jump-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.service-jump-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid rgba(18, 51, 80, 0.15);
  box-shadow: 0 16px 36px rgba(10, 31, 52, 0.14);
}

.service-jump-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.service-jump-overlay {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  border-radius: 12px;
  padding: 0.62rem 0.72rem;
  background: linear-gradient(160deg, rgba(248, 252, 255, 0.86), rgba(221, 240, 255, 0.78));
  border: 1px solid rgba(205, 230, 250, 0.92);
  backdrop-filter: blur(10px) saturate(132%);
  -webkit-backdrop-filter: blur(10px) saturate(132%);
  display: grid;
  gap: 0.12rem;
}

.service-jump-overlay span {
  font-family: var(--font-heading);
  color: #08365b;
  font-size: 1.04rem;
}

.service-jump-overlay strong {
  color: #1f567f;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.service-jump-card:hover img,
.service-jump-card:focus-visible img {
  transform: scale(1.04);
}

.service-showcase {
  padding: 2.2rem 0;
}

.service-showcase-alt {
  background: #f7fbff;
}

.service-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.service-showcase-alt .service-showcase-media {
  order: 2;
}

.service-showcase-alt .service-showcase-content {
  order: 1;
}

.service-showcase-media {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(18, 51, 80, 0.16);
  box-shadow: 0 22px 42px rgba(9, 30, 52, 0.15);
}

.service-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-showcase-caption {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  background: linear-gradient(165deg, rgba(249, 253, 255, 0.9), rgba(220, 239, 253, 0.83));
  border: 1px solid rgba(198, 226, 247, 0.94);
  backdrop-filter: blur(10px) saturate(132%);
  -webkit-backdrop-filter: blur(10px) saturate(132%);
  display: grid;
  gap: 0.1rem;
}

.service-chip {
  display: inline-block;
  width: fit-content;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #35628a;
}

.service-showcase-caption strong {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  color: #0b3f66;
}

.service-showcase-content h2 {
  margin: 0.3rem 0 0.62rem;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.06;
}

.service-showcase-content p {
  margin: 0;
  color: #3b5368;
}

.service-value-list {
  margin: 1rem 0 0.95rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.service-value-list li {
  background: #ffffff;
  border: 1px solid rgba(18, 51, 80, 0.1);
  border-radius: 11px;
  padding: 0.55rem 0.72rem;
  box-shadow: 0 10px 20px rgba(9, 30, 52, 0.07);
  font-weight: 600;
}

.service-compare-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.service-compare-inline > div {
  background: linear-gradient(160deg, rgba(236, 247, 255, 0.96), rgba(221, 240, 255, 0.88));
  border: 1px solid rgba(31, 111, 178, 0.2);
  border-radius: 12px;
  padding: 0.66rem 0.7rem;
  display: grid;
  gap: 0.18rem;
}

.service-compare-inline span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #315a80;
}

.service-compare-inline strong {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: #0d3d64;
}

.service-showcase .service-actions {
  margin-top: 1rem;
}

.membership-review {
  padding-top: 132px;
}

.membership-review .order-summary {
  position: sticky !important;
  top: 144px !important;
  max-height: calc(100vh - 164px) !important;
  overflow: auto !important;
}

@media (max-width: 960px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 1300;
    transform: translateY(0) !important;
  }

  .topbar.header-hidden {
    transform: translateY(0) !important;
  }

  .membership-topbar {
    position: fixed;
    top: 0;
    z-index: 1300;
  }

  .nav-dropdown {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 0.3rem;
  }

  .nav-dropdown-link {
    padding: 0.75rem 0;
  }

  .nav-dropdown-toggle {
    min-width: 32px;
    min-height: 32px;
    justify-self: end;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.1rem 0 0.45rem 0.8rem;
    margin-top: 0;
    width: 100%;
    grid-column: 1 / -1;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown:hover .nav-dropdown-toggle {
    transform: none;
    color: #2b3a42;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }

  .nav-dropdown-menu a {
    padding: 0.42rem 0;
    border-bottom: none;
    font-size: 0.95rem;
  }

  .nav-portal-inline {
    order: 3;
    font-size: 0.8rem;
    margin-left: auto;
    margin-right: 0.25rem;
  }

  .menu-toggle {
    order: 4;
  }

  .nav-links {
    order: 5;
  }

  .membership-review .order-summary {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .services-jump-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-showcase-alt .service-showcase-media,
  .service-showcase-alt .service-showcase-content {
    order: initial;
  }

  .service-showcase-media {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .why-testimonials .section-title h2 {
    white-space: normal;
  }

  .video-testimonial-track-wrap {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .video-testimonial-track {
    min-height: min(58vh, 500px);
  }

  .story-nav {
    display: none;
  }

  .video-testimonial-slide[data-position="center"] {
    width: min(94vw, 640px);
  }

  .video-testimonial-slide[data-position="left-1"] {
    transform: translateX(calc(-50% - min(36vw, 220px))) rotateY(28deg) scale(0.92);
  }

  .video-testimonial-slide[data-position="right-1"] {
    transform: translateX(calc(-50% + min(36vw, 220px))) rotateY(-28deg) scale(0.92);
  }

  .video-testimonial-slide[data-position="left-2"],
  .video-testimonial-slide[data-position="right-2"] {
    opacity: 0;
    pointer-events: none;
  }

  .video-testimonial-media {
    border-radius: 16px;
  }

  .story-copy-card {
    padding: 0.72rem 0.78rem;
  }

  .video-testimonial-copy {
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .service-showcase {
    padding: 1.75rem 0;
  }

  .service-showcase-content h2 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }

  .service-compare-inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .video-testimonial-track {
    min-height: min(56vh, 420px);
  }

  .video-testimonial-slide[data-position="center"] {
    width: min(96vw, 520px);
  }

  .video-testimonial-slide[data-position="left-1"] {
    transform: translateX(calc(-50% - min(38vw, 170px))) rotateY(22deg) scale(0.86);
  }

  .video-testimonial-slide[data-position="right-1"] {
    transform: translateX(calc(-50% + min(38vw, 170px))) rotateY(-22deg) scale(0.86);
  }

  .story-spine {
    border-radius: 10px;
    padding: 0.42rem 0.22rem;
  }

  .story-spine-name {
    font-size: 0.78rem;
  }

  .video-testimonial-media {
    border-radius: 14px;
  }

  .video-testimonial-id {
    font-size: 0.92rem;
  }

  .video-testimonial-copy {
    font-size: 0.76rem;
    line-height: 1.28;
  }

  .services-jump-grid {
    grid-template-columns: 1fr;
  }

  .service-jump-card {
    min-height: 200px;
  }

  .service-showcase-media {
    min-height: 280px;
    border-radius: 14px;
  }

  .nav-portal-inline {
    font-size: 0.74rem;
    margin-right: 0.15rem;
  }

  .membership-review {
    padding-top: 124px;
  }
}

/* ============================================
   LOCATIONS PAGE REWORK
   ============================================ */

.locations-page .locations-hub {
  background:
    radial-gradient(circle at 88% -2%, rgba(133, 194, 239, 0.3), transparent 42%),
    linear-gradient(180deg, #f5fbff 0%, #f2f8ff 42%, #ffffff 100%);
}

.locations-page .locations-hero-v2 {
  padding: 7.1rem 0 2.2rem;
}

.locations-page .locations-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.95fr);
  gap: 1rem;
  align-items: stretch;
}

.locations-page .locations-hero-copy {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.84), rgba(226, 242, 255, 0.82));
  border: 1px solid rgba(31, 111, 178, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(8, 30, 52, 0.1);
  padding: 1.65rem 1.75rem;
}

.locations-page .locations-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  margin: 0.55rem 0 0.75rem;
}

.locations-page .locations-hero-copy .muted {
  margin: 0;
  color: #35526c;
}

.locations-page .locations-hero-points {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.locations-page .locations-hero-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 178, 0.2);
  background: rgba(242, 249, 255, 0.92);
  color: #1f4f78;
  font-size: 0.84rem;
  font-weight: 700;
}

.locations-page .locations-hero-card {
  border-radius: 24px;
  border: 1px solid rgba(31, 111, 178, 0.2);
  background: linear-gradient(160deg, rgba(12, 66, 109, 0.92), rgba(17, 93, 149, 0.92));
  box-shadow: 0 24px 48px rgba(8, 26, 45, 0.19);
  padding: 1.45rem 1.4rem;
  color: #e9f7ff;
  display: grid;
  gap: 0.7rem;
}

.locations-page .locations-hero-card h3 {
  margin: 0;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
}

.locations-page .locations-hero-card ul {
  margin: 0;
  padding-left: 1.08rem;
  display: grid;
  gap: 0.4rem;
}

.locations-page .locations-hero-card li {
  font-size: 0.93rem;
  line-height: 1.35;
}

.locations-page .locations-hero-card .btn {
  margin-top: 0.2rem;
  width: fit-content;
}

.locations-page .locations-results-section {
  padding-top: 1.1rem;
}

.locations-page .locations-search-shell {
  border-radius: 24px;
  border: 1px solid rgba(31, 111, 178, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.87), rgba(236, 247, 255, 0.84));
  box-shadow: 0 22px 40px rgba(8, 30, 52, 0.09);
  padding: 1.25rem;
}

.locations-page .locations-search-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2.08rem);
  line-height: 1.14;
}

.locations-page .locations-search-head p {
  margin: 0.32rem 0 0;
  color: #3f5b73;
}

.locations-page .locations-search-bar {
  margin-top: 1rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  gap: 0.88rem;
}

.locations-page .location-search-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(31, 111, 178, 0.24);
  padding: 0.86rem 0.92rem;
  font-size: 1rem;
  color: #0f3d63;
  background: rgba(255, 255, 255, 0.94);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.locations-page .location-search-input::placeholder {
  color: #5d7992;
}

.locations-page .location-search-input:focus {
  outline: none;
  border-color: rgba(14, 84, 136, 0.68);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.14);
}

.locations-page .filter-chips {
  gap: 0.52rem;
}

.locations-page .filter-chip {
  padding: 0.52rem 0.88rem;
  font-size: 0.82rem;
  border-radius: 999px;
  border-color: rgba(31, 111, 178, 0.24);
  color: #284f72;
  background: rgba(255, 255, 255, 0.92);
}

.locations-page .filter-chip.active {
  background: #1f6fb2;
  border-color: #1f6fb2;
  color: #ffffff;
}

.locations-page .location-count {
  margin-top: 0.62rem;
}

.locations-page .location-count p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #295478;
}

.locations-page .location-cards-grid {
  margin-top: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.locations-page .location-card {
  border-radius: 20px;
  border: 1px solid rgba(31, 111, 178, 0.15);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 34px rgba(8, 30, 52, 0.11);
  overflow: hidden;
}

.locations-page .location-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(8, 30, 52, 0.17);
}

.locations-page .location-card-image {
  height: 220px;
}

.locations-page .location-card-image img {
  height: 100%;
}

.locations-page .location-card-glass-overlay {
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(to top, rgba(7, 27, 47, 0.86), rgba(7, 27, 47, 0.46) 74%, transparent);
}

.locations-page .location-card-glass-overlay h3 {
  font-size: 1.36rem;
}

.locations-page .location-card-content {
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.locations-page .location-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.locations-page .location-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
  background: rgba(65, 134, 87, 0.14);
  border: 1px solid rgba(57, 113, 76, 0.3);
  color: #2f6d46;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.locations-page .location-status-pill-planned {
  background: rgba(194, 139, 75, 0.16);
  border-color: rgba(171, 122, 64, 0.3);
  color: #875726;
}

.locations-page .location-card-copy {
  margin: 0;
  color: #3d5972;
  font-size: 0.92rem;
  line-height: 1.45;
}

.locations-page .services-available {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.locations-page .service-badge {
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(31, 111, 178, 0.1);
  color: #1f5784;
}

.locations-page .distance-badge {
  display: none;
  border-radius: 999px;
  border: 1px solid rgba(31, 111, 178, 0.2);
  background: rgba(236, 247, 255, 0.9);
  color: #20527c;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.28rem 0.6rem;
}

.locations-page .location-card-link {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1f5a8b;
}

.locations-page .no-results-message {
  margin-top: 1.2rem;
  border-radius: 16px;
  border: 1px dashed rgba(31, 111, 178, 0.24);
  background: rgba(255, 255, 255, 0.84);
  padding: 1.2rem;
}

.locations-page .no-results-message p {
  margin-bottom: 0.9rem;
}

.locations-page .nearby-results {
  margin-top: 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 111, 178, 0.16);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(227, 243, 255, 0.84));
  box-shadow: 0 18px 30px rgba(8, 30, 52, 0.09);
  padding: 1rem;
}

.locations-page .nearby-results-head h3 {
  margin: 0;
  font-size: clamp(1.14rem, 2vw, 1.45rem);
}

.locations-page .nearby-results-head p {
  margin: 0.32rem 0 0;
  color: #3e5a73;
}

.locations-page .nearby-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 0.78rem;
}

.locations-page .nearby-clinic-card {
  border-radius: 14px;
  border: 1px solid rgba(31, 111, 178, 0.16);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.82rem;
  display: grid;
  gap: 0.44rem;
}

.locations-page .nearby-clinic-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
}

.locations-page .nearby-clinic-meta h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.locations-page .nearby-clinic-card p {
  margin: 0;
  font-size: 0.86rem;
  color: #37536d;
}

.locations-page .nearby-clinic-card .text-link {
  font-weight: 700;
  font-size: 0.86rem;
  width: fit-content;
}

.locations-page .new-clinic-card {
  margin-top: 0.78rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 111, 178, 0.2);
  background: linear-gradient(160deg, rgba(26, 97, 154, 0.94), rgba(18, 77, 126, 0.93));
  color: #e8f5ff;
  padding: 0.95rem;
}

.locations-page .new-clinic-card h4 {
  margin: 0;
  color: #ffffff;
  font-size: 1.06rem;
}

.locations-page .new-clinic-card p {
  margin: 0.32rem 0 0.72rem;
  color: #d8ecfc;
  font-size: 0.9rem;
}

.locations-page .new-clinic-card .btn {
  width: fit-content;
  background: #ffffff;
  color: #145186;
}

@media (max-width: 980px) {
  .locations-page .locations-hero-v2 {
    padding-top: 6.5rem;
  }

  .locations-page .locations-hero-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .locations-page .locations-hero-card .btn {
    width: 100%;
  }

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

  .locations-page .nearby-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .locations-page .locations-hero-v2 {
    padding-top: 6.2rem;
    padding-bottom: 1.4rem;
  }

  .locations-page .locations-hero-copy,
  .locations-page .locations-hero-card,
  .locations-page .locations-search-shell {
    border-radius: 16px;
    padding: 1rem;
  }

  .locations-page .locations-hero-copy h1 {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .locations-page .locations-hero-points span {
    font-size: 0.76rem;
    padding: 0.34rem 0.6rem;
  }

  .locations-page .locations-search-head h2 {
    font-size: clamp(1.28rem, 6.4vw, 1.72rem);
  }

  .locations-page .location-search-input {
    font-size: 16px;
  }

  .locations-page .filter-chip {
    font-size: 0.76rem;
    padding: 0.45rem 0.72rem;
  }

  .locations-page .location-card-image {
    height: 200px;
  }

  .locations-page .location-card-glass-overlay h3 {
    font-size: 1.12rem;
  }

  .locations-page .location-card-content {
    gap: 0.5rem;
  }

  .locations-page .location-card-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .locations-page .locations-hero-v2 {
    padding-top: 6rem;
  }

  .locations-page .location-card-image {
    height: 184px;
  }
}

/* ============================================
   PATIENT PORTAL LOGIN
   ============================================ */

.portal-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% -8%, rgba(124, 191, 240, 0.24), transparent 36%),
    linear-gradient(180deg, #f5fbff 0%, #f8fcff 100%);
}

.portal-login-page .portal-login-main {
  flex: 1;
  display: grid;
}

.portal-login-page .portal-login-shell {
  width: 100%;
  display: grid;
  align-items: center;
  padding: 6.8rem 0 2.2rem;
}

.portal-login-page .portal-login-card {
  max-width: 520px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(31, 111, 178, 0.2);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(230, 245, 255, 0.9));
  box-shadow: 0 26px 44px rgba(8, 30, 52, 0.12);
  padding: 1.5rem;
}

.portal-login-page .portal-login-card h1 {
  margin: 0.5rem 0 0.32rem;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.portal-login-page .portal-login-card .muted {
  margin: 0 0 1rem;
}

.portal-login-page .portal-login-form {
  display: grid;
  gap: 0.78rem;
}

.portal-login-page .portal-login-form label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #24537d;
}

.portal-login-page .portal-login-form input[type="email"],
.portal-login-page .portal-login-form input[type="password"] {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(31, 111, 178, 0.28);
  background: rgba(255, 255, 255, 0.96);
  color: #143b5d;
  font-size: 1rem;
  padding: 0.82rem 0.84rem;
}

.portal-login-page .portal-login-form input:focus {
  outline: none;
  border-color: rgba(14, 84, 136, 0.72);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.14);
}

.portal-login-page .portal-login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.18rem;
}

.portal-login-page .portal-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #2d567b;
  font-size: 0.86rem;
  font-weight: 600;
}

.portal-login-page .portal-link {
  color: #1f5f93;
  font-size: 0.86rem;
  font-weight: 700;
}

.portal-login-page .portal-login-submit {
  margin-top: 0.35rem;
  width: 100%;
  justify-content: center;
}

.portal-login-page .footer {
  margin-top: 0;
}

@media (max-width: 768px) {
  .portal-login-page .portal-login-shell {
    padding-top: 6.1rem;
    padding-bottom: 1.6rem;
  }

  .portal-login-page .portal-login-card {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .portal-login-page .portal-login-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* ============================================
   HOMEPAGE WHY ONEVIA - PROFESSIONAL REWORK
   ============================================ */

#why.why-testimonials {
  position: relative;
  padding: 3.6rem 0 3.9rem;
  background:
    radial-gradient(circle at 10% 14%, rgba(138, 200, 245, 0.24), transparent 42%),
    radial-gradient(circle at 92% 0%, rgba(193, 226, 249, 0.34), transparent 38%),
    linear-gradient(180deg, #f4faff 0%, #ecf6ff 52%, #f9fcff 100%);
}

#why .section-title {
  max-width: 840px;
  margin: 0 auto 1.4rem;
  text-align: center;
}

#why .section-title .eyebrow {
  letter-spacing: 0.09em;
}

#why .section-title h2 {
  margin: 0.58rem 0 0.72rem;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  color: #0d3558;
  white-space: normal;
}

#why .section-title p {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: #36556f;
}

#why .video-testimonial-carousel {
  border-radius: 28px;
  border: 1px solid rgba(27, 95, 147, 0.18);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.74), rgba(224, 241, 254, 0.66));
  box-shadow: 0 26px 54px rgba(8, 30, 52, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 1rem 0.92rem 1.15rem;
}

#why .video-testimonial-track-wrap {
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  gap: 0.55rem;
}

#why .video-testimonial-track {
  min-height: clamp(420px, 62vh, 610px);
}

#why .story-nav {
  width: 42px;
  height: 42px;
  border-color: rgba(31, 111, 178, 0.24);
  background: linear-gradient(160deg, rgba(251, 254, 255, 0.96), rgba(230, 244, 255, 0.94));
  color: #11466f;
}

#why .video-testimonial-slide[data-position="center"] {
  width: min(60vw, 720px);
}

#why .video-testimonial-slide[data-position="left-1"] {
  transform: translateX(calc(-50% - min(33vw, 388px))) rotateY(34deg) scale(0.97);
}

#why .video-testimonial-slide[data-position="right-1"] {
  transform: translateX(calc(-50% + min(33vw, 388px))) rotateY(-34deg) scale(0.97);
}

#why .video-testimonial-slide[data-position="left-2"] {
  transform: translateX(calc(-50% - min(43vw, 520px))) rotateY(45deg) scale(0.91);
}

#why .video-testimonial-slide[data-position="right-2"] {
  transform: translateX(calc(-50% + min(43vw, 520px))) rotateY(-45deg) scale(0.91);
}

#why .story-spine {
  border: 1px solid rgba(31, 111, 178, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 89, 138, 0.94), rgba(20, 66, 104, 0.94));
  box-shadow: inset 0 0 0 1px rgba(236, 248, 255, 0.22), 0 16px 25px rgba(10, 28, 48, 0.2);
}

#why .story-spine-name {
  font-size: 0.9rem;
}

#why .video-testimonial-media {
  border-radius: 24px;
  border-color: rgba(21, 77, 119, 0.28);
  box-shadow: 0 20px 44px rgba(9, 29, 49, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

#why .story-copy-card {
  border-radius: 16px;
  padding: 0.86rem 0.98rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(239, 248, 255, 0.95));
  border: 1px solid rgba(31, 111, 178, 0.18);
}

#why .video-testimonial-id {
  font-size: clamp(1.04rem, 1.52vw, 1.2rem);
  color: #0c3559;
}

#why .video-testimonial-copy {
  margin-top: 0.3rem;
  font-size: clamp(0.9rem, 1.02vw, 0.96rem);
  line-height: 1.45;
  color: #35556f;
}

@media (max-width: 960px) {
  #why.why-testimonials {
    padding: 3rem 0 3.2rem;
  }

  #why .video-testimonial-carousel {
    border-radius: 20px;
    padding: 0.82rem 0.68rem 1rem;
  }

  #why .video-testimonial-track {
    min-height: min(56vh, 540px);
  }

  #why .video-testimonial-slide[data-position="center"] {
    width: min(92vw, 650px);
  }

  #why .video-testimonial-media {
    border-radius: 18px;
  }
}

@media (max-width: 768px) {
  #why .section-title {
    margin-bottom: 1rem;
  }

  #why .section-title h2 {
    font-size: clamp(1.72rem, 7vw, 2.1rem);
  }

  #why .section-title p {
    font-size: 0.94rem;
  }

  #why .video-testimonial-carousel {
    border-radius: 16px;
    padding: 0.72rem 0.56rem 0.86rem;
  }

  #why .video-testimonial-track {
    min-height: min(54vh, 470px);
  }

  #why .video-testimonial-slide[data-position="center"] {
    width: min(95vw, 560px);
  }

  #why .video-testimonial-slide[data-position="left-1"] {
    transform: translateX(calc(-50% - min(36vw, 206px))) rotateY(25deg) scale(0.9);
  }

  #why .video-testimonial-slide[data-position="right-1"] {
    transform: translateX(calc(-50% + min(36vw, 206px))) rotateY(-25deg) scale(0.9);
  }

  #why .video-testimonial-id {
    font-size: 0.94rem;
  }

  #why .video-testimonial-copy {
    font-size: 0.8rem;
    line-height: 1.36;
  }
}
