/*
Theme Name: HydroNova Industrial
Theme URI: https://example.com/hydronova
Author: HydroNova
Description: A dark, technical product catalogue theme for industrial equipment brands.
Version: 1.0.0
Text Domain: hydronova
*/

:root {
  --ink: #0b1117;
  --ink-soft: #121c24;
  --steel: #91a0aa;
  --paper: #f2f0eb;
  --white: #fbfaf7;
  --signal: #f5a623;
  --line: #34414a;
  --muted: #66747b;
  --body-text: #d0d5d5;
  --footer: #070c10;
  --light-line: #c5c9c5;
  --signal-secondary: #6fb8ad;
  --base-size: 16px;
  --button-radius: 0px;
  --button-padding-x: 21px;
  --display: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: "Trebuchet MS", Arial, sans-serif;
}

html[data-theme="light"] {
  --ink: #edf1ee;
  --ink-soft: #e0e7e3;
  --steel: #526168;
  --paper: #ffffff;
  --white: #15242a;
  --signal: #c96a19;
  --line: #c5cfca;
  --muted: #58666c;
  --body-text: #26373d;
  --footer: #e0e7e3;
  --light-line: #d0d8d3;
  --signal-secondary: #157f77;
}

html[data-theme="light"] .site-header { background: rgba(237, 241, 238, .92); border-color: var(--light-line); }
html[data-theme="light"] .footer-nav a { color: var(--body-text); }

html[data-theme="contrast"] {
  --ink: #000000;
  --ink-soft: #080808;
  --steel: #ffffff;
  --paper: #ffffff;
  --white: #ffffff;
  --signal: #ffde00;
  --line: #ffffff;
  --muted: #000000;
  --body-text: #ffffff;
  --footer: #000000;
  --light-line: #000000;
  --signal-secondary: #00ffff;
}

@media (prefers-color-scheme: light) {
  html[data-theme="system"] {
    --ink: #edf1ee;
    --ink-soft: #e0e7e3;
    --steel: #526168;
    --paper: #ffffff;
    --white: #15242a;
    --signal: #c96a19;
    --line: #c5cfca;
    --muted: #58666c;
    --body-text: #26373d;
    --footer: #e0e7e3;
    --light-line: #d0d8d3;
    --signal-secondary: #157f77;
  }
  html[data-theme="system"] .site-header { background: rgba(237, 241, 238, .92); border-color: var(--light-line); }
  html[data-theme="system"] .footer-nav a { color: var(--body-text); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--body); font-size: var(--base-size); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: absolute; z-index: 10; top: 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.17); }
.nav-wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 18px/1 var(--display); letter-spacing: 1.5px; text-transform: uppercase; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--signal); color: var(--ink); font: 900 14px/1 var(--display); transform: skew(-10deg); }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { width: auto; max-height: 56px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 34px; font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.primary-nav a { opacity: .78; transition: opacity .2s ease, color .2s ease; }
.primary-nav a:hover, .primary-nav a:focus { color: var(--signal); opacity: 1; }
.nav-cta { padding: 12px 17px; border: 1px solid var(--signal); color: var(--signal) !important; opacity: 1 !important; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--white); font-size: 24px; cursor: pointer; }

.hero { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: min(820px, 100svh); overflow: hidden; padding-top: 88px; background: var(--ink); }
.hero-panel { position: relative; display: flex; align-items: flex-end; min-width: 0; min-height: 672px; overflow: hidden; padding: 48px clamp(22px, 3vw, 44px) 62px; border-right: 1px solid rgba(255,255,255,.2); }
.hero-panel:last-child { border-right: 0; }
.hero-panel:after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,13,18,.3) 0%, rgba(7,13,18,.12) 35%, rgba(7,13,18,.94) 100%); }
.hero-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.55); transition: transform .5s ease, filter .5s ease; }
.hero-panel:hover img { transform: scale(1.04); filter: saturate(.8); }
.hero-panel-content { position: relative; z-index: 2; width: 100%; }
.hero-panel-index { position: absolute; top: 28px; right: clamp(22px, 3vw, 44px); z-index: 2; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.eyebrow { margin: 0 0 24px; color: var(--signal); font-size: 11px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; }
.hero h1, .hero h2 { max-width: 440px; margin: 0; font: 900 clamp(42px, 5.1vw, 76px)/.87 var(--display); text-transform: uppercase; }
.hero-copy { max-width: 340px; margin: 20px 0 25px; color: var(--body-text); font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 var(--button-padding-x); border-radius: var(--button-radius); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; transition: background .2s ease, color .2s ease, border .2s ease; }
.button-primary { background: var(--signal); color: var(--ink); }
.button-primary:hover, .button-primary:focus { background: var(--white); }
.button-ghost { border: 1px solid rgba(255,255,255,.35); color: var(--white); margin-left: 10px; }
.button-ghost:hover, .button-ghost:focus { border-color: var(--signal); color: var(--signal); }

.section { padding: 120px 0; }
.section-light { background: var(--paper); color: var(--ink); }
.section-wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.section-kicker { color: var(--signal); font-size: 11px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; }
.section-title { max-width: 700px; margin: 10px 0 0; font: 900 clamp(38px, 5vw, 68px)/.92 var(--display); letter-spacing: -1px; text-transform: uppercase; }
.section-intro { max-width: 370px; margin: 0; color: var(--muted); font-size: 15px; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { position: relative; min-height: 470px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink-soft); color: var(--white); }
.product-card:before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,9,12,.96) 0%, rgba(5,9,12,.1) 70%); z-index: 1; }
.product-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.55); transition: transform .5s ease, filter .5s ease; }
.product-card:hover img { transform: scale(1.05); filter: saturate(.85); }
.product-card-content { position: relative; z-index: 2; width: 100%; padding: 28px; }
.product-index { color: var(--signal); font-size: 11px; letter-spacing: 2px; }
.product-card h3 { margin: 7px 0 8px; font: 900 34px/.92 var(--display); text-transform: uppercase; }
.product-card p { margin: 0; color: #bec7c8; font-size: 13px; }
.card-arrow { position: absolute; right: 28px; bottom: 27px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); color: var(--signal-secondary); font-size: 20px; }

.spec-band { background: var(--ink-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec { padding: 34px 24px; border-right: 1px solid var(--line); }
.spec:last-child { border: 0; }
.spec strong { display: block; margin-bottom: 6px; color: var(--signal); font: 900 43px/.9 var(--display); }
.spec span { color: #bec7c8; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.split-image { min-height: 550px; background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?auto=format&fit=crop&w=1200&q=85') center/cover; }
.split-copy p { max-width: 470px; color: var(--muted); font-size: 16px; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; margin: 34px 0 38px; padding: 0; list-style: none; }
.feature-list li { padding-top: 12px; border-top: 1px solid var(--light-line); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.feature-list li:before { content: "+"; margin-right: 10px; color: var(--signal-secondary); }

.quote { position: relative; overflow: hidden; background: var(--signal); color: var(--ink); }
.quote:after { content: "HV"; position: absolute; right: 4%; bottom: -16%; color: rgba(11,17,23,.08); font: 900 300px/.8 var(--display); }
.quote .section-wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.quote h2 { max-width: 650px; margin: 0; font: 900 clamp(42px, 6vw, 78px)/.9 var(--display); text-transform: uppercase; }
.quote p { max-width: 280px; font-size: 16px; }
.quote .button { background: var(--ink); color: var(--white); }
.quote .button:hover { background: var(--white); color: var(--ink); }

.site-footer { padding: 60px 0 24px; background: var(--footer); }
.footer-top { display: flex; justify-content: space-between; gap: 50px; padding-bottom: 60px; }
.footer-brand { max-width: 270px; }
.footer-brand p { color: var(--steel); font-size: 13px; }
.footer-nav { display: flex; gap: 70px; }
.footer-nav h3 { margin: 0 0 15px; color: var(--signal); font-size: 10px; letter-spacing: 1.7px; text-transform: uppercase; }
.footer-nav a { display: block; margin-bottom: 8px; color: var(--body-text); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--line); color: #65747c; font-size: 11px; text-transform: uppercase; }

@media (max-width: 760px) {
  .nav-wrap, .section-wrap { width: min(100% - 36px, 1240px); }
  .site-header { background: rgba(7,12,16,.75); }
  .nav-wrap { min-height: 72px; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 72px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px; background: var(--ink-soft); border: 1px solid var(--line); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .primary-nav a:last-child { border: 0; }
  .nav-cta { margin: 8px 0; text-align: center; border: 1px solid var(--signal) !important; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 72px; }
  .hero-panel { min-height: 540px; padding: 42px 22px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .hero-panel:last-child { border-bottom: 0; }
  .hero-panel-index { top: 28px; right: 22px; }
  .hero h1, .hero h2 { font-size: clamp(52px, 14vw, 82px); }
  .button-ghost { margin: 0; }
  .section { padding: 78px 0; }
  .section-head, .quote .section-wrap, .footer-top, .footer-bottom { display: block; }
  .section-intro { margin-top: 22px; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 380px; }
  .spec { padding: 25px 14px; }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 38px; }
  .split-image { min-height: 360px; order: 2; }
  .feature-list { gap: 18px 12px; }
  .quote .button { margin-top: 18px; }
  .footer-nav { gap: 35px; margin-top: 40px; }
  .footer-bottom { padding-top: 18px; }
  .footer-bottom span { display: block; margin-top: 7px; }
}