:root {
  --green: #8DC63F;
  --green-dark: #6FA22C;
  --green-text: #4F7A26;
  --charcoal: #2B2B2B;
  --grey: #5C6360;
  --line: #e3e6e4;
  --bg-soft: #f5f7f4;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 104px; }
@media (max-width: 1000px) { section[id] { scroll-margin-top: 88px; } }

body {
  margin: 0;
  font: 16px/1.65 "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--charcoal);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-text); }

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

h1, h2, h3 { margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { line-height: 1.2; }
h2 { line-height: 1.25; }
/* 1.15 is too tight for the small uppercase h3s: it clips the glyph tops and
   the tails of commas and slashes. */
h3 { line-height: 1.35; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; }

.eyebrow {
  margin: 0 0 .6em;
  color: var(--green-text);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.center { text-align: center; }
.intro { max-width: 720px; margin: 0 auto 2.5rem; color: var(--grey); }

.skip {
  position: absolute; left: -9999px;
  background: var(--charcoal); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost { background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: #fff; }
.btn-ghost-light { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--charcoal); }

/* Header */
/* The header needs more room than the 1160px content column to fit the nav
   and the call-to-action on one line. */
.site-header .wrap { max-width: 1340px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { order: 0; flex: 0 0 auto; }
.brand img { width: 200px; height: auto; }
.header-actions { order: 2; display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-phone {
  display: inline-block;
  padding: 9px 0;
  font-weight: 800; font-size: 1.05rem;
  color: var(--green-text); text-decoration: none; white-space: nowrap;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  /* 44px minimum touch target */
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none; border: 0;
  font-size: 1.6rem; line-height: 1; color: var(--charcoal); cursor: pointer;
}
.nav { order: 1; display: flex; gap: 22px; width: auto; margin-left: 30px; }
.nav a {
  color: var(--charcoal); text-decoration: none; white-space: nowrap;
  font-weight: 600; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--green-text); border-bottom-color: var(--green); }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--charcoal);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  z-index: -2;
}
/* Scrim: heavy on the left so the headline always has contrast, clear on the
   right so the crew stay visible. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(18,22,20,.90) 0%, rgba(18,22,20,.74) 30%, rgba(18,22,20,.26) 56%, rgba(18,22,20,.04) 100%);
}
.hero-inner {
  display: flex;
  align-items: center;
  /* Sized so the trust strip below still clears the fold on a 768px-tall
     laptop screen, rather than being sliced in half by it. */
  min-height: min(66vh, 660px);
  /* svh keeps the hero stable while mobile browser toolbars show and hide */
  min-height: min(66svh, 660px);
  /* On short screens the hero is taller than its min-height because of this
     padding, so keep it modest or the trust strip is pushed past the fold. */
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: .2em; color: #fff; }
.hero h1 span { color: var(--green); display: block; }
.lede { font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; }
.hero-copy p { color: #dfe4e1; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-copy .lede { color: #fff; }
.hero .eyebrow { color: var(--green); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
/* Trust bar */
.trust { background: var(--charcoal); color: #fff; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.trust h3 { color: var(--green); margin-bottom: .35em; }
.trust p { margin: 0; color: #cfd4d1; font-size: .93rem; }

/* Sections */
.section { padding: 76px 0; }
.areas { background: var(--bg-soft); }

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: 6px;
  padding: 26px 22px;
  background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.09); transform: translateY(-3px); }
.card p { margin: 0; color: var(--grey); font-size: .94rem; }

/* About */
.about { background: var(--charcoal); color: #fff; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-img img { border-radius: 8px; }
.about h2 { color: #fff; }
.about .eyebrow { color: var(--green); }
.ticks { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.ticks li { padding: 7px 0 7px 30px; position: relative; color: #e6e9e7; }
.ticks li::before {
  content: "\2713";
  position: absolute; left: 0; top: 7px;
  color: var(--green); font-weight: 800;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}
/* 10 photos does not divide evenly into 4 columns, which leaves an empty gap
   on the last row. Let the last two photos each take two columns so that
   final row is full-width instead, closing the gallery on a strong pair. */
.gallery img:nth-last-child(-n+2) { grid-column: span 2; }

/* Contact */
.contact { background: var(--bg-soft); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}
/* The email address is one long unbreakable string. Without these it sets the
   grid track's min-content width and pushes the page wider than the viewport. */
.contact-inner > * { min-width: 0; }
.footer-grid > * { min-width: 0; }
.contact-list a, .site-footer a { overflow-wrap: anywhere; }
.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-list li { padding: 2px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.contact-list li:not(:has(a)) { padding: 10px 0; }
.contact-list a { display: inline-block; padding: 10px 0; text-decoration: none; }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey);
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  /* Must stay >= 16px or iOS Safari zooms the page when the field is focused. */
  font-size: 16px;
  line-height: 1.5;
  color: var(--charcoal);
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form button { width: 100%; }
.form-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: var(--bg-soft);
  font-size: .93rem;
  color: var(--charcoal);
}
.form-note a { font-weight: 700; }
.form-note-error { border-left-color: #c0392b; }

/* Thanks page */
.thanks { max-width: 700px; margin: 0 auto; text-align: center; padding: 40px 20px 60px; }
.thanks h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* Footer */
.site-footer { background: var(--charcoal); color: #cfd4d1; padding-top: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 40px;
}
.site-footer img { width: 200px; background: #fff; border-radius: 4px; padding: 8px; }
.tagline { margin: 14px 0 0; color: var(--green); font-weight: 600; font-size: .9rem; }
.social { margin: 20px 0 0; display: flex; gap: 12px; }
.site-footer .social a {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 44px circular target; icon-only keeps the footer's plain-text rhythm */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--charcoal);
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.site-footer .social a:hover,
.site-footer .social a:focus-visible { background: #fff; transform: translateY(-2px); }
.social svg { flex: 0 0 auto; }

/* Visible to screen readers only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.site-footer h3 { color: #fff; margin-bottom: .9em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0; font-size: .93rem; }
.site-footer li:not(:has(a)) { padding: 8px 0; }
.site-footer a { display: inline-block; padding: 9px 0; color: #cfd4d1; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-slim { padding-top: 0; }
.copyright { border-top: 1px solid #3d4441; padding-top: 18px; padding-bottom: 18px; }
.copyright p { margin: 0; font-size: .85rem; }

/* Sticky mobile call button */
.call-fab { display: none; }

/* Responsive */
/* The inline nav stops fitting beside the logo below this width, so it
   collapses into the menu button. */
@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--line);
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
}

/* Tightens the inline nav on mid-size desktops. Bounded below by the collapse
   point so it cannot re-space the stacked mobile menu. */
@media (min-width: 1101px) and (max-width: 1240px) {
  .nav { gap: 15px; margin-left: 22px; }
  .nav a { font-size: .8rem; }
}

@media (max-width: 1240px) {
  .brand img { width: 168px; }
  .header-phone { font-size: .95rem; }
  .header-actions .btn { padding: 11px 16px; font-size: .78rem; }
}

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  /* At 3 columns the first 9 photos already tile into exact rows of 3, so only
     the very last photo needs to fill its own row; the second-to-last reverts
     to a normal single-width tile. */
  .gallery img:nth-last-child(2) { grid-column: span 1; }
  .gallery img:nth-last-child(1) { grid-column: span 3; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; }
  .about-img { order: 2; }
  .hero-bg { object-position: 54% 50%; }
  .hero-inner { min-height: 0; padding-top: 56px; padding-bottom: 56px; }
  .hero::after {
    background: linear-gradient(180deg, rgba(18,22,20,.86) 0%, rgba(18,22,20,.70) 55%, rgba(18,22,20,.58) 100%);
  }
}

@media (max-width: 760px) {
  .brand img { width: 160px; }
  .header-phone,
  .header-actions .btn { display: none; }
  .section { padding: 54px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  /* At 2 columns, 10 photos already tile into exact rows with no gap - undo
     the wider spans from the larger breakpoints so every tile matches. */
  .gallery img:nth-last-child(-n+2) { grid-column: span 1; }
  .contact-form .row { grid-template-columns: 1fr; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .call-fab {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--green); color: #fff;
    text-align: center; text-decoration: none;
    font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    padding: 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

/* Short viewports (720p laptops, small windows): trim the hero so the trust
   strip below is not sliced by the fold. */
@media (min-width: 761px) and (max-height: 780px) {
  .hero-inner { padding-top: 34px; padding-bottom: 34px; }
  .lede { margin-bottom: .6rem; }
  .hero-btns { margin-top: 1.3rem; }
}

/* Landscape phones: a sticky header plus the fixed call bar ate 138px of a
   375px-tall screen. Drop the call bar, shrink the header, and bring the
   tap-to-call number back into the header so calling is still one tap. */
@media (max-width: 1100px) and (max-height: 480px) {
  .call-fab { display: none; }
  body { padding-bottom: 0; }
  .header-phone { display: block; }
  .header-inner { padding-top: 6px; padding-bottom: 6px; }
  .brand img { width: 140px; }
  .hero-inner { padding-top: 32px; padding-bottom: 32px; }
  .section { padding: 40px 0; }
}

@media (max-width: 460px) {
  .cards,
  .trust-grid,
  .footer-grid { grid-template-columns: 1fr; }
}
