:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f7f5;
  color: #1d1d1d;
  font-size: 16px;
  line-height: 1.6;
  --brand: #1f7a3d;
  --brand-dark: #166a31;
  --brand-darker: #0f5026;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 2px;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline-color: #f9f7f1;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  background: #fff;
  color: var(--brand-darker);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 14px 14px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

body {
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  min-height: 84vh;
  padding: 2.5rem 0 4rem;
  display: grid;
  gap: 3rem;
  background: linear-gradient(135deg, #1f7a3d 0%, #2a903e 55%);
  color: #f9f7f1;
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(19, 49, 33, 0.18), rgba(19, 49, 33, 0.55));
  pointer-events: none;
  z-index: 0;
}

.header-inner,
.site-header .hero-content {
  position: relative;
  z-index: 1;
}

.header-inner {
  display: grid;
  place-items: center;
  gap: 1.25rem;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 320px;
  border-radius: 20px;
  object-fit: contain;
  object-position: center;
  background: #f9f7f1;
  padding: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #f9f7f1;
  text-decoration: none;
  font-weight: 600;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #f9f7f1;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  cursor: pointer;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.site-header .hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #d6e3d1;
}

.site-header .hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0 0 1.2rem;
  max-width: 20ch;
  color: #f9f7f1;
}

.site-header .hero-content p {
  max-width: 45rem;
  margin: 0 0 1.75rem;
  color: #e8ede5;
}

.site-header .hero-box {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(20, 20, 20, 0.12);
  padding: 2rem;
}

.site-header .hero-box h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.site-header .hero-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.site-header .hero-box li {
  padding-left: 1.2rem;
  position: relative;
}

.site-header .hero-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #f9f7f1;
}

.section {
  padding: 4rem 0;
}

.section-header span {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.services-grid,
.contact-grid,
.slideshow-controls {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.slideshow {
  position: relative;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 15, 15, 0.06);
  min-height: 28rem;
}

/* visibility rides along with opacity so inactive slides drop out of
   hit-testing instead of sitting invisibly on top of the active slide.
   NOTE: no decoding="async" on the slide <img>s — Chrome can rasterise the
   layer before the async decode lands and never repaint (white slideshow). */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
  display: grid;
  place-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  border: none;
  border-radius: 0;
}

.slideshow-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.slide-btn {
  background: var(--brand);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  cursor: pointer;
  font-weight: 700;
}

.slide-btn:hover {
  background: var(--brand-dark);
}

.slide-counter {
  font-weight: 700;
  color: #54504b;
  min-width: 4.5rem;
  text-align: center;
}

/* Fullscreen slideshow styling.
   .fullscreen is set via the Fullscreen API; .fullscreen-fallback is the
   fixed-position stand-in for browsers without it (iPhone Safari). */
.slideshow.fullscreen,
.slideshow.fullscreen-fallback {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  border-radius: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.slideshow.fullscreen .slide,
.slideshow.fullscreen-fallback .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.slideshow.fullscreen .slide.active,
.slideshow.fullscreen-fallback .slide.active {
  opacity: 1;
}

.slideshow.fullscreen-fallback .close-fullscreen {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: inline-flex;
}

.close-fullscreen {
  display: none;
}

body.slideshow-fullscreen-open {
  overflow: hidden;
}

.slideshow.fullscreen .slide img,
.slideshow.fullscreen-fallback .slide img {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

.slide-btn.fullscreen {
  background: var(--brand-darker);
}

.service-card {
  background: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 18px 45px rgba(15, 15, 15, 0.06);
}

.service-card h3 {
  margin-top: 0;
}

.service-card p {
  margin: 0.75rem 0 0;
  color: #54504b;
}

.contact-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: #fff;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 15, 15, 0.05);
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8d4ce;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: #1f1d19;
  background: #fff;
}

.contact-details p {
  margin: 0 0 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.6rem;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: var(--brand-dark);
}

/* Section eyebrow on light backgrounds */
.eyebrow-dark {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
}

.about-inner {
  max-width: 60rem;
}

.contact-details a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
}

.contact-details a:hover {
  text-decoration: underline;
}

.form-status {
  margin: 0;
  min-height: 1.2em;
  color: var(--brand-dark);
  font-weight: 600;
}

.site-footer {
  background: #111110;
  color: #c3c0b8;
  padding: 2rem 0;
}

.footer-inner {
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    min-height: auto;
    padding: 2rem 0 3rem;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
  }

  .site-header.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .brand {
    justify-content: flex-start;
    width: 100%;
  }

  .brand-logo {
    max-height: 220px;
    width: auto;
  }

  .site-header .hero-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-header .hero-content {
    align-items: flex-start;
    gap: 1.75rem;
  }
}

@media (max-width: 600px) {
  .site-header,
  .section,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .site-header .hero-content h1 {
    font-size: clamp(2rem, 6vw, 2.5rem);
    max-width: 100%;
  }

  .site-header .hero-content p {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .site-header .hero-box {
    padding: 1.5rem;
  }

  .brand-logo {
    max-height: 180px;
  }

  .main-nav {
    gap: 0.8rem;
  }

  .container {
    width: min(100%, calc(100% - 1rem));
  }

  .slideshow-controls {
    gap: 0.6rem;
  }

  .slide-btn {
    padding: 0.75rem 1.1rem;
    font-size: 0.9rem;
  }

  .slideshow {
    min-height: 18rem;
  }
}
