:root {
  --fg-green: #5fa829;
  --fg-green-bright: #7cc63a;
  --fg-green-dark: #4c8720;
  --fg-green-light: #eaf5df;
  --fg-black: #14170f;
  --fg-charcoal: #20241a;
  --fg-charcoal-2: #2a2f22;
  --fg-border: #e1e5db;
  --fg-bg: #f5f7f2;
  --fg-text: #1c1f17;
  --fg-text-muted: #626b57;
  --fg-text-on-dark: #c9cfbf;
  --fg-white: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 23, 15, 0.06), 0 4px 18px rgba(20, 23, 15, 0.07);
  --max: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--fg-bg);
  color: var(--fg-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg-green-dark); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--fg-white);
  color: var(--fg-black);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-primary { background: var(--fg-green); color: var(--fg-white); }
.btn-primary:hover { background: var(--fg-green-dark); }
.btn-outline { border-color: rgba(255, 255, 255, 0.35); color: var(--fg-white); }
.btn-outline:hover { border-color: var(--fg-white); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 15, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--fg-text-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav a:hover { color: var(--fg-white); }
.nav a.btn { color: var(--fg-white); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(95, 168, 41, 0.22), transparent 60%),
    linear-gradient(180deg, var(--fg-black), var(--fg-charcoal));
  color: var(--fg-white);
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-green-bright);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 15ch;
}
.hero h1 span { color: var(--fg-green-bright); }
.hero p.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--fg-text-on-dark);
  max-width: 58ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}
.hero-tags li {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-text-on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--fg-green-dark); margin-bottom: 10px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-head p { color: var(--fg-text-muted); font-size: 17px; margin: 0; }

/* About */
.about { background: var(--fg-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-copy p { font-size: 17px; margin: 0 0 18px; color: var(--fg-text); }
.about-copy p:last-child { margin-bottom: 0; }
.values { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.values li {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--fg-bg);
  border: 1px solid var(--fg-border);
  border-radius: var(--radius);
}
.values .check {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fg-green);
  color: var(--fg-white);
  display: grid;
  place-items: center;
}
.values strong { display: block; margin-bottom: 2px; }
.values span { color: var(--fg-text-muted); font-size: 15px; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service {
  background: var(--fg-white);
  border: 1px solid var(--fg-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.service:hover { transform: translateY(-2px); border-color: var(--fg-green); }
.service .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--fg-green-light);
  color: var(--fg-green-dark);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.service h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.service p { margin: 0; color: var(--fg-text-muted); }

/* CTA band */
.cta-band {
  background: var(--fg-black);
  color: var(--fg-white);
  padding: 64px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; }
.cta-band p { margin: 0; color: var(--fg-text-on-dark); }

/* Contact */
.contact { background: var(--fg-white); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--fg-border);
  border-radius: var(--radius);
  background: var(--fg-bg);
  text-decoration: none;
  color: var(--fg-text);
  transition: border-color 0.15s;
}
a.contact-card:hover { border-color: var(--fg-green); }
.contact-card .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--fg-black);
  color: var(--fg-green-bright);
  display: grid;
  place-items: center;
}
.contact-card .label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-text-muted);
  margin-bottom: 4px;
}
.contact-card .value { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  align-items: start;
}
.contact-stack { display: grid; gap: 16px; }
.contact-card a.value { display: block; color: var(--fg-text); text-decoration: none; }
.contact-card a.value:hover { color: var(--fg-green-dark); }

/* Quote form */
.quote-form {
  background: var(--fg-white);
  border: 1px solid var(--fg-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.quote-form h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.form-intro { margin: 0 0 20px; color: var(--fg-text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--fg-text);
  background: var(--fg-bg);
  border: 1px solid var(--fg-border);
  border-radius: 8px;
  padding: 11px 13px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--fg-green);
  box-shadow: 0 0 0 3px rgba(95, 168, 41, 0.18);
  background: var(--fg-white);
}
.field.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.form-status:empty { display: none; }
.form-status.success { color: var(--fg-green-dark); }
.form-status.error { color: #c73e3e; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--fg-black);
  color: var(--fg-text-on-dark);
  padding: 40px 0;
  font-size: 14px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer img { height: 34px; width: auto; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--fg-text-on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--fg-white); }

/* ---------- Legal pages ---------- */
.legal-hero {
  background: linear-gradient(180deg, var(--fg-black), var(--fg-charcoal));
  color: var(--fg-white);
  padding: 64px 0 56px;
}
.legal-hero h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.02em; }
.legal-hero p { margin: 8px 0 0; color: var(--fg-text-on-dark); }
.legal { background: var(--fg-white); padding: 56px 0 80px; }
.legal .container { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--fg-text); font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .callout {
  background: var(--fg-green-light);
  border-left: 4px solid var(--fg-green);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0 0 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .contact-layout { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .quote-form { padding: 22px; }
  .site-header .btn-outline { display: none; }
}
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
  .services-grid, .contact-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
  .brand img { height: 34px; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
