/* ==========================================================================
   EAW HOME
   A homepage that reads as a product rather than a document.

   Three things do most of the work: a hero that moves, generous type, and
   far fewer rules and boxes. The existing palette is kept — it is right for
   a professional water publication — but given contrast and depth.
   ========================================================================== */

:root {
  --hero-h: 520px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------- HERO SLIDER */
.hero-x { position: relative; background: var(--ink); color: #fff; overflow: hidden }
.hero-x::after {                      /* depth without a heavy image overlay */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 80% 0%, rgba(18,105,159,.30), transparent 60%);
}
.hero-slides { position: relative; min-height: var(--hero-h) }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s;
}
.hero-slide.on { opacity: 1; visibility: visible; position: relative; z-index: 2 }

.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px;
  align-items: center; min-height: var(--hero-h); padding: 52px 0;
}
.hero-copy { position: relative; z-index: 3 }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font: 600 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.hero-kicker::before { content: ''; width: 22px; height: 1px; background: var(--gold) }
.hero-copy h2 {
  margin: 0 0 16px; color: #fff; letter-spacing: -.025em;
  font: 700 clamp(30px, 3.6vw, 50px)/1.08 var(--display);
}
.hero-copy h2 a { color: #fff; text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .4s var(--ease) }
.hero-copy h2 a:hover { background-size: 100% 2px }
.hero-dek { margin: 0 0 24px; font-size: 17px; line-height: 1.6; color: #B9CBD8; max-width: 54ch }
.hero-meta { font: 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #7C97AC }

.hero-media { position: relative; z-index: 3 }
/* Sizing lives in eaw-images.css so there is one place that decides it. */

/* Controls. A slider nobody can steer is a slideshow nobody watches. */
.hero-nav { display: flex; align-items: center; gap: 14px; padding: 0 0 26px; position: relative; z-index: 4 }
.hero-dots { display: flex; gap: 8px; flex: 1 }
.hero-dot {
  flex: 1; max-width: 76px; height: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.22); position: relative; overflow: hidden; border-radius: 2px;
}
.hero-dot span { position: absolute; inset: 0 100% 0 0; background: var(--gold); transition: inset 0s }
.hero-dot.on span { inset: 0 0 0 0; transition: inset var(--dur, 7s) linear }
.hero-dot.done span { inset: 0 0 0 0 }
.hero-arrows { display: flex; gap: 6px }
.hero-arrow {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.26); background: none;
  color: #fff; cursor: pointer; border-radius: 3px; font-size: 15px; line-height: 1;
  transition: background .2s, border-color .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5) }

/* ------------------------------------------------------------ STAT BAND */
.impact { background: var(--deep); color: #fff; padding: 36px 0 }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center }
.impact b {
  display: block; font: 700 clamp(26px, 3vw, 40px)/1 var(--display);
  letter-spacing: -.02em; color: #fff; margin-bottom: 7px;
}
.impact span { font: 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8FB0C6 }

/* --------------------------------------------------------------- MOTION */
[data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal].seen { opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease) }
[data-reveal].seen:nth-child(2) { transition-delay: .07s }
[data-reveal].seen:nth-child(3) { transition-delay: .14s }
[data-reveal].seen:nth-child(4) { transition-delay: .21s }

/* Cards lift rather than just changing border colour. */
.card { transition: transform .32s var(--ease), box-shadow .32s var(--ease) }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10,24,38,.11) }
.card img { transition: transform .5s var(--ease) }
.card:hover img { transform: scale(1.03) }
.card > a:first-child, .card > a:first-child img { display: block; overflow: hidden; border-radius: 4px }

/* Section headings get a little architecture instead of a plain rule. */
.shead-x { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px }
.shead-x h2 {
  margin: 0; font: 700 clamp(21px, 2.1vw, 28px)/1.15 var(--display); letter-spacing: -.02em;
}
.shead-x::after { content: ''; flex: 1; height: 1px; background: var(--line) }
.shead-x a { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--steel); white-space: nowrap }
.shead-x a:hover { color: var(--blue) }

/* --------------------------------------------------------------- PROMOS */
.promo-tag { font: 600 9.5px/1 var(--mono) !important; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold) !important; margin: 0 0 6px }

.promo-strip { background: var(--blue-wash); border-block: 1px solid var(--line) }
.promo-strip.dark { background: var(--deep); border-color: transparent }
.promo-strip .wrap { display: flex; align-items: center; gap: 22px; padding-block: 18px }
.promo-strip-logo { height: 42px; width: auto; flex: none; border-radius: 3px }
.promo-strip-txt { flex: 1; min-width: 0 }
.promo-strip-head { margin: 0; font: 600 17px/1.32 var(--display) }
.promo-strip-body { margin: 3px 0 0; font-size: 14px; color: var(--steel) }
.promo-strip.dark .promo-strip-head { color: #fff }
.promo-strip.dark .promo-strip-body { color: #A9C2D3 }

.promo-card { border-color: var(--gold) !important; background: var(--gold-wash) }

.promo-corner {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 330px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: 7px; overflow: hidden;
  box-shadow: 0 20px 52px rgba(10,24,38,.2);
  transform: translateY(20px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.promo-corner.in { transform: none; opacity: 1 }
.promo-corner.dark { background: var(--ink); border-color: transparent; color: #fff }
.promo-corner-img { width: 100%; height: 132px; object-fit: cover; display: block }
.promo-corner-body { padding: 15px 17px 17px }
.promo-corner h4 { margin: 0 0 7px; font: 600 16.5px/1.32 var(--display) }
.promo-corner.dark h4 { color: #fff }
.promo-corner p { margin: 0 0 13px; font-size: 13.5px; line-height: 1.55; color: var(--steel) }
.promo-corner.dark p { color: #A9C2D3 }
.promo-x {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 27px; height: 27px;
  border: 0; border-radius: 50%; cursor: pointer; font-size: 19px; line-height: 1;
  background: rgba(255,255,255,.9); color: var(--ink);
}
.promo-corner.dark .promo-x { background: rgba(255,255,255,.16); color: #fff }

/* --------------------------------------------------------------- MOBILE */
@media (max-width: 900px) {
  :root { --hero-h: auto }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 }
  .hero-media { order: -1 }
  .hero-copy h2 { font-size: 27px }
  .hero-dek { font-size: 15.5px }
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 22px }
  .promo-strip .wrap { flex-direction: column; align-items: flex-start; gap: 12px }
  .promo-corner { right: 10px; left: 10px; bottom: 10px; width: auto }
  .hero-arrows { display: none }
}

/* Anyone who has asked their system to stop animations gets a still page.
   This is not optional politeness — motion triggers migraine and nausea in
   a real share of readers. */
@media (prefers-reduced-motion: reduce) {
  .hero-slide, [data-reveal], .card, .card img, .promo-corner { transition: none !important }
  [data-reveal] { opacity: 1; transform: none }
  .hero-dot span { transition: none }
  .card:hover { transform: none }
}
