@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --primary: #0D2818;
  --secondary: #163D26;
  --accent: #2D9B5A;
  --accent-hover: #38B96C;
  --bg-color: #FFFFFF;
  --bg-alt: #F4FAF6;
  --text-main: #0D1F14;
  --text-muted: #4A6355;
  --border-color: #D1E8D9;
  
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2rem;
  transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
}

.site-header.scrolled {
  background-color: var(--primary);
  padding: 1rem 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.site-header.scrolled .nav-link,
.site-header.scrolled .logo-text {
  color: white;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent);
  color: var(--primary);
  font-weight: 600;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  font-size: 0.95rem;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

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

/* Mobile Menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  transition: all 0.3s ease;
}
.site-header.scrolled .mobile-toggle span {
  background-color: white;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { top: 18px; }

.mobile-toggle.is-active span:nth-child(1) { transform: rotate(45deg); top: 9px; background-color: white; }
.mobile-toggle.is-active span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-active span:nth-child(3) { transform: rotate(-45deg); top: 9px; background-color: white; }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.mobile-menu.is-active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu .nav-link {
  color: white;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

/* Hero eyebrow label */
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 10rem 2rem 6rem;
  background-color: var(--bg-alt);
}

.hero-content {
  max-width: 860px;
  margin: 0;
  text-align: left;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin-bottom: 1.25rem;
  color: var(--primary);
  line-height: 1.1;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-rule {
  border: none;
  border-top: 3px solid var(--accent);
  width: 60px;
  margin: 0 0 1.75rem 0;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 2.5rem;
  line-height: 1.7;
}

/* Sections */
.section {
  padding: 6rem 2rem;
}

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

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Cards */
.card {
  padding: 2.5rem;
  background-color: var(--bg-alt);
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Stats */
.stats-section {
  background-color: var(--primary);
  color: white;
  padding: 5rem 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form-error {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.form-control.is-invalid {
  border-color: #DC2626;
}

.form-control.is-invalid + .form-error {
  display: block;
}

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: white;
  padding: 5rem 2rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dark Section */
.bg-dark {
  background-color: var(--primary);
  color: white;
}

.bg-dark h2, .bg-dark h3 {
  color: white;
}

/* Page specific */
.page-header {
  background-color: var(--primary);
  color: white;
  padding: 10rem 2rem 5rem;
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}
