/* DMY Restoration Custom Styles */

/* Color Variables */
:root {
  --navy: #0B5FA5;
  --teal: #20A39E;
  --cta: #F2A43A;
  --text: #2F2F2F;
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --border-color: #E9ECEF;
}

/* Typography */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text);
}

.brand-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--navy);
}

/* Custom Button Styles */
.btn-primary-cta {
  background-color: var(--cta);
  border-color: var(--cta);
  color: var(--white);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(242, 164, 58, 0.3);
}

.btn-primary-cta:hover {
  background-color: #E5932F;
  border-color: #E5932F;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(242, 164, 58, 0.4);
}

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

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

.btn-white {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--navy);
  font-weight: 600;
}

.btn-outline-white {
  border-color: var(--white);
  color: var(--white);
  font-weight: 600;
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--navy);
}

/* Background Utilities */
.bg-navy {
  background-color: var(--navy) !important;
}

.bg-teal {
  background-color: var(--teal) !important;
}

.bg-cta {
  background-color: var(--cta) !important;
}

.bg-gradient-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 50%, var(--cta) 100%);
}

.bg-gradient-to-br {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
}

/* Text Colors */
.text-navy {
  color: var(--navy) !important;
}

.text-teal {
  color: var(--teal) !important;
}

.text-cta {
  color: var(--cta) !important;
}

/* Header Styles */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  transform: translateY(0) !important;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text) !important;
  transition: color 0.3s ease;
  white-space: nowrap;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--navy) !important;
}

@media (max-width: 1199px) {
  .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.6rem !important;
  }
}

@media (max-width: 991px) {
  .navbar-nav {
    text-align: center;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
}

/* Hero Section with Accent Word Animation */
.accent-word-section {
  padding: 4rem 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(11, 95, 165, 0.08) 0%, rgba(32, 163, 158, 0.08) 50%, rgba(242, 164, 58, 0.05) 100%);
  position: relative;
}

.accent-word-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.accent-word-section .logo-scene-container {
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Section Split Layout Styles */
.section-split {
  padding: 5rem 0;
}

.section-tint {
  background: linear-gradient(135deg, rgba(11, 95, 165, 0.03) 0%, rgba(32, 163, 158, 0.03) 100%);
}

.section-kicker {
  color: rgba(11, 95, 165, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.section-title {
  color: #2F2F2F;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.section-subtitle {
  color: rgba(47, 47, 47, 0.8);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* How It Works Styles */
.steps-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.steps-list::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 75px;
  bottom: 50px;
  width: 2px;
  background: rgba(32, 163, 158, 0.2);
  z-index: 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  width: 100%;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--teal);
  color: white;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  margin-top: 0.125rem;
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2F2F2F;
  margin-bottom: 0.25rem;
}

.step-desc {
  color: rgba(47, 47, 47, 0.8);
  margin-bottom: 0;
}

/* Orbit Animation */
.animation-container {
  width: 100%;
  max-width: 450px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 95, 165, 0.05) 0%, rgba(32, 163, 158, 0.05) 100%);
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(11, 95, 165, 0.15);
  position: relative;
  overflow: hidden;
}

.animation-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(32, 163, 158, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.orbit-animation {
  position: relative;
  width: 280px;
  height: 280px;
  z-index: 2;
}

.orbit-ring {
  position: absolute;
  border: 6px solid var(--navy);
  border-radius: 1.5rem;
  opacity: 0.8;
}

.orbit-outer {
  inset: 0;
}

.orbit-inner {
  inset: 40px;
}

.orbit-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 20px rgba(32, 163, 158, 0.4);
}

.orbit-dot {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.orbit-dot-1 {
  width: 18px;
  height: 18px;
  background: var(--cta-orange);
  animation: orbit 8s linear infinite;
  transform-origin: 140px 140px;
}

.orbit-dot-2 {
  width: 14px;
  height: 14px;
  background: var(--navy);
  animation: orbit 12s linear infinite reverse;
  transform-origin: 100px 100px;
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(140px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Why DMY Styles */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-dot {
  width: 12px;
  height: 12px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.benefit-title {
  font-weight: 600;
  color: #2F2F2F;
  margin-bottom: 0.25rem;
}

.benefit-desc {
  color: rgba(47, 47, 47, 0.8);
  margin-bottom: 0;
}

/* Credentials Stack */
.credentials-stack {
  max-width: 320px;
  margin: 0 auto;
}

.credential-badge {
  background: white;
  border: 1px solid rgba(11, 95, 165, 0.1);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.credential-badge:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.credential-title {
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.credential-sub {
  color: rgba(47, 47, 47, 0.7);
  font-size: 0.75rem;
  margin-bottom: 0;
}

.credential-float-1 {
  animation: float 6s ease-in-out infinite;
}

.credential-float-2 {
  animation: float 7s ease-in-out infinite;
}

.credential-float-3 {
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Projects Showcase */
.project-list {
  color: rgba(47, 47, 47, 0.8);
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.project-list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 0.5rem;
}

.project-list li::before {
  content: '✓';
  position: absolute;
  left: -1rem;
  color: var(--teal);
  font-weight: bold;
}

/* Results Highlights */
.results-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 100%;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(11, 95, 165, 0.1);
  transition: all 0.3s ease;
}

.result-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: rgba(11, 95, 165, 0.2);
}

.result-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(11, 95, 165, 0.1) 0%, rgba(32, 163, 158, 0.1) 100%);
  border-radius: 50%;
  font-size: 1.5rem;
}

.result-card h4 {
  color: #2F2F2F;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.result-card p {
  color: rgba(47, 47, 47, 0.8);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Partners Grid */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 100%;
  margin: 0 auto;
}

.partner-card {
  background: white;
  border: 2px solid rgba(11, 95, 165, 0.1);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 100%);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.partner-card:hover::before {
  transform: translateX(0);
}

.partner-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-color: rgba(11, 95, 165, 0.2);
}

.partner-type {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.partner-sub {
  color: rgba(47, 47, 47, 0.7);
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.4;
}

.partner-benefits {
  color: rgba(47, 47, 47, 0.85);
  line-height: 1.6;
}

/* Better Section Organization */
.section-split .row {
  align-items: center;
  min-height: 60vh;
}

.section-split .col-lg-6 {
  margin-bottom: 2rem;
}

.section-split .col-lg-6:last-child {
  margin-bottom: 0;
}

/* Improved Visual Hierarchy */
.section-kicker {
  position: relative;
  margin-bottom: 1rem;
}

.section-kicker::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 100%);
  border-radius: 2px;
}

.section-title {
  margin-bottom: 1.5rem;
  position: relative;
}

.section-subtitle {
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  line-height: 1.7;
}

/* Impact Section */
.section-impact {
  background: linear-gradient(135deg, var(--navy) 0%, #0a4d8a 50%, var(--teal) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.section-impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.section-impact .container {
  position: relative;
  z-index: 2;
}

.impact-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.impact-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.health-stats {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #F2A43A !important;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-rendering: optimizeLegibility;
}

.stat-number .percent-symbol {
  font-size: 2.5rem;
  font-weight: 700;
  color: #F2A43A;
}

.stat-text {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.impact-message {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.95;
}

.impact-message strong {
  color: #F2A43A;
}

.impact-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.protection-symbol {
  background: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 20px rgba(242, 164, 58, 0.3);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(242, 164, 58, 0.5);
  }
}

/* About Page Styles */
.story-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(11, 95, 165, 0.1);
  transition: all 0.3s ease;
}

.story-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: rgba(11, 95, 165, 0.2);
}

.goal-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(11, 95, 165, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.goal-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: rgba(11, 95, 165, 0.2);
}

.goal-icon i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.goal-card h4 {
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 1rem;
}

.goal-card p {
  color: rgba(47, 47, 47, 0.8);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .section-split {
    padding: 3rem 0;
  }
  
  .section-split .row {
    min-height: auto;
  }
  
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  
  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .animation-container {
    height: 350px;
    max-width: 350px;
  }
  
  .orbit-animation {
    width: 200px;
    height: 200px;
  }
  
  .orbit-dot-1 {
    transform-origin: 100px 100px;
  }
  
  .orbit-dot-2 {
    transform-origin: 70px 70px;
  }
}

@media (max-width: 768px) {
  .section-split {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .animation-container {
    height: 280px;
    max-width: 280px;
  }
  
  .orbit-animation {
    width: 160px;
    height: 160px;
  }
  
  .orbit-dot-1 {
    width: 14px;
    height: 14px;
    transform-origin: 80px 80px;
  }
  
  .orbit-dot-2 {
    width: 12px;
    height: 12px;
    transform-origin: 56px 56px;
  }
  
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .partner-card {
    padding: 1.25rem;
  }
  
  .handle-line {
    height: 150px;
  }
}

.accent-text {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .accent-text {
    font-size: 2.5rem;
  }
}

@media (min-width: 992px) {
  .accent-text {
    font-size: 3rem;
  }
}

.accent-word {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--text);
  opacity: 0.6;
  transform: scale(1);
  transition: all 0.08s ease;
  will-change: transform, opacity, color;
}

.accent-word.highlighted {
  opacity: 1;
  transform: scale(1.02);
}

.accent-word.dimmed {
  opacity: 0.7;
  color: var(--text);
  transform: scale(1);
}

.accent-subtitle {
  font-size: 1rem;
  color: var(--text);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 768px) {
  .accent-subtitle {
    font-size: 1.125rem;
  }
}

/* Hero Section (legacy) */
.hero-section {
  background: linear-gradient(135deg, rgba(11, 95, 165, 0.05) 0%, rgba(32, 163, 158, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text);
  opacity: 0.8;
}

/* Emphasis Text Animation */
.emphasis-line {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  display: block;
}

.emphasis-word {
  display: inline-block;
  transition: all 0.3s ease;
  margin-right: 0.25rem;
}

/* Logo Scene */
.logo-scene-container {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-logo {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-logo {
  filter: drop-shadow(0 10px 30px rgba(11, 95, 165, 0.3));
}

.shield-path {
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.droplet-1, .droplet-2, .droplet-3 {
  animation: droplet 3s ease-in-out infinite;
}

.droplet-1 { animation-delay: 0s; }
.droplet-2 { animation-delay: 1s; }
.droplet-3 { animation-delay: 2s; }

@keyframes droplet {
  0%, 100% { transform: translateY(0px); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.7; }
}

.checkmark {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkmark 2s ease-in-out 2s forwards;
}

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

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* How It Works Steps */
.how-it-works-step {
  padding: 2rem 1rem;
}

.step-text {
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 1rem;
}

/* Why Cards */
.why-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 3rem;
  color: var(--navy);
}

/* Service Cards */
.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-icon {
  font-size: 3rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li:before {
  content: "✓";
  color: var(--teal);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Moisture Meter */
.meter-demo {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.meter-card {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
}

.moisture-meter {
  margin: 1rem 0;
}

.meter-display {
  text-align: center;
  margin-bottom: 1rem;
}

.meter-value {
  font-size: 2.5rem;
  font-weight: 700;
}

.meter-value.danger {
  color: #dc3545;
}

.meter-value.safe {
  color: #28a745;
}

.meter-label {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
}

.meter-bar {
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.meter-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 2s ease-in-out;
}

.meter-fill.danger {
  background: linear-gradient(90deg, #ffc107 0%, #dc3545 100%);
}

.meter-fill.safe {
  background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

/* Process Steps */
.process-step {
  padding: 1.5rem;
}

.process-number {
  width: 50px;
  height: 50px;
  background-color: var(--cta);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* Pillar Cards */
.pillar-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-8px);
}

.pillar-icon {
  font-size: 4rem;
  color: var(--navy);
}

.pillar-title {
  color: var(--navy);
  margin: 1rem 0;
}

.pillar-features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 1.5rem;
}

.pillar-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.pillar-features li:before {
  content: "→";
  color: var(--teal);
  position: absolute;
  left: 0;
}

/* Impact Styles */
.heartbeat-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.heartbeat-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: heartbeat-draw 3s ease-in-out infinite;
}

@keyframes heartbeat-draw {
  0% { stroke-dashoffset: 1000; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1000; }
}

.heartbeat-pulse {
  animation: pulse-beat 1s ease-in-out infinite;
}

@keyframes pulse-beat {
  0%, 100% { r: 8; opacity: 1; }
  50% { r: 12; opacity: 0.7; }
}

.protection-circle {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.inner-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2s ease-out infinite;
}

.ripple-1 { animation-delay: 0s; }
.ripple-2 { animation-delay: 0.5s; }
.ripple-3 { animation-delay: 1s; }

@keyframes ripple {
  0% {
    width: 60px;
    height: 60px;
    opacity: 1;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 200px;
  margin: 0 auto;
  position: relative;
}

.community-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e9ecef;
  transition: all 0.5s ease;
}

.community-dot.active {
  background-color: var(--teal);
  animation: community-pulse 2s ease-in-out infinite;
}

@keyframes community-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

/* Impact Stats */
.impact-stat {
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.5rem 0;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
}

/* Before/After Slider */
.before-after-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.before-after-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: col-resize;
  user-select: none;
}

.before-image, .after-image {
  position: relative;
  width: 100%;
  height: 400px;
}

.before-image img, .after-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-image {
  position: absolute;
  top: 0;
  left: 0;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.1s ease;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  cursor: col-resize;
  transform: translateX(-50%);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: var(--navy);
}

.image-label {
  position: absolute;
  top: 1rem;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-weight: 600;
  border-radius: 4px;
  font-size: 0.9rem;
}

.before-label {
  left: 1rem;
}

.after-label {
  right: 1rem;
}

/* Case Study Cards */
.case-study-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-4px);
}

.case-study-header {
  padding: 1.5rem;
  background: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-study-image {
  height: 200px;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-content {
  padding: 1.5rem;
}

.project-steps {
  list-style: none;
  padding: 0;
}

.project-steps li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.project-steps li:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 20px;
  height: 20px;
  background-color: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-details {
  counter-reset: step-counter;
}

.project-metrics {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.metric {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-weight: 600;
}

.metric-value {
  color: var(--navy);
  font-weight: 500;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 2rem;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 2rem;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  width: 40px;
  height: 40px;
  background-color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content {
  flex: 1;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .timeline:before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
  }
}

/* Partner Cards */
.partner-benefit-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.partner-benefit-card:hover {
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 3rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.partner-type-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.partner-type-card:hover {
  transform: translateY(-4px);
}

.partner-icon {
  font-size: 3rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.partner-perks {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 1.5rem 0;
}

.partner-perks li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.partner-perks li:before {
  content: "✓";
  color: var(--teal);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Forms */
.contact-form-section, .partner-form-section {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.form-label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-control, .form-select {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 0.2rem rgba(11, 95, 165, 0.25);
}

.form-check-input:checked {
  background-color: var(--navy);
  border-color: var(--navy);
}

/* Contact Info */
.contact-info {
  padding: 2rem 0;
}

.contact-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--teal);
}

/* Team Cards */
.team-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
}

.team-image {
  height: 250px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
  text-align: center;
}

.team-role {
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-certifications .badge {
  margin: 0.25rem;
}

/* Certification Cards */
.certification-card, .cert-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: transform 0.3s ease;
}

.certification-card:hover, .cert-card:hover {
  transform: translateY(-4px);
}

.cert-icon {
  color: var(--navy);
}

.cert-details {
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Value Cards */
.value-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-icon {
  font-size: 3rem;
  color: var(--navy);
}

/* Community Cards */
.community-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.community-card:hover {
  transform: translateY(-4px);
}

.community-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

/* Next Steps */
.next-step {
  padding: 2rem 1rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--light-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* FAQ */
.accordion-button {
  background-color: var(--light-gray);
  border: none;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: var(--navy);
  color: var(--white);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(11, 95, 165, 0.25);
}

/* 404 Styles */
.error-404 {
  padding: 3rem 0;
}

.error-visual {
  margin-bottom: 2rem;
}

.suggestion-card {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  height: 100%;
}

.help-option {
  padding: 1.5rem;
}

/* Documentation */
.documentation-example {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.doc-visual {
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  margin: 1rem 0;
}

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

.photo-item {
  background: var(--border-color);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
}

.doc-download-section {
  background: var(--light-gray);
  padding: 3rem;
  border-radius: 16px;
  margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .why-card, .service-card, .pillar-card {
    margin-bottom: 2rem;
  }
  
  .contact-form-section, .partner-form-section {
    padding: 1.5rem;
  }
  
  .before-after-slider {
    height: 300px;
  }
  
  .team-image {
    height: 200px;
  }
  
  /* Mobile fixes for shield/protection circle */
  .protection-circle {
    width: 150px;
    height: 150px;
  }
  
  .protection-symbol {
    padding: 2rem;
  }
  
  .impact-visual {
    padding: 1rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-avatar img {
    width: 50px;
    height: 50px;
  }
}

/* Utility Classes */
.shadow-soft {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.border-radius-lg {
  border-radius: 16px;
}

.transition-all {
  transition: all 0.3s ease;
}

/* Loading States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Testimonials Section */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--teal);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-avatar img {
    border: 3px solid var(--teal);
}

.testimonial-name {
    color: var(--navy);
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-location {
    font-size: 0.9rem;
}

.testimonial-rating {
    margin-top: 0.25rem;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    border-left: 3px solid var(--teal);
    padding-left: 1rem;
    margin-left: 0;
    font-size: 1rem;
}

.testimonial-service .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.bg-navy {
    background-color: var(--navy) !important;
}

.btn-primary-cta {
    background: linear-gradient(135deg, var(--navy), var(--teal));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-cta:hover {
    background: linear-gradient(135deg, var(--teal), var(--navy));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 95, 165, 0.3);
    color: white;
}

/* Print Styles */
@media print {
  .navbar, .btn, .alert {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}


/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.popup-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    margin: 0 auto;
    transform: translateX(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.popup-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.popup-icon i {
    font-size: 24px;
    color: white;
}

.popup-header h3 {
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 600;
}

.popup-header p {
    color: #666;
    margin-bottom: 0;
}

.popup-form .form-label {
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 5px;
}

.popup-form .form-control,
.popup-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.popup-form .form-control:focus,
.popup-form .form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(32, 163, 158, 0.1);
}

.popup-success i {
    color: var(--teal);
}

.popup-success h3 {
    color: var(--navy);
    margin: 20px 0 15px;
}

.popup-success p {
    color: #666;
    margin-bottom: 10px;
}

.popup-success strong {
    color: var(--navy);
}

.popup-success a {
    color: var(--cta);
    text-decoration: none;
    font-weight: 600;
}

.popup-success a:hover {
    text-decoration: underline;
}

/* Mobile responsive popup */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        margin: 10px;
        max-height: 95vh;
    }
    
    .popup-header h3 {
        font-size: 1.5rem;
    }
    
    .popup-icon {
        width: 50px;
        height: 50px;
    }
    
    .popup-icon i {
        font-size: 20px;
    }
}
