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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1B4332;
  background: #FDFCF8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Hero gradient ── */
.hero-gradient {
  background: linear-gradient(145deg, #0F261C 0%, #1B4332 30%, #2D7A45 65%, #4E9963 100%);
  min-height: 100vh;
}

/* ── Badge label ── */
.badge-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2D7A45;
  background: #D9E8DF;
  padding: 0.4em 1em;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.badge-label-light {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B3D3BC;
  background: rgba(255,255,255,0.12);
  padding: 0.4em 1em;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

/* ── Buttons ── */
.btn-primary {
  background: #1B4332;
  color: #fff;
  border: 2px solid #1B4332;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.btn-primary:hover {
  background: #2D7A45;
  border-color: #2D7A45;
}

.btn-secondary {
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.btn-secondary:hover {
  transform: translateY(-1px);
}

/* ── Service cards ── */
.service-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(27,67,50,0.06), 0 4px 16px rgba(27,67,50,0.04);
  border: 1px solid rgba(27,67,50,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(27,67,50,0.12);
}

/* ── Contact cards ── */
.contact-card {
  background: #FDFCF8;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #D9E8DF;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(27,67,50,0.08);
}

/* ── Inputs ── */
.input-field {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
}
.input-field:focus {
  box-shadow: 0 0 0 3px rgba(45,122,69,0.15);
}

/* ── Section padding ── */
.section-py { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .section-py { padding-top: 6rem; padding-bottom: 6rem; } }

/* ── Scroll reveal (progressive enhancement) ── */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Nav scroll state ── */
header.scrolled {
  background: rgba(253,252,248,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(27,67,50,0.08);
}
header.scrolled .nav-link { color: #1B4332; }

/* ── Gallery hover ── */
.gallery-item {
  box-shadow: 0 2px 12px rgba(27,67,50,0.08);
  aspect-ratio: auto;
}
@media (min-width: 768px) {
  .gallery-item:nth-child(1) { aspect-ratio: 4/5; }
  .gallery-item:nth-child(2) { aspect-ratio: 1; }
  .gallery-item:nth-child(3) { aspect-ratio: 4/5; }
  .gallery-item:nth-child(4) { aspect-ratio: 1; }
  .gallery-item:nth-child(5) { aspect-ratio: 4/5; }
  .gallery-item:nth-child(6) { aspect-ratio: 1; }
}

/* ── Focus visible ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #2D7A45;
  outline-offset: 2px;
  border-radius: 4px;
}
