/* Joy of Hearts At Home Care - Main Styles */
:root {
  --color-primary: #1F3A5F;
  --color-primary-dark: #172d47;
  --color-primary-bright: #2C4A6E;
  --color-primary-hover: #2C4A6E;
  --color-accent: #F28C28;
  --color-accent-light: #F5A623;
  --color-accent-bright: #f7b84d;
  --color-text: #1F3A5F;
  --color-text-light: #4a6285;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

body.has-site-preloader {
  overflow: hidden;
}

/* Homepage preloader — logo rotation */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-primary-dark) 0%, var(--color-primary) 42%, #243d5c 100%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.site-preloader--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-preloader__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(200px, 48vw);
  height: min(200px, 48vw);
}

.site-preloader__ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--color-accent);
  border-right-color: rgba(242, 140, 40, 0.45);
  animation: site-preloader-ring 1.35s linear infinite;
}

.site-preloader__logo {
  position: relative;
  z-index: 1;
  width: min(140px, 36vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
  animation: site-preloader-logo 2.6s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}

@keyframes site-preloader-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes site-preloader-logo {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(90deg) scale(1.05);
  }
  50% {
    transform: rotate(180deg) scale(1);
  }
  75% {
    transform: rotate(270deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-preloader__ring {
    animation: none;
    border-color: rgba(255, 255, 255, 0.2);
  }

  .site-preloader__logo {
    animation: site-preloader-logo-subtle 2.5s ease-in-out infinite;
  }

  @keyframes site-preloader-logo-subtle {
    0%,
    100% {
      opacity: 1;
      transform: scale(1);
    }
    50% {
      opacity: 0.88;
      transform: scale(1.04);
    }
  }
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  box-shadow: var(--shadow);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  overflow: visible;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.logo:hover {
  color: var(--color-primary-bright);
}

.logo-accent {
  color: var(--color-accent);
  transition: color 0.2s ease;
}

.logo:hover .logo-accent {
  color: var(--color-accent-bright);
}

.logo:has(.logo-img) {
  display: inline-flex;
  align-items: center;
  font-size: 0;
  line-height: 0;
  color: inherit;
  overflow: visible;
  position: relative;
  z-index: 2;
}

.logo:has(.logo-img):hover {
  color: inherit;
  opacity: 0.92;
}

/* Layout size stays small (header bar height unchanged); scale draws a larger logo */
.logo-img {
  height: 46px;
  width: auto;
  max-width: min(240px, 44vw);
  object-fit: contain;
  display: block;
  transform: scale(2.15);
  transform-origin: left center;
}

@media (max-width: 900px) {
  .logo-img {
    transform: scale(1.8);
    max-width: min(210px, 48vw);
  }
}

@media (max-width: 600px) {
  .logo-img {
    height: 42px;
    transform: scale(1.55);
    max-width: min(175px, 52vw);
  }
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-list li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  padding: 12px 18px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius);
  position: relative;
  transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible {
  color: var(--color-accent);
  background: rgba(242, 140, 40, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.nav-list > li > a:hover::after,
.nav-list > li > a:focus-visible::after {
  transform: scaleX(1);
}

.nav-list > li.has-dropdown > a:hover::after,
.nav-list > li.has-dropdown:hover > a::after,
.nav-list > li.has-dropdown > a:focus-visible::after {
  transform: scaleX(0);
}

.nav-list > li.has-dropdown:hover > a,
.nav-list > li.has-dropdown:focus-within > a {
  color: var(--color-accent);
  background: rgba(242, 140, 40, 0.1);
}

/* Dropdown */
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--color-bg);
  box-shadow: 0 12px 40px rgba(13, 107, 124, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  border: 1px solid rgba(20, 163, 184, 0.12);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown a {
  display: block;
  padding: 12px 20px;
  color: var(--color-text);
  transition: all 0.2s ease;
  margin: 0 8px;
  border-radius: 6px;
  border-left: 3px solid transparent;
}

.dropdown a:hover {
  background: linear-gradient(90deg, rgba(242, 140, 40, 0.12) 0%, rgba(242, 140, 40, 0.06) 100%);
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  padding-left: 24px;
  transform: translateX(4px);
}

/* Care Services mega-menu: table-style grid, 5 rows × 2 cols, Helvetica, no wrap */
.has-dropdown .dropdown.dropdown-care {
  padding: 0;
  width: max-content;
  max-width: min(960px, calc(100vw - 28px));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

.dropdown-care {
  position: relative;
  display: grid;
  grid-template-columns: max-content max-content;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 0;
  border: 1px solid rgba(20, 163, 184, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.dropdown-care li {
  min-width: max-content;
  border-bottom: 1px solid rgba(20, 163, 184, 0.14);
  border-right: 1px solid rgba(20, 163, 184, 0.14);
}

.dropdown-care li:nth-child(5),
.dropdown-care li:nth-child(10) {
  border-bottom: none;
}

.dropdown-care li:nth-child(n + 6) {
  border-right: none;
}

.dropdown-care a {
  display: block;
  margin: 0;
  padding: 12px 20px;
  border-radius: 0;
  border-left: none;
  white-space: nowrap;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.dropdown-care a:hover {
  padding-left: 20px;
  transform: none;
  border-left: none;
  background: rgba(242, 140, 40, 0.14);
  color: var(--color-accent);
}

/* Table row bands: same tint for each visual row (1+6, 2+7, …) */
.dropdown-care li:nth-child(1) a,
.dropdown-care li:nth-child(6) a,
.dropdown-care li:nth-child(3) a,
.dropdown-care li:nth-child(8) a,
.dropdown-care li:nth-child(5) a,
.dropdown-care li:nth-child(10) a {
  background: rgba(241, 245, 249, 0.95);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(31, 58, 95, 0.08);
  transform: scale(1.05);
}

.nav-toggle:active {
  transform: scale(0.98);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              background 0.3s ease;
  transform-origin: center;
}

.nav-toggle:hover span {
  background: var(--color-primary-bright);
}

/* Fluid morph: hamburger to X when active */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-cta {
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: white !important;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(13, 107, 124, 0.25);
}

.header-cta:hover {
  background: linear-gradient(135deg, var(--color-primary-bright) 0%, var(--color-primary) 100%);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 163, 184, 0.4);
}

/* Header actions: Search icon + Call */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.header-search-toggle:hover {
  background: rgba(20, 163, 184, 0.08);
  border-color: var(--color-primary-bright);
  color: var(--color-primary-bright);
}

/* Header Search Bar - below nav, hidden by default */
.header-search-bar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
}

.header-search-bar.open {
  max-height: 120px;
  opacity: 1;
  padding: 10px 0;
}

.header-search-bar .container {
  display: flex;
  justify-content: center;
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search-input {
  width: 220px;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.header-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(13, 107, 124, 0.15);
}

.header-search-btn {
  padding: 8px 16px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .header-search-form {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .header-search-input {
    flex: 1;
    min-width: 0;
  }
}

/* Scroll progress — full width under header (nav + search row) */
.scroll-progress {
  width: 100%;
  height: 7px;
  background: rgba(31, 58, 95, 0.1);
  flex-shrink: 0;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  will-change: width;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  min-height: 580px;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  height: 580px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-color: #1a2332;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
  visibility: visible;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Left (text side): original strong tint; right: lighter so photo shows */
  background: linear-gradient(
    to right,
    rgba(31, 58, 95, 0.92) 0%,
    rgba(23, 45, 71, 0.88) 48%,
    rgba(31, 58, 95, 0.42) 72%,
    rgba(23, 45, 71, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* Active slide: text stays prepped until .hero-text-in triggers pop-in (avoids flash between slides) */
.carousel-slide.active .hero-content:not(.hero-text-in) > * {
  opacity: 0;
  transform: translateY(1.25rem);
  filter: blur(3px);
}

@keyframes hero-pop-in {
  0% {
    opacity: 0;
    transform: translateY(1.35rem) scale(0.92);
    filter: blur(3px);
  }
  58% {
    opacity: 1;
    transform: translateY(-0.2rem) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.carousel-slide.active .hero-content.hero-text-in > * {
  animation: hero-pop-in 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.carousel-slide.active .hero-content.hero-text-in > *:nth-child(1) {
  animation-delay: 0.04s;
}

.carousel-slide.active .hero-content.hero-text-in > *:nth-child(2) {
  animation-delay: 0.16s;
}

.carousel-slide.active .hero-content.hero-text-in > *:nth-child(3) {
  animation-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide.active .hero-content > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.2rem;
  max-width: 560px;
  opacity: 0.98;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.4);
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
}

.carousel-dot.active {
  background: white;
}

/* Stats Bar */
.stats-bar {
  background: var(--color-primary);
  color: white;
  padding: 40px 0;
  border-top: 6px solid var(--color-accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 0 16px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
}

.stat-suffix {
  font-size: 1.5rem;
  opacity: 0.9;
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  opacity: 0.95;
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

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

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

.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
}

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Trust Bar */
.trust-bar {
  background: var(--color-bg-alt);
  padding: 32px 0;
  border-top: 6px solid var(--color-accent);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  text-align: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.trust-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  font-weight: bold;
}

.trust-item .trust-icon {
  color: #ffffff;
}

.trust-item strong {
  display: block;
  color: var(--color-primary);
}

.trust-item span {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Sections */
.section {
  padding: 80px 0;
}

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

/* Care Services — intro banner + highlight cards (services.php / services.html) */
.services-intro-media {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 40px;
}

.services-intro-banner {
  position: relative;
  width: 100%;
  align-self: start;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-bg);
  line-height: 0;
}

.services-banner-main {
  display: block;
  width: 100%;
  height: auto;
}

.services-intro-ad {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #f8fafc 0%, #eef3f8 100%);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px 16px 22px;
  min-height: 0;
}

.services-ad-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Two cards visible; track scrolls upward (bottom → top) */
.services-highlights-viewport {
  --hl-gap: 12px;
  --hl-card-h: 196px;
  position: relative;
  height: calc(var(--hl-card-h) * 2 + var(--hl-gap));
  overflow: hidden;
  border-radius: 10px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.services-highlights-track {
  display: flex;
  flex-direction: column;
  gap: var(--hl-gap);
  will-change: transform;
  animation: services-highlights-scroll-up 28s linear infinite;
}

/* Pause auto-scroll while pointer is over the highlights panel; resumes when hover ends */
.services-intro-ad:hover .services-highlights-track {
  animation-play-state: paused;
}

/* Flatten so eight cards share one gap rhythm (seamless loop math) */
.services-highlights-set {
  display: contents;
}

.services-highlight-card {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  height: var(--hl-card-h);
  min-height: var(--hl-card-h);
  max-height: var(--hl-card-h);
  padding: 12px 14px 12px 16px;
  background: var(--color-bg);
  border: 1px solid rgba(31, 58, 95, 0.1);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(31, 58, 95, 0.06);
  overflow: hidden;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease, border-color 0.25s ease;
}

.services-highlight-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  border-radius: 10px 0 0 10px;
  opacity: 0.95;
  transition: width 0.3s ease;
}

.services-highlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(242, 140, 40, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.services-highlight-card:hover {
  animation: services-highlight-pulse 1.35s ease-in-out infinite;
  border-color: rgba(242, 140, 40, 0.42);
}

.services-highlight-card:hover::before {
  width: 5px;
  animation: services-highlight-bar-pulse 1.35s ease-in-out infinite;
}

.services-highlight-card:hover::after {
  opacity: 1;
  animation: services-highlight-overlay-pulse 1.35s ease-in-out infinite;
}

@keyframes services-highlight-pulse {
  0%,
  100% {
    box-shadow:
      0 6px 16px rgba(31, 58, 95, 0.09),
      inset 0 0 0 0 rgba(242, 140, 40, 0),
      inset 0 0 20px rgba(242, 140, 40, 0.04);
  }

  50% {
    box-shadow:
      0 12px 28px rgba(31, 58, 95, 0.14),
      inset 0 0 0 1px rgba(242, 140, 40, 0.18),
      inset 0 0 36px rgba(242, 140, 40, 0.14);
  }
}

@keyframes services-highlight-bar-pulse {
  0%,
  100% {
    opacity: 0.95;
    filter: brightness(1);
  }

  50% {
    opacity: 1;
    filter: brightness(1.15);
  }
}

@keyframes services-highlight-overlay-pulse {
  0%,
  100% {
    opacity: 0.75;
  }

  50% {
    opacity: 1;
  }
}

.services-highlight-card__meta {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.services-highlight-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.services-highlight-card__text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes services-highlights-scroll-up {
  0% {
    transform: translateY(0);
  }

  100% {
    /* Align duplicate group: four cards plus the gaps after each (incl. before card 5) */
    transform: translateY(calc(-1 * (4 * var(--hl-card-h) + 4 * var(--hl-gap))));
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-highlights-track {
    animation: none;
  }

  .services-highlights-viewport {
    height: auto;
    max-height: none;
    overflow: visible;
    mask-image: none;
  }

  .services-highlight-card--clone {
    display: none !important;
  }

  .services-highlight-card {
    height: auto;
    min-height: 140px;
    max-height: none;
  }

  .services-highlight-card:hover {
    animation: none;
    box-shadow: 0 10px 22px rgba(31, 58, 95, 0.12);
  }

  .services-highlight-card:hover::before {
    animation: none;
  }

  .services-highlight-card:hover::after {
    animation: none;
    opacity: 1;
  }

  .services-highlight-card__text {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .services-intro-media {
    grid-template-columns: 1fr;
    gap: 24px;
  }

}

/* Services section - video background */
.services-video-bg {
  position: relative;
  overflow: hidden;
}

.services-video-bg.section-alt {
  background: transparent;
}

.services-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../img/care.webp') center/cover no-repeat;
}

.services-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.services-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247, 250, 252, 0.72);
  z-index: 1;
}

.services-content-overlay {
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--color-text-light);
}

/* Intro — heading + soft card for body copy */
.intro-centered {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.intro-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.5vw, 1.95rem);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.28;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  text-align: center;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 1.25rem;
}

.intro-heading::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 1.25rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary) 20%, var(--color-primary) 80%, transparent);
  opacity: 0.85;
}

.intro-copy-card {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem);
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 45%, #f1f5f9 100%);
  border: 1px solid rgba(31, 58, 95, 0.09);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(31, 58, 95, 0.04),
    0 12px 40px -8px rgba(31, 58, 95, 0.1);
}

.intro-text {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 38rem;
}

.intro-text--lead {
  font-size: clamp(1.08rem, 2.2vw, 1.22rem);
  line-height: 1.78;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text);
  margin: 0;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid rgba(31, 58, 95, 0.1);
}

.intro-text--support {
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  line-height: 1.72;
  color: var(--color-text-light);
  margin: 0;
  padding: 1.5rem 0 0;
  max-width: 32rem;
  font-style: italic;
  font-weight: 400;
}

.intro-support-label {
  display: block;
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.9;
  margin-bottom: 0.65rem;
}

/* Legacy: plain .intro h2 without .intro-heading */
.intro h2:not(.intro-heading) {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.3;
  max-width: 38rem;
  margin: 0 auto 1.5rem;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--color-bg);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(31, 58, 95, 0.1);
}

.service-card-glow:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* Spotlight/glow border effect for Our Care Services cards */
.service-card-glow {
  --glow-base: 211;
  --glow-spread: 80;
  --glow-radius: 14;
  --glow-border: 2;
  --glow-size: 180;
  --border-size: calc(var(--glow-border) * 1px);
  --spotlight-size: calc(var(--glow-size) * 1px);
  --hue: calc(var(--glow-base) + (var(--xp, 0) * var(--glow-spread)));
  position: relative;
  overflow: hidden;
  touch-action: none;
  background: linear-gradient(145deg, #152940 0%, #1a3352 100%);
  background-image: radial-gradient(
    var(--spotlight-size) var(--spotlight-size) at
    calc(var(--x, -9999) * 1px) calc(var(--y, -9999) * 1px),
    hsl(var(--hue, 211) 65% 50% / 0.25), transparent
  ), linear-gradient(145deg, #152940 0%, #1a3352 100%);
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size))), 100% 100%;
  background-position: 50% 50%, 0 0;
  background-attachment: fixed, scroll;
  border: var(--border-size) solid rgba(255, 255, 255, 0.08);
}

.service-card-glow::before,
.service-card-glow::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border: var(--border-size) solid transparent;
  border-radius: calc(var(--glow-radius) * 1px);
  background-attachment: fixed;
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-repeat: no-repeat;
  background-position: 50% 50%;
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  mask-clip: padding-box, border-box;
  mask-composite: intersect;
}

.service-card-glow::before {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at
    calc(var(--x, -9999) * 1px) calc(var(--y, -9999) * 1px),
    hsl(var(--hue, 211) 70% 55% / 1), transparent 100%
  );
  filter: brightness(1.2);
}

.service-card-glow::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at
    calc(var(--x, -9999) * 1px) calc(var(--y, -9999) * 1px),
    hsl(0 100% 100% / 0.9), transparent 100%
  );
}

.service-card-glow .service-card-glow-inner {
  position: absolute;
  inset: 0;
  will-change: filter;
  opacity: 0.6;
  border-radius: calc(var(--glow-radius) * 1px);
  filter: blur(calc(var(--border-size) * 8));
  background: transparent;
  pointer-events: none;
  border: none;
}

.service-card-glow .service-icon,
.service-card-glow h3,
.service-card-glow p,
.service-card-glow .service-link {
  position: relative;
  z-index: 1;
}

.services-grid-glow .service-card-glow .service-icon,
.services-grid-glow .service-card-glow h3,
.services-grid-glow .service-card-glow p,
.services-grid-glow .service-card-glow .service-link,
.services-grid-glow .service-card-glow a {
  color: #fff !important;
}

.services-grid-glow .service-card-glow p {
  color: rgba(255, 255, 255, 0.95) !important;
}

.services-grid-glow .service-card-glow .service-link:hover,
.services-grid-glow .service-card-glow a:hover {
  color: var(--color-accent-bright) !important;
}

.services-grid-glow .service-card-glow .service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-accent);
  border-radius: 12px;
  font-size: 1.75rem;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.service-link {
  font-weight: 600;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.cta-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 24px;
  opacity: 0.95;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.cta-section .btn-outline {
  border-color: white;
  color: white;
}

.cta-quick-review {
  margin-bottom: 24px;
  opacity: 0.95;
}

.cta-quick-review a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

.cta-quick-review a:hover {
  color: #fff;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(31, 58, 95, 0.15);
}

.team-photo-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.team-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


.team-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 45, 71, 0.9) 0%, rgba(31, 58, 95, 0.6) 50%, transparent 70%);
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding-bottom: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transform: translateY(12px);
  transition: transform 0.25s ease, background 0.2s, color 0.2s;
}

.team-social-btn:nth-child(1) { transition-delay: 0.05s; }
.team-social-btn:nth-child(2) { transition-delay: 0.1s; }

.team-card:hover .team-social-btn,
.team-card:focus-within .team-social-btn {
  transform: translateY(0);
}

.team-card:hover .team-photo-overlay,
.team-card:focus-within .team-photo-overlay {
  opacity: 1;
}

.team-card:hover .team-photo,
.team-card:focus-within .team-photo {
  transform: scale(1.06);
}

.team-social-btn svg {
  width: 20px;
  height: 20px;
}

.team-social-btn.team-social-x {
  background: rgba(0, 0, 0, 0.6);
}

.team-social-btn.team-social-x:hover {
  background: #000;
  color: white;
  transform: translateY(-2px);
}

.team-social-btn.team-social-linkedin {
  background: rgba(10, 102, 194, 0.85);
}

.team-social-btn.team-social-linkedin:hover {
  background: #0a66c2;
  color: white;
  transform: translateY(-2px);
}

/* Touch devices: show social overlay by default (no hover) */
@media (hover: none) {
  .team-photo-overlay {
    opacity: 0.95;
    background: linear-gradient(to top, rgba(23, 45, 71, 0.95) 0%, rgba(31, 58, 95, 0.75) 50%, transparent 75%);
  }
  .team-social-btn {
    transform: translateY(0);
  }
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin: 16px 20px 4px;
}

.team-role {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 20px 8px;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin: 0 20px 20px;
  line-height: 1.5;
}

/* Promo picture banner + advert videos (home, replaces leadership block when used) */
.promo-ad-section {
  padding: 0;
}

.promo-ad-banner {
  min-height: 200px;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 44px 0;
  border-bottom: 6px solid var(--color-accent);
  background-color: var(--color-primary);
  background-image: linear-gradient(105deg, rgba(31, 58, 95, 0.94) 0%, rgba(31, 58, 95, 0.55) 55%, rgba(242, 140, 40, 0.35) 100%), url('../img/care.webp');
  background-size: cover;
  background-position: center;
}

.promo-ad-banner .container {
  width: 100%;
}

.promo-ad-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 400;
  margin: 0;
  max-width: 22ch;
  line-height: 1.2;
}

.promo-ad-banner-sub {
  margin: 14px 0 0;
  opacity: 0.95;
  font-size: 1.05rem;
  max-width: 40ch;
  line-height: 1.45;
}

/* Same .container width as video block — only vertical padding here (horizontal from .container) */
.promo-ad-care-splits {
  padding-top: 36px;
  padding-bottom: 8px;
  box-sizing: border-box;
}

.promo-ad-videos {
  padding-top: 28px;
  padding-bottom: 52px;
}

.promo-ad-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: start;
}

.promo-ad-item {
  margin: 0;
}

.promo-ad-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: #0f172a;
  box-shadow: var(--shadow);
  vertical-align: middle;
}

.promo-ad-item figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  font-weight: 600;
}

@media (max-width: 768px) {
  .promo-ad-video-grid {
    grid-template-columns: 1fr;
  }
}

/* Alternating image + text rows (above videos; width matches .container with .promo-ad-care-splits) */
.care-split-rows {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.care-split-rows .care-split:not(:first-child) {
  margin-top: 24px;
}

.care-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(31, 58, 95, 0.08);
}

.care-split__media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #e2e8f0;
}

.care-split__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Promo spotlight: CMS image border + corner presets (see edit-promo-care-splits) */
.care-split__media--border-light img {
  border: 3px solid rgba(148, 163, 184, 0.9);
  box-sizing: border-box;
}

.care-split__media--border-accent img {
  border: 3px solid var(--color-primary);
  box-sizing: border-box;
}

.care-split__media--border-custom img {
  border: 3px solid var(--promo-img-border, #64748b);
  box-sizing: border-box;
}

.care-split__media--radius-rounded img {
  border-radius: 28px;
}

.care-split__media--radius-round img {
  border-radius: 85px;
}

.care-split__media--radius-diagonal img {
  border-radius: 0;
  border-top-right-radius: 56px;
  border-bottom-left-radius: 56px;
}

.care-split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4.5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  box-sizing: border-box;
}

.care-split__body--blush {
  background: #fce4ec;
  color: var(--color-text);
}

.care-split__body--mist {
  background: #e2e8f0;
  color: var(--color-text);
}

.care-split__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-primary);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.care-split__copy {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-text);
}

@media (max-width: 900px) {
  .care-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  /* Second row: DOM is text then image — show image first on small screens */
  .care-split--media-right .care-split__media {
    order: -1;
  }

  .care-split__media {
    min-height: 240px;
  }

  .care-split__media img {
    min-height: 220px;
  }
}

/* Awards */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.award-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

.award-card:hover {
  box-shadow: var(--shadow);
}

.award-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.award-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.award-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Homepage: featured citation + testimonials (same section #testimonials) */
.home-social-proof.section-alt {
  background: linear-gradient(180deg, #f5f8fc 0%, #fafbfd 50%, #f0f4f9 100%);
}

.home-citation {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 0 12px;
  text-align: center;
}

.home-citation__title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.home-citation__blockquote {
  position: relative;
  margin: 0;
  padding: 2.25rem 2rem 2rem;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  border: 1px solid rgba(31, 58, 95, 0.12);
  box-shadow:
    0 2px 4px rgba(31, 58, 95, 0.06),
    0 24px 48px rgba(31, 58, 95, 0.1);
}

.home-citation__mark {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  line-height: 0.85;
  color: var(--color-accent);
  opacity: 0.9;
  margin-bottom: 0.25rem;
  text-shadow: 0 2px 12px rgba(242, 140, 40, 0.25);
}

.home-citation__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
  padding: 0 0.25rem;
}

.home-citation__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(31, 58, 95, 0.08);
}

.home-citation__cite {
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary-bright);
  font-family: var(--font-body);
}

.home-citation__sub {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.home-testimonials-carousel-wrap .section-title {
  margin-top: 0;
}

.home-testimonials-carousel-wrap--after-citation .section-title {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(31, 58, 95, 0.12);
}

.home-testimonials-carousel-wrap .section-sub {
  margin-bottom: 1.25rem;
}

/* Testimonials Carousel */
.testimonials.section-alt {
  background: linear-gradient(180deg, #f5f8fc 0%, #fafbfd 50%, #f0f4f9 100%);
}

.testimonial-carousel {
  --testimonial-slides: 3;
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 56px 0;
  overflow: visible;
}

.testimonial-carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(31, 58, 95, 0.06),
    0 20px 50px rgba(31, 58, 95, 0.1);
  background: var(--color-bg);
  border: 1px solid rgba(31, 58, 95, 0.1);
}

.testimonial-track {
  display: flex;
  -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: calc(100% * var(--testimonial-slides));
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

/* Each slide: 4 cards in a grid (2×2 tablet, 4×1 desktop, 1 col mobile) */
.testimonial-slide {
  flex: 0 0 calc(100% / var(--testimonial-slides));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px;
  min-height: 0;
}

.testimonial-slide .testimonial-card {
  margin: 0;
}

.testimonial-card {
  padding: 24px 22px 22px;
  margin: 0;
  box-sizing: border-box;
  background: linear-gradient(165deg, #ffffff 0%, #fafcfd 100%);
  border-radius: 12px;
  border: none;
  border-left: 4px solid var(--color-accent);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 2.75rem;
  line-height: 1;
  color: rgba(31, 58, 95, 0.12);
  pointer-events: none;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
  margin-top: 4px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
  padding-left: 4px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.testimonial-author cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 2px;
  display: block;
}

.testimonial-prev,
.testimonial-next {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 2px solid rgba(13, 107, 124, 0.2);
  box-shadow: 0 4px 14px rgba(13, 107, 124, 0.12);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.testimonial-prev { left: 0; }
.testimonial-next { right: 0; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.testimonial-dots .testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(13, 107, 124, 0.25);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, width 0.25s;
}

.testimonial-dots .testimonial-dot:hover {
  background: rgba(13, 107, 124, 0.45);
}

.testimonial-dots .testimonial-dot.active {
  background: var(--color-primary);
  transform: scale(1.15);
  width: 24px;
  border-radius: 5px;
}

@media (min-width: 1024px) {
  .testimonial-slide {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 20px 22px;
  }
}

@media (max-width: 640px) {
  .testimonial-slide {
    grid-template-columns: 1fr;
  }
  .testimonial-carousel {
    padding: 8px 48px 0;
  }
  .testimonial-prev,
  .testimonial-next {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  .testimonial-card {
    padding: 20px 18px 18px;
  }
  .testimonial-card::before {
    font-size: 2.25rem;
    left: 14px;
    top: 10px;
  }
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-toggle {
  width: 100%;
  padding: 20px 0;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle::after {
  content: "+";
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.faq-item.open .faq-toggle::after {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-content {
  max-height: 1200px;
}

.faq-content p {
  padding: 0 0 20px;
  color: var(--color-text-light);
}

.faq-item.open .faq-content p {
  color: var(--color-accent);
}

/* Services Accordion */
.services-accordion-section {
  padding-top: 48px;
}

.services-accordion-intro {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.services-search-wrap {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.services-search-input {
  min-width: 240px;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.services-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 107, 124, 0.15);
}

.services-dropdown-wrap {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.services-dropdown-wrap label {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.services-jump {
  padding: 10px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  min-width: 280px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.services-jump:hover,
.services-jump:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.15);
}

.service-detail-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.service-detail-block:last-child {
  border-bottom: none;
}

/* Care Services accordion - compact grid: 5 left, 5 right */
.care-services-accordion {
  max-width: 900px;
  margin: 0 5px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-items: start;
}

/* Tech services accordion (3 items) - compact grid */
#services-accordion.care-services-accordion {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.accordion-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-col-left,
.accordion-col-right {
  min-width: 0;
}

.services-accordion-item {
  border-radius: 6px;
  background: var(--color-bg);
  border: 1px solid #d1dce3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
}

/* Compact accordion - remove folder tab for cleaner look */
.services-accordion-item::before {
  display: none;
}

.services-accordion-item.tip-teal::before { background: linear-gradient(135deg, #1F3A5F 0%, #172d47 100%); border-color: #172d47; }
.services-accordion-item.tip-blue::before { background: linear-gradient(135deg, #2C4A6E 0%, #1F3A5F 100%); border-color: #172d47; }
.services-accordion-item.tip-navy::before { background: linear-gradient(135deg, #1F3A5F 0%, #172d47 100%); border-color: #0f172a; }
.services-accordion-item.tip-coral::before { background: linear-gradient(135deg, #F28C28 0%, #e07d1a 100%); border-color: #c96a15; }
.services-accordion-item.tip-purple::before { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); border-color: #5b21b6; }
.services-accordion-item.tip-rose::before { background: linear-gradient(135deg, #be185d 0%, #9d174d 100%); border-color: #831843; }
.services-accordion-item.tip-green::before { background: linear-gradient(135deg, #059669 0%, #047857 100%); border-color: #065f46; }
.services-accordion-item.tip-amber::before { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); border-color: #92400e; }
.services-accordion-item.tip-lavender::before { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); border-color: #6d28d9; }


.services-accordion-item.open {
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Colored folder tips - left border tab */
.accordion-toggle {
  border-left: 5px solid var(--color-primary);
}

.services-accordion-item.tip-teal .accordion-toggle { border-left-color: #1F3A5F; }
.services-accordion-item.tip-blue .accordion-toggle { border-left-color: #2C4A6E; }
.services-accordion-item.tip-navy .accordion-toggle { border-left-color: #1F3A5F; }
.services-accordion-item.tip-coral .accordion-toggle { border-left-color: #F28C28; }
.services-accordion-item.tip-purple .accordion-toggle { border-left-color: #7c3aed; }
.services-accordion-item.tip-rose .accordion-toggle { border-left-color: #be185d; }
.services-accordion-item.tip-green .accordion-toggle { border-left-color: #059669; }
.services-accordion-item.tip-amber .accordion-toggle { border-left-color: #d97706; }
.services-accordion-item.tip-lavender .accordion-toggle { border-left-color: #8b5cf6; }

.accordion-toggle {
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion-toggle:hover {
  background: rgba(20, 163, 184, 0.06);
  color: var(--color-primary-bright);
}

.services-accordion-item.open .accordion-toggle {
  background: rgba(20, 163, 184, 0.06);
  color: var(--color-primary-bright);
}

/* Accordion image (SVG icons - replaces emoji) */
.accordion-icon,
.accordion-img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 58, 95, 0.08);
  padding: 8px;
  box-sizing: border-box;
}
.accordion-icon svg,
.accordion-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.accordion-title {
  flex: 1;
}

.accordion-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.accordion-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-30%, -60%) rotate(45deg);
}

.services-accordion-item.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.services-accordion-item.open .accordion-content {
  max-height: 500px;
}

@media (max-width: 768px) {
  .care-services-accordion,
  #services-accordion.care-services-accordion {
    grid-template-columns: 1fr;
    margin-left: 5px;
    margin-right: 5px;
  }
}

.accordion-content {
  padding: 0 16px 16px;
  border-top: 1px solid #e8eef2;
  background: linear-gradient(180deg, #fcfdfd 0%, #fafbfc 100%);
}

.accordion-content p {
  padding: 12px 0 10px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

.accordion-content .check-list {
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.accordion-content .btn {
  display: inline-block;
}

/* Services Image Carousel */
.services-carousel {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.services-carousel-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 32px;
}

.services-carousel-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.services-carousel-slides {
  position: relative;
  min-height: 420px;
}

.services-carousel-slide {
  position: absolute;
  inset: 0;
  background-color: #1a2332;
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.services-carousel-slide.active {
  opacity: 1;
  z-index: 1;
  visibility: visible;
}

.services-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(23, 45, 71, 0.9) 0%, rgba(31, 58, 95, 0.5) 40%, transparent 100%);
}


.services-carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px 28px;
  color: white;
  z-index: 2;
}

.services-carousel-caption h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.services-carousel-caption p {
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.5;
  margin: 0;
  max-width: 560px;
}

.services-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--color-primary);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

.services-carousel-btn:hover {
  background: white;
  color: var(--color-primary-dark);
}

.services-carousel-prev { left: 16px; }
.services-carousel-next { right: 16px; }

.services-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.services-carousel-dots .carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

.services-carousel-dots .carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.services-carousel-dots .carousel-dot.active {
  background: white;
}

@media (max-width: 600px) {
  .services-carousel-slides {
    min-height: 360px;
  }
  .services-carousel-caption h4 {
    font-size: 1.2rem;
  }
  .services-carousel-caption p {
    font-size: 0.9rem;
  }
}

/* Newsletter */
.newsletter-box {
  background: var(--color-primary);
  color: white;
  padding: 48px;
  border-radius: var(--radius);
  text-align: center;
}

.newsletter-box h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.newsletter-box p {
  margin-bottom: 24px;
  opacity: 0.95;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary-dark);
  color: white;
  padding: 12px 0;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.3s;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sticky-cta-inner > div {
  display: flex;
  gap: 12px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 85;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent-light);
}

/* Legacy testimonial (for other pages) */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.testimonial {
  background: var(--color-bg);
  padding: 32px;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial cite {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* Check List */
.check-list {
  list-style: none;
  margin-bottom: 32px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.check-list.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 48px;
}

.services-cta-text {
  margin-bottom: 24px;
}

.services-list .btn {
  display: inline-block;
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: 60px 24px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
}

.page-hero p {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-top: 8px;
}

/* About Page */
.about-intro {
  max-width: 800px;
  margin-bottom: 48px;
}

.about-intro p {
  margin-bottom: 16px;
}

.about-intro p:last-child {
  margin-bottom: 0;
}

/* About Mission/Vision Flip Cards */
.about-flip-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
  max-width: 800px;
}

@media (max-width: 640px) {
  .about-flip-cards {
    grid-template-columns: 1fr;
  }
}

.flip-card {
  perspective: 1000px;
  min-height: 220px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.flip-card:hover {
  transform: translateY(-6px);
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 220px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(31, 58, 95, 0.08);
}

.flip-card-front {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid var(--color-border);
}

.flip-card-back {
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
  transform: rotateY(180deg);
  border: 2px solid var(--color-border);
  text-align: center;
  justify-content: center;
}

/* Mission card - navy accent */
.mission-card .flip-card-front {
  border-color: rgba(31, 58, 95, 0.2);
}

.mission-card:hover .flip-card-front {
  border-color: var(--color-primary);
}

.mission-card .flip-card-icon {
  color: var(--color-primary);
  margin-bottom: 16px;
}

.mission-card .flip-card-front h3 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.mission-card .flip-card-back {
  border-color: var(--color-primary);
  background: linear-gradient(145deg, rgba(31, 58, 95, 0.04) 0%, #f8fafc 100%);
}

.mission-card .flip-card-back p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* Vision card - orange accent */
.vision-card .flip-card-front {
  border-color: rgba(242, 140, 40, 0.25);
}

.vision-card:hover .flip-card-front {
  border-color: var(--color-accent);
}

.vision-card .flip-card-icon {
  color: var(--color-accent);
  margin-bottom: 16px;
}

.vision-card .flip-card-front h3 {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.vision-card .flip-card-back {
  border-color: var(--color-accent);
  background: linear-gradient(145deg, rgba(242, 140, 40, 0.06) 0%, #f8fafc 100%);
}

.vision-card .flip-card-back p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.flip-card-hint {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
  opacity: 0.8;
}

.about-values-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-approach {
  max-width: 760px;
}

.about-approach-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-approach-list li {
  padding: 16px 0;
  padding-left: 36px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-light);
}

.about-approach-list li:last-child {
  border-bottom: none;
}

.about-approach-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Contact Page */
.contact-section {
  background: var(--color-bg-alt);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.contact-form-card,
.contact-info-card,
.contact-map-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.contact-form-card h2,
.contact-info-card h2,
.contact-map-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.contact-info-card:hover h2 {
  color: var(--color-accent);
}

.contact-intro {
  margin-bottom: 8px;
}

.contact-form-card .form-note {
  margin-bottom: 24px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-method:hover {
  background: rgba(242, 140, 40, 0.1);
  border-color: rgba(242, 140, 40, 0.4);
}

.contact-method:hover strong {
  color: var(--color-accent);
}

.contact-method:hover a {
  color: var(--color-accent);
}

.contact-method:hover > div > span:last-child {
  color: var(--color-accent);
}

.contact-method-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-method strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.contact-method span:last-child {
  font-size: 0.95rem;
  color: var(--color-text);
}

.contact-method-call span a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-method-call span a:hover,
.contact-method:hover .contact-method-call span a {
  color: var(--color-accent);
  text-decoration: underline;
}

.contact-method:hover .contact-phone-sep {
  color: var(--color-accent);
  opacity: 0.85;
}

.contact-phone-sep {
  margin: 0 8px;
  opacity: 0.6;
}

.contact-info-card .btn-secondary {
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.contact-info-card .btn-secondary:hover:not(:disabled) {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.contact-map-card {
  margin-top: 24px;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--color-border);
}

.map-wrapper iframe {
  display: block;
}

.map-link {
  font-weight: 600;
  color: var(--color-primary);
}

.map-link:hover {
  text-decoration: underline;
}

.contact-form-col .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .contact-form-col .form-row {
    grid-template-columns: 1fr;
  }
}

.required {
  color: var(--color-accent);
}

/* Join Us / Jobs */
.jobs-intro {
  margin-bottom: 32px;
  max-width: 720px;
}

.jobs-filters {
  background: var(--color-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 140px;
}

.filter-group-search {
  flex: 1.5;
  min-width: 200px;
}

.filter-group-search input {
  width: 100%;
  padding: 10px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.filter-group-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(13, 107, 124, 0.15);
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.filter-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.filter-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}

.jobs-results-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.jobs-results-count {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.jobs-results-count span {
  font-weight: 700;
  color: var(--color-primary);
}

.jobs-view-toggle {
  display: flex;
  gap: 4px;
  background: var(--color-bg-alt);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.jobs-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-text-light);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.jobs-view-btn:hover {
  color: var(--color-primary);
}

.jobs-view-btn.active {
  background: var(--color-bg);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card grid view */
.jobs-list.jobs-view-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.jobs-list.jobs-view-cards .job-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 0;
}

.jobs-list.jobs-view-cards .job-card-header {
  margin-bottom: 10px;
}

.jobs-list.jobs-view-cards .job-card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.jobs-list.jobs-view-cards .job-meta {
  padding: 8px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.82rem;
  gap: 8px 16px;
}

.jobs-list.jobs-view-cards .job-location {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.jobs-list.jobs-view-cards .job-description {
  flex: 1;
  margin-bottom: 16px;
  overflow: hidden;
}

.jobs-list.jobs-view-cards .job-description h4 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.jobs-list.jobs-view-cards .job-description p {
  font-size: 0.9rem;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.jobs-list.jobs-view-cards .job-description ul {
  display: none;
}

.jobs-list.jobs-view-cards .job-card .btn-apply {
  margin-top: auto;
  align-self: flex-start;
}

.job-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.job-card:hover {
  box-shadow: var(--shadow), 0 0 0 1px rgba(10, 37, 64, 0.4), 0 0 24px rgba(10, 37, 64, 0.35);
  border-color: rgba(10, 37, 64, 0.6);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.job-card h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin: 0;
}

.job-type {
  font-size: 0.8rem;
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.job-meta-item strong {
  color: var(--color-text);
  font-weight: 600;
}

.job-meta-item.job-deadline {
  color: var(--color-accent);
}

.job-meta-item.job-deadline strong {
  color: var(--color-accent);
}

.job-location {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 12px;
}

.job-description {
  margin-bottom: 20px;
}

.job-description h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.job-description p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
  line-height: 1.6;
}

.job-description ul {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.job-description li {
  margin-bottom: 6px;
}

.jobs-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.jobs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.btn-pagination {
  min-width: 120px;
}

.jobs-page-info {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

/* Apply Modal */
.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

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

.apply-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.apply-modal-content {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
}

.apply-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-bg-alt);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  transition: background 0.2s;
}

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

.apply-modal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.apply-position-summary {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.apply-form .form-group {
  margin-bottom: 20px;
}

.apply-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.apply-form input,
.apply-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.apply-form input:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 107, 124, 0.15);
}

.apply-form .readonly-field {
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  cursor: default;
}

.apply-form .form-hint {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.apply-form input[type="file"] {
  padding: 10px;
  font-size: 0.95rem;
}

.apply-message {
  margin-bottom: 20px;
}

.apply-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.apply-form-actions .btn {
  flex: 1;
}

@media (max-width: 700px) {
  .filters-row {
    flex-direction: column;
  }
  .filter-group { min-width: 100%; }
  .jobs-pagination {
    flex-wrap: wrap;
    gap: 16px;
  }
  .btn-pagination {
    min-width: 100px;
  }
  .jobs-list.jobs-view-cards {
    grid-template-columns: 1fr;
  }
}

/* Form security - honeypot (hidden from users, catches bots) */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Contact Form (legacy) */
.form-section {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.recaptcha-wrap {
  min-height: 78px;
}

.recaptcha-wrap .g-recaptcha {
  transform-origin: left top;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,107,124,0.15);
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* Locations Grid */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.location-card {
  background: var(--color-bg-alt);
  padding: 32px;
  border-radius: var(--radius);
}

.location-card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 12px;
}

.location-card p {
  margin-bottom: 8px;
  color: var(--color-text);
}

.location-card a {
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--color-primary-dark);
  color: white;
  padding: 40px 0 20px;
  border-top: 4px solid var(--color-accent);
  box-sizing: border-box;
}

/* New home layout: brand row, then 3 columns (Contact + social | Quick Links | Legal) */
.footer-top:has(.footer-columns) {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 24px;
}

.footer-top:has(.footer-columns) .footer-brand {
  text-align: center;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  align-items: start;
}

.footer-col--contact .footer-contact-list {
  align-items: flex-start;
  text-align: left;
}

.footer-col--contact h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  text-align: left;
  margin-bottom: 14px;
  width: 100%;
}

.footer-col--contact .footer-contact-item {
  justify-content: flex-start;
}

.footer-col--contact .footer-social {
  margin-top: 18px;
}

.footer-link-list--chevron {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list--chevron li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link-list--chevron li::before {
  content: '›';
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.95;
  flex-shrink: 0;
  font-weight: 600;
}

/* Legacy footer grid (pages without .footer-columns) */
.footer-top:not(:has(.footer-columns)) {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) repeat(2, minmax(120px, auto)) minmax(140px, auto);
  align-items: start;
  gap: 24px 32px;
  padding-bottom: 20px;
}

.footer a {
  color: rgba(255,255,255,0.9);
}

.footer a:hover {
  color: var(--color-accent);
}

.footer-brand a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.footer-brand {
  min-width: 0;
}

.footer-brand .logo {
  color: white;
  font-size: 1.25rem;
}

.footer-brand .logo:has(.logo-img) {
  font-size: 0;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.footer-brand .logo-img {
  height: 42px;
  width: auto;
  max-width: min(220px, 85vw);
  object-fit: contain;
  transform: scale(2.05);
  transform-origin: left center;
}

@media (max-width: 600px) {
  .footer-brand .logo-img {
    height: 38px;
    transform: scale(1.65);
    max-width: min(180px, 85vw);
  }
}

.footer-brand .logo-accent {
  color: var(--color-accent-light);
}

.footer-brand p {
  margin-top: 8px;
  opacity: 0.9;
  font-size: 0.875rem;
  line-height: 1.4;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: white;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
  transform: translateY(-2px);
}

.footer-links-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
  min-width: 0;
}

.footer-links-col h4,
.footer-contact h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col li {
  margin-bottom: 6px;
}

.footer-links-col .footer-link-list--chevron li {
  margin-bottom: 10px;
}

.footer-links-col a {
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.footer-contact {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-contact h4 {
  margin-bottom: 14px;
  width: 100%;
  text-align: right;
}

.footer-contact p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #fff;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.footer-contact-icon {
  flex-shrink: 0;
  color: #fff;
}

.footer-contact-item small {
  opacity: 0.85;
  font-size: 0.8em;
}

.footer-contact-fax {
  cursor: default;
}

.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Backward compat: old footer with single .footer-links */
.footer-top > .footer-links {
  min-width: 0;
}
.footer-top > .footer-links h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; opacity: 0.9; }
.footer-top > .footer-links ul { list-style: none; }
.footer-top > .footer-links li { margin-bottom: 6px; }
.footer-top > .footer-links a { font-size: 1.05rem; }

/* Footer: legacy grid reflows; new 3-column layout stacks on small screens */
@media (max-width: 1024px) {
  .footer-top:not(:has(.footer-columns)) {
    grid-template-columns: 1fr 1fr;
    gap: 24px 24px;
  }
  .footer-top:not(:has(.footer-columns)) .footer-links-wrap {
    grid-column: 1 / -1;
  }

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

@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .footer-top:not(:has(.footer-columns)) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-top:not(:has(.footer-columns)) .footer-links-wrap {
    grid-template-columns: 1fr 1fr;
  }
  .footer-contact {
    align-items: stretch;
  }
  .footer-contact h4,
  .footer-contact-list {
    text-align: left;
    align-items: flex-start;
  }
  .footer-contact-item {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .footer-top:not(:has(.footer-columns)) .footer-links-wrap {
    grid-template-columns: 1fr;
  }
}

/* Message (form success/error) */
.message {
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.message.success {
  background: #c6f6d5;
  color: #22543d;
}

.message.error {
  background: #fed7d7;
  color: #742a2a;
}

/* Responsive - mobile nav */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s;
    padding-top: 80px;
    z-index: 99;
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: 0 24px;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
    background: linear-gradient(135deg, rgba(31, 58, 95, 0.06) 0%, rgba(31, 58, 95, 0.02) 100%);
    box-shadow: 0 2px 12px rgba(31, 58, 95, 0.08);
  }

  .nav-toggle:hover {
    background: linear-gradient(135deg, rgba(31, 58, 95, 0.12) 0%, rgba(31, 58, 95, 0.06) 100%);
    box-shadow: 0 4px 16px rgba(31, 58, 95, 0.12);
  }

  .nav-toggle.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    box-shadow: 0 4px 20px rgba(31, 58, 95, 0.35);
  }

  .nav-toggle.active span {
    background: white !important;
  }

  .nav-toggle.active:hover {
    box-shadow: 0 6px 24px rgba(31, 58, 95, 0.4);
  }

  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 16px;
    margin-top: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .has-dropdown.open .dropdown {
    max-height: 400px;
  }

  .has-dropdown.open .dropdown.dropdown-care {
    max-height: 560px;
  }

  .has-dropdown .dropdown.dropdown-care {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-rows: unset;
    grid-auto-flow: unset;
    gap: 0;
    width: auto;
    min-width: unset;
    max-width: none;
    overflow-x: visible;
  }

  .has-dropdown .dropdown.dropdown-care li {
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid rgba(20, 163, 184, 0.12);
  }

  .has-dropdown .dropdown.dropdown-care li:last-child {
    border-bottom: none;
  }

  .has-dropdown .dropdown.dropdown-care a {
    margin-left: 0;
    margin-right: 0;
    white-space: normal;
  }

  .has-dropdown .dropdown.dropdown-care li:nth-child(1) a,
  .has-dropdown .dropdown.dropdown-care li:nth-child(6) a,
  .has-dropdown .dropdown.dropdown-care li:nth-child(3) a,
  .has-dropdown .dropdown.dropdown-care li:nth-child(8) a,
  .has-dropdown .dropdown.dropdown-care li:nth-child(5) a,
  .has-dropdown .dropdown.dropdown-care li:nth-child(10) a {
    background: transparent;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

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

  .testimonial-prev { left: 0; }
  .testimonial-next { right: 0; }

  .newsletter-form {
    flex-direction: column;
  }

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

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

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

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

  .stat-number {
    font-size: 2rem;
  }

  .carousel-prev, .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }
}

/* WhatsApp Chat Widget */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--font-body);
}

.whatsapp-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.whatsapp-widget.open .whatsapp-chat-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.whatsapp-panel-header {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-panel-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.whatsapp-panel-info {
  flex: 1;
}

.whatsapp-panel-info strong {
  display: block;
  font-size: 1rem;
}

.whatsapp-status {
  font-size: 0.75rem;
  opacity: 0.9;
}

.whatsapp-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  opacity: 0.9;
}

.whatsapp-close:hover {
  opacity: 1;
}

.whatsapp-messages {
  height: 240px;
  overflow-y: auto;
  padding: 16px;
  background: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4ccc4' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.whatsapp-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.whatsapp-msg p {
  margin: 0;
}

.whatsapp-msg-bot {
  background: #fff;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.whatsapp-msg-user {
  background: #dcf8c6;
  margin-left: auto;
  margin-right: 0;
}

.whatsapp-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #f0f0f0;
  border-top: 1px solid #e0e0e0;
}

.whatsapp-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-size: 0.9rem;
  font-family: inherit;
}

.whatsapp-input-area input:focus {
  outline: none;
  border-color: #25d366;
}

.whatsapp-input-area button {
  padding: 10px 18px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.whatsapp-input-area button:hover {
  background: #20bd5a;
}

.whatsapp-cta {
  display: block;
  text-align: center;
  padding: 12px 16px;
  background: #25d366;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}

.whatsapp-cta:hover {
  background: #20bd5a;
  color: #fff !important;
}

@media (max-width: 480px) {
  .whatsapp-widget {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-chat-panel {
    width: calc(100vw - 32px);
    right: -8px;
  }

  .whatsapp-fab {
    width: 54px;
    height: 54px;
  }
}

/* Scroll velocity section - images move with scroll speed */
.scroll-velocity-section {
  overflow: hidden;
  padding: 48px 0;
}

.scroll-gallery-title {
  margin-bottom: 28px;
}

.scroll-velocity-track {
  overflow: hidden;
  white-space: nowrap;
  padding: 24px 0 8px;
  background: linear-gradient(180deg, rgba(31, 58, 95, 0.04) 0%, var(--color-bg-alt) 50%, rgba(31, 58, 95, 0.04) 100%);
}

.scroll-velocity-inner {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  will-change: transform;
}

.scroll-velocity-item {
  flex-shrink: 0;
  width: 200px;
  height: 132px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.scroll-velocity-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scroll-velocity-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 12px;
  background: linear-gradient(transparent, rgba(31, 58, 95, 0.9) 30%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-velocity-item:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 0 0 2px var(--color-primary-bright),
              0 0 16px rgba(44, 74, 110, 0.6),
              0 0 32px rgba(44, 74, 110, 0.4),
              0 12px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--color-primary-bright);
  animation: scroll-velocity-glow 1.5s ease-in-out infinite alternate;
}

.scroll-velocity-item:hover .scroll-velocity-caption {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scroll-velocity-glow {
  from {
    box-shadow: 0 0 0 2px var(--color-primary-bright),
                0 0 16px rgba(44, 74, 110, 0.5),
                0 0 28px rgba(44, 74, 110, 0.3),
                0 12px 40px rgba(0, 0, 0, 0.2);
  }
  to {
    box-shadow: 0 0 0 2px var(--color-primary-bright),
                0 0 24px rgba(44, 74, 110, 0.7),
                0 0 44px rgba(44, 74, 110, 0.45),
                0 12px 40px rgba(0, 0, 0, 0.2);
  }
}

@media (min-width: 768px) {
  .scroll-velocity-item {
    width: 300px;
    height: 200px;
    border-radius: 16px;
  }
}

@media (min-width: 1200px) {
  .scroll-velocity-item {
    width: 380px;
    height: 240px;
    border-radius: 18px;
  }
}

/* Bottom scroll marquee - different section, continuous RTL, separate logic */
.scroll-marquee-section {
  overflow: hidden;
  padding: 48px 0;
}

.scroll-marquee-track {
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0 24px;
  background: linear-gradient(180deg, rgba(242, 140, 40, 0.06) 0%, var(--color-bg-alt) 50%, rgba(242, 140, 40, 0.06) 100%);
}

.scroll-marquee-wrap {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  will-change: transform;
}

.scroll-marquee-item {
  flex-shrink: 0;
  width: 200px;
  height: 132px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.scroll-marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scroll-marquee-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 12px;
  background: linear-gradient(transparent, rgba(31, 58, 95, 0.9) 30%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-marquee-item:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 0 0 2px var(--color-accent),
              0 0 16px rgba(242, 140, 40, 0.5),
              0 0 32px rgba(242, 140, 40, 0.35),
              0 12px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--color-accent);
  animation: scroll-marquee-glow 1.5s ease-in-out infinite alternate;
}

.scroll-marquee-item:hover .scroll-marquee-caption {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scroll-marquee-glow {
  from {
    box-shadow: 0 0 0 2px var(--color-accent),
                0 0 16px rgba(242, 140, 40, 0.4),
                0 0 28px rgba(242, 140, 40, 0.25),
                0 12px 40px rgba(0, 0, 0, 0.2);
  }
  to {
    box-shadow: 0 0 0 2px var(--color-accent),
                0 0 24px rgba(242, 140, 40, 0.6),
                0 0 44px rgba(242, 140, 40, 0.4),
                0 12px 40px rgba(0, 0, 0, 0.2);
  }
}

@media (min-width: 768px) {
  .scroll-marquee-item {
    width: 300px;
    height: 200px;
    border-radius: 16px;
  }
}

@media (min-width: 1200px) {
  .scroll-marquee-item {
    width: 380px;
    height: 240px;
    border-radius: 18px;
  }
}

/* Scrolling text marquee - its own section, distinct style from image scrolls */
.scroll-text-marquee {
  overflow: hidden;
  padding: 24px clamp(24px, 5vw, 48px);
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  background: linear-gradient(90deg, rgba(31, 58, 95, 0.03) 0%, transparent 50%, rgba(31, 58, 95, 0.03) 100%);
}

.scroll-text-wrap {
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.scroll-text-inner {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  padding: 0 16px;
  width: max-content;
  flex-shrink: 0;
  will-change: transform;
  /* Seamless loop: HTML repeats the phrase twice; -50% = one full cycle */
  animation: scroll-text-marquee-move 50s linear infinite;
}

@keyframes scroll-text-marquee-move {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-text-inner {
    animation: none;
    transform: none;
  }
}

.scroll-text-inner span {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.9;
  transition: color 0.2s ease;
}

.scroll-text-inner span.scroll-text-accent {
  color: var(--color-accent);
}

.scroll-text-inner span:nth-child(10n + 1) {
  color: var(--color-accent);
}

/* Homepage: ticker sits above “Expert Home Health…” (inside .intro.section) */
.scroll-text-marquee--above-intro {
  margin-bottom: 28px;
}

.intro.section {
  padding-top: 0;
  padding-bottom: 80px;
}

/* Gallery Section */
.gallery-section {
  padding: 64px 0;
}

.gallery-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 8px;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 16px;
}

.gallery-sub {
  font-size: 1rem;
  color: #888;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gallery-col-left {
  display: flex;
}

.gallery-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-img-wrap {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--color-bg-alt);
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.gallery-img-caption {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  padding: 20px;
  line-height: 1.4;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}

.gallery-img-wrap:hover .gallery-img-overlay {
  opacity: 1;
}

.gallery-img-wrap:hover .gallery-img-caption {
  transform: translateY(0);
}

.gallery-img-tall {
  flex: 1;
  min-height: 480px;
}

.gallery-img-tall img {
  min-height: 480px;
}

.gallery-img-wide {
  flex: 0 0 auto;
  height: 240px;
}

.gallery-img-wide img {
  height: 240px;
}

.gallery-row-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex: 1;
}

.gallery-img-small {
  height: 200px;
}

.gallery-img-small img {
  height: 200px;
}

.gallery-play-btn {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1F3A5F;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(242, 140, 40, 0.5);
}

.gallery-play-btn:hover {
  background: var(--color-accent);
}

/* Video modal - gallery play button */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  color: #2d3748;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s, color 0.2s;
}

.video-modal-close:hover {
  background: var(--color-accent);
  color: #fff;
}

.video-modal-content video {
  width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 8px;
  background: #000;
}

.gallery-quote-box {
  background: #1F3A5F;
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-quote-box::before {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.gallery-quote {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.gallery-quote-name {
  color: rgba(255,255,255,0.95);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.gallery-quote-icon {
  position: absolute;
  bottom: 12px;
  right: 20px;
  font-size: 4rem;
  color: rgba(255,255,255,0.25);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}

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

  .gallery-img-tall {
    min-height: 360px;
  }

  .gallery-img-tall img {
    min-height: 360px;
  }
}

@media (max-width: 576px) {
  .gallery-row-bottom {
    grid-template-columns: 1fr;
  }

  .gallery-img-wide,
  .gallery-img-small {
    height: 200px;
  }

  .gallery-img-wide img,
  .gallery-img-small img {
    height: 200px;
  }
}

/* Happiness / Testimonial Banner */
.happiness-banner {
  padding-top: 48px;
  padding-bottom: 48px;
}

.happiness-banner-inner {
  display: flex;
  align-items: stretch;
  background: #f5f8fc;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
  position: relative;
}

.happiness-banner-content {
  flex: 1;
  padding: 56px 48px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.happiness-banner-heading {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 400;
  color: #1F3A5F;
  line-height: 1.35;
  margin-bottom: 32px;
}

.happiness-banner-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.happiness-banner-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.happiness-banner-attribution {
  display: flex;
  flex-direction: column;
}

.happiness-banner-signature {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: #F28C28;
  line-height: 1.2;
}

.happiness-banner-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}

.happiness-banner-image-wrap {
  flex: 0 0 45%;
  max-width: 520px;
  position: relative;
  align-self: flex-start;
  margin-top: -40px;
}

.happiness-banner-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.happiness-banner-image-wrap:hover img {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .happiness-banner-inner {
    flex-direction: column;
    border-radius: 24px;
  }

  .happiness-banner-content {
    padding: 40px 28px;
  }

  .happiness-banner-heading {
    font-size: 1.6rem;
  }

  .happiness-banner-image-wrap {
    flex: 0 0 auto;
    max-width: 100%;
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  .happiness-banner-content {
    padding: 32px 20px;
  }

  .happiness-banner-heading {
    font-size: 1.35rem;
    margin-bottom: 24px;
  }
}

/* Bootstrap integration - preserve custom design, allow Bootstrap utilities */
/* Override Bootstrap .container to match site layout */
.header .container,
.section .container,
.page-hero .container,
.hero-carousel .container,
.footer .container,
.contact-layout .container,
.gallery-section .container {
  max-width: 1200px !important;
}

/* Toggle card - color file tabs switcher */
.toggle-card-section {
  padding-top: 0;
}
.toggle-card-wrap {
  display: flex;
  align-items: stretch;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.toggle-card-main {
  flex: 1;
  min-width: 0;
  background: #e8eef4;
  border: 5px solid var(--color-primary);
  border-radius: 24px;
  overflow: hidden;
  padding: 28px;
}
.toggle-card-inner {
  height: 100%;
}
.toggle-card-content {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.toggle-card-image {
  flex-shrink: 0;
  width: 240px;
  border: 2px solid #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.toggle-card-image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.toggle-card-body {
  flex: 1;
  min-width: 0;
}
.toggle-card-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.toggle-card-body p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 12px;
}
.toggle-card-footer {
  font-size: 1.1rem !important;
  font-weight: 500;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  color: var(--color-primary);
}
/* Vertical color sidebar - outside the bordered card */
.toggle-card-sidebar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
}
.toggle-click-sign {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.3;
  padding: 6px 10px;
  background: rgba(31, 58, 95, 0.08);
  border-radius: 8px;
  border: 1px dashed rgba(31, 58, 95, 0.4);
}
.toggle-swatch-btn {
  width: 36px;
  height: 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, opacity 0.2s;
}
.toggle-swatch-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}
.toggle-swatch-btn.active {
  box-shadow: 0 0 0 3px rgba(15, 36, 53, 0.4);
  transform: scale(1.05);
}
.toggle-on-off {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(31, 58, 95, 0.3);
}
.toggle-on-off-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}
.toggle-on-off-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
}
@media (max-width: 900px) {
  .toggle-card-wrap {
    flex-direction: column;
    align-items: center;
  }
  .toggle-card-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    order: -1;
    padding: 16px 20px;
  }
  .toggle-click-sign {
    width: 100%;
    margin-bottom: 8px;
  }
  .toggle-on-off {
    margin-top: 0;
    margin-left: 8px;
    padding-top: 0;
    padding-left: 10px;
    border-top: none;
    border-left: 1px solid rgba(31, 58, 95, 0.3);
  }
}
@media (max-width: 640px) {
  .toggle-card-content {
    flex-direction: column;
  }
  .toggle-card-image {
    width: 100%;
    max-width: 280px;
  }
  .toggle-card-image img {
    height: 180px;
  }
}
