/* =====================================
   CSS VARIABLES
===================================== */

@font-face {
    font-family: 'Recoleta';
    src: url('../fonts/Recoleta-Medium.woff2') format('woff2'),
        url('../fonts/Recoleta-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
:root {
  --primary: #12a36e;
  --dark: #0F1A17;
  --light: #ffffff;
  --muted: #6b7280;

  --navbar-bg: rgba(15, 23, 42, 0.6);
  --overlay: rgba(0, 0, 0, 0.55);

  --section-bg: #f2f1ef;
  --resources-bg: #f3f2ef;

  --lime: #C1BC2F;
  --orange: #EB7C24;
  --coral: #F3623F;
  --yellow: #f2cf5b;

  --impact-green: #5aa98a;
  --resource-green: #63c7a6;
  --footer-cta-bg: #3cbf88;
  --footer-cta-hover: #34a777;
  --border-light: rgba(255, 255, 255, 0.19);

  --radius-lg: 32px;
  --radius-full: 999px;

  --transition: all 0.3s ease;

  --logo-width: 186px;

  /* Typography - Semantic Font Sizes */
  --fs-h1: clamp(2.8rem, 5vw, 5.5rem);    /* h1 - Hero headings */
  --fs-h2: clamp(2rem, 4vw, 3.2rem);     /* h2 - Section titles */
  --fs-h3: 2.1rem;                        /* h3 - Subsection headings */
  --fs-h4: 1.5rem;                        /* h4 - Card headings */
  --fs-h5: 1.25rem;                       /* h5 - Smaller headings */
  --fs-h6: 1.2rem;                       /* h6 - Smallest headings */
  --fs-p: 1.4rem;                           /* p - Body text */
  --fs-small: 0.9rem;                    /* small - Small text */
  --fs-button: 19px;                      /* button - Button text */
}


/* =====================================
   GLOBAL
===================================== */
body {
  color: var(--dark);
  font-family: 'Geist','Recoleta';
  font-optical-sizing: auto;
  font-style: normal;
}

a {
  text-decoration: none;
}
h1, h2, h3, h4, h5, h6{
    font-family: 'Recoleta';
}
/* =====================================
   HEADER / NAVBAR
===================================== */
/* Default (top of page) - Taller header */
.custom-navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  transition: all 0.3s ease;
  padding: 0;
}

/* Container padding - taller at top */
nav .container{    
    border-bottom: 1px solid #ffffff30;
    padding-top: 18px;
    padding-bottom: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Right side group for button and toggler - hidden on desktop */
.custom-navbar .navbar-header-right {
    display: none;
}

/* On scroll - reduced height */
.custom-navbar.scrolled .container{
    border-bottom: 1px solid transparent;
    padding-top: 12px;
    padding-bottom: 12px;
}

.custom-navbar.scrolled {
  background: var(--navbar-bg); /* uses your variable */
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Logo size transition */
.custom-navbar .navbar-brand img {
  transition: all 0.3s ease;
}

.custom-navbar.scrolled .navbar-brand img {
  transform: scale(0.9);
}
.custom-navbar .nav-link {
  color: var(--light);
  font-weight: 400;
  transition: var(--transition);
  font-size: var(--fs-button);
  letter-spacing: 1px;
  font-family: 'Geist';
}
.site-logo img,
.navbar-brand img {
  width: var(--logo-width);
  height: auto;
  max-width: 100%;
}
.custom-navbar .nav-link:hover {
  color: var(--primary);
}

/* =====================================
   DROPDOWN MENU (DESKTOP)
===================================== */
/* Dropdown toggle arrow - Desktop default Bootstrap caret */
.custom-navbar .dropdown-toggle::after {
  margin-left: 0.5em;
  vertical-align: middle;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  transition: transform 0.3s ease;
}

/* Mobile: Hide Bootstrap caret and add custom + / − arrow */
@media (max-width: 991px) {
  .custom-navbar .dropdown-toggle::after {
    display: none;
  }

  .custom-navbar .dropdown-toggle {
    position: relative;
    padding-right: 2rem;
    display: flex;
    align-items: center;
  }

  .custom-navbar .dropdown-toggle::before {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--fs-p);
    font-weight: 300;
    line-height: 1;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--light);
  }

  /* Change to − when dropdown is open */
  .custom-navbar .dropdown.show .dropdown-toggle::before,
  .custom-navbar .dropdown-toggle[aria-expanded="true"]::before {
    content: '−';
  }
}

/* Dropdown menu container */
.custom-navbar .dropdown-menu {
  background: #1a3e3d;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* Enable pointer events when visible */
.custom-navbar .dropdown:hover .dropdown-menu,
.custom-navbar .dropdown:focus-within .dropdown-menu,
.custom-navbar .dropdown.show .dropdown-menu {
  pointer-events: auto;
}

/* Show dropdown on hover (desktop only) */
@media (min-width: 992px) {
  .custom-navbar .dropdown:hover .dropdown-menu,
  .custom-navbar .dropdown:focus-within .dropdown-menu,
  .custom-navbar .dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
    pointer-events: auto;
  }

  /* Rotate arrow on hover */
  .custom-navbar .dropdown:hover .dropdown-toggle::after,
  .custom-navbar .dropdown:focus-within .dropdown-toggle::after,
  .custom-navbar .dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  /* Ensure dropdown menu is positioned correctly */
  .custom-navbar .dropdown {
    position: relative;
  }

  .custom-navbar .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    z-index: 1000;
  }

  /* Bridge the gap between parent and menu with invisible padding */
  .custom-navbar .dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
  }
}

/* Dropdown items */
.custom-navbar .dropdown-item {
  color: var(--light);
  padding: 0.75rem 1.25rem;
  font-size: var(--fs-button);
  font-family: 'Geist';
  transition: var(--transition);
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
  outline: none;
}

/* Ensure dropdown items are clickable */
.custom-navbar .dropdown-item:active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--primary);
}

/* Dropdown divider */
.custom-navbar .dropdown-divider {
  border-color: var(--border-light);
  margin: 0.5rem 0;
}

/* Desktop CTA button in nav */
.desktop-cta-btn {
  display: block;
}

/* Mobile CTA Button - hidden on desktop */
.mobile-cta-btn {
  display: none !important;
}

/* Navbar Toggler (Hamburger Menu) */
.custom-navbar .navbar-toggler {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: var(--transition);
}

.custom-navbar .navbar-toggler:hover,
.custom-navbar .navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.custom-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em;
  height: 1.5em;
}

/* When navbar is scrolled, keep icon white */
.custom-navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-theme {
  background: var(--primary);
  color: var(--light);
  border-radius: var(--radius-full);
  padding: 8px 24px;
  font-weight: 600;
}

.btn-theme:hover {
  background: #0f8a5c;
  color: var(--light);
}
/* =====================================
   3D PILL BUTTON (GLOBAL)
===================================== */
.btn-pill-3d {
  --btn-bg: #4BCEA1;
  --btn-shadow: #147F46;
  --btn-text: #193E3C;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 16px;
  font-size: var(--fs-button);
  font-weight: 400;
  color: var(--btn-text);

  background: var(--btn-bg);
  border-radius: 999px;

  text-decoration: none;
  position: relative;
  letter-spacing: 1px;
  font-family: 'Geist';
  /* Bottom layer effect */
  box-shadow: 0 6px 0 var(--btn-shadow);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover */
.btn-pill-3d:hover {
  transform: translateY(4px);
  box-shadow: 0 6px 0 var(--btn-shadow);
  color: var(--btn-text);
}

/* Active (click) */
.btn-pill-3d:active {
  transform: translateY(10px);
  box-shadow: 0 0 0 var(--btn-shadow);
  background: var(--btn-bg);
}
/* =====================================
   HERO / BANNER
===================================== */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding: 0 80px; /* Space for arrows */
  box-sizing: border-box;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url('../images/children-grass.webp') center/cover no-repeat;
  z-index: 1;
}

/* Container wrapper for hero content */
.hero-section .container {
  position: relative;
  height: 100%;
  z-index: 2;
}

/* Swiper container */
.heroTextSwiper {
  height: 100%;
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* IMPORTANT: center each slide */
.heroTextSwiper .swiper-slide {
  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
  height: 100%;
}

/* Content */
.hero-content {
  max-width: 850px;
  padding: 0 16px;
  text-align: center;
  color: var(--light);
  margin: 0 auto;
  position: relative;
  width: 100%;
}

/* Text */
.hero-content h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
}

.hero-content p {
  font-size: var(--fs-p);
  margin:0 auto 20px auto;
  color: #e5e7eb;
  max-width: 700px;
  width: 100%;
}
.hero-section .swiper-button-next,
.hero-section .swiper-button-prev {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  margin: 0;  
  backdrop-filter: blur(10px);
}

/* REMOVE default swiper arrow */
.hero-section .swiper-button-next::after,
.hero-section .swiper-button-prev::after {
  display: none;
}

/* Font Awesome icon */
.hero-section .swiper-button-next i,
.hero-section .swiper-button-prev i {
  color: #ffffff;
  font-size: var(--fs-p);
}

/* Hover effect */
.hero-section .swiper-button-next:hover,
.hero-section .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.05);
}

/* Position - within container padding */
.hero-section .swiper-button-prev {
  left: 20px;
}

.hero-section .swiper-button-next {
  right: 20px;
}

/* =====================================
   MISSION SECTION
===================================== */
.mission-section {
  background: var(--section-bg);
  padding: 6rem 0;
}

.mission-text {
  font-size: var(--fs-p);
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: 1rem;
}

.mission-highlight {
  font-size: var(--fs-h5);
  font-weight: 700;
  color: #169A6C;
  margin-bottom: 3.5rem;
}

/* =====================================
   FEATURE CARDS
===================================== */
.feature-card {
  border-radius: 44px;
  padding: 3rem 2.5rem;
  text-align: center;
  height: 100%;
}

.feature-card h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--light);
  margin-bottom: 0;
}

.feature-card p {
  color: var(--light);
  margin-bottom: 2.5rem;
  font-size: var(--fs-p);
}

/* Card colors */
.bg-lime { background: var(--lime); }
.bg-orange { background: var(--orange); }

/* Icon circle */
.icon-circle {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle i {
  font-size: var(--fs-h1);
  color: #000;
}

.bg-coral { background: var(--coral); }
.bg-yellow { background: var(--yellow); }


/* =====================================
   RESOURCES & TOOLS SECTION
===================================== */
.resources-section {
  background: var(--section-bg);
  padding: 0 0 8rem 0;
  margin-top: -1px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: var(--fs-p);
  line-height: 1;
  color: #150832;
  letter-spacing: 0.5px;
}

/* Resource Card */
.resource-card {
  background: #F2F1EF;
  border-radius: 50% 50% 4px 4px;
  padding: 4rem 2rem 2.5rem;
  text-align: center;
  height: 100%;
  box-shadow: -1px 14px 40px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-6px);
}

/* Icon */
.resource-icon {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-icon i {
  font-size: var(--fs-h2);
  color: #1f2937;
}

/* Icon Colors */
.bg-green { 
  background: var(--resource-green); 
  padding: 20px 30px 0 30px;
}
.bg-yellow { background: var(--yellow); }
.bg-coral { background: var(--coral); }

/* Text */
.resource-card h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

/* =====================================
   IMPACT SECTION
===================================== */
.impact-section {
  background: var(--impact-green);
  padding: 6rem 0;
  color: var(--light);
  overflow: hidden;
}

.impact-title {
  font-size: var(--fs-h2);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.impact-title span {
  text-transform: uppercase;
}

.impact-lead {
  font-size: var(--fs-p);
  line-height: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.impact-text {
  font-size: var(--fs-p);
  line-height: 1.3;
  opacity: 0.95;
}

/* =====================================
   POLAROID IMAGES
===================================== */
.impact-images {
  position: relative;
}
.polaroid{
    display: flex;
    align-items: center;
    justify-content: center;
    
}
.polaroid img {
  display: block;
  width: 100%;
  height: auto; 
  max-height: 470px;
}


/* =====================================
   EXPLAINER SECTION
===================================== */

.explainer-section {
  background: #f2f1ef;
  padding:3rem 0 6rem 0;
}

/* Row container - ensure equal height columns */
.explainer-section .row {
  display: flex;
  align-items: stretch;
}

/* Bootstrap columns - ensure they stretch to full height */
.explainer-section .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

/* Card container - flexbox column */
.explainer-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.explainer-media {
  position: relative;
  background: #F3EFE9;
  padding: 24px 44px 97px 44px;
  border-radius: 4px;  
  box-shadow: -4px -1px 20px 10px rgba(0, 0, 0, 0.20);
  margin-bottom: 0.3rem;
  flex: 1 1 0;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Green panel */
.explainer-media .bg-green {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.explainer-media.bg-green {
  background: var(--impact-green);
}

/* Speaker image */
.speaker-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  border-radius: 0px;
  display: block;
  object-fit: contain;
}

/* Polaroid style */
.explainer-media .polaroid {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}

.explainer-media .polaroid img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Text */
.explainer-text {
  font-size: var(--fs-p);
  line-height: 1.6;
  color: #1A1D1D;
  flex-shrink: 0;
}
/* =====================================
   FOOTER CTA SECTION
===================================== */

.footer-cta {
  background: var(--impact-green);
  padding: 6rem 0;
  color: var(--light);
}

/* Left icon */
.footer-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-icon-wrap img {
  width: 335px;
  height: auto;
  max-width: 100%;
}

/* Right content */
.footer-content {
  max-width: 420px;
}

.footer-brand img {
  width: 250px; /* logo size requirement */
}

/* Text */
.footer-content h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.footer-content p {
  font-size: var(--fs-small);
  margin-bottom: 1.5rem;
  max-width: 245px;
  margin:5px auto 25px auto;
}
.footer-content .form-group p {
	 margin:0 auto;
}
/* Form */
.footer-form input {
  width: 100%;
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 16px;
  margin-bottom: 0px;
  font-size: var(--fs-small);
  text-align: center;
  max-width: 245px;
}

/* Reuse same CTA button style */
.btn-cta {
  width: 100%;
  background: var(--footer-cta-bg);
  color: var(--btn-text);
  border-radius: var(--radius-full);
  padding: 10px;
  font-weight: 400;
  border: none;
  transition: var(--transition);
  max-width: 245px;
}

.btn-cta:hover {
  background: var(--footer-cta-hover);
}

/* Footer links */
.footer-links {
  margin-top: 1.8rem;
}

.footer-links a {
  color: var(--light);
  margin:0 10px;
  font-size: var(--fs-p);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #193e3c;
}

/* Form validation styles */
.footer-form .form-group {
  margin-bottom: 2px;
  position: relative;
}

.footer-form input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.footer-form input[aria-invalid="true"] {
  border: 2px solid #ef4444;
  background-color: #fef2f2;
}

.footer-form input[aria-invalid="false"] {
  border: 2px solid #10b981;
}

.error-message {
  display: none;
  color: #fca5a5;
  font-size: var(--fs-small);
  margin-top: 4px;
  text-align: center;
  padding-left: 4px;
}

.success-message {
  display: none;
  color: #86efac;
  font-size: var(--fs-small);
  margin-top: 1rem;
  padding: 12px;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}