/* =============================================================
   H2Oasis — SHARED clone-component styles
   Components that do NOT exist on Home and are emitted by the
   build engine (_handoff/scripts/build-page.mjs):
     .h2o-hero   page hero (photo + dark overlay, clears logo)
     .h2o-ba     before/after transformation slider
     .h2o-cta    closing call-to-action band
     .h2o-gallery simple photo grid
   Each has an explicit LIGHT (white / sky / teal) and DARK
   (dusk navy surface) treatment. Sunset gradients live ONLY on the
   cloned Home accent bands (per-page CSS), never here.
   Brand: sun #f8a820 (hover #e3960f), teal #27b0cc,
   navy bg #18233f, surface #1f2c4a, ink #f2f6fb, ink-soft #c2ccdb.
   ============================================================= */

/* ---------- shared buttons ---------- */
.h2o-btn-primary {
  display: inline-block;
  background: #f8a820;
  color: #0e2a3a !important;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .3px;
  padding: 15px 34px;
  border-radius: 10px;
  text-decoration: none;
  text-transform: none;
  box-shadow: 0 8px 22px rgba(248, 168, 32, .28);
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.h2o-btn-primary:hover {
  background: #e3960f;
  color: #0e2a3a !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(248, 168, 32, .38);
}
.h2o-btn-ghost {
  display: inline-block;
  background: transparent;
  color: #ffffff !important;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, .8);
  text-decoration: none;
  text-transform: none;
  transition: background .25s ease, border-color .25s ease, transform .2s ease;
}
.h2o-btn-ghost:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* =============================================================
   HERO  (.h2o-hero) — photo + dark overlay, works in BOTH modes
   ============================================================= */
.h2o-hero {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding: 120px 20px 90px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.h2o-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 30, 56, .58) 0%, rgba(14, 30, 56, .50) 40%, rgba(20, 28, 50, .78) 100%);
  z-index: 1;
}
.h2o-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}
.h2o-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #8fe3f4;
  margin: 0 0 14px;
}
.h2o-hero-h1 {
  font-family: 'Sora', sans-serif;
  font-size: 44px;
  line-height: 1.04;
  font-weight: 700;
  margin: 0 auto 18px;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.h2o-hero-sub {
  font-family: 'Sora', sans-serif;
  font-size: 19px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 32px;
  color: #eef4fb;
  text-transform: none;
}
.h2o-hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
/* The big floating logo (top-left, ~315x335px) only renders at >=1025px.
   Drop the hero content well below its footprint so the H1 never runs
   under the emblem. */
@media (min-width: 1025px) {
  .h2o-hero { padding-top: 300px; min-height: 660px; }
}
@media (max-width: 768px) {
  .h2o-hero-h1 { font-size: 30px; }
  .h2o-hero-sub { font-size: 17px; }
  .h2o-hero { padding: 90px 18px 70px; min-height: 460px; }
}

/* =============================================================
   BEFORE / AFTER SLIDER  (.h2o-ba)
   ============================================================= */
.h2o-ba {
  text-align: center;
  padding: 8px 20px 4px;
  font-family: 'Sora', sans-serif;
}
.h2o-ba-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 15px;
  font-weight: 600;
  color: #27b0cc;
  margin: 0 0 10px;
}
.h2o-ba-heading {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  line-height: 1.1;
  color: #0f2a3a;
  margin: 0 auto 30px;
  max-width: 760px;
}
.h2o-ba-stage {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(15, 42, 58, .18);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.h2o-ba-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.h2o-ba-after-layer { z-index: 1; }
.h2o-ba-before-layer {
  z-index: 2;
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
/* "before" condition simulated with a filter over a clean photo.
   Clearly swappable for a real "before" image via beforeImage. */
.h2o-ba[data-filter="algae"] .h2o-ba-before-layer img {
  filter: saturate(1.5) hue-rotate(48deg) brightness(.82) contrast(1.05);
}
.h2o-ba[data-filter="grime"] .h2o-ba-before-layer img {
  filter: sepia(.45) saturate(.7) brightness(.62) contrast(1.12);
}
.h2o-ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #ffffff;
  z-index: 3;
  box-shadow: 0 0 10px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.h2o-ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: #f8a820;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0e2a3a;
  font-size: 18px;
  font-weight: 700;
  pointer-events: none;
}
.h2o-ba-handle::before { content: "\2194"; }
/* Transparent native range overlay. NOTE: we deliberately do NOT hide it
   with opacity:0 — the screenshot/reveal tooling force-sets opacity:1 on
   every element, which would expose a default white input box and thumb on
   top of the stage. Instead the control is made fully transparent (track +
   thumb), so it stays invisible regardless of opacity overrides while the
   styled .h2o-ba-handle remains the visible grip. */
.h2o-ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  border: none;
  outline: none;
  cursor: ew-resize;
  z-index: 5;
}
.h2o-ba-range::-webkit-slider-runnable-track { background: transparent; border: none; }
.h2o-ba-range::-moz-range-track { background: transparent; border: none; }
.h2o-ba-range::-moz-range-progress { background: transparent; }
.h2o-ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: ew-resize;
}
.h2o-ba-range::-moz-range-thumb {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
}
.h2o-ba-tag {
  position: absolute;
  top: 16px;
  z-index: 3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(14, 30, 56, .72);
  pointer-events: none;
}
.h2o-ba-tag-before { left: 16px; }
.h2o-ba-tag-after { right: 16px; }
.h2o-ba-caption {
  max-width: 760px;
  margin: 22px auto 0;
  font-size: 15px;
  line-height: 1.65;
  color: #52616b;
  text-transform: none;
}
@media (max-width: 768px) {
  .h2o-ba-heading { font-size: 30px; }
}
/* dark */
html.h2o-dark .h2o-ba-heading { color: #f2f6fb; }
html.h2o-dark .h2o-ba-eyebrow { color: #4ec8e0; }
html.h2o-dark .h2o-ba-caption { color: #c2ccdb; }
html.h2o-dark .h2o-ba-stage { box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }

/* =============================================================
   CTA BAND  (.h2o-cta)
   light = teal accent panel (allowed), dark = dusk navy surface
   ============================================================= */
.h2o-cta {
  text-align: center;
  padding: 64px 22px;
  background: linear-gradient(135deg, #27b0cc 0%, #1f93ac 100%);
  color: #ffffff;
  font-family: 'Sora', sans-serif;
}
.h2o-cta-inner { max-width: 720px; margin: 0 auto; }
.h2o-cta-heading {
  font-family: 'Sora', sans-serif;
  font-size: 34px;
  line-height: 1.08;
  margin: 0 0 14px;
  color: #ffffff;
}
.h2o-cta-sub {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 28px;
  color: #eaf7fb;
  text-transform: none;
}
.h2o-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.h2o-cta-phone {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, .55);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.h2o-cta-phone:hover { border-color: #ffffff; color: #ffffff; }
@media (max-width: 768px) { .h2o-cta-heading { font-size: 26px; } }
/* dark — dusk navy surface, no teal */
html.h2o-dark .h2o-cta {
  background: #1f2c4a;
  border-top: 1px solid #2c3a5e;
  border-bottom: 1px solid #2c3a5e;
}
html.h2o-dark .h2o-cta-heading { color: #f2f6fb; }
html.h2o-dark .h2o-cta-sub { color: #c2ccdb; }
html.h2o-dark .h2o-cta-phone { color: #f2f6fb; border-color: rgba(242, 246, 251, .4); }

/* =============================================================
   GALLERY  (.h2o-gallery) — simple responsive photo grid
   ============================================================= */
.h2o-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 6px 20px;
}
.h2o-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 8px 24px rgba(15, 42, 58, .12);
  transition: transform .35s ease, box-shadow .35s ease;
}
.h2o-gallery img:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 14px 32px rgba(15, 42, 58, .2); }
@media (max-width: 900px) { .h2o-gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .h2o-gallery { grid-template-columns: 1fr; } .h2o-gallery img { height: 210px; } }
html.h2o-dark .h2o-gallery img { box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }

/* =============================================================
   CONTACT PANEL — direct-contact panel (.h2o-contact-panel) beside the
   PRESERVED MetForm. These rules cover the parts that carry our OWN
   markup classes (panel cards, headings, badges); the section padding,
   form fields and submit button — which wrap the plugin-rendered form
   and can't take our classes — are emitted per-page by the build engine,
   keyed on the section's element id (role "contact"). Light = white /
   teal; dark = dusk navy surfaces. NO sunset here.
   ============================================================= */
/* ---- left: direct-contact panel ---- */
.h2o-contact-panel { max-width: 520px; font-family: 'Sora', sans-serif; }
.h2o-contact-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  font-weight: 600;
  color: #27b0cc;
  margin: 0 0 10px;
}
.h2o-contact-heading {
  font-family: 'Sora', sans-serif;
  font-size: 30px;
  line-height: 1.08;
  color: #0f2a3a;
  margin: 0 0 14px;
}
.h2o-contact-intro {
  font-size: 16px;
  line-height: 1.65;
  color: #52616b;
  margin: 0 0 26px;
  text-transform: none;
}
.h2o-method-list { display: flex; flex-direction: column; gap: 14px; }
.h2o-method {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #ffffff;
  border: 1px solid #e3edf2;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(15, 42, 58, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.h2o-method:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 42, 58, .12);
  border-color: #bfe6ef;
}
.h2o-method-ic {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(39, 176, 204, .12);
  color: #1f93ac;
  display: flex;
  align-items: center;
  justify-content: center;
}
.h2o-method-ic svg { width: 22px; height: 22px; }
.h2o-method-body { display: flex; flex-direction: column; gap: 2px; }
.h2o-method-label {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
  font-weight: 700;
  color: #27b0cc;
}
.h2o-method-value { font-size: 17px; font-weight: 600; color: #0f2a3a; line-height: 1.4; }
.h2o-method-value a { color: #0f2a3a; text-decoration: none; }
.h2o-method-value a:hover { color: #1f93ac; }
.h2o-method-sub { font-size: 13.5px; color: #6b7a84; line-height: 1.45; }
.h2o-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.h2o-badge {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #1f93ac;
  background: rgba(39, 176, 204, .1);
  border: 1px solid rgba(39, 176, 204, .22);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ---- right: form heading (the fields/button are engine per-page CSS) ---- */
.h2o-form-head { margin: 0 0 18px; font-family: 'Sora', sans-serif; }
.h2o-form-heading {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  line-height: 1.1;
  color: #0f2a3a;
  margin: 0 0 8px;
}
.h2o-form-intro { font-size: 15px; line-height: 1.6; color: #52616b; margin: 0; text-transform: none; }
@media (max-width: 768px) {
  .h2o-contact-heading { font-size: 30px; }
  .h2o-form-head { margin-top: 30px; }
}

/* ---- dark: dusk navy surfaces, no sunset ---- */
html.h2o-dark .h2o-contact-heading,
html.h2o-dark .h2o-form-heading { color: var(--h2o-ink); }
html.h2o-dark .h2o-contact-intro,
html.h2o-dark .h2o-form-intro { color: var(--h2o-ink-soft); }
html.h2o-dark .h2o-method {
  background: var(--h2o-surface);
  border-color: #2c3a5e;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
html.h2o-dark .h2o-method:hover { border-color: #3a4d78; }
html.h2o-dark .h2o-method-ic { background: rgba(78, 200, 224, .14); color: #4ec8e0; }
html.h2o-dark .h2o-method-value,
html.h2o-dark .h2o-method-value a { color: var(--h2o-ink); }
html.h2o-dark .h2o-method-value a:hover { color: #4ec8e0; }
html.h2o-dark .h2o-method-sub { color: var(--h2o-ink-soft); }
html.h2o-dark .h2o-badge {
  color: #4ec8e0;
  background: rgba(78, 200, 224, .12);
  border-color: rgba(78, 200, 224, .26);
}

/* MetForm: keep the success/response banner hidden until MetForm itself
   flips data-show to "1" after a submit. shoot.mjs's de-invisible step
   force-sets opacity:1/visibility:visible on every node, which otherwise
   reveals this empty white banner + its check icon. display:none survives
   that (de-invisible never touches display), and the real response still
   shows post-submit when data-show becomes "1". */
.metform-form-content .mf-main-response-wrap[data-show="0"] { display: none !important; }
