/* ==========================================================================
   SHRAVANA SPEECH AND HEARING CENTRE - DESIGN SYSTEM & STYLES
   Colors: Primary Green (#008744 / #00A651), Accent Gold (#ECA100 / #F59E0B)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #008744;
  --primary-hover: #006e37;
  --primary-light: #f0fdf4;
  --primary-subtle: #f0fdf4;
  
  --secondary: #eca100;
  --secondary-hover: #d97706;
  --secondary-light: #fffbeb;
  
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --text-main: #334155;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border-light: #f1f5f9;
  --border-primary: #d1fae5;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 12px 24px -4px rgba(10, 92, 54, 0.04), 0 4px 12px -2px rgba(10, 92, 54, 0.02);
  --shadow-xl: 0 20px 40px -10px rgba(15, 23, 42, 0.06), 0 10px 20px -5px rgba(15, 23, 42, 0.03);
  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   TOP BAR & NAVIGATION
   ========================================================================== */

.top-bar {
  background-color: var(--dark-surface);
  color: #cbd5e1;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-info svg {
  color: var(--secondary);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-emergency {
  background: rgba(236, 161, 0, 0.2);
  color: #fbbf24;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-svg {
  width: 48px;
  height: 48px;
}

.brand-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  transition: transform var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary-hover);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 2px 0 rgba(10, 92, 54, 0.08);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(10, 92, 54, 0.12);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark);
  box-shadow: 0 1px 2px 0 rgba(204, 160, 26, 0.08);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(204, 160, 26, 0.12);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pill-tag-gold {
  background-color: var(--secondary-light);
  color: #b45309;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

.section-padding {
  padding: 60px 0;
}

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

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

.bg-subtle-green {
  background-color: var(--primary-subtle);
}

.bg-dark {
  background-color: var(--dark);
  color: var(--white);
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 35px auto;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #fef3c7 100%);
  padding: 60px 0 80px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--dark);
}

.hero-content h1 span.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-content h1 span.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(236, 161, 0, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

/* Trust / Stats Bar Section styling - Floating Pill shape */
.stats-bar-section {
  background: linear-gradient(135deg, var(--primary) 0%, #006b35 100%);
  color: var(--white);
  padding: 14px 28px;
  max-width: 880px;
  margin: -32px auto 30px auto;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 135, 68, 0.15);
  position: relative;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  align-items: center;
}

.stats-bar-item {
  position: relative;
  padding: 4px 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stats-bar-item::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.stats-bar-item:last-child::after {
  display: none;
}

.stats-bar-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-bar-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .stats-bar-section {
    border-radius: var(--radius-lg);
    margin: -20px 20px 30px 20px;
    width: calc(100% - 40px);
    padding: 20px;
  }
  .stats-bar-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .stats-bar-item {
    padding: 0;
  }
  .stats-bar-item::after {
    display: none;
  }
}

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255,255,255,0.8);
}

.floating-card-1 {
  bottom: -20px;
  left: -20px;
}

.floating-card-2 {
  top: 30px;
  right: -20px;
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.floating-info h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.floating-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

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

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 30px;
}

.services-grid .card {
  grid-column: span 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services-grid .card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Center the last 2 cards in the second row of a 3-column layout */
.services-grid .card:nth-child(4) {
  grid-column: 2 / span 2;
}

.services-grid .card:nth-child(5) {
  grid-column: 4 / span 2;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .services-grid .card {
    grid-column: auto !important;
  }
}

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

.card-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-header-row .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.card-header-row h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.02), 0 1px 2px -1px rgba(15, 23, 42, 0.01);
  border: 1px solid var(--border-light);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px -10px rgba(0, 135, 68, 0.15), 0 4px 12px -5px rgba(0, 135, 68, 0.05);
  background: linear-gradient(180deg, var(--white) 0%, rgba(240, 253, 244, 0.3) 100%);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-img-wrapper {
  position: relative;
  width: calc(100% + 56px);
  margin: -28px -28px 20px -28px;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-img {
  transform: scale(1.06);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 135, 68, 0.2);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-list {
  margin-bottom: 24px;
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-list li {
  transform: translateX(4px);
}

.card-list li svg {
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .card-list li svg {
  transform: scale(1.15);
  color: var(--secondary-hover);
}

.card .btn-outline {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .btn-outline {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 135, 68, 0.2);
}

/* ==========================================================================
   HEARING TEST SIMULATOR WIDGET
   ========================================================================== */

.test-widget {
  background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ec 100%);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 135, 68, 0.12);
}

.test-widget h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.test-widget p {
  color: var(--text-main);
  margin-bottom: 24px;
}

.audio-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.freq-btn {
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.freq-btn:hover, .freq-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 135, 68, 0.15);
}

.freq-btn:hover .freq-desc, .freq-btn.active .freq-desc {
  color: rgba(255, 255, 255, 0.85);
}

.freq-label {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
}

.freq-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.volume-slider-box {
  background: rgba(0, 135, 68, 0.04);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-dark);
  border: 1px solid rgba(0, 135, 68, 0.08);
}

.volume-slider-box input[type="range"] {
  flex-grow: 1;
  accent-color: var(--secondary);
}

/* ==========================================================================
   HEARING AID CATALOG & FILTERS
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--secondary);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.product-img-box {
  height: 200px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.product-img-box img {
  max-height: 160px;
  object-fit: contain;
}

.product-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px 0;
}

.feature-tag {
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.product-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   PEDIATRIC MILESTONE CHECKER WIDGET
   ========================================================================== */

.milestone-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.milestone-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-light);
}

.milestone-tab-btn {
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.milestone-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.milestone-list {
  display: grid;
  gap: 14px;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-light);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.milestone-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
}

/* ==========================================================================
   BOOKING & CONTACT FORM
   ========================================================================== */

.booking-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-control {
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  background: var(--bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 135, 68, 0.15);
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 550px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background-color: var(--dark);
  color: #94a3b8;
  padding-top: 70px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================================================
   BRAND GRID, PRICING MATRIX, TIMELINE, AND SPEECH THERAPY CLASSES
   ========================================================================== */

/* Brand Carousel Marquee Banner */
.brand-carousel-section {
  background-color: var(--white);
  padding: 35px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 10px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 50px;
  animation: scroll-marquee 24s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
}

.partner-logo {
  max-width: 180px;
  max-height: 65px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.marquee-item:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 20px));
  }
}

/* Pricing & Tech Matrix */
.tech-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.tech-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}
.tech-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.tech-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}
.tech-popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}
.tech-header {
  padding: 24px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}
.tech-card.popular .tech-header {
  background: var(--primary-light);
}
.tech-name {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.tech-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 10px;
}
.tech-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.tech-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.tech-features-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.tech-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
}
.tech-features-list li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}
.tech-btn-box {
  margin-top: auto;
}

/* Home Care Timeline Journey */
.timeline-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  position: relative;
  margin-top: 50px;
}
.timeline-step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px 24px;
  border: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.timeline-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.timeline-badge {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: -48px auto 16px auto;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.timeline-step h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.timeline-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Speech Therapy Styles */
.speech-intro-box {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 40px;
}
.speech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.speech-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.speech-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}
.speech-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.speech-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--secondary-light);
  color: var(--secondary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.speech-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}
.speech-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.speech-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.speech-list li::before {
  content: '•';
  color: var(--secondary-hover);
  font-weight: bold;
}

/* ==========================================================================
   SCROLL REVEAL & PAGE LOAD ANIMATIONS
   ========================================================================== */

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Utilities - Slower, Staggered Steps */
.delay-100 { transition-delay: 150ms; }
.delay-200 { transition-delay: 300ms; }
.delay-300 { transition-delay: 450ms; }
.delay-400 { transition-delay: 600ms; }
.delay-500 { transition-delay: 750ms; }

/* Hero Animation on Load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fade-in {
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero-fade-in.delay-100 { animation-delay: 150ms; }
.hero-fade-in.delay-200 { animation-delay: 300ms; }
.hero-fade-in.delay-300 { animation-delay: 450ms; }
.hero-fade-in.delay-400 { animation-delay: 600ms; }
.hero-fade-in.delay-500 { animation-delay: 750ms; }
.hero-fade-in.delay-600 { animation-delay: 900ms; }

/* ==========================================================================
   FAQ SECTION ACCORDION
   ========================================================================== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  user-select: none;
  transition: background 0.25s ease;
}

.faq-question:hover {
  background: var(--primary-light);
}

.faq-question h4 {
  font-size: 1.05rem;
  margin-bottom: 0;
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.25s ease;
}

.faq-item:hover .faq-question h4 {
  color: var(--primary);
}

.faq-toggle {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--white);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px 24px;
  border-top: 1px solid var(--border-light);
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   FLOATING WHATSAPP & MOBILE CTA BAR
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08) rotate(8deg);
  background-color: #20ba5a;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  box-shadow: 0 -4px 16px rgba(0, 135, 68, 0.15);
  z-index: 1001;
  grid-template-columns: repeat(3, 1fr);
}

.mobile-cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s ease;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-cta-item:last-child {
  border-right: none;
}

.mobile-cta-item svg {
  transition: transform 0.2s ease;
}

.mobile-cta-item:active svg {
  transform: scale(0.9);
}

.mobile-cta-item:active {
  background-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .whatsapp-float {
    display: none;
  }
  .mobile-cta-bar {
    display: grid;
  }
  body {
    padding-bottom: 60px; /* Space for sticky bar */
  }
}

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

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.show {
    display: flex;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
