/* Color palette */
:root {
  --dark-green: #1E3D2F;
  --light-green: #CBD5C0;
  --white: #F9F7F1;
  --brown: #7E7464;
  --gray: #A89F91;
  --gold: #CCBD5C;
}

/* Base styles */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--dark-green);
  background-color: var(--white);
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  height: 100%;
}

/* Navbar styling */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light-green);
  padding: 0 20px;
  height: 60px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.site-logo {
  height: 42px;
  width: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark-green);
  margin: 3px 0;
  display: block;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--dark-green);
  text-decoration: none;
  font-weight: bold;
  padding: 0 10px;
}

.nav-links a:hover {
  color: var(--brown);
  transition: color 0.3s ease;
}

/* Hero section with video */
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  box-sizing: border-box;
  padding-top: 60px; /* Space for fixed navbar */
  scroll-snap-align: start;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  background: rgba(30, 61, 47, 0.6);
  padding: 60px 20px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background-color: var(--gold);
  color: var(--dark-green);
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--gray);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Section styling */
.section {
  padding: 60px 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-snap-align: start;
}

.section h2, .hero h1 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.section h2:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 15px auto 0;
}

/* How We Work section with background */
.model {
  background: url('assets/hero.jpg') center/cover no-repeat;
  color: white;
  position: relative;
}

.model:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 61, 47, 0.7);
  z-index: 0;
}

.model h2, .model ol {
  position: relative;
  z-index: 1;
}

.model h2:after {
  background: var(--white);
}

/* Why Habilitate section with background */
.why-bg {
  background: url('assets/why-bg.jpg') center/cover no-repeat;
  color: white;
  position: relative;
}

.why-bg:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 61, 47, 0.7);
  z-index: 0;
}

.why-bg h2, .why-bg p, .why-bg ul {
  position: relative;
  z-index: 1;
}

.why-bg h2:after {
  background: var(--white);
}

/* Three columns layout */
.three-cols {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.three-cols div {
  padding: 20px;
  background: rgba(168, 159, 145, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.three-cols div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Service item styling */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  background: rgba(203, 213, 192, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-item h3 {
  margin: 0 0 20px 0;
  color: var(--dark-green);
  font-size: 1.6rem;
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 0 20px 0;
  display: block;
  background-color: transparent;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid var(--dark-green);
  border-radius: 10px;
  padding: 10px;
}

.originate-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E3D2F'%3E%3Cpath d='M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z'/%3E%3C/svg%3E");
}

.rehabilitate-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E3D2F'%3E%3Cpath d='M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z'/%3E%3C/svg%3E");
}

.fund-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E3D2F'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
}

.service-item p {
  margin: 0;
  line-height: 1.6;
}

/* Steps list */
.steps, .icons-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 30px auto;
}

.steps li {
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  position: relative;
}

.steps li:before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  color: var(--dark-green);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Contact form */
form {
  max-width: 500px;
  margin: 0 auto;
}

input, textarea {
  display: block;
  width: 100%;
  margin: 15px 0;
  padding: 12px;
  border: 1px solid var(--gray);
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(204, 189, 92, 0.2);
}

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

button {
  background: var(--dark-green);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

button:hover {
  background: var(--gold);
  color: var(--dark-green);
}

/* Footer */
footer {
  background: var(--light-green);
  color: var(--dark-green);
  text-align: center;
  padding: 30px 20px;
  scroll-snap-align: start;
}

.footer-logo {
  display: block;
  margin: 0 auto 20px;
  height: 60px;
  width: auto;
}

/* Thank You Page Styles */
.thank-you {
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-logo {
  width: 150px;
  height: auto;
  margin-bottom: 30px;
}

.confirmation-icon {
  margin: 30px 0;
  background-color: rgba(203, 213, 192, 0.3);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.thank-you h1 {
  color: var(--dark-green);
  margin-bottom: 20px;
}

.thank-you p {
  max-width: 600px;
  margin: 0 auto 20px;
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Responsive styles */
@media (min-width: 768px) {
  .section h2, .hero h1 {
    font-size: 2.5rem;
  }
  
  .three-cols {
    flex-direction: row;
    justify-content: space-around;
  }
  
  .three-cols div {
    flex: 1;
    margin: 0 10px;
  }
  
  .steps li {
    padding-left: 30px;
  }
  
  .footer-logo {
    height: 80px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--light-green);
    padding: 10px 0;
    z-index: 999;
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .nav-links a {
    padding: 12px 20px;
    border-top: 1px solid rgba(30, 61, 47, 0.1);
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
}

/* Counter for steps */
.steps {
  counter-reset: step-counter;
}

/* Ensure proper spacing for all sections */
.section:not(:first-of-type) {
  margin-top: 0;
}

.icons-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 30px auto;
}

.icons-list li {
  margin-bottom: 15px;
  padding: 15px 15px 15px 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  position: relative;
  color: white;
  font-weight: 500;
}

.icons-list li:before {
  content: '✓';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gold);
  color: var(--dark-green);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

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

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 20px auto;
  color: var(--white);
}

.what-we-do h3 {
  margin-top: 0;
  color: var(--dark-green);
  font-size: 1.4rem;
}

.sectors p {
  max-width: 800px;
  margin: 20px auto;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact p {
  margin-bottom: 30px;
}

.contact a {
  color: var(--dark-green);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  transition: all 0.3s ease;
}

.contact a:hover {
  color: var(--gold);
  border-bottom-color: var(--dark-green);
}

/* For the honeypot field */
.hidden {
  display: none;
}

/* Redirect file for Netlify */
