:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-strong: #121212;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --green-deep: #315025;
  --green-soft: #315025;
  --green-pale: #0f190c;
  --shadow: none;
  --radius: 10px;
  --container: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 300;
}

body:not([data-page="home"]) {
  --bg: #dbd6cb;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #111111;
  --muted: rgba(0, 0, 0, 0.68);
  --line: rgba(49, 80, 37, 0.18);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.narrow {
  max-width: none;
}

.narrow > * {
  max-width: var(--container);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
  border-bottom: 0;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

body:not([data-page="home"]) .site-header {
  background: transparent;
}

.site-header.header-hidden {
  opacity: 0;
  transform: translateY(-100%);
  visibility: hidden;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand img {
  max-width: min(320px, 48vw);
  width: auto;
  height: 45px;
  object-fit: contain;
}

.brand-mark img {
  height: 64px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  position: relative;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body:not([data-page="home"]) .site-nav a {
  color: var(--text);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 4px;
  background: var(--green-deep);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

body:not([data-page="home"]) .site-nav a::after {
  background: var(--green-deep);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: #ffffff;
}

body:not([data-page="home"]) .site-nav a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.6rem;
  height: 2px;
  margin: 0.32rem 0;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero,
.page-hero {
  padding: 7rem 0 2rem;
}

.hero-image {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  padding: 0;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.06) 30%, #000000 100%),
    linear-gradient(90deg, rgba(20, 32, 16, 0.72), rgba(20, 32, 16, 0.36) 52%, rgba(20, 32, 16, 0.1));
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 860px);
  gap: 1.5rem;
  align-items: start;
  padding: 11rem 0 5rem;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.split-callout h2,
.content-panel h2,
.feature-panel h2 {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: 5.6rem;
  max-width: 9ch;
}

.hero-copy h1 span {
  display: block;
  font-size: 0.38em;
  font-weight: 300;
  line-height: 1.1;
}

.page-hero h1,
.section-heading h2,
.split-callout h2,
.content-panel h2,
.feature-panel h2 {
  font-size: 3rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--green-deep);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.64rem;
  font-weight: 800;
}

.hero-text,
.page-hero p,
.section-heading p,
.split-callout p,
.content-panel p,
.feature-panel p,
.site-footer p {
  color: var(--muted);
  font-size: 1rem;
}

.hero-image .eyebrow,
.hero-image .hero-text,
.hero-image .hero-stats span {
  color: rgba(255, 255, 255, 0.86);
}

.hero-image .hero-text {
  max-width: 820px;
  font-size: 1.18rem;
}

.hero-image .hero-stats div {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid var(--green-deep);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

body:not([data-page="home"]) .button-primary {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #ffffff;
}

body:not([data-page="home"]) .button-primary:hover {
  background: transparent;
  color: var(--green-deep);
}

.button-primary:hover {
  background: transparent;
  color: #ffffff;
}

.button-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-stats,
.services-grid,
.about-grid,
.contact-grid,
.footer-wrap,
.split-callout {
  display: grid;
  gap: 1rem;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stats div,
.service-card,
.feature-panel,
.content-panel,
.contact-form {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-stats strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card {
  position: relative;
}

.feature-image,
.service-image {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-image {
  aspect-ratio: 4 / 3;
}

.service-image {
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

.feature-panel {
  height: 100%;
  min-height: 100%;
  padding: 1.5rem;
  background: var(--surface-strong);
}

.panel-label {
  margin: 0 0 1rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-soft);
  font-weight: 700;
}

.feature-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.section {
  padding: 1.25rem 0 3rem;
}

.section-accent {
  padding-top: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid-large {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-list {
  display: grid;
  gap: 1rem;
}

.service-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.service-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.split-callout {
  grid-template-columns: 1fr;
  align-items: start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.split-callout p,
.split-callout .eyebrow {
  color: var(--muted);
}

.page-main {
  min-height: calc(100vh - 180px);
}

.about-grid,
.contact-grid,
.footer-wrap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: minmax(0, 540px);
  justify-content: start;
}

.contact-details p {
  margin: 0 0 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 0.9rem;
  background: var(--surface-strong);
  color: var(--text);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(49, 80, 37, 0.12);
  border-color: var(--green-deep);
}

.form-message {
  min-height: 1.5rem;
  margin: 0.9rem 0 0;
  color: var(--green-soft);
  font-weight: 600;
}

.site-footer {
  padding: 0.5rem 0 2rem;
}

.footer-wrap {
  padding-top: 1.5rem;
  border-top: 2px solid var(--line);
  align-items: start;
}

.brand-footer {
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-copyright {
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .services-grid,
  .services-grid-large,
  .split-callout,
  .about-grid,
  .contact-grid,
  .footer-wrap,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 1rem 0;
  }

  .menu-toggle {
    position: relative;
    z-index: 31;
    display: block;
    width: 32px;
    height: 32px;
  }

  .menu-toggle::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: 7px auto;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 15px solid var(--green-deep);
    transition: transform 0.25s ease;
  }

  .menu-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
  }

  .menu-toggle span {
    display: none;
  }

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000000;
    padding: 5rem 1rem;
    gap: 1.5rem;
  }

  body:not([data-page="home"]) .site-nav {
    background: #f6f4ee;
  }

  .site-nav a {
    color: #ffffff;
    font-size: 1.5rem;
  }

  body:not([data-page="home"]) .site-nav a {
    color: var(--text);
  }

  .site-nav.open {
    display: flex;
  }

  .hero,
  .page-hero {
    padding-top: 6rem;
  }

  .hero-image {
    min-height: 100vh;
    padding-top: 0;
  }

  .hero-image::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18) 32%, #000000 100%);
  }

  .hero-grid {
    padding: 9rem 0 3rem;
  }

  .hero-copy h1 {
    font-size: 4rem;
  }

  .page-hero h1,
  .section-heading h2,
  .split-callout h2,
  .content-panel h2,
  .feature-panel h2 {
    font-size: 2.4rem;
  }

  .brand img {
    max-width: min(240px, 60vw);
    height: 45px;
  }

  .brand-mark img {
    height: 64px;
  }
}
