/* Zenith Support Foundation - Premium CSS Framework */
/* Mobile-first responsive design using Flexbox */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1B1B1B;
  background-color: #F8F9FA;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

/* Color Variables */
:root {
  --primary-color: #0F3D3E;
  --secondary-color: #F5B700;
  --accent-color: #E63946;
  --background-color: #F8F9FA;
  --text-color: #1B1B1B;
  --text-light: #6B7280;
  --border-color: #E5E7EB;
  --shadow: 0 4px 6px -1px rgba(15, 61, 62, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(15, 61, 62, 0.1);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.align-center {
  align-items: center;
}

.align-start {
  align-items: flex-start;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #0a2f30;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-color: #e6a600;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: #d32f3a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  padding: 1rem 5rem 1rem 1.5rem; /* Extra right padding for mobile toggle */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  z-index: 1001;
  position: relative;
  max-width: 360px;
  flex-shrink: 0;
  min-width: 0;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  position: static;
  transform: none;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: auto;
  z-index: 1000;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
  display: block;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--primary-color);
  transform: translateY(-1px);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.nav-menu a.nav-donate {
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 6px 16px rgba(230, 57, 70, 0.22);
  white-space: nowrap;
}

.nav-menu a.nav-donate::after {
  display: none;
}

.nav-menu a.nav-donate:hover {
  background-color: #d32f3a;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(230, 57, 70, 0.28);
}

.nav-menu a.nav-donate:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 4px;
}

.nav-menu a:hover::after,
.nav-menu a[aria-current="page"]::after {
  width: 100%;
}

.nav-menu a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* Navigation accessibility improvements */
.nav-menu a[aria-current="page"] {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-menu a.nav-donate[aria-current="page"] {
  color: #fff;
}

/* Navbar scroll effect */
.navbar.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Smooth logo animation */
@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.logo:focus {
  animation: logoPulse 0.6s ease;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  z-index: 1001;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle:hover {
  background-color: rgba(15, 61, 62, 0.1);
  transform: scale(1.05);
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Styles */
.nav-menu.mobile-menu-open {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, white 0%, #f8f9fa 100%);
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 5rem 2rem 2rem;
  gap: 1rem;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);
  transform: translateX(0);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.nav-menu.mobile-menu-open::before {
  content: 'Navigation';
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-menu.mobile-menu-open li {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  animation: slideInFromRight 0.3s ease forwards;
  opacity: 0;
}

.nav-menu.mobile-menu-open li:nth-child(1) { animation-delay: 0.1s; }
.nav-menu.mobile-menu-open li:nth-child(2) { animation-delay: 0.15s; }
.nav-menu.mobile-menu-open li:nth-child(3) { animation-delay: 0.2s; }
.nav-menu.mobile-menu-open li:nth-child(4) { animation-delay: 0.25s; }
.nav-menu.mobile-menu-open li:nth-child(5) { animation-delay: 0.3s; }
.nav-menu.mobile-menu-open li:nth-child(6) { animation-delay: 0.35s; }
.nav-menu.mobile-menu-open li:nth-child(7) { animation-delay: 0.4s; }
.nav-menu.mobile-menu-open li:nth-child(8) { animation-delay: 0.45s; }

.nav-menu.mobile-menu-open li:last-child {
  border-bottom: none;
}

.nav-menu.mobile-menu-open a {
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  width: 100%;
}

.nav-menu.mobile-menu-open a.nav-donate {
  background-color: var(--accent-color);
  color: #fff;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 10px 22px rgba(230, 57, 70, 0.22);
}

.nav-menu.mobile-menu-open a.nav-donate:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 4px;
}

.nav-menu.mobile-menu-open a:hover {
  color: var(--primary-color);
  background-color: rgba(15, 61, 62, 0.05);
  border-radius: 0.375rem;
  padding-left: 1rem;
  margin-left: -1rem;
  margin-right: -1rem;
  transform: translateX(5px);
}

.nav-menu.mobile-menu-open a.nav-donate:hover {
  color: #fff;
  background-color: #d32f3a;
  transform: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 1rem;
}

.nav-menu.mobile-menu-open a[aria-current="page"] {
  color: var(--primary-color);
  font-weight: 700;
  background-color: rgba(245, 183, 0, 0.1);
}

.nav-menu.mobile-menu-open a.nav-donate[aria-current="page"] {
  color: #fff;
  background-color: var(--accent-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(15, 61, 62, 0.9), rgba(15, 61, 62, 0.7)), url('../images/executive-director-inspection.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 5rem 1rem;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  animation: heroBackgroundZoom 8s ease-out forwards;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: heroTitleSlideUp 1s ease-out 0.3s forwards;
  opacity: 0;
  transform: translateY(40px);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: heroTextFadeIn 1s ease-out 0.8s forwards;
  transform: translateY(20px);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroButtonsScaleIn 0.8s ease-out 1.2s forwards, heroButtonsFloat 3s ease-in-out 2s infinite;
  transform: scale(0.8) translateY(20px);
}

.trust-badges {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  animation-delay: 1.6s;
}

.trust-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
}

/* Section Styles */
.section {
  padding: 4rem 1rem;
}

.section-alt {
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* Mission Statement */
.mission {
  background-color: white;
}

.mission-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.mission-text {
  flex: 1;
  max-width: 600px;
}

.mission-image {
  flex: 1;
  max-width: 500px;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* What We Do */
.what-we-do {
  background-color: var(--background-color);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.pillar-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pillar-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.pillar-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(245, 183, 0, 0.1), rgba(15, 61, 62, 0.1));
}

.pillar-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Growth Metrics */
.growth-metrics {
  background: linear-gradient(135deg, var(--primary-color), #0a2f30), url('../images/1.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 4rem 1rem;
}

.growth-metrics .section-title {
  color: white;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.metric-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(10px);
}

.metric-value {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
  min-width: 6ch;
}

.metric-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Flagship Commitments */
.commitments {
  background-color: white;
}

.commitments-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.commitments-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 600px;
}

.commitment-item {
  background: var(--background-color);
  padding: 1rem;
  border-radius: 0.375rem;
  border-left: 4px solid var(--secondary-color);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.service-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(15, 61, 62, 0.1), rgba(245, 183, 0, 0.1));
  position: relative;
}

.service-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.service-list li:last-child {
  border-bottom: none;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Projects Preview on Homepage - 2x2 Grid */
.projects-preview .projects-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 767px) {
  .projects-preview .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.project-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.project-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(245, 183, 0, 0.1), rgba(230, 57, 70, 0.1));
  position: relative;
}

.project-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Project Video Styling */
.project-video {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(245, 183, 0, 0.1), rgba(230, 57, 70, 0.1));
}

.project-video:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Success Stories */
.success-stories {
  background-color: var(--background-color);
}

.stories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.story-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.story-quote {
  font-style: italic;
  font-size: 1.125rem;
  margin: 1rem 0;
  color: var(--text-light);
}

.story-category {
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.story-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(15, 61, 62, 0.1), rgba(245, 183, 0, 0.1));
}

.story-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Get Involved */
.get-involved {
  background-color: white;
}

.involved-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Mobile optimization for get involved cards */
@media (max-width: 767px) {
  .involved-options {
    gap: 1.5rem;
  }

  /* Contact preview stacks vertically on mobile */
  .contact-preview .contact-content {
    flex-direction: column;
  }

  .contact-preview .contact-info,
  .contact-preview .contact-form {
    flex: none;
    width: 100%;
  }
}

.involved-card {
  background: var(--background-color);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.involved-card:hover {
  transform: translateY(-5px);
}

.involved-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Contact */
.contact {
  background-color: var(--background-color);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Homepage contact preview specific styling */
.contact-preview .contact-content {
  gap: 2rem;
}

.contact-preview .contact-info {
  flex: 1;
  min-width: 0; /* Prevent flex item from overflowing */
}

.contact-preview .contact-form {
  flex: 0 0 400px; /* Fixed width for form */
  max-width: 100%; /* Responsive on small screens */
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--background-color);
  border-radius: 0.5rem;
  border-left: 4px solid var(--secondary-color);
}

.contact-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  color: white;
  font-size: 1.25rem;
}

.contact-content h4 {
  margin: 0 0 0.75rem 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-content address {
  font-style: normal;
  line-height: 1.6;
  color: var(--text-color);
}

.contact-content p {
  margin: 0;
  line-height: 1.6;
}

.contact-content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-content a:hover {
  color: var(--secondary-color);
}

.office-hours p {
  margin: 0.5rem 0;
  color: var(--text-light);
}

.office-hours strong {
  color: var(--text-color);
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.recurring-donation-note {
  background: rgba(245, 183, 0, 0.12);
  border: 1px solid rgba(245, 183, 0, 0.35);
  color: var(--text-color);
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.frequency-highlight label {
  font-weight: 700;
}

.frequency-highlight select {
  border-color: rgba(245, 183, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.18);
}

/* Donate Page Styles */
.impact-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.impact-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #1f2933;
  line-height: 1.6;
}

.impact-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #f5b700;
  font-size: 1.25rem;
  line-height: 1.2;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 1rem 1rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.footer-message {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero p {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .logo-image {
    height: 50px;
  }

  .logo-text {
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .nav-container {
    padding: 0.75rem 4rem 0.75rem 1rem; /* Space for mobile toggle on right */
  }

  .logo {
    gap: 0.5rem;
  }

  .logo-image {
    height: 32px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .nav-menu {
    display: none;
    transform: translateX(100%);
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
  }

  .mobile-menu-toggle .hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Mobile UX refinements */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .mission-content,
  .commitments-content,
  .contact-content,
  .donation-content {
    flex-direction: column;
    gap: 1.5rem;
  }

  .executive-hero .mission-text {
    text-align: center;
  }

  .executive-hero .mission-image {
    margin: 0 auto;
  }

  form input,
  form select,
  form textarea,
  form button {
    min-height: 48px;
    font-size: 1rem;
    padding: 0.75rem 0.9rem;
  }

  .donation-form .form-group {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.85rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* ==== NAVIGATION LAYOUT STABILIZATION PATCH (DESKTOP ONLY) ==== */
@media (min-width: 768px) {
  .nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2.5rem;
  }

  .logo {
    max-width: 360px;
    flex-shrink: 0;
  }

  .logo-text {
    white-space: nowrap;
  }

  .nav-menu {
    position: static;
    transform: none;
    flex-wrap: nowrap;
    justify-content: center;
    display: flex;
    margin-left: auto;
  }

  .nav-menu a {
    white-space: nowrap;
  }

  .nav-menu a.nav-donate {
    white-space: nowrap;
    padding: 0.6rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .mission-content,
  .commitments-content {
    flex-direction: row;
  }

  .pillars-grid,
  .services-grid,
  .projects-grid,
  .stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .involved-options {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-content {
    flex-direction: row;
  }

  /* Homepage contact preview responsive layout */
  .contact-preview .contact-info {
    flex: 1 1 60%;
  }
 
  .contact-preview .contact-form {
    flex: 1 1 35%;
  }

/* Compact form styling for homepage contact preview */
.contact-preview .contact-form {
  padding: 1.5rem;
}

.contact-preview .contact-form h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.contact-preview .contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-preview .contact-form .form-group input,
.contact-preview .contact-form .form-group textarea {
  padding: 0.5rem;
  font-size: 0.9rem;
}

.contact-preview .contact-form button {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
}
}

@media (min-width: 1024px) {
  .pillars-grid,
  .services-grid,
  .projects-grid,
  .stories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 8rem 1rem;
  }

  .section {
    padding: 6rem 1rem;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-visible:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Team Section */
.team {
  background-color: var(--background-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 8px 20px rgba(245, 183, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.team-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(245, 183, 0, 0.4);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.team-photo:hover img {
  transform: scale(1.1);
}

.team-member h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.team-role {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.team-bio {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Project Videos */
.project-videos {
  background-color: var(--background-color);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-item {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
}

.video-item video {
  width: 100%;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.video-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.video-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Print Styles */
@media print {
  .navbar,
  .hero-buttons,
  .footer-links {
    display: none !important;
  }

  body {
    background: white !important;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Image Animation Effects */
.enhanced {
  animation: imageFadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.animate-in {
  animation: imageSlideUp 0.6s ease-out forwards;
}

@keyframes imageFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes imageSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Animations */
@keyframes heroTitleSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTextFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroButtonsScaleIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes heroButtonsFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes heroBackgroundZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

/* Professional Image Styling */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Image loading states */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Image containers with professional styling */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 61, 62, 0.1), rgba(245, 183, 0, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

/* Responsive image adjustments */
@media (max-width: 768px) {
  .pillar-image,
  .service-image,
  .project-image,
  .story-image {
    height: 180px;
  }

  .team-photo {
    width: 140px;
    height: 140px;
  }
}

/* Smooth transitions for all interactive elements */
a, button, .pillar-card, .service-card, .project-card, .story-card, .involved-card {
  transition: all 0.3s ease;
}

/* ==== TEAM SECTION FINAL POLISH PATCH ==== */
.team-section {
  row-gap: 2.5rem;
}

.team-card {
  margin-bottom: 0;
}

.team-combined h3 {
  letter-spacing: 0.02em;
  font-weight: 600;
}
