/* =========================================================
   QIK — Intelligent Water & Energy Infrastructure
   Static rebuild of qikhq.com — industrial datasheet aesthetic
   ========================================================= */

:root {
  --bg: #F2ECDD;
  --bg-alt: #EAE1CC;
  --paper: #FBF8F1;
  --ink: #1C1712;
  --ink-muted: #6B6152;
  --line: #D8CCAE;
  --red: #C22127;
  --red-deep: #931A1E;
  --green: #2E6B45;
  --radius: 4px;
  --radius-lg: 10px;
  --container: 1160px;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(var(--bg), var(--bg)),
    repeating-linear-gradient(0deg, rgba(28,23,18,0.05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(28,23,18,0.05) 0 1px, transparent 1px 56px);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.3em;
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: 0.002em;
  text-transform: uppercase;
}

p { margin: 0 0 1em; color: var(--ink-muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--red);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--red);
}

section { padding: 88px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.btn-primary { background: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-deep); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 236, 221, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--red);
  letter-spacing: 0.01em;
}
.logo .bolt { color: var(--ink); font-family: var(--font-mono); font-size: 1rem; }
.logo sup { font-size: 0.4em; color: var(--ink-muted); font-weight: 500; text-transform: none; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--red); }

/* -------- Hero -------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
}
.hero-diagram {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 46%;
  max-width: 560px;
  opacity: 0.9;
  pointer-events: none;
}
.hero-diagram path.flow-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-opacity: 0.35;
  stroke-dasharray: 6 5;
}
.hero-diagram path.flow-line.hot {
  stroke: var(--red);
  stroke-opacity: 0.7;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.4s ease forwards 0.6s;
}
.hero-diagram circle { fill: var(--paper); stroke: var(--ink); stroke-opacity: 0.4; stroke-width: 1.5; }
.hero-diagram circle.node-hot { stroke: var(--red); fill: var(--red); }
.hero-diagram text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink-muted);
}
.hero-diagram text.on-red { fill: var(--paper); }

.hero-content { max-width: 640px; position: relative; z-index: 1; }
.hero .reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; }
.hero h1 { animation-delay: 0.05s; }
.hero .lede { animation-delay: 0.22s; }
.hero .btn { animation-delay: 0.38s; }

.hero h1 {
  font-size: clamp(2.4rem, 4vw + 1rem, 4.1rem);
  max-width: 13ch;
}
.hero .lede {
  font-family: var(--font-body);
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 1.8em;
}

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* -------- Product section -------- */
.product-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.product-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.quick-facts span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 7px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  background: var(--paper);
}
.product-copy .eyebrow { color: var(--red); }
.product-copy h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem); text-transform: none; }

.accordion { margin-top: 18px; border-top: 1px solid var(--line); }
.accordion details {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--red);
  font-weight: 400;
}
.accordion details[open] summary::after { content: "\2212"; }
.accordion ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.accordion li {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  font-size: 0.88rem;
  padding-left: 18px;
  position: relative;
}
.accordion li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--red);
}

/* -------- Variants section -------- */
.variants-layout {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 48px;
  align-items: start;
}
.variants-head { max-width: 44ch; margin-bottom: 36px; grid-column: 1 / -1; }
.variants-head h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.8rem); }

.variant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.variant-card {
  background: var(--paper);
  padding: 24px;
  border-top: 3px solid var(--red);
}
.variant-card .cap {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1;
}
.variant-card .cap .unit { font-family: var(--font-mono); font-size: 0.9rem; color: var(--red); text-transform: none; }
.variant-card p { margin: 0; font-size: 0.9rem; }

.variants-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  height: 100%;
  object-fit: cover;
}

/* -------- Service band -------- */
.service-band { background: var(--bg-alt); }
.service-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.service-band h2 { margin-bottom: 0.25em; font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem); }
.service-band p { max-width: 46ch; margin: 0; }

/* -------- Quote form -------- */
.quote-section .container { max-width: 760px; }
.quote-section h2 { font-size: clamp(1.9rem, 2.4vw + 1rem, 2.8rem); }
.quote-form {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.field input,
.field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.quote-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.form-note {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: -6px 0 0;
}

/* -------- Footer -------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 52px 0 28px;
}
.site-footer .logo { color: var(--red); }
.site-footer .logo .bolt { color: var(--bg); }
.site-footer .logo sup { color: rgba(242,236,221,0.6); }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(242,236,221,0.16);
}
.footer-top .btn-ghost { background: transparent; color: var(--bg); border-color: rgba(242,236,221,0.3); }
.footer-top .btn-ghost:hover { border-color: var(--red); color: var(--red); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(242,236,221,0.6);
}
.footer-bottom a { color: rgba(242,236,221,0.6); }
.footer-bottom a:hover { color: var(--red); }
.footer-legal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(242,236,221,0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.social-link:hover { border-color: var(--red); color: var(--red); }

/* -------- Privacy policy page -------- */
.policy-section .container { max-width: 720px; }
.policy-section h1 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
.policy-section h2 { font-family: var(--font-mono); text-transform: none; font-size: 1.02rem; color: var(--red); margin-top: 2.1em; letter-spacing: 0; }
.policy-section h2:first-of-type { margin-top: 0.4em; }
.policy-section ul { color: var(--ink-muted); padding-left: 20px; }
.policy-section li { margin-bottom: 6px; }

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .product-grid,
  .variants-layout { grid-template-columns: 1fr; }
  .variants-media { order: -1; }
  .variants-media img { max-height: 320px; }
  .hero-diagram { display: none; }
}

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .main-nav { display: none; }
  .quote-form { grid-template-columns: 1fr; }
  .variant-grid { grid-template-columns: 1fr; }
  .service-band .container { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
  .hero .reveal { opacity: 1; transform: none; }
  .hero-diagram path.flow-line.hot { stroke-dashoffset: 0; }
}
