/* ---------- Design tokens ---------- */
:root {
  --color-primary: #15803D;
  --color-primary-dark: #0F5C2C;
  --color-secondary: #22C55E;
  --color-accent: #C2620B;
  --color-accent-dark: #9C4E08;
  --color-background: #FBFBF7;
  --color-surface: #F0F5EE;
  --color-foreground: #1C2B21;
  --color-muted: #55635B;
  --color-border: #DCE6D8;
  --color-on-primary: #FFFFFF;

  --font-heading: "Lora", Georgia, serif;
  --font-body: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(28, 43, 33, 0.06);
  --shadow-md: 0 12px 32px rgba(28, 43, 33, 0.10);
  --shadow-lg: 0 24px 56px rgba(28, 43, 33, 0.16);

  --header-h: 76px;
  --max-width: 1200px;
  --transition: 220ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body, h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--color-foreground);
  background: var(--color-background);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-primary-dark); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--color-primary); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 44px;
}
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(251, 251, 247, 0.97);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(251, 251, 247, 0.97);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.brand img { height: 30px; width: auto; }

.nav ul { display: flex; gap: var(--space-4); }
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-foreground);
  position: relative;
  padding: 6px 2px;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--color-accent);
  transition: right var(--transition);
}
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--color-primary-dark);
  padding: 10px 18px;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.header-phone svg { width: 16px; height: 16px; fill: currentColor; }
.header-phone:hover { background: var(--color-primary); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--color-foreground);
  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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,30,20,0.55) 0%, rgba(15,30,20,0.45) 45%, rgba(11,20,14,0.8) 100%);
}
.hero-inner { position: relative; color: #fff; max-width: 720px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #C9F2D6;
  margin-bottom: var(--space-2);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: #fff;
  margin-bottom: var(--space-2);
}
.hero-lead {
  font-size: 1.15rem;
  color: #EAF3E7;
  max-width: 56ch;
  margin-bottom: var(--space-4);
}
.hero-cta { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: var(--space-7) 0; }
.section-alt { background: var(--color-surface); }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: var(--space-2); }
.section-lead { color: var(--color-muted); max-width: 60ch; font-size: 1.05rem; margin-bottom: var(--space-5); }

/* ---------- Services ---------- */
.grid { display: grid; gap: var(--space-3); }
.services-grid { grid-template-columns: repeat(3, 1fr); }

.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card h3 { font-size: 1.15rem; margin: var(--space-2) 0 8px; }
.service-card p { color: var(--color-muted); font-size: 0.95rem; }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-primary);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.services-grid .icon svg { fill: currentColor; stroke: none; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1000 / 940;
  object-fit: cover;
}
.about-content p { color: var(--color-muted); font-size: 1.05rem; margin-bottom: var(--space-3); }
.about-content .section-title { color: var(--color-primary-dark); }

.check-list { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.check-list svg {
  flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
  fill: none; stroke: var(--color-primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  background: var(--color-surface); border-radius: 50%; padding: 4px; box-sizing: content-box;
}

.stats { display: flex; gap: var(--space-5); }
.stat { display: flex; flex-direction: column; }
.stat strong { font-family: var(--font-heading); font-size: 2.2rem; color: var(--color-accent); }
.stat span { color: var(--color-muted); font-size: 0.9rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- Testimonials ---------- */
.testimonial-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.testimonial-card p { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-foreground); line-height: 1.5; }
.testimonial-card footer { color: var(--color-accent); font-weight: 700; font-size: 0.9rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  text-align: center;
  padding: var(--space-6) 0;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: var(--space-2); }
.cta-banner p { color: #DCF2E2; margin-bottom: var(--space-4); font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: stretch;
}
.contact-cards { display: flex; flex-direction: column; gap: var(--space-2); }
.contact-card {
  display: flex; align-items: center; gap: var(--space-2);
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  transition: box-shadow var(--transition), transform var(--transition);
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-card h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-card span { color: var(--color-muted); font-size: 0.95rem; }

.contact-socials { display: flex; gap: var(--space-2); margin-top: 4px; }
.contact-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-surface); color: var(--color-primary);
  transition: background var(--transition), color var(--transition);
}
.contact-socials a svg { width: 20px; height: 20px; fill: currentColor; }
.contact-socials a:hover { background: var(--color-primary); color: #fff; }

.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 320px; }
.contact-map iframe { width: 100%; height: 100%; border: 0; min-height: 320px; }

/* ---------- Footer ---------- */
.site-footer { background: #12271A; color: #DCEBE0; padding-top: var(--space-6); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 27px; margin-bottom: var(--space-2); filter: brightness(0) invert(1); }
.footer-brand p { color: #9FBBA9; margin-bottom: var(--space-2); }
.footer-brand .contact-socials a { background: rgba(255,255,255,0.08); color: #EAF3E7; }
.footer-brand .contact-socials a:hover { background: var(--color-accent); color: #fff; }

.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--color-secondary); }
.footer-contact span { color: #9FBBA9; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) 0;
  color: #7E9C8B;
  font-size: 0.85rem;
}
.back-to-top {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background var(--transition);
}
.back-to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.back-to-top:hover { background: var(--color-accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }

  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 24, 18, 0.45);
    opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
    z-index: 90;
  }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 82vw);
    background: var(--color-background);
    padding: calc(var(--header-h) + var(--space-3)) var(--space-3) var(--space-4);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 95;
  }
  .nav.is-open { transform: translateX(0); }
  .nav ul { flex-direction: column; gap: var(--space-1); }
  .nav a {
    display: block;
    padding: 14px 4px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav a::after { display: none; }

  .header-phone span { display: none; }
  .header-phone { padding: 10px; }
  .nav-toggle { display: flex; position: relative; z-index: 96; }

  .hero { min-height: 100vh; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-bottom { flex-direction: column; gap: var(--space-2); text-align: center; }
}
