:root {
  color-scheme: light;
  --green: #214f40;
  --green-dark: #183c31;
  --charcoal: #252525;
  --page: #f0f0f0;
  --paper: #fff;
  --ink: #252525;
  --muted: #59615e;
  --line: #dce1de;
  --shadow: 0 10px 28px rgb(26 39 34 / 9%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #82b8a3;
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.container-narrow {
  max-width: 790px;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  color: var(--paper);
  background: var(--charcoal);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-top: 8px solid #1e2527;
  background: var(--paper);
  box-shadow: 0 2px 12px rgb(0 0 0 / 5%);
}

.header-main {
  position: relative;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px 2px;
}

.brand {
  display: inline-flex;
  width: 82px;
  height: 60px;
  align-items: center;
  justify-content: center;
}

.brand img {
  width: 82px;
  height: 60px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--charcoal);
}

.site-nav {
  position: relative;
  display: flex;
  justify-content: center;
}

.nav-list,
.submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-list > li {
  position: relative;
}

.nav-list > .nav-dropdown {
  position: static;
}

.nav-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  color: #333;
  font-size: 15px;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active,
.nav-dropdown:hover > .nav-link,
.nav-dropdown:focus-within > .nav-link {
  color: var(--paper);
  background: var(--green);
}

.nav-chevron {
  font-size: 15px;
  line-height: 1;
}

.submenu {
  position: absolute;
  z-index: 11;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--green);
  box-shadow: 0 8px 16px rgb(0 0 0 / 12%);
}

.nav-dropdown:hover .submenu,
.nav-dropdown:focus-within .submenu {
  display: flex;
}

.submenu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.submenu a:hover,
.submenu a:focus-visible {
  background: rgb(255 255 255 / 14%);
}

.hero,
.page-hero {
  color: var(--paper);
  background: var(--charcoal);
  text-align: center;
}

.hero {
  padding: 22px 0 26px;
}

.hero-content {
  max-width: 790px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.hero-lead,
.page-hero p:last-child {
  margin: 12px 0 0;
  color: #e4e6e5;
  font-size: 17px;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 8px;
  color: #d4dfda;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-green {
  color: var(--green);
}

.section {
  padding: 64px 0;
}

.section-products {
  padding-top: 64px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px 22px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(30 45 38 / 5%);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgb(26 39 34 / 14%);
}

.card-image-link {
  display: block;
  overflow: hidden;
  background: #dfe4e1;
}

.card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 250ms ease;
}

.product-card:hover .card-image {
  transform: scale(1.035);
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px 20px;
}

.card-content h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.card-content h2 a {
  text-decoration: none;
}

.card-content h2 a:hover {
  color: var(--green);
}

.card-content .button {
  min-width: 110px;
  align-self: center;
}

.card-content p {
  margin: 0 0 22px;
  color: #555d59;
  font-size: 14px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-dark {
  margin-top: auto;
  color: var(--paper);
  background: var(--charcoal);
}

.button-dark:hover {
  background: var(--green);
}

.button-dark:disabled {
  opacity: 0.65;
  cursor: wait;
}

.button-light {
  color: var(--green-dark);
  background: var(--paper);
}

.button-light:hover {
  background: #e4ede8;
}

.section-gallery-preview {
  padding-top: 54px;
  background: #e7e9e8;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
}

.text-link {
  color: var(--green);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.project-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-preview {
  overflow: hidden;
  border-radius: 12px;
  background: #d5dad7;
}

.project-preview img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-preview:hover img {
  transform: scale(1.04);
}

.contact-strip {
  padding: 36px 0;
  color: var(--paper);
  background: var(--green);
}

.contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-strip h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.25;
}

.page-hero {
  padding: 42px 0 46px;
}

.page-hero .container {
  max-width: 820px;
}

.page-hero .eyebrow {
  margin-bottom: 10px;
}

.page-hero p:last-child {
  margin-inline: auto;
  max-width: 690px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
}

.product-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #dfe4e1;
  box-shadow: var(--shadow);
}

.product-visual img {
  width: 100%;
  min-height: 320px;
  max-height: 470px;
  object-fit: cover;
}

.product-copy h2,
.contact-card h2,
.contact-form h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.2;
}

.product-copy p:not(.eyebrow) {
  color: #4d5551;
}

.product-copy .button {
  margin-top: 10px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
}

.system-card {
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  scroll-margin-top: 24px;
}

.system-number {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.system-card h2 {
  margin: 7px 0 18px;
  font-size: 19px;
}

.system-card a {
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.system-detail {
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.system-description {
  max-width: 790px;
  margin-bottom: 24px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #dfe4e1;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: rgb(37 37 37 / 82%);
  font-size: 24px;
  line-height: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 28px;
}

.contact-card,
.contact-form {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgb(30 45 38 / 6%);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-card > p:not(.eyebrow) {
  color: #505854;
}

.contact-card address {
  margin-top: 28px;
  font-style: normal;
}

.contact-card address p {
  display: grid;
  gap: 2px;
  margin: 0 0 18px;
}

.contact-card address span {
  color: var(--muted);
  font-size: 13px;
}

.contact-card address a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

.company-details {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.company-details h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.company-details p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-form {
  scroll-margin-top: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px;
}

.form-field label {
  font-size: 14px;
  font-weight: 700;
}

.form-field label span,
.form-consent label span {
  color: #a63d33;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd2ce;
  border-radius: 8px;
  color: var(--ink);
  background: #fcfdfc;
  font: inherit;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--green);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 12px;
  font-size: 13px;
}

.form-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.form-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.form-note a {
  color: var(--green);
}

.form-status {
  min-height: 24px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.form-status.is-error {
  color: #a02b22;
}

.form-status.is-success {
  color: var(--green);
}

.policy-content {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.policy-content h2 {
  margin-top: 0;
}

.policy-content h2:not(:first-child) {
  margin-top: 32px;
}

.policy-content a {
  color: var(--green);
}

.site-footer {
  color: #f5f7f6;
  background: var(--green);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-block: 34px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-column p {
  margin: 5px 0;
  color: #e1e9e5;
  font-size: 14px;
}

.footer-column a {
  text-decoration-color: rgb(255 255 255 / 45%);
  text-underline-offset: 3px;
}

.footer-column a:hover {
  color: var(--paper);
}

.footer-bottom {
  padding: 13px 24px;
  color: var(--paper);
  background: var(--charcoal);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
}

.consent-settings {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.analytics-consent {
  position: fixed;
  z-index: 30;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 640px;
  max-height: calc(100dvh - 32px);
  margin-inline: auto;
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 12px 48px rgb(0 0 0 / 25%);
}

.analytics-consent h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.analytics-consent p {
  font-size: 14px;
}

.analytics-consent a {
  color: var(--green);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#consent-status:empty {
  display: none;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 36px, 720px);
  }

  .nav-list {
    gap: 0;
  }

  .nav-link {
    padding-inline: 8px;
    font-size: 14px;
  }

  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .header-main {
    min-height: 72px;
  }

  .nav-toggle {
    position: absolute;
    right: 16px;
    display: block;
  }

  .site-nav {
    display: none;
    padding: 0 16px 14px;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list > li {
    border-top: 1px solid #edf0ee;
  }

  .nav-link {
    width: 100%;
    min-height: 42px;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15px;
  }

  .submenu {
    position: static;
    display: block;
    width: auto;
    padding: 0 0 8px 12px;
    transform: none;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
  }

  .nav-list > .nav-dropdown {
    position: relative;
  }

  .submenu a {
    padding: 7px 12px;
    color: var(--green-dark);
    white-space: normal;
  }

  .submenu a:hover,
  .submenu a:focus-visible {
    color: var(--paper);
    background: var(--green);
  }

  .hero {
    padding: 28px 0 32px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 30px;
  }

  .hero-lead,
  .page-hero p:last-child {
    font-size: 15px;
  }

  .desktop-break {
    display: none;
  }

  .section {
    padding: 42px 0;
  }

  .section-products {
    padding-top: 34px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-heading,
  .contact-strip-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-preview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .project-preview img {
    height: 140px;
  }

  .page-hero {
    padding: 34px 0 36px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .product-visual img {
    min-height: 240px;
  }

  .system-grid {
    margin-top: 32px;
  }

  .contact-card,
  .contact-form {
    padding: 22px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 28px;
  }
}

@media (max-width: 520px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
