/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: clamp(14px, 1.5vw, 18px);
}

:root {
  --color-primary: #2a7d4f;
  --color-primary-dark: #1e5c3a;
  --color-secondary: #4a90a4;
  --color-accent: #e8f5e9;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-alt: #f8faf8;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 8px;
  --max-width: 1100px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--color-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 4.5rem;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff0000;
  border-radius: var(--radius);

}

.nav-logo img {
    height: 32px;
    width: auto;
    display: block;
    /* Initial color (will be overridden by JS) */
    background-color: #ff0000; 
  }

.logo-text {
  white-space: nowrap;
  font-weight: 600;
  font-size: 1rem;
}



/* Updated hover effect: Keep the filter active, just scale the size */
.nav-logo:hover img {
    transform: scale(1.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Desktop Menu: Flex items evenly across remaining space */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  flex: 1;
  margin-left: 2rem;
  height: 100%;
}


.nav-menu li {
  flex: 1;
  height: 100%;
  display: flex;
}


.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  color: var(--color-text);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  font-weight: 500;
}

.nav-link:hover {
  background: var(--color-accent);
  text-decoration: none;
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
  background: var(--color-accent);
}

/* Removed .nav-cta entirely so the Feedback button matches the rest */

/* ===== MOBILE TOGGLE ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hamburger container */
.hamburger {
  position: relative;
  width: 2rem;
  height: 1.4rem;
}

/* Bars */
.hamburger::before,
.hamburger::after,
.hamburger span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s ease;
}

.hamburger::before { top: 0; }
.hamburger span { top: 0.55rem; }
.hamburger::after { bottom: 0; }

/* Hamburger → X animation */
.nav-toggle.active .hamburger::before {
  transform: translateY(0.55rem) rotate(45deg);
}

.nav-toggle.active .hamburger span {
  opacity: 0;
}

.nav-toggle.active .hamburger::after {
  transform: translateY(-0.55rem) rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 4.5rem; 
    left: -100%;
    width: 100vw; 
    height: calc(100vh - 4.5rem); 
    background: var(--color-bg);
    flex-direction: column; 
    margin: 0;
    padding: 0;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    width: 100%;
    flex: 1; 
    border-bottom: 1px solid var(--color-accent);
  }

  .nav-link {
    font-size: clamp(1.2rem, 5vw, 2rem); 
    border-radius: 0; 
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-accent);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--color-accent) 0%, #d4edda 100%);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== FEATURES ===== */
.features {
  padding: 4rem 0;
}

.features h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--color-primary);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 0.5rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--color-primary);
}

.cta-section .btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--color-accent);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-light);
}

/* ===== CONTENT SECTION ===== */
.content-section {
  padding: 3rem 0;
}

.content-section h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.content-section p {
  margin-bottom: 1rem;
}
/* ===== TEAM GRID ===== */
.team-grid {
  display: grid;
  border: #1e5c3a;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 5rem;
  /* 
     Crucial Fix: 
     The icon has a top offset of -60px (via .profile-container).
     We add a large margin-top to the grid so it doesn't overlap the "Our Team" text.
  */
  margin-top: 5rem; 
  padding: 0 1rem;
}

.team-card {
  /* 
     Padding-top is key here: 
     It must be larger than the icon's negative offset (-60px).
     80px allows the icon to float half-out and half-in.
  */
  padding-top: 80px; 
  padding-bottom: 2rem;
  position: relative;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease;
}


/* ===== SERVICES ===== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-item {
  background: var(--color-bg-alt);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
}

.service-item h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

/* ===== RESOURCES ===== */
.resource-list {
  list-style: none;
  margin-bottom: 2rem;
}

.resource-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

/* ===== FEEDBACK ===== */
/* Centering wrapper that fills the screen width */
.feedback-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 0.5rem;
}

/* Form container with limited width for readability */
.feedback-form {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 100%;
  box-shadow: var(--shadow);
  text-align: center; /* This centers the h2 and p elements */
  justify-content: center; /* This centers the .feedback-form child horizontally */
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Updated iframe container to fit inside the centered .feedback-form */
.responsive-iframe-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 90%; 
  overflow: hidden;
  justify-content: center; /* This centers the .feedback-form child horizontally */
  margin-top: 1rem;
}

.responsive-iframe-container iframe {
  position: absolute;
  inset: 0;
  justify-content: center; /* This centers the .feedback-form child horizontally */
  width: 100%;
  height: 100%;
}
.profile-container {
  display: flex;
  justify-content: center;
  position: absolute; /* This pulls it out of the normal flow */
  top: -2rem;         /* Moves it up into the padded space */
  left: 0;
  right: 0;
}

.profile-icon {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50% !important;
  border: 4px solid var(--color-bg-alt); /* Matches background to "cut out" the circle */
  box-shadow: var(--shadow);
  display: block;
}
.history-content {
  max-width: 800px; /* Keeps the text from spanning too wide */
  margin: 0 auto;   /* Centers the block on the page */
  padding: 2rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 5px solid var(--color-primary); /* Adds a visual "history" accent */
}

.history-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.mission-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 0;
}

.mission-statement {
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.4;
  margin-top: 1rem;
}

/* Optional: Add a subtle icon above the heading */
.mission-content h2::before {
  content: '🎯';
  display: block;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}
@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr; /* Forces a single column on small phones */
    padding: 0 1rem;
  }
}