
:root {
  --brand-green: #006128;
  --brand-bright: #76dc87;
  --brand-line: #becabb;
  --sticky-header: 80px;
  scroll-behavior: smooth;
}

[hidden] { display: none !important; }
main > section[id], footer[id] { scroll-margin-top: calc(var(--sticky-header) + 10px); }
:where(a, button, input, summary):focus-visible {
  outline: 2px solid #00833e;
  outline-offset: 3px;
}

.site-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}
.site-brand-mark {
  position: relative;
  display: block;
  flex: 0 0 92px;
  aspect-ratio: 265 / 154;
  overflow: hidden;
  border-radius: 2px;
}
#site-header .site-brand-mark img {
  position: absolute;
  width: 113.21%;
  height: auto;
  max-width: none;
  left: -7.55%;
  top: -52.60%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  position: relative;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}
.site-nav a[aria-current="location"] {
  background: var(--brand-green);
  color: white;
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding-inline: 9px;
  border: 1px solid var(--brand-line);
  border-radius: 7px;
  color: var(--brand-green);
  font-size: 13px;
  font-weight: 600;
}
.menu-toggle[aria-expanded="true"] { background: #eaf4e9; }
.scroll-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #008739, var(--brand-bright));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.hero-content {
  min-height: 800px;
  justify-content: center;
}

.hero-power-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  min-height: 46px;
  border: 1px solid #ffffff65;
  border-radius: 4px;
  color: #f3faf0;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.hero-power-link:hover { background: #ffffff18; border-color: var(--brand-bright); }

.catalog-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block: -12px -16px;
  color: #3f4a3e;
  font-size: 14px;
}
.cat-tab[aria-pressed="true"] { background: var(--brand-green); color: white; }
.cat-tab[aria-pressed="false"] { background: #f0f5eb; color: #3f4a3e; }
.cat-tab[aria-pressed="false"]:hover { background: #e2edde; }
.text-action {
  min-height: 32px;
  color: var(--brand-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.catalog-empty {
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 30px 20px;
  border: 1px dashed var(--brand-line);
  border-radius: 10px;
  text-align: center;
  background: #fff;
}
.catalog-empty p { color: #3f4a3e; font-size: 14px; }
.product-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.product-media img { transition: transform 320ms cubic-bezier(.2,.8,.2,1); }

.power-finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2px;
  overflow: hidden;
  border: 1px solid #57685a;
  border-radius: 16px;
  background: #57685a;
}
.power-controls, .power-results { min-width: 0; padding: clamp(18px, 3vw, 32px); }
.power-controls { background: #202e24; }
.power-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f3f8ef;
  color: #19261a;
}
.power-label-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.power-number {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid #819988;
  border-radius: 7px;
  background: #17231b;
  color: #dbe9dc;
  font-size: 14px;
}
.power-number input[type="number"] {
  width: 88px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--brand-bright);
  font-family: "Red Hat Mono", monospace;
  font-size: 20px;
  font-weight: 600;
}
.power-number input:focus-visible { outline-color: var(--brand-bright); }
.power-slider {
  --range-fill: 8%;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 22px 0 14px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-bright) var(--range-fill), #607666 var(--range-fill));
  cursor: grab;
}
.power-slider:active { cursor: grabbing; }
.power-slider::-webkit-slider-thumb {
  appearance: none;
  width: 21px;
  height: 21px;
  border: 2px solid #c9ffce;
  border-radius: 50%;
  background: #258946;
  box-shadow: 0 0 0 4px #76dc8733;
}
.power-slider::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border: 2px solid #c9ffce;
  border-radius: 50%;
  background: #258946;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  color: #cfdfce;
  font-size: 12px;
  font-family: "Red Hat Mono", monospace;
}
.power-presets, .power-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.power-presets { margin-block: 22px 16px; }
.power-presets button {
  padding: 7px 10px;
  border: 1px solid #819988;
  border-radius: 99px;
  color: #e3f1e3;
  font-size: 13px;
  font-family: "Red Hat Mono", monospace;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.power-presets button:hover { border-color: var(--brand-bright); }
.power-presets button[aria-pressed="true"] {
  border-color: var(--brand-bright);
  background: var(--brand-bright);
  color: #18331d;
}
#power-help { color: #c5d7c5; font-size: 13px; line-height: 1.6; }
#power-match-count { font-size: clamp(17px, 2vw, 22px); font-weight: 700; }
#power-matches { display: grid; gap: 5px; flex: 1; }
#power-matches button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 7px 12px;
  padding: 7px 9px;
  border: 1px solid #cbdac9;
  border-radius: 5px;
  background: white;
  color: var(--brand-green);
  text-align: start;
  font-size: 13px;
}
#power-matches button:hover { border-color: var(--brand-green); background: #e8f4e9; }
#power-matches button span:last-child {
  white-space: nowrap;
  color: #465748;
  font-family: "Red Hat Mono", monospace;
  font-size: 12px;
}
.power-empty { color: #3f4a3e; font-size: 14px; }
.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid var(--brand-green);
  border-radius: 5px;
  background: var(--brand-green);
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 150ms ease;
}
.site-button:not(:disabled):hover { background: #007d35; }
.site-button:disabled { cursor: default; opacity: .48; }
.site-button-outline { background: transparent; color: var(--brand-green); }
.site-button-outline:not(:disabled):hover { background: #e4f0e3; }
.power-range-directory summary {
  cursor: pointer;
  color: var(--brand-bright);
  font-weight: 600;
}
.power-range-directory[open] summary { margin-bottom: 12px; }
.power-range-directory summary:focus-visible { outline-color: var(--brand-bright); }

.service-dock {
  position: fixed;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  overflow: hidden;
  width: 155px;
  border: 1px solid #9ab09a;
  border-radius: 10px;
  background: white;
  box-shadow: 0 6px 22px #20312227;
}
.service-dock summary { min-height: 40px; cursor: pointer; }
.service-dock summary::-webkit-details-marker { display: none; }
.service-dock summary:focus-visible { outline-offset: -4px; outline-color: var(--brand-bright); }
.back-to-top {
  position: fixed;
  right: 181px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #9ab09a;
  border-radius: 10px;
  background: white;
  color: var(--brand-green);
  font-size: 21px;
  font-weight: 600;
  box-shadow: 0 6px 22px #20312220;
}
.back-to-top:hover { background: #e5f2e4; }
#contact { padding-bottom: 52px; }

.site-dialog {
  position: fixed;
  inset: 0;
  width: min(448px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border-radius: 14px;
  background: white;
  color: #171d17;
}
.site-dialog::backdrop { background: #101d14aa; }
.site-dialog[open] { animation: arrive 190ms ease-out both; }
.product-dialog { width: min(560px, calc(100% - 32px)); }
.product-dialog #product-image {
  width: 100%;
  height: clamp(145px, 34vh, 250px);
  object-fit: cover;
  background: #eaf0e6;
}
.dialog-panel { position: relative; }
.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #c3d0c1;
  border-radius: 50%;
  background: white;
  color: #23382a;
  font-size: 24px;
  line-height: 1;
}
.product-dialog-content { display: grid; justify-items: start; gap: 12px; padding: clamp(16px, 4vw, 25px); }
#product-category { color: var(--brand-green); font-size: 13px; font-weight: 600; }
.product-dialog dl {
  width: 100%;
  padding: 9px 11px;
  border-radius: 5px;
  background: #eff5ed;
}
.product-dialog dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; }
#product-range { font-family: "Red Hat Mono", monospace; color: var(--brand-green); font-weight: 600; }
#product-description { font-size: 14px; line-height: 1.65; }

.section-arrived { animation: arrive 420ms cubic-bezier(.2,.75,.35,1) both; }
@keyframes arrive {
  from { transform: translateY(10px); opacity: .76; }
  to { transform: translateY(0); opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px #1c462019; }
  .product-card:hover .product-media img { transform: scale(1.045); }
}
@media (max-width: 1239px) {
  #site-header > div:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px 12px;
  }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    order: 4;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--brand-line);
  }
  .menu-open .site-nav { display: grid; }
  .site-nav a { text-align: center; }
}
@media (max-width: 680px) {
  #site-header > div:first-child { grid-template-columns: minmax(0, 1fr) auto; }
  .header-phone { display: none; }
  .site-brand { gap: 7px; }
  .site-brand-mark { flex-basis: 64px; }
  .site-brand [data-design-text-token="title-lg"] { font-size: 15px; line-height: 21px; }
  .site-brand [data-design-text-token="label-sm"] { font-size: 10px; line-height: 13px; }
  .site-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .power-finder { grid-template-columns: minmax(0, 1fr); }
  #flagship-search-input { min-width: 0; }
}
@media (max-width: 360px) {
  .site-brand-mark { flex-basis: 58px; }
  .power-controls, .power-results { padding-inline: 14px; }
  #power-matches button { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .site-dialog[open], .section-arrived { animation: none; }
  .product-card, .product-media img, .site-button, .hero-power-link { transition: none; }
}
