/* ==================== Global Styles ==================== */

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

:root {
  --navy: #1e3a8a;
  --navy-dark: #0c2340;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --blue-lighter: #93c5fd;
  --indigo: #4f46e5;
  --gray: #f8fafc;
  --gray-light: #e2e8f0;
  --gray-dark: #475569;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-light: #64748b;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* ==================== Typography ==================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  color: var(--text-light);
  line-height: 1.75;
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* ==================== Container & Utilities ==================== */

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

.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.btn-primary:hover {
  background-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background-color: #f0f9ff;
  transform: translateY(-2px);
}

/* ==================== Navigation Bar ==================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-haven {
  color: var(--navy);
}

.logo-link {
  color: var(--blue-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--blue);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--blue);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2.5px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ==================== Dropdown Menu ==================== */

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  font-family: inherit;
  position: relative;
  transition: var(--transition);
}

.dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--blue);
  transition: var(--transition);
}

.dropdown-toggle:hover::after {
  width: 100%;
}

.dropdown-toggle:hover {
  color: var(--blue);
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  display: inline-block;
  transform: translateY(1px);
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 250px;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  z-index: 1001;
}

.dropdown-menu.active {
  display: block;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.dropdown-item:hover {
  background-color: var(--gray);
  color: var(--blue);
  border-left-color: var(--blue);
}

.dropdown-item:focus {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

/* ==================== Hero Section ==================== */

.hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  color: var(--navy);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-icon {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow-lg));
}

/* ==================== About Section ==================== */

.about {
  padding: 5rem 1.5rem;
  background-color: var(--white);
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  background-color: var(--gray);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-lighter);
}

.icon {
  margin-bottom: 1.5rem;
  color: var(--blue);
}

.value-card h3 {
  margin-bottom: 1rem;
  color: var(--navy);
}

.value-card p {
  color: var(--text-light);
}

/* ==================== Problem Section ==================== */

.problem {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a52 100%);
  padding: 4rem 1.5rem;
  color: var(--white);
}

.problem-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.problem-content h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.problem-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.problem-stat {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--blue-lighter);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ==================== Our Belief Section ==================== */

.belief {
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  text-align: center;
}

.belief-title {
  color: var(--navy);
  margin-bottom: 2rem;
}

.belief-quote {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  font-style: italic;
}

/* ==================== How It Works Section ==================== */

.how-it-works {
  padding: 5rem 1.5rem;
  background-color: var(--white);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  background-color: var(--gray);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--gray-light);
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-lighter);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-lighter);
  margin-bottom: 1rem;
}

.step-icon {
  margin-bottom: 1.5rem;
  color: var(--blue);
}

.step h3 {
  margin-bottom: 1rem;
  color: var(--navy);
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ==================== Features Section ==================== */

.features {
  padding: 5rem 1.5rem;
  background-color: var(--gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-lighter);
}

.feature-icon {
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: 1.1rem;
}

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

/* ==================== Safety Section ==================== */

.safety {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
}

.safety-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.safety-item {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  border-left: 4px solid var(--blue);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.safety-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.safety-icon {
  margin-bottom: 1rem;
  color: var(--navy);
}

.safety-item h3 {
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: 1.1rem;
}

.safety-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ==================== Roadmap Section ==================== */

.roadmap {
  padding: 5rem 1.5rem;
  background-color: var(--white);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.roadmap-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  padding: 2.5rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--blue-lighter);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--blue), var(--blue-lighter));
}

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

.roadmap-card h3 {
  margin-bottom: 1rem;
  color: var(--navy);
  padding-left: 0.5rem;
}

.roadmap-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  padding-left: 0.5rem;
}

/* ==================== Footer ==================== */

.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 3rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--blue-lighter);
}

.hotline-link {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-lighter);
  text-decoration: none;
  transition: var(--transition);
}

.hotline-link:hover {
  color: var(--white);
}

.hotline-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover .social-icon {
  color: var(--blue-lighter);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ==================== Adopt Section ==================== */

.adopt-subnav {
  background-color: var(--white);
  border-bottom: 2px solid var(--gray-light);
  sticky top: 64px;
  z-index: 999;
  position: sticky;
  top: 64px;
}

.subnav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.subnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  flex: 1;
  min-width: 100px;
}

.subnav-item:hover {
  color: var(--blue);
  background-color: var(--gray);
}

.subnav-item.active {
  color: var(--navy);
  border-bottom-color: var(--blue);
  background-color: rgba(59, 130, 246, 0.05);
}

.subnav-step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--gray-light);
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.subnav-item:hover .subnav-step {
  background-color: var(--blue-lighter);
  color: var(--white);
}

.subnav-item.active .subnav-step {
  background-color: var(--blue);
  color: var(--white);
}

.subnav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.adopt-container {
  min-height: calc(100vh - 200px);
}

.adopt-hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  padding: 4rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-light);
}

.adopt-hero h1 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.adopt-hero-subtitle {
  font-size: 1.1rem;
  color: var(--blue);
  font-weight: 500;
}

.adopt-content {
  padding: 4rem 1.5rem;
  background-color: var(--white);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content-main h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.content-main h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.content-main p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.process-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--gray);
  border-radius: 0.5rem;
  border-left: 4px solid var(--blue);
}

.process-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.process-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--navy);
  font-size: 1.1rem;
}

.process-content p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.why-matters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--gray);
  border-radius: 0.5rem;
  border-top: 4px solid var(--blue);
}

.why-icon {
  margin-bottom: 1rem;
}

.why-card h4 {
  color: var(--navy);
  margin: 1rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.why-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
}

.readiness-callout {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.05) 100%);
  border: 2px solid var(--blue-lighter);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-top: 3rem;
}

.readiness-callout h3 {
  color: var(--navy);
  margin-top: 0;
}

.readiness-callout p {
  color: var(--text-dark);
  line-height: 1.8;
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-card {
  background-color: var(--gray);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border-left: 4px solid var(--blue);
}

.sidebar-card h3 {
  color: var(--navy);
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.quick-facts,
.next-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-facts li,
.next-steps li {
  padding: 0.5rem 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-light);
}

.quick-facts li:last-child,
.next-steps li:last-child {
  border-bottom: none;
}

.next-steps li {
  counter-increment: step;
}

.next-steps {
  counter-reset: step;
}

.info-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(96, 165, 250, 0.04) 100%);
  border-left-color: var(--blue-light);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  flex-shrink: 0;
  color: var(--blue);
  margin-top: 0.2rem;
}

.info-card p {
  margin: 0;
  color: var(--text-dark);
}

/* ==================== Matching Score Styles ==================== */

.score-breakdown-demo {
  background-color: var(--gray);
  border-radius: 0.75rem;
  padding: 2rem;
  margin: 2rem 0;
  border: 2px solid var(--gray-light);
}

.score-header {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-light);
}

.score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.1) 100%);
  border: 3px solid var(--blue);
  flex-shrink: 0;
}

.score-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
}

.score-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-status {
  flex: 1;
}

.score-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.score-badge.high {
  background-color: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.score-factors {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.score-factor {
  display: grid;
  grid-template-columns: 150px 1fr 80px;
  gap: 1.5rem;
  align-items: center;
}

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

.factor-bar {
  background-color: var(--gray-light);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.factor-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-lighter) 100%);
  border-radius: 6px;
}

.factor-score {
  text-align: right;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
}

/* ==================== Intake Form Styles ==================== */

.form-container {
  padding: 3rem 1.5rem;
  background-color: var(--white);
}

.form-progress {
  background-color: var(--gray);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 3rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.progress-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.5rem;
}

.progress-percentage {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue);
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
  min-width: 100px;
}

.progress-step:hover {
  opacity: 0.8;
}

.progress-step[tabindex="-1"] {
  cursor: not-allowed;
  opacity: 0.5;
}

.progress-step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--gray-light);
  border: 2px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
  font-weight: 700;
  color: var(--text-light);
}

.progress-step.current .progress-step-circle {
  background-color: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.progress-step.accessible:not(.current) .progress-step-circle {
  background-color: var(--white);
  border-color: var(--blue);
  color: var(--blue);
}

.progress-step.completed .progress-step-circle {
  background-color: #10b981;
  border-color: #10b981;
  color: var(--white);
}

.progress-step-check {
  display: none;
  position: absolute;
}

.progress-step.completed .progress-step-check {
  display: block;
}

.progress-step.completed .progress-step-number {
  display: none;
}

.progress-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-step.current .progress-step-label {
  color: var(--blue);
  font-weight: 700;
}

.progress-step.completed .progress-step-label {
  color: #10b981;
}

.progress-connector {
  flex: 1;
  height: 2px;
  background-color: var(--gray-light);
  margin: 0 0.5rem;
}

.progress-step.completed ~ .progress-connector {
  background-color: #10b981;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--gray-light);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-lighter) 100%);
  border-radius: 3px;
  transition: width 0.5s ease-out;
}

.form-content {
  max-width: 900px;
  margin: 0 auto;
}

.form-section {
  animation: slideInUp 0.4s ease-out forwards;
  opacity: 0;
}

.form-section.active {
  opacity: 1;
  animation: slideInUp 0.4s ease-out;
}

.section-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.section-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--blue);
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.section-title-group {
  flex: 1;
}

.section-title {
  margin: 0 0 0.75rem 0;
  color: var(--navy);
  font-size: 2rem;
}

.section-description {
  margin: 0;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-content {
  background-color: var(--gray);
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.question-placeholder {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-light);
}

.question-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.4;
}

.question-placeholder h3 {
  color: var(--navy);
  margin: 0;
  font-size: 1.3rem;
}

.question-placeholder p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 400px;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.form-actions .btn {
  padding: 0.875rem 2rem;
}

.privacy-notice {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(96, 165, 250, 0.04) 100%);
  border: 1px solid var(--blue-lighter);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  color: var(--text-dark);
}

.privacy-notice svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.privacy-notice p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* ==================== Notifications ==================== */

.notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  z-index: 1100;
  animation: slideInRight 0.3s ease-out;
  max-width: 400px;
}

.notification.notification-success {
  background-color: #10b981;
  color: var(--white);
  border: 1px solid #059669;
}

.notification.notification-error {
  background-color: #ef4444;
  color: var(--white);
  border: 1px solid #dc2626;
}

.notification.notification-info {
  background-color: var(--blue);
  color: var(--white);
  border: 1px solid #1e40af;
}

.notification.fade-out {
  animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

/* ==================== Partnership Form Styles ==================== */

.partnership-form {
  max-width: 900px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--white);
  transition: var(--transition);
  line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: var(--white);
}

.form-group input:hover:not(:focus),
.form-group select:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
  border-color: var(--blue-lighter);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 20px;
  padding-right: 2.75rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 0;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group input[type="checkbox"] {
  width: auto;
  height: auto;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: var(--blue);
}

.form-message {
  padding: 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  border-left: 4px solid;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group label[style*="display: flex"] {
  cursor: pointer;
  user-select: none;
}

/* ==================== Privacy Policy Modal ==================== */

.privacy-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.3s ease-out;
}

.privacy-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.privacy-modal-content {
  background-color: var(--white);
  border-radius: 0.75rem;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease-out;
  position: relative;
}

.privacy-modal-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem 0.75rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2001;
}

.privacy-modal-header h2 {
  color: var(--white);
  margin: 0;
  font-size: 1.75rem;
}

.privacy-modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 0.25rem;
}

.privacy-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.privacy-modal-body {
  padding: 2rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.privacy-modal-body h1 {
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.privacy-modal-body h2 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--blue-lighter);
  padding-bottom: 0.5rem;
}

.privacy-modal-body h3 {
  color: var(--blue);
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.privacy-modal-body h4 {
  color: var(--navy);
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.privacy-modal-body p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.privacy-modal-body ul,
.privacy-modal-body ol {
  margin-bottom: 1rem;
  margin-left: 2rem;
}

.privacy-modal-body li {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.privacy-modal-body strong {
  color: var(--navy);
  font-weight: 600;
}

.privacy-modal-body a {
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
}

.privacy-modal-body a:hover {
  color: var(--indigo);
  text-decoration: underline;
}

.privacy-policy-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  cursor: pointer;
}

.privacy-policy-link:hover {
  color: var(--blue-lighter);
}

/* ==================== Responsive Design ==================== */

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    max-height: 500px;
  }

  .nav-links li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-light);
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    text-align: left;
  }

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background-color: var(--gray);
    min-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
  }

  .dropdown-menu.active {
    display: block;
    animation: none;
  }

  .dropdown-item {
    padding: 0.75rem 2rem;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .hero-visual {
    order: -1;
  }

  .problem-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .subnav-container {
    overflow-x: auto;
  }

  .subnav-item {
    min-width: 110px;
  }

  .score-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .score-factor {
    grid-template-columns: 120px 1fr 70px;
    gap: 1rem;
  }

  .score-breakdown-demo {
    padding: 1.5rem;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .form-progress {
    padding: 1.5rem;
  }

  .progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .progress-steps {
    justify-content: center;
    gap: 0.25rem;
  }

  .progress-step {
    min-width: 90px;
    flex: 0 1 auto;
  }

  .progress-step-label {
    font-size: 0.65rem;
  }

  .progress-connector {
    margin: 0 0.25rem;
    flex: 0;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
  }

  .section-number {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-content {
    padding: 2rem 1.5rem;
    min-height: 250px;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }

  .notification {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

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

  .form-group {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .about,
  .how-it-works,
  .features,
  .safety,
  .roadmap {
    padding: 3rem 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .value-cards,
  .steps-container,
  .features-grid,
  .safety-highlights,
  .roadmap-grid {
    gap: 1.5rem;
  }

  .section-subtitle {
    margin-bottom: 2rem;
  }

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

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
  }

  .form-progress {
    padding: 1.5rem 1rem;
  }

  .progress-steps {
    gap: 0;
  }

  .progress-step {
    min-width: 70px;
  }

  .progress-step-circle {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .progress-connector {
    display: none;
  }

  .progress-step-label {
    font-size: 0.6rem;
  }

  .section-header {
    gap: 1rem;
  }

  .section-number {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-description {
    font-size: 0.95rem;
  }

  .form-actions {
    gap: 0.75rem;
  }
}

/* ==================== Animations ==================== */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.value-card,
.step,
.feature-card,
.safety-item,
.roadmap-card {
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }

.safety-item:nth-child(1) { animation-delay: 0.1s; }
.safety-item:nth-child(2) { animation-delay: 0.2s; }
.safety-item:nth-child(3) { animation-delay: 0.3s; }
.safety-item:nth-child(4) { animation-delay: 0.4s; }
.safety-item:nth-child(5) { animation-delay: 0.5s; }

.roadmap-card:nth-child(1) { animation-delay: 0.1s; }
.roadmap-card:nth-child(2) { animation-delay: 0.2s; }
.roadmap-card:nth-child(3) { animation-delay: 0.3s; }
.roadmap-card:nth-child(4) { animation-delay: 0.4s; }
.roadmap-card:nth-child(5) { animation-delay: 0.5s; }

/* ==================== Accessibility ==================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* High contrast mode support */

@media (prefers-contrast: more) {
  .nav-link::after {
    height: 3px;
  }

  .safety-item {
    border-left-width: 6px;
  }

  .roadmap-card::before {
    width: 6px;
  }
}

/* ==================== Team Page Styles ==================== */

.team-hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}

.team-title {
  color: var(--navy);
  margin-bottom: 1rem;
}

.team-title-link {
  color: var(--blue-light);
}

.team-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==================== Team Section ==================== */

.team-section {
  padding: 5rem 1.5rem;
  background-color: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.team-member {
  background-color: var(--gray);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-lighter);
}

.member-placeholder {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 2px solid var(--blue-lighter);
}

.member-placeholder.partner {
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
}

.member-icon {
  color: var(--blue);
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.member-name {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.member-role {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.member-description {
  flex-grow: 1;
}

.member-description p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.member-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-light);
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: var(--transition);
}

.member-social a:hover {
  color: var(--navy);
  transform: scale(1.15);
}

.member-social .social-icon {
  width: 24px;
  height: 24px;
  color: inherit;
}

.unicef-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
}

.partner-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  margin: auto;
}
