:root {
  --color-primary: #2d6a4f;
  --color-primary-light: #52b788;
  --color-primary-pale: #d8f3dc;
  --color-text: #1b4332;
  --color-text-muted: #52796f;
  --color-bg: #ffffff;
  --color-border: #b7e4c7;
  --font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --header-height: 72px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(27, 67, 50, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-light);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo:hover {
  color: var(--color-primary);
}

.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.site-nav a {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary-light);
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 67, 50, 0.55),
    rgba(45, 106, 79, 0.75)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero .subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  background: var(--color-primary-pale);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: #f8fdf9;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.12);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

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

/* CTA block */
.cta-block {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
}

.cta-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-block p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-primary-light);
  color: #fff;
  border-color: var(--color-primary-light);
}

.btn-primary:hover {
  background: #40916c;
  color: #fff;
  border-color: #40916c;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-primary);
}

.btn-dark {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-dark:hover {
  background: #1b4332;
  color: #fff;
  border-color: #1b4332;
}

/* Program sections */
.program-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.program-section:last-child {
  border-bottom: none;
}

.program-section.reverse .program-image {
  order: 2;
}

.program-section.reverse .program-text {
  order: 1;
}

.program-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.program-text h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.program-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.program-text ul {
  list-style: none;
  margin-top: 1rem;
}

.program-text ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.program-text ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
  font-weight: 700;
}

/* Form */
.form-wrapper {
  max-width: 560px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.2);
}

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

.form-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

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

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.checkbox-label.is-error {
  color: #c1121f;
}

.checkbox-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Privacy policy */
.policy-content {
  max-width: 720px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 2rem 0 0.75rem;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p,
.policy-content li {
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.policy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.policy-updated {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.contact-item p,
.contact-item a {
  font-size: 1rem;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.map-wrapper iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

/* About text */
.about-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #c8e6c9;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: #c8e6c9;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-bottom a {
  color: #c8e6c9;
}

.footer-bottom a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 1.5rem;
  }

  .site-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
  }

  .program-section,
  .program-section.reverse {
    grid-template-columns: 1fr;
  }

  .program-section.reverse .program-image,
  .program-section.reverse .program-text {
    order: unset;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    min-height: 320px;
  }
}
