:root {
  --hydro-ink: #10231f;
  --hydro-navy: #073456;
  --hydro-green: #0b6a46;
  --hydro-green-dark: #064b35;
  --hydro-water: #007f91;
  --hydro-blue: #ccecf2;
  --hydro-yellow: #f7bd2c;
  --hydro-line: #c5d8d1;
  --hydro-pale: #eef6f3;
  --hydro-white: #fff;
}

.hydro-page {
  color: var(--hydro-ink);
  overflow: hidden;
}

.hydro-page .eyebrow {
  color: var(--hydro-water);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.hydro-page h1,
.hydro-page h2,
.hydro-page h3,
.hydro-page h4,
.hydro-page strong {
  letter-spacing: 0;
}

.hydro-page h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.02;
  margin: 0;
}

.hydro-page .btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
}

.hydro-page .btn-primary {
  background: var(--hydro-yellow);
  color: var(--hydro-ink);
}

.hydro-page .btn-secondary {
  background: #fff;
  border-color: #d6e4de;
  color: var(--hydro-navy);
}

.hydro-page .btn:focus-visible,
.checker-options input:focus-visible + span,
.power-estimator input:focus-visible,
.power-estimator select:focus-visible {
  outline: 3px solid #56c8d6;
  outline-offset: 3px;
}

.hydro-hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(3, 35, 45, 0.96) 0%, rgba(3, 35, 45, 0.85) 46%, rgba(3, 35, 45, 0.15) 100%),
    url("../../assets/solutions/hydropower-site-png.webp") center / cover no-repeat;
  color: #fff;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.5fr);
  min-height: min(720px, 78vh);
  padding: clamp(4.5rem, 8vw, 8rem) max(5vw, calc((100vw - 1320px) / 2));
}

.hydro-hero-copy {
  max-width: 820px;
}

.hydro-hero .eyebrow {
  color: #8de3dd;
}

.hydro-hero h1 {
  font-size: clamp(3.2rem, 6.4vw, 6.6rem);
  line-height: 0.94;
  margin: 0;
}

.hydro-hero-copy > p:not(.eyebrow) {
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.6;
  margin: 1.5rem 0 0;
  max-width: 760px;
}

.hydro-hero-actions,
.checker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.hydro-reality {
  background: rgba(255, 255, 255, 0.94);
  border-left: 5px solid var(--hydro-yellow);
  color: var(--hydro-navy);
  display: grid;
  gap: 0.55rem;
  padding: 1.3rem;
}

.hydro-reality span {
  color: var(--hydro-green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hydro-reality strong {
  font-size: 1.25rem;
  line-height: 1.25;
}

.hydro-reality small {
  color: #53675e;
  line-height: 1.5;
}

.hydro-section-nav {
  background: var(--hydro-navy);
  display: flex;
  gap: 0;
  justify-content: center;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 9;
}

.hydro-section-nav a {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 1rem 1.2rem;
  text-decoration: none;
}

.hydro-section-nav a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.hydro-section-nav a:hover {
  background: var(--hydro-green);
}

.hydro-section {
  padding: clamp(4rem, 7vw, 7rem) max(5vw, calc((100vw - 1320px) / 2));
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  margin-bottom: 2.3rem;
}

.section-heading > p {
  color: #4e6259;
  line-height: 1.65;
  margin: 0;
}

.hydro-conditions {
  background: #fff;
}

.condition-grid {
  border-bottom: 1px solid var(--hydro-line);
  border-top: 1px solid var(--hydro-line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.condition-grid article {
  border-left: 1px solid var(--hydro-line);
  min-height: 270px;
  padding: 1.4rem;
}

.condition-grid article:last-child {
  border-right: 1px solid var(--hydro-line);
}

.condition-grid article > span {
  color: var(--hydro-water);
  font-size: 0.8rem;
  font-weight: 900;
}

.condition-grid h3 {
  color: var(--hydro-navy);
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 2.2rem 0 0.7rem;
}

.condition-grid p {
  color: #53675e;
  line-height: 1.55;
}

.site-check-section {
  align-items: start;
  background: var(--hydro-pale);
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(270px, 0.56fr) minmax(0, 1fr);
}

.checker-copy {
  position: sticky;
  top: 90px;
}

.checker-copy p {
  color: #4e6259;
  line-height: 1.65;
}

.checker-copy ul {
  color: var(--hydro-green-dark);
  line-height: 1.6;
  padding-left: 1.2rem;
}

.checker-tool {
  background: #fff;
  border: 1px solid var(--hydro-line);
  border-top: 5px solid var(--hydro-water);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.checker-tool fieldset {
  border: 0;
  border-bottom: 1px solid var(--hydro-line);
  margin: 0;
  min-inline-size: 0;
  padding: 0 0 1.2rem;
}

.checker-tool fieldset + fieldset {
  margin-top: 1.2rem;
}

.checker-tool legend {
  color: var(--hydro-navy);
  font-size: 1.12rem;
  font-weight: 900;
  margin-bottom: 0.7rem;
  padding: 0;
}

.checker-options {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checker-options label {
  cursor: pointer;
}

.checker-options input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.checker-options label > span {
  align-items: center;
  border: 1px solid var(--hydro-line);
  color: #334c43;
  display: flex;
  height: 100%;
  line-height: 1.4;
  min-height: 67px;
  padding: 0.75rem;
}

.checker-options input:checked + span {
  background: #ebf8f5;
  border-color: var(--hydro-green);
  box-shadow: inset 4px 0 0 var(--hydro-yellow);
  color: var(--hydro-navy);
  font-weight: 800;
}

.checker-tool form > .btn {
  margin-top: 1.3rem;
  width: 100%;
}

.checker-error {
  background: #fff0f2;
  border-left: 4px solid #a91737;
  color: #7e1129;
  font-weight: 800;
  padding: 0.75rem;
}

.checker-result[hidden],
#hydroSiteForm[hidden] {
  display: none;
}

.result-status {
  color: var(--hydro-water);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.checker-result h3 {
  color: var(--hydro-navy);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin: 0.5rem 0 0.9rem;
}

.checker-result p,
.checker-result li {
  color: #4c6158;
  line-height: 1.6;
}

.checker-result ul {
  background: var(--hydro-pale);
  padding: 1.2rem 1.2rem 1.2rem 2.3rem;
}

.measure-section {
  background: #fff;
}

.measure-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
}

.measure-methods {
  border-top: 1px solid var(--hydro-line);
}

.measure-methods article {
  border-bottom: 1px solid var(--hydro-line);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(160px, 0.35fr) 1fr;
  padding: 1.2rem 0;
}

.measure-methods h3 {
  color: var(--hydro-navy);
  margin: 0;
}

.measure-methods p {
  color: #53675e;
  line-height: 1.6;
  margin: 0;
}

.power-estimator {
  background: var(--hydro-navy);
  color: #fff;
  padding: clamp(1.4rem, 3vw, 2.3rem);
}

.power-estimator .eyebrow {
  color: #8de3dd;
}

.power-estimator h3 {
  font-size: 2rem;
  margin: 0;
}

.formula {
  color: var(--hydro-yellow);
  font-family: Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 800;
}

.power-estimator form {
  display: grid;
  gap: 0.8rem;
}

.power-estimator label {
  display: grid;
  gap: 0.35rem;
}

.power-estimator label > span {
  color: #dceae5;
  font-size: 0.82rem;
  font-weight: 800;
}

.power-estimator input,
.power-estimator select {
  border: 1px solid #88aaa0;
  border-radius: 4px;
  font: inherit;
  min-height: 48px;
  padding: 0.65rem;
  width: 100%;
}

.calculator-result {
  background: #fff;
  color: var(--hydro-navy);
  display: grid;
  gap: 0.25rem;
  margin-top: 1rem;
  padding: 1rem;
}

.calculator-result span,
.calculator-result small {
  color: #53675e;
}

.calculator-result strong {
  font-size: 2.2rem;
}

.three-kw-reference {
  align-items: center;
  background: var(--hydro-pale);
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  margin-top: 3rem;
  padding: clamp(1.4rem, 3vw, 2.3rem);
}

.three-kw-reference h3 {
  color: var(--hydro-navy);
  font-size: 2rem;
  margin: 0;
}

.three-kw-reference p:not(.eyebrow) {
  color: #52655d;
  line-height: 1.6;
}

.three-kw-reference table {
  border-collapse: collapse;
  width: 100%;
}

.three-kw-reference th,
.three-kw-reference td {
  border-bottom: 1px solid var(--hydro-line);
  padding: 0.6rem;
  text-align: left;
}

.three-kw-reference th {
  color: var(--hydro-navy);
}

.installation-section {
  background: var(--hydro-pale);
}

.installation-flow {
  background: #fff;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.installation-flow li {
  border-right: 1px solid var(--hydro-line);
  display: grid;
  gap: 0.4rem;
  min-height: 220px;
  padding: 1rem;
}

.installation-flow li:last-child {
  border-right: 0;
}

.installation-flow span {
  color: var(--hydro-water);
  font-size: 0.75rem;
  font-weight: 900;
}

.installation-flow strong {
  color: var(--hydro-navy);
  font-size: 1rem;
  margin-top: 1.6rem;
}

.installation-flow small {
  color: #586b63;
  line-height: 1.45;
}

.turbine-fit {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}

.turbine-fit article {
  background: var(--hydro-navy);
  color: #fff;
  min-height: 230px;
  padding: 1.3rem;
}

.fit-label {
  color: #8de3dd;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.turbine-fit h3 {
  font-size: 1.6rem;
  margin: 1rem 0 0.7rem;
}

.turbine-fit p:last-child {
  color: #dbe7e2;
  line-height: 1.55;
}

.scope-split {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.scope-split section {
  background: #fff;
  border-top: 5px solid var(--hydro-green);
  padding: 1.4rem;
}

.scope-split section:last-child {
  border-top-color: var(--hydro-yellow);
}

.scope-split h3 {
  color: var(--hydro-navy);
  font-size: 1.35rem;
  margin-top: 0;
}

.scope-split li {
  color: #52655d;
  line-height: 1.55;
}

.products-section {
  background: #fff;
}

.hydro-product-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hydro-product-grid article {
  border: 1px solid var(--hydro-line);
  display: grid;
  grid-template-rows: auto 1fr;
}

.hydro-product-grid img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  width: 100%;
}

.hydro-product-grid article > div {
  border-top: 1px solid var(--hydro-line);
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
}

.hydro-product-grid span {
  color: var(--hydro-water);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hydro-product-grid h3 {
  color: var(--hydro-navy);
  font-size: 1.4rem;
  line-height: 1.15;
  margin: 0.65rem 0;
}

.hydro-product-grid p {
  color: #53675e;
  line-height: 1.55;
}

.hydro-product-grid a {
  color: var(--hydro-green);
  font-weight: 900;
  margin-top: auto;
}

.compare-section {
  background: var(--hydro-pale);
}

.comparison-table-wrap {
  overflow-x: auto;
}

.comparison-table {
  background: #fff;
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--hydro-line);
  line-height: 1.45;
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--hydro-navy);
  color: #fff;
}

.comparison-table tbody th {
  color: var(--hydro-navy);
  width: 16%;
}

.safety-section {
  background: #fff;
}

.safety-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2.3rem;
}

.safety-grid article {
  border-left: 1px solid var(--hydro-line);
  padding: 1.2rem;
}

.safety-grid article:last-child {
  border-right: 1px solid var(--hydro-line);
}

.safety-grid h3 {
  color: var(--hydro-navy);
  font-size: 1.2rem;
  min-height: 2.8rem;
}

.safety-grid p {
  color: #53675e;
  line-height: 1.55;
}

.hydro-process {
  background: var(--hydro-navy);
  color: #fff;
}

.hydro-process .eyebrow {
  color: #8de3dd;
}

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

.process-grid article {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 0.5rem;
  min-height: 180px;
  padding: 1.1rem;
}

.process-grid article:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.process-grid span {
  color: var(--hydro-yellow);
  font-weight: 900;
}

.process-grid strong {
  font-size: 1.08rem;
  margin-top: 1rem;
}

.process-grid small {
  color: #d7e5e0;
  line-height: 1.45;
}

.hydro-cta {
  align-items: center;
  background: var(--hydro-green);
  color: #fff;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(3.5rem, 6vw, 5.5rem) max(5vw, calc((100vw - 1320px) / 2));
}

.hydro-cta .eyebrow {
  color: #bdeee7;
}

.hydro-cta h2 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.hydro-cta p:not(.eyebrow) {
  color: #dcece6;
  line-height: 1.6;
  max-width: 760px;
}

@media (max-width: 1080px) {
  .hydro-hero,
  .site-check-section {
    grid-template-columns: 1fr;
  }

  .hydro-reality {
    max-width: 480px;
  }

  .checker-copy {
    position: static;
  }

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

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

  .installation-flow li:nth-child(4) {
    border-right: 0;
  }

  .installation-flow li:nth-child(n + 5) {
    border-top: 1px solid var(--hydro-line);
  }

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

@media (max-width: 760px) {
  .hydro-hero {
    align-items: start;
    background:
      linear-gradient(180deg, rgba(3, 35, 45, 0.9) 0%, rgba(3, 35, 45, 0.7) 62%, rgba(3, 35, 45, 0.94) 100%),
      url("../../assets/solutions/hydropower-site-png.webp") center / cover no-repeat;
    gap: 1.5rem;
    min-height: 690px;
    padding: 3.5rem 1.1rem 2rem;
  }

  .hydro-hero h1 {
    font-size: 3.1rem;
  }

  .hydro-hero-actions,
  .checker-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hydro-page .btn {
    width: 100%;
  }

  .hydro-section-nav {
    justify-content: start;
  }

  .hydro-section {
    padding: 3.5rem 1.1rem;
  }

  .section-heading {
    align-items: start;
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .hydro-page h2 {
    font-size: 2.3rem;
  }

  .condition-grid,
  .checker-options,
  .measure-layout,
  .three-kw-reference,
  .turbine-fit,
  .scope-split,
  .hydro-product-grid,
  .safety-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .condition-grid article,
  .condition-grid article:last-child,
  .safety-grid article,
  .safety-grid article:last-child {
    border: 0;
    border-bottom: 1px solid var(--hydro-line);
    min-height: auto;
    padding: 1.1rem 0;
  }

  .condition-grid h3 {
    margin-top: 0.8rem;
  }

  .measure-methods article {
    gap: 0.5rem;
    grid-template-columns: 1fr;
  }

  .installation-flow {
    grid-template-columns: 1fr;
  }

  .installation-flow li,
  .installation-flow li:nth-child(4),
  .installation-flow li:nth-child(n + 5) {
    border: 0;
    border-bottom: 1px solid var(--hydro-line);
    min-height: auto;
  }

  .installation-flow strong {
    margin-top: 0.5rem;
  }

  .safety-grid h3 {
    min-height: 0;
  }

  .process-grid article,
  .process-grid article:last-child {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    min-height: auto;
    padding: 1rem 0;
  }

  .hydro-cta {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.1rem;
  }
}
