/*
Theme Name: Eclat Healthcare Staffing
Theme URI: https://eclathealthcarestaffing.com/
Author: Antigravity AI
Author URI: https://eclathealthcarestaffing.com/
Description: Modern, responsive, and high-performance custom WordPress theme for Eclat Healthcare Staffing (EHS). Features smooth mascot animations, interactive testimonial carousel, staffing portal modals, and responsive layout across all devices.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eclat-healthcare
Tags: healthcare, medical, staffing, responsive-layout, custom-menu, custom-logo, translation-ready
*/

/* ==========================================================================
   ECLAT HEALTHCARE STAFFING (EHS) - MASTER STYLESHEET
   Vanilla CSS3 - Responsive, Accessible, High Performance
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --color-primary-navy: #0e244d;
  --color-navy-dark: #091733;
  --color-navy-card: #0f2b5c;
  --color-primary-red: #e52329;
  --color-red-hover: #c91b21;
  --color-red-light: #fff0f1;
  --color-red-soft: #fde8e9;
  --color-blush-bg: #fdf5f2;
  --color-blush-border: #f7ded7;
  --color-text-main: #0c1b33;
  --color-text-muted: #53637e;
  --color-text-light: #8393a8;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-white: #ffffff;
  --color-cyan-accent: #2dd4bf;

  /* Typography */
  --font-family-base: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(14, 36, 77, 0.05);
  --shadow-md: 0 6px 20px rgba(14, 36, 77, 0.08);
  --shadow-lg: 0 14px 38px rgba(14, 36, 77, 0.12);
  --shadow-red: 0 6px 20px rgba(229, 35, 41, 0.28);
  --shadow-float: 0 18px 45px rgba(14, 36, 77, 0.16);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family-base);
  background-color: #ffffff;
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Soft background ambient gradient shapes */
body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(253, 241, 238, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
  position: relative;
}

/* Section Header Typography */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-primary-red);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.section-headline {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.22;
  color: var(--color-primary-navy);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-headline-center {
  text-align: center;
}

.section-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 620px;
}

.section-description-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.highlight-red {
  color: var(--color-primary-red);
  position: relative;
  display: inline-block;
}

.text-center {
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-arrow {
  width: 17px;
  height: 17px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-red {
  background-color: var(--color-primary-red);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
}

.btn-red:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 35, 41, 0.38);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary-navy);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--color-primary-navy);
  border: 1.5px solid var(--color-border);
}

.btn-outline-navy:hover {
  border-color: var(--color-primary-navy);
  background-color: #f8fafc;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* --- Common Red Badge Icon --- */
.red-badge {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background-color: var(--color-primary-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.red-badge svg {
  width: 20px;
  height: 20px;
}

/* Glassmorphism */
.glassmorphism {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(14, 36, 77, 0.08);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 82px;
  width: auto;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05) translateY(-2px);
  filter: drop-shadow(0 4px 12px rgba(229, 35, 41, 0.25));
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.2vw, 1.15rem);
}

.nav-item {
  position: relative;
  white-space: nowrap;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.2rem;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--color-primary-red);
}

.chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.has-dropdown:hover .chevron-icon,
.has-dropdown:focus-within .chevron-icon {
  transform: rotate(180deg);
}

/* Mega Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background-color: var(--color-white);
  min-width: 270px;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-subtle);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
  z-index: 100;
}

.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--color-red-light);
}

.dropdown-icon-box {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  background-color: var(--color-blush-bg);
  color: var(--color-primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-icon-box svg {
  width: 18px;
  height: 18px;
}

.dropdown-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary-navy);
}

.dropdown-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.2vw, 1.15rem);
  flex-shrink: 0;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-primary-red);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--color-red-hover);
}

.phone-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon {
  width: 15px;
  height: 15px;
}

.btn-header-cta {
  font-size: 0.825rem;
  padding: 0.55rem 1.15rem;
  white-space: nowrap;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  background-color: var(--color-blush-bg);
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary-navy);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary-navy);
  padding: 0.4rem 0;
  display: block;
}

.mobile-nav-link:hover {
  color: var(--color-primary-red);
}

.mobile-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.phone-link-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-primary-red);
  font-size: 1.05rem;
}

.mobile-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.hero-card {
  position: relative;
  background: linear-gradient(135deg, #0d2348 0%, #102a58 50%, #15356e 100%);
  border-radius: var(--radius-xl);
  padding: 3.75rem 3.5rem 3.25rem;
  display: grid;
  grid-template-columns: 1.18fr 0.92fr;
  align-items: center;
  gap: 2.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(13, 35, 72, 0.25);
}

/* Ambient hero background blobs */
.hero-card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(229, 35, 41, 0.18) 0%, rgba(229, 35, 41, 0) 70%);
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, rgba(45, 212, 191, 0) 70%);
  pointer-events: none;
}

/* Plus Pattern Watermark */
.hero-plus-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-plus-pattern .plus {
  position: absolute;
  color: rgba(255, 255, 255, 0.08);
  font-size: 3rem;
  font-weight: 300;
  user-select: none;
}

.plus-1 { top: 12%; left: 8%; }
.plus-2 { top: 60%; left: 35%; font-size: 2.2rem; }
.plus-3 { top: 20%; right: 10%; font-size: 4rem; color: rgba(255, 255, 255, 0.06); }
.plus-4 { bottom: 15%; right: 40%; font-size: 2.5rem; }

/* Hero Left Content */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  margin-bottom: 1.25rem;
}

.hero-eyebrow .eyebrow-text {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  backdrop-filter: blur(8px);
}

.hero-headline {
  font-size: clamp(2.35rem, 4vw, 3.75rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.4rem;
  letter-spacing: -0.025em;
}

.hero-subtext {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 0.85rem 1.85rem;
}

/* Hero Right Visual */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image-frame {
  width: 100%;
  max-width: 440px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
}

.hero-image {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.hero-image-frame:hover .hero-image {
  transform: scale(1.03);
}

/* Flight Trail & Floating Mascot */
/* Flight Trail & Floating Mascot */
.hero-mascot-flight-area {
  position: absolute;
  top: -38px;
  left: 20px;
  z-index: 15;
  pointer-events: none;
  display: flex;
  align-items: center;
  animation: heroSettleEntrance 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-flight-loop-svg {
  width: 100px;
  height: 65px;
  position: absolute;
  top: 15px;
  left: -40px;
  filter: drop-shadow(0 2px 4px rgba(229, 35, 41, 0.3));
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawTrail 1.4s ease-out forwards 0.2s;
}

@keyframes drawTrail {
  to {
    stroke-dashoffset: 0;
  }
}

.hero-mascot-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  animation: heroHoverGentle 4s ease-in-out infinite 1.3s;
}

.hero-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center right;
  animation: heroWingFlap 0.8s ease-in-out infinite alternate;
}

/* 1. Hero Mascot: Settle entrance & gentle hover with wing flap */
@keyframes heroSettleEntrance {
  0% {
    opacity: 0;
    transform: translate(35px, -22px) rotate(-10deg) scale(0.85);
  }
  60% {
    opacity: 1;
    transform: translate(-3px, 4px) rotate(3deg) scale(1.03);
  }
  82% {
    transform: translate(1px, -2px) rotate(-1deg) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes heroHoverGentle {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes heroWingFlap {
  0% {
    transform: scale(1) skewY(0deg);
  }
  30% {
    transform: scale(0.97, 1.03) skewY(1.5deg);
  }
  70% {
    transform: scale(1.02, 0.98) skewY(-1deg);
  }
  100% {
    transform: scale(0.99, 1.01) skewY(0.5deg);
  }
}

/* Floating Mini Cards in Hero */
.hero-mini-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #ffffff;
  padding: 0.45rem 0.85rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(9, 23, 51, 0.2);
  z-index: 10;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: normal;
  max-width: 160px;
  cursor: default;
}

.hero-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(9, 23, 51, 0.28);
}

.mini-card-icon-wrap {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background-color: var(--color-red-light);
  color: var(--color-primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-card-icon-wrap svg {
  width: 16px;
  height: 16px;
}

.mini-card-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mini-card-line {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  letter-spacing: -0.01em;
}

.card-top {
  top: 22%;
  left: -20px;
}

.card-middle {
  top: 48%;
  left: -32px;
}

.card-bottom {
  top: 74%;
  left: -15px;
}

/* ==========================================================================
   VALUE PROPOSITION STRIP
   ========================================================================== */
.value-strip-section {
  padding: 2.25rem 0 3.5rem;
}

.value-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.value-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0.75rem 0.5rem;
  transition: transform var(--transition-fast);
}

.value-item:hover {
  transform: translateY(-2px);
}

.value-icon-circle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background-color: var(--color-red-light);
  color: var(--color-primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(229, 35, 41, 0.12);
}

.value-icon-circle svg {
  width: 22px;
  height: 22px;
}

.value-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-navy);
}

/* ==========================================================================
   SECTION SPLIT GRID (PROFESSIONALS & FACILITIES)
   ========================================================================== */
.section-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4.5rem;
}

/* Feature Bullets List */
.feature-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}

.feature-bullet-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bullet-icon-box {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background-color: var(--color-primary-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(229, 35, 41, 0.22);
}

.bullet-icon-box svg {
  width: 18px;
  height: 18px;
}

.bullet-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary-navy);
}

/* 2. Mascot Flight Badge (Between Sections — Subtle Flight) */
.mascot-flight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateX(-40px) translateY(12px) rotate(-8deg);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.mascot-flight-badge.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0) rotate(0deg);
}

.small-flight-mascot {
  width: 55px;
  height: 55px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.mascot-flight-badge.in-view .small-flight-mascot {
  animation: gentleMascotFloat 3.8s ease-in-out infinite 1.1s;
}

.flight-trail-svg {
  width: 70px;
  height: 30px;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 1.2s ease-out 0.2s;
}

.mascot-flight-badge.in-view .flight-trail-svg {
  stroke-dashoffset: 0;
}

@keyframes gentleMascotFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* ==========================================================================
   SECTION 1: PROFESSIONALS & INTERACTIVE PHONE MOCKUP
   ========================================================================== */
.professionals-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-container {
  width: 100%;
  max-width: 380px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-blush-bg);
}

.clinician-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* Interactive Phone Mockup Card */
.phone-mockup-card {
  position: absolute;
  right: -30px;
  bottom: -20px;
  width: 290px;
  background: #ffffff;
  border-radius: 28px;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  z-index: 10;
  animation: floatMascot 6s ease-in-out infinite alternate;
}

.phone-notch {
  width: 80px;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 10px;
  margin: 8px auto 4px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.phone-signals {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}

.signal-bar {
  width: 3px;
  background-color: var(--color-text-muted);
  border-radius: 1px;
}
.signal-bar:nth-child(1) { height: 4px; }
.signal-bar:nth-child(2) { height: 7px; }
.signal-bar:nth-child(3) { height: 10px; }

.phone-app-bar {
  padding: 0.4rem 1rem 0.2rem;
}

.phone-app-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary-navy);
}

.phone-search-box {
  margin: 0.4rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
}

.phone-search-icon {
  width: 14px;
  height: 14px;
  color: var(--color-text-light);
}

.phone-search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.75rem;
  color: var(--color-text-main);
  outline: none;
}

.phone-jobs-list {
  padding: 0.4rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
}

.phone-job-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.phone-job-item:hover {
  background-color: var(--color-red-light);
  border-color: #fecdd3;
  transform: translateX(3px);
}

.phone-job-item .job-item-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
}

.phone-job-item .job-item-icon svg {
  width: 14px;
  height: 14px;
}

.job-item-details {
  display: flex;
  flex-direction: column;
}

.job-item-details .job-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-navy);
}

.job-item-details .job-meta {
  font-size: 0.65rem;
  color: var(--color-text-muted);
}

.job-type-pill {
  color: var(--color-primary-red);
  font-weight: 700;
}

.job-type-pill.part-time {
  color: #0284c7;
}

.phone-footer-hint {
  text-align: center;
  font-size: 0.65rem;
  color: var(--color-primary-red);
  font-weight: 700;
  padding: 0.5rem;
  background-color: var(--color-red-light);
}

/* ==========================================================================
   SECTION 2: FACILITIES
   ========================================================================== */
.facilities-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.curved-photo-blob {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-blush-bg);
}

/* Organic blush blob in background */
.curved-photo-blob::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #fde8e4 0%, rgba(253, 232, 228, 0) 70%);
  z-index: -1;
}

.facilities-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.curved-photo-blob:hover .facilities-photo {
  transform: scale(1.03);
}

.badge-facility-stat {
  position: absolute;
  bottom: 25px;
  left: -25px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  z-index: 10;
}

.stat-highlight {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary-navy);
}

.stat-sublabel {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SECTION 3: BUILT FOR BETTER CARE (SPECIALTIES)
   ========================================================================== */
.section-care-settings {
  background-color: #ffffff;
}

.care-header-block {
  margin-bottom: 3.5rem;
}

.care-mascot-trail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateX(-30px) translateY(-8px) rotate(-6deg);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.care-mascot-trail.in-view {
  opacity: 1;
  transform: translateX(0) translateY(0) rotate(0deg);
}

.care-curve-path {
  width: 90px;
  height: 30px;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  transition: stroke-dashoffset 1.2s ease-out 0.2s;
}

.care-mascot-trail.in-view .care-curve-path {
  stroke-dashoffset: 0;
}

.care-mascot-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.care-mascot-trail.in-view .care-mascot-img {
  animation: gentleMascotFloat 4.2s ease-in-out infinite 1.1s;
}

.care-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.care-card {
  position: relative;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.care-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.care-card:hover .care-card-bg {
  transform: scale(1.08);
}

.care-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 36, 77, 0.2) 0%, rgba(14, 36, 77, 0.7) 50%, rgba(9, 23, 51, 0.95) 100%);
  transition: background var(--transition-normal);
}

.care-card:hover .care-card-gradient {
  background: linear-gradient(180deg, rgba(14, 36, 77, 0.1) 0%, rgba(14, 36, 77, 0.6) 40%, rgba(9, 23, 51, 0.98) 100%);
}

.care-card-content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  color: var(--color-white);
}

.care-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary-red);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(229, 35, 41, 0.4);
}

.care-icon-circle svg {
  width: 22px;
  height: 22px;
}

.care-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.care-card-desc {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.care-card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fca5a5;
  transition: color var(--transition-fast);
}

.care-card:hover .care-card-link {
  color: #ffffff;
}

/* ==========================================================================
   SECTION 4: NATIONWIDE SUPPORT (MAP & NETWORK)
   ========================================================================== */
.section-nationwide {
  background: radial-gradient(circle at right center, #fff6f4 0%, #ffffff 70%);
}

.nationwide-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.nationwide-bullet-card {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 1rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.nationwide-bullet-card:hover {
  transform: translateX(4px);
  border-color: #fed7d7;
}

.bullet-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-bottom: 0.25rem;
}

.bullet-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}



/* US Map Wrapper */
.nationwide-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.us-map-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 15px 35px rgba(14, 36, 77, 0.14));
}

/* Interactive Map Hotspot Pins */
.map-pin {
  position: absolute;
  cursor: pointer;
  z-index: 10;
}

.pin-dot {
  display: block;
  width: 12px;
  height: 12px;
  background-color: #ff334b;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff334b;
}

.pin-pulse {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(255, 51, 75, 0.4);
  animation: pulsePin 2s infinite ease-out;
}

@keyframes pulsePin {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Specific pin positions on map */
.pin-ca { top: 44%; left: 14%; }
.pin-tx { top: 68%; left: 47%; }
.pin-fl { top: 76%; left: 81%; }
.pin-ny { top: 32%; left: 84%; }
.pin-il { top: 40%; left: 63%; }

/* Map Pin Tooltips */
.map-pin::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: var(--color-navy-dark);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.map-pin:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Floating Avatars around Map */
.floating-avatar-badge {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-lg);
  overflow: visible;
  z-index: 15;
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.floating-avatar-badge:hover {
  transform: scale(1.12);
}

.floating-avatar-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.avatar-badge-top {
  top: 15%;
  right: 8%;
}

.avatar-badge-mid {
  top: 55%;
  right: -10px;
}

.avatar-badge-bottom {
  bottom: 12%;
  left: 10%;
}

/* Map Mascot (Nationwide Section Soaring Hover & Wing Flap) */
.floating-map-mascot {
  position: absolute;
  bottom: -15px;
  left: 36%;
  width: 72px;
  height: 72px;
  z-index: 20;
  filter: drop-shadow(0 8px 16px rgba(14, 36, 77, 0.25));
  opacity: 0;
  transform: translate(-25px, 20px) rotate(-8deg) scale(0.9);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.floating-map-mascot.in-view {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
  animation: mapMascotSoar 4.2s ease-in-out infinite 1.1s;
}

.floating-map-mascot:hover {
  transform: translateY(-10px) scale(1.12) rotate(5deg) !important;
  filter: drop-shadow(0 12px 22px rgba(229, 35, 41, 0.35));
}

.mascot-map-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center right;
  animation: mapWingFlutter 0.82s ease-in-out infinite alternate;
}

@keyframes mapMascotSoar {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  30% {
    transform: translateY(-7px) rotate(-3deg);
  }
  65% {
    transform: translateY(-3px) rotate(2.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes mapWingFlutter {
  0% {
    transform: scale(1) skewY(0deg);
  }
  50% {
    transform: scale(0.97, 1.02) skewY(1.2deg);
  }
  100% {
    transform: scale(1.01, 0.98) skewY(-1.2deg);
  }
}

/* ==========================================================================
   SECTION 5: HOW IT WORKS
   ========================================================================== */
.section-how-it-works {
  background-color: #ffffff;
}

.how-it-works-card {
  background-color: var(--color-blush-bg);
  border: 1px solid var(--color-blush-border);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-sm);
}

.how-header {
  margin-bottom: 3.5rem;
}

.how-tracks-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2.5rem;
}

.track-divider {
  width: 1px;
  height: 80%;
  background-color: #ecd5cf;
}

.how-track-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.track-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.track-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: transparent !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-red);
}

.track-badge svg {
  width: 28px;
  height: 28px;
  display: block;
}

.track-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-navy);
}

.steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
}

.step-item {
  position: relative;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 1.35rem 0.65rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-width: 0;
  min-height: 130px;
  border: 1px solid rgba(254, 215, 215, 0.6);
  box-shadow: 0 4px 14px rgba(14, 36, 77, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(229, 27, 36, 0.12);
}

.step-num-circle {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-primary-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.step-icon {
  width: 42px;
  height: 42px;
  margin: 0.4rem auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-red);
  background: transparent;
  border: none;
  box-shadow: none;
}

.step-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  line-height: 1.25;
  text-align: center;
  display: block;
}

.step-connector {
  color: var(--color-primary-red);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex-shrink: 0;
  user-select: none;
}

/* ==========================================================================
   SECTION 6: TESTIMONIALS
   ========================================================================== */
.section-testimonials {
  background-color: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
}

/* Testimonial Carousel Card */
.testimonial-carousel-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  position: relative;
  min-height: 160px;
}

.testimonial-slide {
  display: none;
  align-items: center;
  gap: 2rem;
  animation: fadeIn 0.4s ease forwards;
}

.testimonial-slide.active {
  display: flex;
}

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

.testimonial-avatar-wrap {
  width: 110px;
  height: 110px;
  min-width: 110px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #ffffff;
}

.testimonial-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-body {
  position: relative;
}

.quote-symbol {
  font-size: 3rem;
  color: var(--color-primary-red);
  line-height: 1;
  font-family: Georgia, serif;
  margin-bottom: -15px;
}

.testimonial-quote {
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial-author-meta {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 1rem;
  color: var(--color-primary-navy);
}

.author-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Carousel Nav Footer */
.carousel-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
  margin-top: 1.5rem;
}

.carousel-dots {
  display: flex;
  gap: 0.45rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #cbd5e1;
  transition: all var(--transition-fast);
}

.dot.active {
  width: 24px;
  border-radius: 10px;
  background-color: var(--color-primary-red);
}

.carousel-arrows {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-navy);
  transition: all var(--transition-fast);
}

.carousel-btn:hover {
  background-color: var(--color-primary-red);
  border-color: var(--color-primary-red);
  color: #ffffff;
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
}

/* Community Banner Card */
.community-banner-card {
  background-color: var(--color-blush-bg);
  border: 1px solid var(--color-blush-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
}

.community-icon-box {
  width: 48px;
  height: 48px;
}

.community-icon-box svg {
  width: 24px;
  height: 24px;
}

.community-headline {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 7: CTA BANNER (LET'S WORK TOGETHER)
   ========================================================================== */
.section-cta-banner {
  padding-bottom: 4rem;
}

.cta-banner-card {
  position: relative;
  background: linear-gradient(135deg, #0b1d3d 0%, #0e2752 60%, #13336c 100%);
  border-radius: var(--radius-xl);
  padding: 3.5rem 4rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
  color: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Plus watermark on CTA */
.cta-banner-card::before {
  content: "+";
  position: absolute;
  right: 5%;
  bottom: -20px;
  font-size: 9rem;
  color: rgba(255, 255, 255, 0.04);
  font-weight: 300;
  pointer-events: none;
}

/* 3. Call-to-action Mascot (Friendly Greeting Bob & Tilt) */
.cta-mascot-wrap {
  width: 95px;
  height: 95px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  flex-shrink: 0;
  transform-origin: bottom center;
  animation: ctaMascotGreeting 5s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.cta-mascot-wrap:hover {
  transform: translateY(-10px) rotate(6deg) scale(1.08);
}

.cta-mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes ctaMascotGreeting {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  12% {
    transform: translateY(-8px) rotate(-4deg); /* gentle bob up & friendly head tilt */
  }
  24% {
    transform: translateY(-2px) rotate(3deg);  /* slight reciprocal tilt */
  }
  36% {
    transform: translateY(-6px) rotate(-2deg); /* soft secondary bob */
  }
  50% {
    transform: translateY(0px) rotate(0deg);  /* returns peacefully to rest */
  }
  100% {
    transform: translateY(0px) rotate(0deg);  /* calm resting interval */
  }
}

.cta-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.cta-headline {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cta-subtext {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 540px;
  line-height: 1.55;
}

.cta-btn-wrap {
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.footer-logo-img {
  height: 84px;
  width: auto;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.footer-brand:hover .footer-logo-img {
  transform: scale(1.05) translateY(-2px);
  filter: drop-shadow(0 4px 10px rgba(229, 35, 41, 0.25));
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-navy);
}

.footer-nav a:hover {
  color: var(--color-primary-red);
}

.footer-sep {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-blush-bg);
  color: var(--color-primary-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background-color: var(--color-primary-red);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-bottom-row {
  padding-top: 1.5rem;
  text-align: center;
}

.copyright-text {
  font-size: 0.825rem;
  color: var(--color-text-muted);
}

.copyright-text a {
  color: var(--color-primary-navy);
  font-weight: 600;
}

.copyright-text a:hover {
  color: var(--color-primary-red);
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-primary-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-red);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-red-hover);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   MODALS & DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 23, 51, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  background-color: #ffffff;
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.94) translateY(15px);
  transition: all var(--transition-bounce);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-navy);
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.modal-close {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-primary-red);
}

.modal-form {
  padding: 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-primary-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--color-text-main);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary-red);
  box-shadow: 0 0 0 3px rgba(229, 35, 41, 0.12);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--color-border-subtle);
  background-color: #fafbfc;
}

.modal-body-content {
  padding: 1.75rem;
  overflow-y: auto;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.modal-body-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.modal-body-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.modal-body-content li {
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background-color: var(--color-navy-dark);
  color: #ffffff;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  animation: slideInToast 0.35s ease forwards;
  border-left: 4px solid var(--color-primary-red);
}

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

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1080px) */
@media (max-width: 1080px) {
  .hero-card {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 3.5rem 2.5rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtext {
    max-width: 600px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 1rem;
  }

  .hero-visual {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .hero-mascot-flight-area {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 0.5rem;
    justify-content: center;
  }

  .hero-flight-loop-svg {
    display: none;
  }

  .hero-mini-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0.35rem;
    display: inline-flex;
  }

  .value-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

  .how-tracks-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .track-divider {
    width: 100%;
    height: 1px;
  }

  .cta-banner-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 3rem 2rem;
  }

  .cta-mascot-wrap {
    margin: 0 auto;
  }

  .cta-subtext {
    margin: 0 auto;
  }
}

/* Tablets & Mobile Navigation Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .brand-logo-img {
    height: 72px;
  }

  .footer-logo-img {
    height: 74px;
  }

  .section-split-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }

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

  .phone-mockup-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -60px;
    margin-left: auto;
    margin-right: auto;
  }

  .badge-facility-stat {
    left: 10px;
    bottom: 10px;
  }
}

/* Mobile Screens (<= 640px) */
@media (max-width: 640px) {
  .header-actions .phone-link {
    display: none;
  }

  .brand-logo-img {
    height: 62px;
  }

  .footer-logo-img {
    height: 64px;
  }

  .hero-card {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .hero-headline {
    font-size: 2rem;
  }

  .value-strip-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .value-item {
    justify-content: flex-start;
  }

  .care-cards-grid {
    grid-template-columns: 1fr;
  }

  .care-card {
    height: 300px;
  }

  .steps-row {
    flex-direction: column;
    gap: 0.85rem;
  }

  .step-item {
    width: 100%;
    min-height: 115px;
    padding: 1.25rem 1rem;
  }

  .step-connector {
    transform: rotate(90deg);
    margin: 0.25rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .testimonial-slide {
    flex-direction: column;
    text-align: center;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .footer-sep {
    display: none;
  }
}

/* Accessibility: Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-mascot-flight-area,
  .hero-mascot-wrap,
  .hero-mascot-img,
  .mascot-flight-badge,
  .small-flight-mascot,
  .care-mascot-trail,
  .care-mascot-img,
  .cta-mascot-wrap,
  .hero-flight-loop-svg,
  .flight-trail-svg,
  .care-curve-path,
  .floating-map-mascot,
  .mascot-map-icon,
  .brand-logo-img,
  .footer-logo-img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}

