:root {
  --green: #003d24;
  --green-deep: #002c1b;
  --green-soft: #eaf1eb;
  --gold: #d9a72e;
  --ink: #10231a;
  --muted: #66716a;
  --line: #d9dfda;
  --white: #fff;
  --hero-image: url("banner-hero.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  background: #fff;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1170px, calc(100% - 76px));
  margin: auto;
}

.announcement-bar {
  background: var(--green-deep);
  color: #fff;
  font-size: 11px;
}

.announcement-inner {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.contact-strip,
.follow-strip,
.announcement-bar span,
.announcement-bar a {
  display: flex;
  align-items: center;
}

.contact-strip {
  gap: 24px;
  flex-wrap: wrap;
}

.follow-strip {
  gap: 9px;
  flex: none;
}

.announcement-bar span,
.announcement-bar a {
  gap: 7px;
  opacity: .95;
}

.announcement-bar svg {
  width: 12px;
  height: 12px;
  color: var(--white);
  stroke-width: 2;
}

.site-header {
  background: #fff;
  position: relative;
  z-index: 20;
  box-shadow: 0 2px 8px #082e1b16;
}

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

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

.brand-logo {
  display: block;
  width: clamp(210px, 26vw, 315px);
  height: auto;
}

.brand-mark {
  height: 46px;
  width: 49px;
  position: relative;
  font-family: Georgia, serif;
  color: var(--green);
  font-size: 39px;
  line-height: 1;
}

.brand-mark span {
  position: absolute;
  left: 0;
  top: 3px;
  font-style: italic;
}

.brand-mark b {
  font-size: 31px;
  position: absolute;
  left: 20px;
  top: 9px;
  font-weight: 400;
  color: #a27a18;
}

.brand-mark em {
  font-size: 21px;
  position: absolute;
  left: 20px;
  top: 21px;
  color: var(--gold);
  font-style: normal;
}

.brand-copy strong {
  display: block;
  font: 700 21px/1 Georgia, serif;
  letter-spacing: .5px;
}

.brand-copy span {
  display: block;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
}

.brand-copy small {
  font-size: 6px;
  font-weight: 700;
  letter-spacing: .4px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.15vw, 31px);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav > a {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav > a:hover,
.main-nav .active {
  color: var(--green);
  border-color: var(--gold);
}

.main-nav svg {
  width: 11px;
}

.nav-cta {
  min-height: 44px;
  padding: 0 20px;
  background: var(--green);
  border: 0;
  border-radius: 4px;
  color: #fff;
  gap: 11px;
}

.nav-cta svg {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #f4f7f4;
  border: 1px solid #dfe7e1;
  border-radius: 4px;
  color: var(--green);
}

.hero {
  min-height: clamp(430px, 42vw, 535px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--green-deep);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 38, 23, .34) 0%, rgba(0, 61, 36, .12) 38%, rgba(0, 44, 27, 0) 64%),
    linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .06) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(0, 44, 27, .18));
}

.hero-content {
  width: calc(100% - 104px);
  max-width: none;
  margin-left: 52px;
  margin-right: 52px;
  padding: 52px 0 200px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font: 700 clamp(32px, 4vw, 46px)/1.16 "DM Sans", sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 span,
h2 span {
  color: var(--gold);
}

.gold-rule {
  width: 50px;
  height: 2px;
  margin: 22px 0 18px;
  background: var(--gold);
}

.hero-text {
  max-width: 480px;
  margin: 0;
  color: #f2faf3;
  font-size: 14px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  padding: 10px 20px;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button-gold {
  background-color: #16a703bd;
  color: #f8f9f8;
}

.button-outline {
  border: 1px solid var(--gold);
  background: rgba(0, 61, 36, .26);
  color: #fff;
}

.button-dark {
  background: var(--green);
  color: #fff;
}

.trust-points {
  display: grid;
  width: min(100%, 860px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 38px;
}

.trust-points > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border-right: 1px solid #ffffff45;
}

.trust-points > div:first-child {
  padding-left: 0;
}

.trust-points > div:last-child {
  padding-right: 0;
  border: 0;
}

.trust-points svg {
  flex: none;
  width: 37px;
  height: 37px;
  color: var(--gold);
  stroke-width: 1.5;
}

.trust-points span {
  max-width: 120px;
  color: #dbe7de;
  font-size: 10px;
  line-height: 1.45;
}

.trust-points b {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 128px;
  margin-top: -54px;
  padding: 0 36px;
  position: relative;
  z-index: 3;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 9px 24px #10312224;
}

.stats > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid #cbd4ce;
}

.stats > div:last-child {
  border: 0;
}

.stats svg {
  flex: none;
  width: 49px;
  height: 49px;
  color: var(--green);
  stroke-width: 1.4;
}

.stats span {
  color: #536159;
  font-size: 12px;
}

.stats strong {
  display: block;
  color: #00771c;
  font-size: 30px;
  line-height: 1.2;
}

.section {
  padding: 42px 0;
}

.section-heading {
  margin-bottom: 26px;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
  color: var(--green);
}

.section-heading h2,
h2 {
  margin: 0;
  font: 700 30px/1.2 "DM Sans", sans-serif;
  text-transform: uppercase;
}

.heading-line {
  width: 34px;
  height: 2px;
  margin: 12px auto;
  background: var(--gold);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.product-card {
  overflow: hidden;
  min-width: 0;
  width: 100%;
  padding-bottom: 22px;
  position: relative;
  background: #fff;
  border: 1px solid #e1e6e2;
  border-radius: 5px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

.switchgear-card img {
  object-position: center;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 22px #12352118;
}

.product-card img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.product-icon {
  width: 46px;
  height: 46px;
  margin: -23px auto 14px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--green);
  border: 3px solid #fff;
  border-radius: 50%;
  color: var(--gold);
}

.product-icon svg {
  width: 22px;
}

.product-card h3 {
  margin: 0 8px 8px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
}

.product-card p {
  margin: 0 12px;
  color: #59645d;
  font-size: 11px;
  line-height: 1.45;
}

.centered {
  display: flex;
  width: max-content;
  margin: 24px auto 0;
}

.about {
  padding: 0;
  background: linear-gradient(100deg, #f5f8f5 0%, #fff 72%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  min-height: 276px;
  align-items: center;
}

.about-copy {
  padding: 36px 50px 36px 0;
}

.about-copy .eyebrow {
  color: var(--green);
}

.about-copy h2 {
  font-size: 28px;
}

.about-copy > p:not(.eyebrow) {
  max-width: 460px;
  margin: 17px 0 20px;
  color: #536159;
  font-size: 13px;
  line-height: 1.65;
}

.about-photo {
  overflow: hidden;
  height: 276px;
  border-top-left-radius: 72px;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%, 0 82%);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industries {
  padding-top: 28px;
  padding-bottom: 34px;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  border-top: 1px solid #e2e8e3;
  border-bottom: 1px solid #e2e8e3;
}

.industry-grid div {
  min-height: 86px;
  padding: 16px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  border-right: 1px dashed #ccd5ce;
  text-align: center;
}

.industry-grid div:last-child {
  border: 0;
}

.industry-grid svg {
  width: 31px;
  height: 31px;
  color: var(--green);
  stroke-width: 1.35;
}

.industry-grid span {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.contact {
  padding: 54px 0;
  background: var(--green);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 80px;
}

.contact h2 {
  font-size: 30px;
}

.contact-grid > div > p:last-child {
  max-width: 370px;
  color: #d6e4d8;
  font-size: 13px;
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background: #ffffff0b;
  border: 1px solid #ffffff55;
  border-radius: 3px;
  color: #fff;
  font: inherit;
  font-size: 12px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #c0d0c2;
}

.contact-form .button {
  width: max-content;
}

.form-status {
  margin: 0;
  color: var(--gold);
  font-size: 11px;
}

.site-footer {
  background: linear-gradient(105deg, #00391f 0%, #004b2b 52%, #002717 100%);
  color: #d6e4d8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .9fr .95fr 1.05fr 1.75fr;
  gap: 28px;
  padding: 34px 0 30px;
}

.footer-brand .brand {
  gap: 9px;
}

.footer-logo {
  display: block;
  width: 198px;
  height: auto;
  filter: brightness(1.24);
}

.footer-brand .brand-copy strong,
.footer-brand .brand-copy small {
  color: #fff;
}

.footer-brand > p {
  margin: 22px 0;
  font-size: 12px;
  line-height: 1.6;
  text-transform: uppercase;
}

.socials {
  display: flex;
  gap: 9px;
}

.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #64806b;
  border-radius: 50%;
}

.socials svg {
  width: 15px;
}

.footer-grid h4 {
  margin: 4px 0 14px;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) > a {
  display: block;
  margin: 0 0 9px;
  color: #b9cbbd;
  font-size: 12px;
}

.footer-grid > div:not(.footer-brand) > a::before {
  content: ">";
  margin-right: 7px;
  color: var(--gold);
}

.footer-grid p {
  display: flex;
  gap: 8px;
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.4;
}

.footer-grid p svg {
  flex: none;
  width: 19px;
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid #315039;
  color: #8fa696;
  font-size: 9px;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 12px;
    font-size: 9px;
  }

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

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

  .industry-grid div:nth-child(5n) {
    border-right: 0;
  }

  .trust-points > div {
    padding: 0 16px;
  }

  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 820px) {
  .container,
  .hero-content {
    width: min(100% - 32px, 640px);
    max-width: 640px;
    margin: auto;
  }

  .announcement-inner {
    padding: 7px 0;
  }

  .contact-strip span:not(:first-child),
  .follow-strip {
    display: none;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 16px;
    background: #fff;
    box-shadow: 0 8px 15px #082e1b20;
  }

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

  .main-nav > a {
    min-height: 42px;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 10px;
  }

  .hero {
    min-height: 680px;
    align-items: flex-end;
  }

  .hero-media {
    background-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 44, 27, .38) 0%, rgba(0, 44, 27, .82) 44%, rgba(0, 61, 36, .98) 100%),
      linear-gradient(90deg, rgba(0, 44, 27, .7), rgba(0, 44, 27, .12));
  }

  .hero-content {
    padding: 140px 0 90px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 58px);
  }

  .trust-points {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .trust-points > div,
  .trust-points > div:first-child,
  .trust-points > div:last-child {
    padding: 0;
    border: 0;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
    padding: 10px;
  }

  .stats > div {
    justify-content: flex-start;
    padding: 14px 8px;
  }

  .stats > div:nth-child(2) {
    border-right: 0;
  }

  .stats strong {
    font-size: 18px;
  }

  .section {
    padding: 50px 0;
  }

  .section-heading h2,
  h2 {
    font-size: 24px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-copy {
    padding: 46px 0;
  }

  .about-photo {
    height: 240px;
    clip-path: none;
  }

  .contact-grid {
    gap: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .container,
  .hero-content {
    width: min(100% - 24px, 420px);
    max-width: 420px;
  }

  .brand-logo {
    width: 126px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 110px;
  }

  .hero h1 {
    font-size: 33px;
  }

  .hero-text {
    font-size: 13px;
  }

  .hero-actions,
  .button,
  .centered,
  .contact-form .button {
    width: 100%;
  }

  .button {
    min-height: 48px;
  }

  .trust-points {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 0;
    border-radius: 0;
  }

  .stats > div,
  .stats > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #cbd4ce;
  }

  .stats > div:last-child {
    border-bottom: 0;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 170px;
  }

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

  .industry-grid div:nth-child(n) {
    border-right: 1px dashed #ccd5ce;
  }

  .industry-grid div:nth-child(2n) {
    border-right: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: block;
    line-height: 1.8;
  }

  .footer-bottom span {
    display: block;
  }
}

.products {
  padding-top: 54px;
  background: #fff;
}

.about-grid {
  position: relative;
}

.about-grid::after {
  content: "";
  width: 92px;
  height: 84px;
  position: absolute;
  left: 44%;
  top: 54px;
  background-image: radial-gradient(#7c8a80 1.4px, transparent 1.4px);
  background-size: 17px 17px;
  opacity: .55;
  pointer-events: none;
}

.footer-grid > div {
  min-width: 0;
}

.footer-grid > div:not(:first-child) {
  padding-left: 24px;
  border-left: 1px dotted rgba(255, 255, 255, .28);
}

.footer-message .contact-form {
  gap: 8px;
}

.footer-message .contact-form input,
.footer-message .contact-form textarea {
  min-height: 35px;
  padding: 9px 11px;
  border-color: rgba(255, 255, 255, .58);
  border-radius: 3px;
  font-size: 11px;
}

.footer-message .contact-form textarea {
  min-height: 62px;
}

.footer-message .button {
  min-height: 38px;
  padding: 10px 24px;
}

@media (max-width: 820px) {
  .about-grid::after {
    display: none;
  }

  .footer-grid > div:not(:first-child) {
    padding-left: 0;
    border-left: 0;
  }
}


/* =========================================================
   FINAL DESKTOP REFERENCE OVERRIDES
   Put these rules at the very end of styles.css
========================================================= */

@media (min-width: 821px) {

  /* Full-width layout like the reference */
  .container {
    width: calc(100% - 76px) !important;
    max-width: none !important;
    margin-left: 38px !important;
    margin-right: 38px !important;
  }

  /* Compact white header */
  .nav-wrap {
    min-height: 110px !important;
    height: 70px !important;
  }

  .main-nav > a {
    min-height: 70px !important;
    height: 70px !important;
  }

  .brand-logo {
    width: 285px !important;
    max-height: 110px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Hero size */
  .hero {
    min-height: 580px !important;
    height: 580px !important;
  }

  /* Keep hero content in the same left position */
  .hero-content {
    width: calc(100% - 104px) !important;
    max-width: none !important;
    margin-left: 52px !important;
    margin-right: 52px !important;
    padding-top: 72px !important;
    padding-bottom: 160px !important;
  }

  /*
    Show more of the lower part of banner-hero.png.
    Bottom alignment is intentional here so the chemical bottles
    are not cut off as aggressively.
  */
  .hero-media {
    background-position: center bottom 40% !important;
    background-size: 110% 120% !important;
  }

  /* Reference stats card */
  .stats {
    min-height: 128px !important;
    margin-top: -54px !important;
    padding-left: 36px !important;
    padding-right: 36px !important;
  }
}
