/* ===== Custom Properties ===== */
:root {
  --forest: #1B4332;
  --forest-mid: #2D6A4F;
  --forest-light: #40916C;
  --sage: #52B788;
  --sage-light: #95D5B2;
  --mint: #B7E4C7;
  --cream: #F8F6F0;
  --cream-warm: #F3F0E8;
  --white: #FFFFFF;
  --text-dark: #1A2E23;
  --text-mid: #3D5A48;
  --text-light: #6B8F78;
  --text-muted: #9BB5A5;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(27,67,50,0.06), 0 1px 2px rgba(27,67,50,0.04);
  --shadow-md: 0 4px 16px rgba(27,67,50,0.08), 0 2px 4px rgba(27,67,50,0.04);
  --shadow-lg: 0 12px 40px rgba(27,67,50,0.12), 0 4px 12px rgba(27,67,50,0.06);
  --shadow-glow: 0 0 60px rgba(82,183,136,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: var(--font-body); font-size: 1rem; }

/* ===== Utilities ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248,246,240,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27,67,50,0.06);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--forest);
  font-weight: 400;
}
.nav-logo-icon { color: var(--forest); flex-shrink: 0; }
.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 16px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: rgba(27,67,50,0.06); color: var(--forest); }
.nav-cta {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--forest);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--forest-mid); transform: translateY(-1px); }
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(248,246,240,0.98);
  backdrop-filter: blur(16px);
  padding: 16px 24px 24px;
  border-bottom: 1px solid rgba(27,67,50,0.06);
  box-shadow: var(--shadow-md);
  gap: 4px;
}
.nav-links.mobile-open a { padding: 12px 16px; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--forest) 0%,
    var(--forest-mid) 30%,
    var(--forest-light) 55%,
    var(--sage) 75%,
    var(--sage-light) 100%
  );
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.hero-glow--1 {
  width: 600px; height: 600px;
  background: var(--sage-light);
  top: -200px; right: -100px;
}
.hero-glow--2 {
  width: 400px; height: 400px;
  background: var(--mint);
  bottom: -100px; left: -50px;
  opacity: 0.3;
}
.hero-glow--3 {
  width: 300px; height: 300px;
  background: var(--sage);
  top: 40%; left: 30%;
  opacity: 0.2;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-accent {
  font-style: italic;
  color: var(--mint);
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.trust-item svg { color: var(--sage-light); flex-shrink: 0; }
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(27,67,50,0.25);
}
.btn--primary:hover { background: var(--forest-mid); box-shadow: 0 8px 24px rgba(27,67,50,0.3); }
.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.2); }
.btn--light {
  background: var(--white);
  color: var(--forest);
  box-shadow: var(--shadow-md);
}
.btn--light:hover { box-shadow: var(--shadow-lg); }
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.1); }
.btn--full { width: 100%; justify-content: center; }

/* ===== Section Shared ===== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(27,67,50,0.07);
  color: var(--forest-mid);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Services ===== */
.services {
  padding: 100px 0;
  background: var(--cream);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid rgba(27,67,50,0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(82,183,136,0.2);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(27,67,50,0.07), rgba(82,183,136,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  margin-bottom: 20px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.card-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== About ===== */
.about {
  padding: 100px 0;
  background: var(--cream-warm);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
.about-images {
  position: relative;
  max-width: 500px;
}
.about-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img--main { width: 100%; }
.about-img--main img, .about-img--secondary img { width: 100%; height: 100%; object-fit: cover; }
.about-img--secondary {
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 55%;
  border: 5px solid var(--cream-warm);
}
.about-stat {
  position: absolute;
  top: -20px;
  left: -10px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--forest);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.about-content .section-tag { margin-bottom: 16px; }
.about-content .section-title { margin-bottom: 24px; text-align: left; }
.about-text {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}
.feature-check { color: var(--sage); flex-shrink: 0; }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-content .section-title,
  .about-content .section-tag,
  .about-text { text-align: left; }
}

/* ===== Gallery ===== */
.gallery {
  padding: 100px 0;
  background: var(--cream);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ===== CTA ===== */
.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 50%, var(--forest-light) 100%);
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.cta-glow--1 { width: 400px; height: 400px; background: var(--sage-light); top: -100px; left: -50px; }
.cta-glow--2 { width: 300px; height: 300px; background: var(--mint); bottom: -80px; right: -50px; }
.cta-content {
  position: relative;
  text-align: center;
  max-width: 680px;
  z-index: 1;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.cta-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--cream-warm);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(27,67,50,0.06);
  transition: box-shadow var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); }
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(27,67,50,0.07), rgba(82,183,136,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest);
  flex-shrink: 0;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.contact-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}
.contact-card a {
  color: var(--forest-mid);
  font-weight: 500;
  transition: color var(--transition);
}
.contact-card a:hover { color: var(--forest); }
.contact-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(27,67,50,0.06);
  box-shadow: var(--shadow-md);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(27,67,50,0.12);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(82,183,136,0.1);
  border: 1px solid rgba(82,183,136,0.25);
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}
.form-success svg { color: var(--sage); flex-shrink: 0; }

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Footer ===== */
.footer {
  background: var(--forest);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-inner { display: flex; flex-direction: column; gap: 48px; }
.footer-brand { max-width: 360px; }
.footer-logo { color: var(--white); margin-bottom: 16px; }
.footer-logo-icon { color: var(--white); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
