/* ============================================
   AWW FACTOR LANDING PAGE STYLES
   Award-Winning Design System
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* PRIMARY - Keep client's beige for backgrounds */
  --primary: #e5d0bc; /* your beautiful peachy tan */
  --primary-dark: #1b3a52; /* deep navy for buttons/headings (updated) */
  --primary-light: #f0e5d7; /* lighter peachy tan */
  --primary-lighter: #a8c4b8; /* auxiliary lighter token used by headings */

  /* ACCENT - Strong contrast colors */
  --accent: #2c7a7b; /* rich teal for accents/hover (updated) */
  --accent-light: #4a9b9f; /* lighter teal (updated) */

  /* Neutrals - warm tones */
  --white: #ffffff;
  --off-white: #fbf9f5; /* warmer off-white */
  --cream: #f5efe6; /* warmer cream */
  --beige: #ede3d5; /* warmer beige */
  --light-gray: #d9cfc1; /* warmer light gray */
  --gray: #6f6a60;
  --dark-gray: #4a4a4a;
  --dark: #222222; /* main body text */
  --brown: #8b6f47; /* warm brown for logo/text */
  /* Semantic Colors */
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Georgia", "Times New Roman", serif;
  /* Spacing Scale (8px grid system) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.16);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  /* Blog/Card specific */
  --card-bg: #ffffff;
  --muted: #6f6a60;

  /* Animation Easing */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream) 0%, var(--off-white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.8s var(--ease-smooth), visibility 0.8s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-tooth {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
}

.tooth-svg {
  width: 100%;
  height: 100%;
  animation: loaderRotate 2s linear infinite;
}

.loader-circle {
  fill: none;
  stroke: var(--primary-dark);
  stroke-width: 3;
  stroke-dasharray: 283;
  stroke-dashoffset: 280;
  stroke-linecap: round;
  animation: loaderDash 1.5s ease-in-out infinite;
}

.loader-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: var(--primary-dark);
  animation: loaderPulse 1s ease-in-out infinite;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary-dark);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: loaderFade 1.5s ease-in-out infinite;
}

@keyframes loaderRotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes loaderDash {
  0% {
    stroke-dashoffset: 280;
  }
  50% {
    stroke-dashoffset: 70;
  }
  100% {
    stroke-dashoffset: 280;
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
  }
}

@keyframes loaderFade {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ============================================
   GLASS EFFECT UTILITY
   ============================================ */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-aww {
  position: relative;
  overflow: hidden;
  padding: 30px 0 160px; /* Reduced top padding to move content into sky */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Hero Background Image - RESTORED */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/images/742361936.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: heroZoom 25s ease-out infinite alternate;
}

@keyframes heroZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

/* Animated Gradient Background - UPDATED TO NAVY */
.hero-gradient-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27, 58, 82, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(27, 58, 82, 0.2) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: 1;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Floating Particles - UPDATED TO TEAL */
.particles-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.particles-container span {
  position: absolute;
  width: calc(15px + var(--i) * 6px);
  height: calc(15px + var(--i) * 6px);
  background: linear-gradient(
    135deg,
    rgba(44, 122, 123, 0.12),
    rgba(74, 155, 159, 0.08)
  );
  border-radius: 50%;
  left: var(--x);
  top: var(--y);
  animation: particleFloat calc(12s + var(--i) * 2s) ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.8s);
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-40px) translateX(20px) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-20px) translateX(-15px) scale(0.9);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-50px) translateX(25px) scale(1.05);
    opacity: 0.7;
  }
}

/* Morphing Blobs - UPDATED TO TEAL/BEIGE */
.blob {
  position: absolute;
  filter: blur(70px);
  opacity: 0.1;
  z-index: 2;
  animation: blobMorph 20s ease-in-out infinite;
  pointer-events: none;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(
    135deg,
    rgba(44, 122, 123, 0.2),
    rgba(74, 155, 159, 0.12)
  );
  top: -15%;
  right: -15%;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(
    135deg,
    rgba(229, 208, 188, 0.3),
    rgba(240, 229, 215, 0.2)
  );
  bottom: -10%;
  left: -10%;
  animation-delay: -7s;
}

@keyframes blobMorph {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(90deg) scale(1.05);
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 70% 70% 30%;
    transform: rotate(180deg) scale(0.95);
  }
  75% {
    border-radius: 70% 30% 50% 50% / 60% 40% 60% 40%;
    transform: rotate(270deg) scale(1.02);
  }
}

/* Overlay */
.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.2) 25%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 75%,
        rgba(0, 0, 0, 0.8) 100%
    );
  z-index: 3;
  pointer-events: none;
}

/* Hero Container */
.hero-container {
  position: relative;
  z-index: 10;
}

.hero-content-aww {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff; /* Reverted to White */
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2); /* Darker tint for better white text contrast */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s var(--ease-out-expo) 0.3s forwards;
}

.badge-pulse {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  position: relative;
}

.badge-pulse::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 50%;
  animation: badgePulse 2s ease-out infinite;
}

@keyframes badgePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Hero Title */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff; /* Reverted to White */
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.4); /* Enhanced shadow for visibility */
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line .word {
  display: inline-block;
  margin: 0 0.15em;
  opacity: 0;
  transform: translateY(100%) rotateX(-80deg);
  transform-origin: top center;
  animation: wordReveal 1s var(--ease-out-expo) forwards;
}

.title-line:first-child .word:nth-child(1) {
  animation-delay: 0.4s;
}
.title-line:first-child .word:nth-child(2) {
  animation-delay: 0.55s;
}
.title-line:last-child .word:nth-child(1) {
  animation-delay: 0.7s;
}
.title-line:last-child .word:nth-child(2) {
  animation-delay: 0.85s;
}

.word.accent {
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #a8c4b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

/* Tagline */
.hero-tagline-aww {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 1.6rem;
  font-style: italic;
  color: #ffffff; /* Reverted to White */
  margin-bottom: 20px;
  opacity: 0;
  animation: revealUp 0.8s var(--ease-out-expo) 1s forwards;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8); /* Re-enhanced shadow */
}

.tagline-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
}

/* Description */
.hero-description {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #ffffff; /* Reverted to White */
  max-width: 680px;
  margin: 0 auto 100px;
  opacity: 0;
  animation: revealUp 0.8s var(--ease-out-expo) 1.1s forwards;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8); /* Enhanced shadow */
}

/* Quote Box */
.hero-quote-box {
  display: inline-block;
  padding: 28px 48px;
  border-radius: 20px;
  margin-bottom: 40px;
  position: relative;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  max-width: 800px;
  margin: 0 auto 30px; /* Reduced gap */
  opacity: 0;
  animation: revealUp 0.8s var(--ease-out-expo) 1.2s forwards;
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0.5;
}

.quote-text {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: #ffffff; /* Reverted to White */
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8); /* Re-enhanced shadow */
}

/* CTA Group */
.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: revealUp 0.8s var(--ease-out-expo) 1.3s forwards;
}

/* Reveal Animation */
@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-element {
  opacity: 0;
  transform: translateY(40px);
}

/* ============================================
   MAGNETIC BUTTONS
   ============================================ */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 38px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
  border: none;
  text-decoration: none;
  z-index: 1;
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 3;
  transition: transform 0.3s var(--ease-smooth);
}

.btn-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: transform 0.4s var(--ease-smooth);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  z-index: 2;
  transition: left 0.6s ease;
}

.btn-magnetic:hover .btn-shine {
  left: 100%;
}

.btn-magnetic:hover .btn-content {
  transform: scale(1.02);
}

/* Primary Button - UPDATED TO SOLID NAVY */
.btn-primary-glow {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(27, 58, 82, 0.35);
}

.btn-primary-glow:hover {
  background: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(44, 122, 123, 0.45);
  color: var(--white);
}

/* Outline Button - UPDATED TO NAVY BORDER */
.btn-outline-glow {
  background: transparent;
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 2px var(--primary-dark);
}

.btn-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  z-index: 0;
}

.btn-outline-glow:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(27, 58, 82, 0.35);
}

/* White Button */
.btn-white-glow {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-white-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
}

/* Outline White */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  transform: translateY(-4px);
}

/* ============================================
   SCROLL INDICATOR - SIMPLE ARROW
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: revealUp 0.8s var(--ease-out-expo) 1.5s forwards;
}

.scroll-arrow {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.scroll-indicator span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
  padding: 100px 0 80px;
  background: var(--off-white);
  position: relative;
  margin-top: -60px;
  z-index: 20;
}

.stats-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.stats-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.stats-bg-shapes .shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(44, 122, 123, 0.08),
    transparent 70%
  );
  top: -100px;
  left: -100px;
}

.stats-bg-shapes .shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(229, 208, 188, 0.1),
    transparent 70%
  );
  bottom: -150px;
  right: -150px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 44px 28px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(27, 58, 82, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s var(--ease-smooth);
  opacity: 0;
  transform: translateY(40px);
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.stat-icon-wrap {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  border-radius: 50%;
  filter: blur(15px);
  opacity: 0.4;
  animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.6;
  }
}

.stat-icon-wrap i {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  color: var(--primary-dark);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(27, 58, 82, 0.2);
}

.stat-content {
  position: relative;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.stat-label {
  display: block;
  font-size: 1rem;
  color: var(--dark-gray);
  margin-top: 10px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}

.section-badge {
  display: inline-block;
  padding: 10px 26px;
  background: var(--primary-dark);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 20px;
}

.section-badge i {
  margin-right: 8px;
  font-size: 0.9rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

/* ============================================
   FEATURES SECTION - SIMPLE CARDS (NO FLIP)
   ============================================ */
.features-section {
  padding: 120px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.features-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 15% 25%,
      rgba(44, 122, 123, 0.04) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(229, 208, 188, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}

/* Simple Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  padding: 48px 36px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid rgba(27, 58, 82, 0.08);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all 0.4s var(--ease-smooth);
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.3;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-glow {
  transform: scale(1.2);
  opacity: 0.5;
}

.feature-icon-wrap i {
  position: relative;
  z-index: 1;
  font-size: 2.8rem;
  color: var(--primary-dark);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(27, 58, 82, 0.2);
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrap i {
  transform: scale(1.08);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.feature-card > p {
  color: var(--dark);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.feature-list-inline {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.feature-list-inline li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--dark-gray);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-list-inline li:last-child {
  border-bottom: none;
}

.feature-list-inline li i {
  color: var(--primary-dark);
  font-size: 1rem;
}

/* ============================================
   SERVICES CAROUSEL
   ============================================ */
.services-showcase {
  padding: 120px 0;
  background: var(--white);
  overflow: hidden;
}

.services-carousel-wrapper {
  margin: 60px 0;
  overflow: hidden;
  position: relative;
}

.services-carousel-wrapper::before,
.services-carousel-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.services-carousel-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
}

.services-carousel-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--white) 0%, transparent 100%);
}

.services-track {
  display: flex;
  gap: 32px;
  animation: servicesScroll 35s linear infinite;
  width: max-content;
}

.services-track:hover {
  animation-play-state: paused;
}

@keyframes servicesScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 16px));
  }
}

.service-card {
  flex: 0 0 340px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(27, 58, 82, 0.08);
  box-shadow: var(--shadow-md);
  transition: all 0.4s var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.service-image {
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--accent) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.service-icon-lg {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-bounce);
}

.service-card:hover .service-icon-lg {
  transform: scale(1.15);
}

.service-content {
  padding: 32px;
}

.service-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.service-content p {
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
}

.service-link:hover {
  gap: 12px;
  color: var(--accent);
}

.services-cta {
  text-align: center;
  margin-top: 50px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: 120px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.testimonial-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.testimonial-shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(44, 122, 123, 0.1), transparent 70%);
  top: -150px;
  right: -100px;
}

.testimonial-shape-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(229, 208, 188, 0.15),
    transparent 70%
  );
  bottom: -100px;
  left: -100px;
}

.testimonials-carousel {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slider {
  position: relative;
  transition: height 0.4s var(--ease-smooth);
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 50px 60px;
  border-radius: 24px;
  text-align: center;
  opacity: 0;
  transform: translateX(80px) scale(0.95);
  transition: all 0.6s var(--ease-smooth);
  pointer-events: none;
  background: var(--white);
  border: 1px solid rgba(27, 58, 82, 0.08);
  box-shadow: var(--shadow-md);
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: all;
}

.testimonial-card.prev {
  transform: translateX(-80px) scale(0.95);
}

.testimonial-quote-mark {
  position: absolute;
  top: 25px;
  left: 40px;
  font-size: 4rem;
  color: var(--primary-dark);
  opacity: 0.15;
  line-height: 1;
}

.testimonial-rating {
  margin-bottom: 24px;
}

.testimonial-rating i {
  color: #f59e0b;
  font-size: 1.3rem;
  margin: 0 3px;
}

.testimonial-text {
  font-size: 1.3rem;
  line-height: 1.9;
  color: var(--dark);
  font-style: italic;
  margin-bottom: 32px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.author-avatar i {
  font-size: 1.8rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.testimonial-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary-dark);
  background: transparent;
  border-radius: 50%;
  color: var(--primary-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: scale(1.1);
}

.testimonial-dots {
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary-dark);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active,
.dot:hover {
  background: var(--primary-dark);
  transform: scale(1.2);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 130px 0;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--accent) 100%
  );
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cta-shape {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-shape-1 {
  width: 500px;
  height: 500px;
  top: -200px;
  right: -150px;
  animation: ctaFloat 10s ease-in-out infinite;
}

.cta-shape-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
  animation: ctaFloat 12s ease-in-out infinite reverse;
}

.cta-shape-3 {
  width: 250px;
  height: 250px;
  top: 40%;
  left: 30%;
  animation: ctaFloat 8s ease-in-out infinite;
  animation-delay: -3s;
}

@keyframes ctaFloat {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -40px);
  }
}

.cta-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: ctaParticle 4s ease-in-out infinite;
}

.cta-particles span:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
}
.cta-particles span:nth-child(2) {
  left: 25%;
  top: 70%;
  animation-delay: 0.5s;
}
.cta-particles span:nth-child(3) {
  left: 60%;
  top: 30%;
  animation-delay: 1s;
}
.cta-particles span:nth-child(4) {
  left: 80%;
  top: 60%;
  animation-delay: 1.5s;
}
.cta-particles span:nth-child(5) {
  left: 90%;
  top: 25%;
  animation-delay: 2s;
}

@keyframes ctaParticle {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) scale(1.5);
    opacity: 0.8;
  }
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-title span {
  display: inline-block;
  position: relative;
}

.cta-title span::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.cta-text {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 44px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 58, 82, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.letter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.letter-modal.active {
  opacity: 1;
  visibility: visible;
}

.letter-modal-content {
  position: relative;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  transform: translateY(50px) scale(0.95);
  transition: transform 0.5s var(--ease-out-expo);
}

.letter-modal.active .letter-modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--primary-dark);
  background: var(--white);
  color: var(--primary-dark);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s var(--ease-smooth);
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: rotate(90deg);
}

.letter-header {
  padding: 60px 50px 40px;
  text-align: center;
  background: var(--white);
  border-bottom: 3px solid var(--primary-dark);
}

.letter-icon-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 24px;
}

.letter-icon-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  border-radius: 50%;
  animation: letterIconPulse 2s ease-out infinite;
}

@keyframes letterIconPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.letter-icon-wrap i {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(27, 58, 82, 0.3);
}

.letter-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: 800;
}

.letter-subtitle {
  color: var(--dark-gray);
  font-style: italic;
  font-size: 1.1rem;
}

.letter-body {
  padding: 50px;
  line-height: 1.9;
  background: var(--white);
}

.letter-body h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 28px;
  text-align: center;
}

.letter-body p {
  color: var(--dark);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.letter-body strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.letter-signature {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid var(--cream);
  font-style: italic;
}

.signature-name {
  font-size: 1.3rem;
  color: var(--primary-dark);
  font-weight: 700;
  font-style: normal;
  margin-bottom: 8px;
}

.signature-note {
  color: var(--gray);
  font-size: 1rem;
  margin-top: 16px;
}

.letter-footer {
  padding: 40px 50px;
  background: var(--off-white);
  border-top: 1px solid var(--beige);
  text-align: center;
}

.letter-footer .btn-primary,
.letter-footer .btn-magnetic {
  background: var(--primary-dark);
  color: var(--white);
}

.letter-footer .btn-primary:hover,
.letter-footer .btn-magnetic:hover {
  background: var(--accent);
  color: var(--white);
}

/* Modal Scrollbar */
.letter-modal-content::-webkit-scrollbar {
  width: 12px;
}

.letter-modal-content::-webkit-scrollbar-track {
  background: rgba(229, 208, 188, 0.2); /* var(--primary) with low opacity */
  border-radius: 0 24px 24px 0;
}

.letter-modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 10px;
  border: 3px solid #fff;
}

.letter-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid .feature-card:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: clamp(2.2rem, 7vw, 4rem);
  }

  .hero-tagline-aww {
    font-size: 1.3rem;
  }

  .testimonial-card {
    padding: 40px;
  }

  .testimonial-text {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .hero-aww {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-badge {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-quote-box {
    padding: 20px 28px;
  }

  .quote-text {
    font-size: 1.1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .btn-magnetic {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .scroll-indicator {
    display: none;
  }

  .stats-section {
    padding: 70px 0 50px;
    margin-top: -40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-card {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .features-section,
  .services-showcase,
  .testimonials-section {
    padding: 80px 0;
  }

  /* FIXED: Simple cards on mobile - no flip issues */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .features-grid .feature-card:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .feature-card {
    padding: 36px 28px;
  }

  .feature-icon-wrap {
    width: 80px;
    height: 80px;
  }

  .feature-icon-wrap i {
    width: 80px;
    height: 80px;
    font-size: 2.2rem;
  }

  .service-card {
    flex: 0 0 280px;
  }

  /* Testimonial mobile adjustments with Google badge */
  .testimonial-slider {
    min-height: 500px;
  }

  .testimonial-card {
    padding: 35px 30px;
  }

  .testimonial-text {
    font-size: 1.1rem;
  }

  .testimonial-controls {
    gap: 12px;
  }

  .testimonial-btn {
    width: 44px;
    height: 44px;
  }

  .google-badge {
    margin-top: 16px;
    padding-top: 12px;
  }

  .cta-section {
    padding: 80px 0;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn-magnetic {
    width: 100%;
    max-width: 280px;
  }

  .letter-modal-content {
    max-height: 90vh;
    border-radius: 16px;
  }

  .letter-header {
    padding: 40px 30px 30px;
  }

  .letter-header h2 {
    font-size: 1.5rem;
  }

  .letter-body {
    padding: 30px;
  }

  .letter-body p {
    font-size: 1rem;
  }

  .letter-footer {
    padding: 30px;
  }

  .modal-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 28px;
  }

  .hero-tagline-aww {
    flex-direction: column;
    gap: 10px;
  }

  .tagline-line {
    width: 40px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-text {
    font-size: 1.05rem;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-gradient-bg,
  .hero-bg-image {
    animation: none;
  }

  .particles-container span,
  .blob {
    animation: none;
  }

  .services-track {
    animation: none;
  }
}

/* ============================================
   GOOGLE REVIEWS ENHANCEMENTS
   ============================================ */

/* Google Badge in Testimonials */
.google-badge {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.google-badge img {
  transition: opacity 0.3s ease;
}

.view-on-google {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view-on-google i {
  font-size: 0.9rem;
}

/* Clickable Testimonial Cards */
.testimonial-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.testimonial-link:hover {
  text-decoration: none;
  color: inherit;
}

.testimonial-link:hover .google-badge img {
  opacity: 1 !important;
}

.testimonial-link:hover .view-on-google {
  opacity: 1;
}

.testimonial-link:hover .testimonial-card {
  transform: translateX(0) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.testimonial-link.active:hover {
  transform: translateX(0) scale(1.02);
}

/* Section Badge with Icon */
.section-badge i {
  margin-right: 8px;
  font-size: 0.9rem;
}

/* Author Avatar Image Support */
.author-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.author-avatar i {
  font-size: 1.8rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}
/* ===================================
   SPECIFIC FIXES FOR VISIBLE ISSUES
   Add these to the END of your CSS
   =================================== */

/* ========================================
   FIX 1: Letter Modal Header
   Issue: Light beige background, hard to read
   ======================================== */

.letter-header {
  background: white !important;
  border-bottom: 3px solid var(--primary-dark) !important;
  padding: 60px 50px 40px !important;
}

.letter-header h2 {
  color: var(--dark) !important;
  font-weight: 800 !important;
  font-size: 2rem !important;
}

.letter-subtitle {
  color: var(--dark-gray) !important;
  font-weight: 500 !important;
  font-style: italic !important;
}

/* Modal close button (X) - Navy blue */
.modal-close {
  background: white !important;
  color: var(--primary-dark) !important;
  border: 2px solid var(--primary-dark) !important;
  width: 48px !important;
  height: 48px !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

.modal-close:hover {
  background: var(--primary-dark) !important;
  color: white !important;
  transform: rotate(90deg) !important;
}

/* ========================================
   FIX 2: Statistics Section
   Issue: Light icons, .9 not showing properly
   ======================================== */

/* Stats cards - white background */
.stat-card {
  background: white !important;
  border: 1px solid rgba(27, 58, 82, 0.1) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Numbers - dark navy */
.stat-number {
  color: var(--primary-dark) !important;
  font-weight: 800 !important;
  font-size: 3.2rem !important;
}

/* Suffix (+ sign) - same color as number */
.stat-suffix {
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  font-size: 2rem !important;
}

/* Labels - dark gray */
.stat-label {
  color: var(--dark-gray) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

/* Icons - keep gradient but make more visible */
.stat-icon-wrap i {
  color: var(--primary-dark) !important;
  background: white !important;
  box-shadow: 0 8px 25px rgba(27, 58, 82, 0.2) !important;
}

/* ========================================
   FIX 3: "Why Choose Us" Section
   Issue: Badge too light, "Difference" hard to read
   ======================================== */

/* Section badge - darker background */
.section-badge {
  background: var(--primary-dark) !important;
  color: white !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 2.5px !important;
  padding: 12px 28px !important;
  border-radius: 30px !important;
}

/* Section title - dark text */
.section-title {
  color: var(--dark) !important;
  font-weight: 800 !important;
  font-size: 3rem !important;
}

/* "Difference" word - gradient for emphasis */
.section-title .text-gradient,
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--accent) 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 900 !important;
}

/* Subtitle - darker gray */
.section-subtitle {
  color: var(--dark-gray) !important;
  font-weight: 500 !important;
  font-size: 1.2rem !important;
}

/* ========================================
   FIX 4: All Section Backgrounds
   Ensure proper contrast everywhere
   ======================================== */

/* Features section - clean white */
.features-section {
  background: white !important;
}

/* Services section - clean white */
.services-showcase {
  background: white !important;
}

/* Testimonials section - clean white */
.testimonials-section {
  background: white !important;
}

/* Stats section - light gray */
.stats-section {
  background: var(--off-white) !important;
}

/* ========================================
   FIX 5: Letter Modal Body & Footer
   ======================================== */

.letter-body {
  background: white !important;
  padding: 50px !important;
}

.letter-body h3 {
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  font-size: 1.5rem !important;
}

.letter-body p {
  color: var(--dark) !important;
  font-weight: 400 !important;
  font-size: 1.05rem !important;
  line-height: 1.9 !important;
}

.letter-body strong {
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
}

.letter-footer {
  background: var(--off-white) !important;
  padding: 40px 50px !important;
}

/* Letter footer button */
.letter-footer .btn-primary,
.letter-footer .btn-magnetic {
  background: var(--primary-dark) !important;
  color: white !important;
  font-weight: 700 !important;
  padding: 18px 40px !important;
}

.letter-footer .btn-primary:hover,
.letter-footer .btn-magnetic:hover {
  background: var(--accent) !important;
  color: white !important;
}

/* ========================================
   FIX 6: Feature Cards Icons
   Make sure they're visible
   ======================================== */

.feature-icon-wrap i {
  color: var(--primary-dark) !important;
  background: white !important;
  box-shadow: 0 10px 30px rgba(27, 58, 82, 0.2) !important;
}

.feature-card h3 {
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
}

.feature-card p {
  color: var(--dark) !important;
  font-weight: 400 !important;
}

/* ========================================
   FIX 7: Mobile Responsiveness
   ======================================== */

@media (max-width: 768px) {
  .section-badge {
    font-size: 0.75rem !important;
    padding: 10px 20px !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .stat-number {
    font-size: 2.5rem !important;
  }

  .letter-header {
    padding: 40px 30px 30px !important;
  }

  .letter-body {
    padding: 30px !important;
  }

  .letter-footer {
    padding: 30px !important;
  }
}

/* ========================================
   FIX 8: Ensure All Text is Readable
   ======================================== */

/* Force all section content to have dark text */
.features-section h2,
.features-section h3,
.features-section p,
.services-showcase h2,
.services-showcase h3,
.services-showcase p,
.testimonials-section h2,
.testimonials-section h3,
.testimonials-section p {
  color: var(--dark) !important;
}

/* Exception: keep white text in dark sections */
.hero-aww *,
.cta-section * {
  /* These stay white - they have dark backgrounds */
}

/* ========================================
   END OF SPECIFIC FIXES
   ======================================== */

/* ============================================
   CDCP FLOATING PILL & ENHANCEMENTS
   ============================================ */
.cdcp-floating-pill {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s var(--ease-out-expo);
    transform: translateY(100px);
    opacity: 0;
}

.cdcp-floating-pill.visible {
    transform: translateY(0);
    opacity: 1;
}

.cdcp-floating-pill:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-dark);
}

.cdcp-floating-pill:hover .pill-icon i,
.cdcp-floating-pill:hover .pill-text span,
.cdcp-floating-pill:hover .pill-text strong {
    color: var(--white);
}

.pill-icon {
    width: 35px;
    height: 35px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.pill-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.pill-text span {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pill-text strong {
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cdcp-floating-pill {
        bottom: 20px;
        left: 20px;
        padding: 10px 18px;
    }
    
    .pill-text strong {
        font-size: 0.85rem;
    }
}
