html {
  scroll-behavior: smooth;
  font-size: 18px;
}

@media (max-width: 768px) {
  html {
    font-size: 17px;
  }
}

:root {
  /* Fixed .site-header: ~96px secondary lockup + padding — used to offset first-page banners */
  --site-header-offset: 140px;
  --primary-blue: #4191C9;
  --navy: #1D2E5D;
  --navy-mid: #204F70;
  --brand-green: #07A959;
  --brand-yellow: #FFC75B;
  /* Sleeker dark blue */
  --secondary-blue: #7CB2D9;
  --accent-light: #7CB2D9;
  --btn-fill: var(--primary-blue);
  --btn-fill-hover: var(--navy-mid);
  --btn-outline: var(--primary-blue);
  --btn-outline-hover: var(--brand-green);
  --link-hover: var(--secondary-blue);
  --brand-surface-tint: #E8F3FA;
  --white: #ffffff;
  --bg-light: #f8fafc;
  /* Softer tech-like off-white */
  --text-dark: #1D2E5D;
  --text-gray: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 25px 50px -12px rgba(29, 46, 93, 0.15);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Flip all phone icons horizontally — globally */
.fa-phone,
.fa-phone-alt {
  transform: scaleX(-1);
  display: inline-block;
}

/* Container to prevent wide sections */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Megamenu */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 96px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--link-hover);
}

/* Quick CTAs */
.quick-ctas {
  display: flex;
  gap: 1rem;
}

/* =============================================
   HAMBURGER BUTTON (mobile only)
   ============================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.2s;
  z-index: 1100;
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.hamburger span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary-blue);
  transition: all 0.3s ease;
  transform-origin: center;
}

/* =============================================
   MOBILE MENU SLIDE-IN PANEL
   ============================================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100%;
  background: white;
  z-index: 2000;
  padding: 0;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e8edf2;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}

.mobile-logo {
  height: 48px;
  object-fit: contain;
}

.mobile-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: var(--text-dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.mobile-close:hover {
  background: var(--primary-blue);
  color: white;
}

/* Nav links */
.mobile-nav {
  padding: 1rem 0;
  flex: 1;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.75rem;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.mobile-nav a i {
  width: 20px;
  text-align: center;
  color: var(--accent-light);
  font-size: 1rem;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  background: var(--brand-surface-tint, #E8F3FA);
  color: var(--link-hover);
  padding-left: 2.25rem;
}

.mobile-nav a:hover i {
  color: var(--link-hover);
}

/* CTA buttons at bottom */
.mobile-ctas {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8fafc;
  border-top: 1px solid #e8edf2;
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--btn-fill);
  color: white;
  box-shadow: 0 4px 14px rgba(15, 61, 107, 0.2);
}

.mobile-cta-btn:hover {
  background: var(--btn-fill-hover);
  transform: translateY(-1px);
}

.mobile-cta-outline {
  background: white;
  color: var(--btn-outline);
  border: 2px solid var(--btn-outline);
  box-shadow: none;
}

.mobile-cta-outline:hover {
  background: var(--brand-surface-tint, #E8F3FA);
  color: var(--btn-outline-hover);
  border-color: var(--btn-outline-hover);
}

/* Backdrop dimmer */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 30, 53, 0.55);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(3px);
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Show hamburger on mobile, hide desktop nav + ctas */
@media (max-width: 1280px) {
  .container {
    padding: 0 1.5rem;
  }

  .logo img {
    height: 96px;
  }

  .main-nav {
    gap: 1.5rem;
  }

  .main-nav>ul {
    gap: 1.5rem;
  }

  .main-nav a,
  .main-nav button {
    font-size: 0.9rem;
  }

  .quick-ctas {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero-content-wrapper {
    padding-bottom: 1.5rem;
  }

  .hero-typography h1 {
    font-size: 4.2rem;
  }

  .hero-typography p {
    font-size: 1.2rem;
    max-width: 500px;
  }

  .quick-nav-item {
    padding: 1.25rem 1rem 1.5rem;
  }

  .quick-nav-circle {
    width: 112px;
    height: 112px;
    font-size: 2.1rem;
  }

  .quick-nav-label {
    font-size: 0.74rem;
    white-space: normal;
  }
}

@media (max-width: 1180px) {
  .hero-typography h1 {
    font-size: 3.8rem;
  }

  .hero-typography p {
    font-size: 1.1rem;
  }
}

@media (max-height: 760px) and (min-width: 993px) {
  .cinematic-hero {
    min-height: 0;
  }

  .hero-content-wrapper {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }

  .hero-typography {
    padding-top: 0.25rem;
  }

  .hero-typography h1 {
    font-size: 3.9rem;
    margin-bottom: 1.25rem;
  }

  .hero-typography p {
    margin-bottom: 1.75rem;
  }

  .quick-nav-item {
    padding-bottom: 1.25rem;
  }

  .quick-nav-circle {
    width: 96px;
    height: 96px;
    font-size: 1.9rem;
  }
}

@media (max-width: 992px) {

  .main-nav,
  .quick-ctas {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}


.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-primary {
  background: var(--btn-fill);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(65, 145, 201, 0.25);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--btn-fill-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 61, 107, 0.35);
}

.btn-outline {
  background: var(--white);
  border: 1px solid var(--btn-outline);
  color: var(--btn-outline);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--btn-outline-hover);
  color: var(--btn-outline-hover);
  transform: translateY(-2px);
}

/* Hero Section (Variation 4: Cinematic) */
.cinematic-hero {
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: var(--white);
  overflow: hidden;
  padding: 0;
}

#main-content>section.cinematic-hero:first-of-type .hero-content-wrapper {
  padding-top: calc(var(--site-header-offset, 120px) + 1.65rem + env(safe-area-inset-top, 0px));
}

.hero-video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cinematic-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 46, 93, 0.78);
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.hero-typography {
  max-width: 700px;
  text-align: center;
  animation: floatUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.eyebrow {
  display: inline-block;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-yellow, #FFC75B);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 56px;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 3px;
  background: var(--brand-yellow, #FFC75B);
}

.hero-typography h1 {
  font-size: clamp(2.75rem, 5.8vw, 5.25rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
  color: var(--white);
}

.hero-typography p {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 500;
  line-height: 1.55;
  opacity: 0.96;
  margin-bottom: 1.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--white);
}

.hero-actions-modern {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.secondary-links {
  display: flex;
  gap: 2rem;
}

.secondary-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.secondary-links a:hover {
  color: var(--link-hover);
}

/* =============================================
   HERO CIRCLE NAVIGATION
   ============================================= */
.hero-quick-nav {
  position: relative;
  bottom: auto;
  left: auto;
  width: 100%;
  z-index: 4;
  flex: 0 0 auto;
  margin-top: 0;
  background: rgba(29, 46, 93, 0.82);
}

.hero-quick-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 0;
}

.quick-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 1rem 1.5rem 1.15rem;
  flex: 1;
  max-width: 200px;
  transition: var(--transition);
  position: relative;
}

.quick-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--secondary-blue, #7CB2D9);
  border-radius: 3px 3px 0 0;
  transition: width 0.3s ease;
}

.quick-nav-item:hover::after {
  width: 60%;
  background: var(--brand-yellow);
}

.quick-nav-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--primary-blue);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: white;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.quick-nav-item:hover .quick-nav-circle {
  background: var(--brand-yellow);
  color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(29, 46, 93, 0.35);
  border-color: var(--brand-yellow);
}

.quick-nav-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  min-height: 2.3em;
  /* reserve space for 2 lines so all items are same height */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Tablet (≤992px): shrink slightly ── */
@media (max-width: 992px) {
  .hero-quick-nav-inner {
    gap: 0;
  }

  .quick-nav-item {
    padding: 1.25rem 1rem 1.5rem;
  }

  .quick-nav-circle {
    width: 90px;
    height: 90px;
    font-size: 1.9rem;
  }

  .quick-nav-label {
    font-size: 0.75rem;
    white-space: normal;
  }
}

/* ── Phone (≤768px): horizontal scroll strip ── */
@media (max-width: 768px) {
  .hero-quick-nav {
    /* Add a right-fade hint so user knows it's scrollable */
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }

  .hero-quick-nav-inner {
    /* Full-width scroll container */
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    /* Hide scrollbar but keep scrollable */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hero-quick-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .quick-nav-item {
    flex: 0 0 auto;
    /* don't shrink — fixed width per item */
    width: 110px;
    padding: 1rem 0.5rem 1.25rem;
    scroll-snap-align: start;
  }

  .quick-nav-circle {
    width: 80px;
    height: 80px;
    font-size: 1.7rem;
  }

  .quick-nav-label {
    font-size: 0.68rem;
    white-space: normal;
    letter-spacing: 0;
  }
}

/* ── Very small phones (≤380px) ── */
@media (max-width: 380px) {
  .quick-nav-item {
    width: 90px;
  }

  .quick-nav-circle {
    width: 66px;
    height: 66px;
    font-size: 1.4rem;
  }

  .quick-nav-label {
    font-size: 0.6rem;
  }
}


.hero-info-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: floatUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--secondary-blue, #7CB2D9);
  margin-top: 0.2rem;
}

.info-item div {
  display: flex;
  flex-direction: column;
}

.info-item strong {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.info-item span {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.2rem;
}

/* Sections General */
section {
  padding: 8rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.75rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

/* Welcome Section */
.welcome-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.text-content {
  padding-right: 2rem;
}

.text-content h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

#services .services-text-content h2 {
  font-size: 2.75rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.text-content p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

/* Services column — desktop gets left indent; mobile resets via media query */
.services-text-content {
  padding-left: 2rem;
}


.image-wrapper {
  position: relative;
}

.image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border-radius: var(--radius-lg);
  background: #E8F3FA;
  z-index: -1;
}

.welcome-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Cards Layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.card p {
  color: var(--text-gray);
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.locations-section .location-phone-row .fa-phone-alt {
  color: var(--accent-light);
  margin-top: 4px;
  flex-shrink: 0;
}

.locations-section .location-phone-link {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border-radius: 4px;
}

.locations-section .location-phone-link:hover {
  color: var(--link-hover);
  text-decoration: none;
}

.locations-section .location-phone-link:focus-visible {
  color: var(--primary-blue);
  text-decoration: none;
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.locations-section .location-hours-panel {
  margin: 0.25rem 0 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(7, 169, 89, 0.08);
  border: 1px solid rgba(7, 169, 89, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.locations-section .location-hours-panel-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.locations-section .location-hours-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(42, 138, 226, 0.14);
  color: var(--accent-light);
  font-size: 0.82rem;
  flex-shrink: 0;
}

.locations-section .location-hours-panel-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-blue);
}

.locations-section .location-hours-panel-time {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.locations-section .location-hours-panel-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(42, 138, 226, 0.12);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-gray);
}

.locations-section .location-hours-panel-note .fa-door-open {
  color: var(--accent-light);
  margin-top: 0.15rem;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.locations-section .location-card-btn {
  width: 100%;
  justify-content: center;
}

.locations-section .location-card-btn:first-of-type {
  margin-top: auto;
}

.locations-section .location-card-btn+.location-card-btn {
  margin-top: 1rem;
}

.card .tags {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.locations-section .card .tags {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-top: 0.35rem;
  align-self: flex-start;
  align-content: flex-start;
}

.tag {
  background: var(--bg-light);
  color: var(--primary-blue);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

/* Services Preview */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-item {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition);
  border: 1px solid #f1f5f9;
  cursor: pointer;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(42, 138, 226, 0.1);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.service-item:hover .service-icon {
  background: var(--accent-light);
  color: var(--white);
}

/* Testimonial Section - 3 Column Carousel */
.testimonial-section {
  background: var(--primary-blue, #4191C9);
  position: relative;
  overflow: visible;
  padding: 6rem 0;
  /* slightly tighter padding */
}

.testimonial-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
}

.testimonial-section .container {
  position: relative;
  z-index: 2;
}

.testimonial-section .section-title,
.testimonial-section .section-subtitle {
  color: var(--white);
}

.testimonial-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 3rem;
  padding: 0 64px;
  /* Wider padding so cards clear the arrow buttons */
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  font-size: 1.25rem;
  position: absolute;
  /* Absolute position arrows */
  top: 50%;
  transform: translateY(-50%);
}

.prev-btn {
  left: -10px;
}

.next-btn {
  right: -10px;
}

.carousel-btn:hover {
  background: var(--accent-light);
  transform: translateY(-50%) scale(1.05);
  /* Account for translate Y */
  border-color: var(--accent-light);
}

.testimonial-track-container {
  overflow: hidden;
  width: 100%;
  padding: 0.25rem 0;
}

.testimonial-track {
  display: flex;
  align-items: stretch;
  /* All cards same height — stretches to the tallest card */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.testimonial-card-wrapper {
  flex: 0 0 calc(100% / 3);
  width: calc(100% / 3);
  /* Keep card shadows inside the overflow:hidden carousel clip */
  padding: 2.5rem 0.85rem 3.75rem;
  box-sizing: border-box;
}

.testimonial-card-wrapper * {
  box-sizing: border-box;
  /* Force border box */
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  height: 100%;
  align-self: stretch;
  /* Match the height of the tallest visible card */
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-sizing: border-box;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.testimonial-card::before {
  content: '\f10d';
  /* Font Awesome Quote Left */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.05);
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--white);
  font-weight: 300;
  margin-bottom: 2rem;
  flex-grow: 1;
  /* Pushes author to bottom */
}

/* Subtly highlighting start and end quotes */
/* .testimonial-text::first-letter {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent-light);
} */

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.author-info {
  flex: 1 1 auto;
  min-width: 0;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-name {
  margin: 0;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.author-title {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =============================================
   CTA BANNER STRIPS — Premium & Prominent
   ============================================= */

.cta-banner {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Decorative radial glow — top right */
.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: transparent;
  top: -150px;
  right: -100px;
  pointer-events: none;
}

/* Decorative radial glow — bottom left */
.cta-banner::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: transparent;
  bottom: -100px;
  left: -80px;
  pointer-events: none;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.cta-banner-text {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  min-width: 0;
}

/* Icon in a large frosted circle */
.cta-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-icon-wrap i {
  font-size: 2rem;
  color: white;
}

.cta-banner-copy h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: white;
}

.cta-banner-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
}

/* CTA button — large, prominent pill with glow */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 2.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-cta-white {
  background: white;
  color: var(--primary-blue);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-white:hover {
  background: var(--brand-surface-tint, #E8F3FA);
  color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.btn-cta-blue {
  background: var(--btn-fill);
  color: white;
  box-shadow: 0 8px 30px rgba(15, 61, 107, 0.35);
}

.btn-cta-blue:hover {
  background: var(--btn-fill-hover);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(15, 61, 107, 0.5);
}

.btn-cta-yellow,
.cta-find-clinic a.btn-cta[href*="location"] {
  background: var(--brand-yellow);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(29, 46, 93, 0.18);
}

.btn-cta-yellow:hover,
.cta-find-clinic a.btn-cta[href*="location"]:hover {
  background: var(--navy-mid);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(29, 46, 93, 0.3);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-cta-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: none;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
  color: white;
}

/* ── Patient Portal ─────────────────────── */
.cta-patient-portal {
  background: var(--primary-blue);
}

.cta-patient-portal .cta-icon-wrap {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Green CTA ──────────────────────────── */
.cta-green {
  background: var(--brand-green);
}

.cta-green .cta-icon-wrap {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.cta-green .cta-icon-wrap i {
  color: #fff;
}

.cta-green .cta-banner-copy h3 {
  color: #fff;
}

.cta-green .cta-banner-copy p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-green a.btn-cta-white {
  color: var(--navy);
}

.cta-green a.btn-cta-white:hover {
  background: var(--navy-mid);
  color: #fff;
}

/* ── Find a Clinic ──────────────────────── */
.cta-find-clinic {
  background: var(--navy-mid, #204F70);
}

.cta-find-clinic .cta-icon-wrap {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Pay My Bill ─────────────────── (LIGHT) */
.cta-pay-bill {
  background: #f1f5f9;
  border-top: 6px solid var(--primary-blue);
  border-bottom: 1px solid #e2e8f0;
}

.cta-pay-bill::before,
.cta-pay-bill::after {
  display: none;
}

/* Remove white blobs on light bg */

.cta-pay-bill .cta-icon-wrap {
  background: rgba(15, 61, 107, 0.08);
  border-color: rgba(15, 61, 107, 0.12);
}

.cta-pay-bill .cta-icon-wrap i {
  color: var(--accent-light);
}

.cta-pay-bill .cta-banner-copy h3 {
  color: var(--text-dark);
}

.cta-pay-bill .cta-banner-copy p {
  color: var(--text-gray);
}

/* ── Contact ────────────────────────────── */
/* Primary field so this band does not merge into the navy footer */
.cta-contact {
  background: var(--primary-blue);
}

.cta-contact .cta-icon-wrap {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.25);
}

.cta-contact .cta-icon-wrap i {
  color: #93c5fd;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 992px) {
  .cta-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .cta-buttons {
    width: 100%;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .cta-banner {
    padding: 3.5rem 0;
  }

  .cta-banner-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .cta-banner-copy h3 {
    font-size: 1.4rem;
  }
}


/* Subtle hover background */
.action-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(65, 145, 201, 0.06);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.action-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 138, 226, 0.2);
}

.action-card:hover::after {
  opacity: 1;
}

.action-icon {
  width: 65px;
  height: 65px;
  border-radius: 18px;
  background: var(--primary-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.action-card:hover .action-icon {
  background: var(--accent-light);
  transform: scale(1.05) rotate(2deg);
}

.action-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.action-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  flex-grow: 1;
}

.action-link {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.action-card:hover .action-link {
  color: var(--link-hover);
  gap: 0.75rem;
  /* slight movement trick on hover */
}

/* Footer */
footer {
  background: var(--navy, #1D2E5D);
  color: #94a3b8;
  padding: 6rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-blue);
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  line-height: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-logo-link:hover,
.footer-logo-link:focus-visible {
  opacity: 1;
  transform: translateY(-4px) scale(1.05);
}

.footer-logo-link:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-logo-img {
  height: auto;
  max-height: 120px;
  opacity: 0.9;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.footer-logo-link:hover .footer-logo-img,
.footer-logo-link:focus-visible .footer-logo-img {
  opacity: 1;
}

.footer-logo-text {
  line-height: 1.3;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.footer-phone {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--white);
}

.footer-phone-icon {
  margin-right: 8px;
  color: var(--accent-light);
  display: inline-block;
  transform: scaleX(-1);
  transition: transform 0.25s ease, color 0.25s ease, filter 0.25s ease;
}

.footer-phone-link {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

.footer-phone-link:hover,
.footer-phone-link:focus-visible {
  color: var(--accent-light);
  transform: translateY(-4px) scale(1.06);
  text-shadow: 0 6px 18px rgba(247, 153, 28, 0.45);
  text-decoration: none;
}

.footer-phone:hover .footer-phone-icon,
.footer-phone:focus-within .footer-phone-icon {
  color: var(--white);
  transform: scaleX(-1) translateY(-3px);
  filter: drop-shadow(0 4px 10px rgba(247, 153, 28, 0.45));
}

@media (prefers-reduced-motion: reduce) {

  .footer-logo-link:hover,
  .footer-logo-link:focus-visible,
  .footer-phone-link:hover,
  .footer-phone-link:focus-visible {
    transform: none;
  }

  .footer-phone:hover .footer-phone-icon,
  .footer-phone:focus-within .footer-phone-icon {
    transform: scaleX(-1);
    filter: none;
  }
}

.st-bernards-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  display: inline-block;
  backdrop-filter: blur(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-blue);
  color: var(--white);
}

@keyframes floatUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero-content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    justify-content: center;
    height: 100%;
  }

  .hero-info-card {
    width: 100%;
    max-width: 600px;
    flex-direction: row;
    justify-content: space-around;
  }

  .testimonial-card-wrapper {
    flex: 0 0 50%;
    width: 50%;
    /* 2 items on smaller desktop */
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for CTAs */
  }
}

@media (max-width: 992px) {
  .cinematic-hero {
    height: auto;
    min-height: 0;
  }

  .cinematic-hero .hero-overlay {
    background: rgba(29, 46, 93, 0.82);
  }

  .hero-content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }

  .hero-typography {
    max-width: 100%;
    text-align: center;
  }

  .hero-typography h1 {
    font-size: 2.8rem;
    line-height: 1.15;
  }

  .hero-info-card {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
  }

  .info-item {
    flex: 1 1 45%;
    min-width: 140px;
  }

  .welcome-section .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .text-content {
    padding-right: 0;
    padding-left: 0;
    text-align: center;
  }

  .services-text-content {
    padding-left: 0;
    /* remove desktop indent so it centres properly */
  }

  .services-container {
    align-items: flex-start;
  }

  .service-item {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .quick-ctas {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-typography h1 {
    font-size: 3rem;
  }

  .hero-actions-modern {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-info-card {
    flex-direction: column;
  }

  section {
    padding: 4rem 0;
  }

  .section-title,
  .text-content h2,
  #services .services-text-content h2,
  .testimonial-section .section-title,
  .community-inner-content-title h2,
  .community-inner-subheader-title h2 {
    font-size: 2.1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .action-grid {
    grid-template-columns: 1fr;
    /* 1 column for CTAs on mobile */
  }

  .testimonial-carousel-wrapper {
    padding: 0 56px;
    /* Enough room for the 40px arrow + gap */
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .prev-btn {
    left: 4px;
  }

  .next-btn {
    right: 4px;
  }
}

@media (max-width: 768px) {
  .testimonial-card-wrapper {
    flex: 0 0 100%;
    width: 100%;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  .testimonial-author {
    gap: 0.75rem;
    align-items: flex-start;
  }

  .author-name {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .author-title {
    line-height: 1.4;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-typography h1 {
    font-size: 2.1rem;
  }

  .info-item {
    flex: 1 1 100%;
    /* single column on very small phones */
  }

  .hero-content-wrapper {
    gap: 1.5rem;
  }

  .testimonial-section {
    padding: 3.5rem 0;
  }

  .testimonial-section .section-title {
    font-size: 2rem;
    line-height: 1.15;
  }

  .testimonial-section .section-subtitle {
    font-size: 0.98rem;
    margin-bottom: 2.25rem;
  }

  .testimonial-carousel-wrapper {
    margin-top: 2rem;
    padding: 0 2.5rem;
  }

  .testimonial-track-container {
    padding: 0.25rem 0;
  }

  .testimonial-card {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }

  .testimonial-card::before {
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .testimonial-author {
    padding-top: 1.1rem;
  }

  .author-img,
  .testimonial-avatar {
    width: 44px;
    height: 44px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .prev-btn {
    left: -2px;
  }

  .next-btn {
    right: -2px;
  }
}

@media (max-width: 360px) {
  .testimonial-section .container {
    padding: 0 1rem;
  }

  .testimonial-section .section-title {
    font-size: 1.8rem;
  }

  .testimonial-section .section-subtitle {
    font-size: 0.92rem;
  }

  .testimonial-carousel-wrapper {
    padding: 0 2rem;
  }

  .testimonial-card {
    padding: 1.5rem 1rem;
  }

  .testimonial-text {
    font-size: 0.92rem;
  }

  .author-name {
    font-size: 0.9rem;
  }

  .author-title {
    font-size: 0.8rem;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {
  .testimonial-section {
    padding-bottom: 5rem;
  }

  .testimonial-carousel-wrapper {
    padding: 0 1.75rem;
    margin-bottom: 0.75rem;
  }

  .testimonial-card {
    padding: 1.35rem 0.9rem;
    min-width: 232px;
    max-width: 232px;
    width: 232px;
    margin-right: 12px;
    height: 330px !important;
  }
}