/* Hydro-Solar Systems — site styles. Colours are the old site's palette. */
:root {
  --bg: hsl(40 12% 95%);
  --card: hsl(40 10% 98%);
  --secondary: hsl(40 8% 90%);
  --fg: hsl(215 28% 10%);
  --muted: hsl(215 12% 40%);
  --navy: hsl(215 45% 18%);
  --navy-dark: hsl(215 32% 10%);
  --amber: hsl(36 72% 50%);
  --amber-light: hsl(36 80% 65%);
  --amber-ink: hsl(36 80% 32%);
  --border: hsl(40 10% 86%);
  --on-dark: hsl(40 12% 95%);
  --on-dark-muted: hsl(40 8% 74%);
  --ok: hsl(140 50% 27%);
  --err: hsl(4 70% 42%);
  --radius: 6px;
  --shadow: 0 1px 2px hsl(215 28% 10% / .06), 0 10px 28px hsl(215 28% 10% / .06);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --container: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 17px; line-height: 1.6; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: .5rem; z-index: 100; background: var(--amber); color: var(--fg); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .8rem 1.4rem; border-radius: var(--radius); border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-amber { background: var(--amber); color: var(--fg); }
.btn-amber:hover { background: var(--amber-light); }
.btn-navy { background: var(--navy); color: var(--on-dark); }
.btn-navy:hover { background: hsl(215 45% 25%); }
.btn-outline { background: var(--card); color: var(--fg); border-color: var(--border); }
.btn-outline:hover { border-color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: hsl(0 0% 100% / .5); }
.btn-outline-light:hover { background: hsl(0 0% 100% / .1); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-dark); color: var(--on-dark); transition: background-color .25s, box-shadow .25s; }
.home .site-header { position: fixed; left: 0; right: 0; background: linear-gradient(to bottom, hsl(215 32% 8% / .6), transparent); }
.home .site-header.is-solid, .home .site-header.menu-open { background: hsl(215 32% 10% / .97); box-shadow: 0 6px 24px hsl(0 0% 0% / .18); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; text-decoration: none; font-weight: 700; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; }
.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { padding: .35rem 0; border-bottom: 2px solid transparent; text-decoration: none; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.main-nav a:hover { opacity: 1; }
.main-nav a[aria-current="page"] { opacity: 1; color: var(--amber-light); border-bottom-color: var(--amber); }
.header-phone { padding: .55rem 1rem; font-size: .9rem; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid hsl(0 0% 100% / .25); border-radius: var(--radius); background: transparent; color: inherit; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
@media (max-width: 900px) {
  .header-inner { gap: .6rem; }
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: .5rem 1rem 1rem; background: hsl(215 32% 10% / .98); box-shadow: 0 12px 24px hsl(0 0% 0% / .25); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .95rem .25rem; border-bottom: 1px solid hsl(0 0% 100% / .08); font-size: .95rem; }
  .main-nav a[aria-current="page"] { border-bottom-color: hsl(0 0% 100% / .08); }
  .nav-toggle { display: inline-flex; }
  .header-phone { padding: .65rem; }
  .header-phone span { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(92vh, 860px); overflow: hidden; background: var(--navy-dark); color: #fff; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, hsl(215 45% 12% / .92) 0%, hsl(215 35% 18% / .72) 100%); }
.hero-inner { position: relative; padding: calc(var(--header-h) + 3rem) 0 clamp(3rem, 8vw, 5rem); }
.hero-content { max-width: 760px; }
.hero h1 { color: #fff; }
.hero-lead { max-width: 560px; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: hsl(40 12% 88%); }
.hero-price { margin: 1.4rem 0 .15rem; font-size: 1.1rem; }
.hero-price strong { color: var(--amber-light); font-size: 1.55rem; font-weight: 700; }
.hero-note { font-size: .9rem; color: hsl(40 8% 76%); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.badge { display: inline-block; margin: .4rem 0 0; padding: .3rem .8rem; border-radius: 999px; background: hsl(36 72% 50% / .18); color: var(--amber-light); font-weight: 700; font-size: .9rem; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--secondary); }
.section-dark { background: var(--navy-dark); color: var(--on-dark); }
.section-dark h2 { color: #fff; }
.section-dark p { color: var(--on-dark-muted); }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.eyebrow { margin: 0 0 .8rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow-amber, .section-dark .eyebrow, .page-hero .eyebrow { color: var(--amber-light); }
.lead { font-size: 1.12rem; color: var(--muted); }
.section-dark .lead { color: var(--on-dark-muted); }
.section-more { margin: 2rem 0 0; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-4, .steps-4, .checks { grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-4, .steps-4, .checks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4, .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { padding: 1.6rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .45rem; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.icon { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 10px; background: hsl(36 72% 50% / .15); color: var(--amber-ink); }
.icon svg { width: 22px; height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.chips li { padding: .45rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 999px; font-weight: 700; font-size: .95rem; }
.ticks { display: grid; gap: .55rem; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65rem; height: .65rem; border-radius: 2px; background: var(--amber); }
.ticks-2 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 1.4rem; font-weight: 700; }

/* ---------- split layouts & photos ---------- */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } .split-reverse { grid-template-columns: .9fr 1.1fr; } }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.photo-pair img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.photo-pair-square img { aspect-ratio: 1 / 1; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 1.5rem; padding: 0; list-style: none; }
.steps-2col { grid-template-columns: 1fr; }
@media (min-width: 560px) { .steps-2col { grid-template-columns: repeat(2, 1fr); } }
.step-num { display: block; margin-bottom: .35rem; font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; color: hsl(215 18% 72%); }
.step h3 { margin-bottom: .2rem; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- why us ---------- */
.checks { display: grid; gap: 1rem; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 700; color: var(--on-dark); }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--amber); }

/* ---------- gallery & lightbox ---------- */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { display: block; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius); background: var(--secondary); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { max-width: min(1100px, 96vw); max-height: 94vh; padding: 0; overflow: visible; border: 0; background: transparent; }
.lightbox::backdrop { background: hsl(215 32% 6% / .9); }
.lightbox img { width: auto; max-width: 100%; max-height: 88vh; margin: auto; border-radius: var(--radius); }
.lb-btn { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: hsl(0 0% 100% / .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: hsl(0 0% 100% / .26); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- videos ---------- */
.videos { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px) { .videos { grid-template-columns: repeat(5, 1fr); } }
.video-card { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius); background: #000; }
.video-card button { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: hsl(36 72% 50% / .95); color: var(--fg); transform: translate(-50%, -50%); box-shadow: 0 6px 20px hsl(0 0% 0% / .35); transition: transform .2s; }
.video-card button:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.play svg { width: 24px; height: 24px; margin-left: 4px; }

/* ---------- social ---------- */
.social-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.social-card > div:first-child { max-width: 620px; }
.social-card h2 { margin-bottom: .3em; }
.social-card p { margin: 0; }
.social-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
.faq details { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; list-style: none; cursor: pointer; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--amber-ink); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

/* ---------- pricing ---------- */
.price-box { display: grid; gap: .8rem; justify-items: start; padding: clamp(2rem, 5vw, 3.5rem); border-radius: calc(var(--radius) * 2); background: var(--navy); color: var(--on-dark); }
.price-box h2 { margin: 0; color: #fff; }
.price-box p { margin: 0; color: var(--on-dark-muted); font-size: 1.1rem; }
.price-box small { color: var(--on-dark-muted); }
.price-big { color: var(--amber-light); }
.price-line strong { color: var(--amber-ink); }

/* ---------- contact & form ---------- */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-list { display: grid; gap: 1.1rem; margin: 1.6rem 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: .9rem; }
.contact-list .icon { margin: 0; width: 40px; height: 40px; }
.contact-list .label { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.form-card { padding: clamp(1.25rem, 4vw, 2rem); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 1rem; }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--fg); font: inherit; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px hsl(215 45% 18% / .15); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.check { display: flex; align-items: flex-start; gap: .6rem; margin: .3rem 0 1.2rem; font-size: .95rem; }
.check input { flex: none; width: 18px; height: 18px; margin-top: .25rem; accent-color: var(--navy); }
.check input[aria-invalid="true"] { outline: 2px solid var(--err); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.4em; margin: .9rem 0 0; font-weight: 700; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.map-box { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--secondary); border: 1px solid var(--border); border-radius: var(--radius); }
.map-box iframe { width: 100%; height: 100%; border: 0; }

/* ---------- sub-page hero, CTA band, prose ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem); background: var(--navy-dark); color: var(--on-dark); }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 640px; margin: 0; font-size: 1.15rem; color: var(--on-dark-muted); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.2rem; font-size: 1.45rem; }
.prose p, .prose li { color: hsl(215 20% 24%); }
.prose ul { padding-left: 1.2rem; margin-bottom: 1em; }

/* ---------- footer ---------- */
.site-footer { padding: 3.5rem 0 1.5rem; background: var(--navy-dark); color: var(--on-dark-muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.site-footer .brand { margin-bottom: 1rem; color: var(--on-dark); }
.site-footer h3 { margin-bottom: .9rem; font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.site-footer ul { display: grid; gap: .5rem; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid hsl(0 0% 100% / .08); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- mobile call bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: hsl(215 32% 10% / .97); box-shadow: 0 -4px 18px hsl(0 0% 0% / .22); }
  .mobile-bar .btn { padding: .8rem .6rem; }
  body { padding-bottom: 76px; }
}

/* ---------- cookie consent ---------- */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 70; max-width: 560px; margin-left: auto; padding: 1.2rem; background: var(--card); color: var(--fg); border: 1px solid var(--border); border-radius: calc(var(--radius) * 1.5); box-shadow: 0 14px 40px hsl(0 0% 0% / .2); }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 1rem; font-size: .95rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.consent-actions .btn { flex: 1 1 140px; }
@media (max-width: 767px) { .consent { bottom: 86px; } }
