/*
 Theme Name:   L8 Water Hygiene Child
 Theme URI:    https://l8waterhygiene.co.uk
 Description:  Divi Child Theme for L8 Water Hygiene
 Author:       Your Name
 Template:     Divi
 Version:      1.0.0
*/

/* ═══════════════════════════════════════════════
   L8 WATER HYGIENE — CUSTOM STYLES
   All site-wide custom CSS lives here.
   Divi's own styles load first, then these apply.
   ═══════════════════════════════════════════════ */

/* ── BRAND VARIABLES ── */
:root {
  --brand:    #7d78ba;
  --brand-lt: #a8a4d4;
  --brand-dk: #4e4a8a;
  --deep:     #1a1a2e;
  --mid:      #24243e;
  --surface:  #2e2e50;
  --white:    #f5f4fc;
  --foam:     #dddaf5;
}

/* ── GLOBAL RESETS & BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--deep) !important;
  color: var(--white) !important;
  font-family: 'DM Sans', sans-serif !important;
  overflow-x: hidden;
}

/* ── DIVI HEADER OVERRIDE ── */
/* Hide default Divi header — we use a Code Module nav */
#main-header,
#top-header {
  display: none !important;
}

/* Push page content down so fixed nav doesn't overlap */
#page-container {
  padding-top: 0 !important;
}

/* ── FIXED NAV ── */
.l8-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4rem;
  background: rgba(26,26,46,.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(125,120,186,.15);
}
.l8-nav .logo-img { height: 44px; width: auto; }
.l8-nav ul { list-style: none; display: flex; gap: 2.5rem; align-items: center; margin: 0; padding: 0; }
.l8-nav a { color: var(--foam); text-decoration: none; font-size: .88rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; transition: color .2s; }
.l8-nav a:hover { color: var(--brand-lt); }
.l8-nav .nav-cta { background: var(--brand); color: #fff !important; padding: .55rem 1.5rem; border-radius: 3px; font-weight: 600 !important; transition: background .2s !important; }
.l8-nav .nav-cta:hover { background: var(--brand-dk) !important; }

/* ── DIVI SECTION RESETS ── */
/* Remove default Divi section padding where we control it ourselves */
.et_pb_section { padding: 0 !important; }
.et_pb_row { max-width: 100% !important; padding: 0 !important; margin: 0 !important; width: 100% !important; }
.et_pb_column { padding: 0 !important; }

/* ── HERO SECTION ── */
.l8-hero-section {
  position: relative;
  height: 100vh; min-height: 640px;
  display: flex; align-items: center;
  overflow: hidden;
  margin-top: 0;
}
#waveCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.l8-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(26,26,46,.88) 0%, rgba(26,26,46,.5) 55%, rgba(36,36,62,.15) 100%);
  pointer-events: none;
}
/* If using a background image on the Divi section, this tints over it */
.l8-hero-section .et_pb_section_bg_image_overlay {
  background: linear-gradient(110deg, rgba(26,26,46,.88) 0%, rgba(26,26,46,.5) 55%, rgba(36,36,62,.15) 100%) !important;
}
.l8-hero-content {
  position: relative; z-index: 2;
  padding: 0 5rem;
  max-width: 700px;
}
.l8-hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  border: 1px solid rgba(125,120,186,.45); background: rgba(125,120,186,.1);
  color: var(--brand-lt); font-size: .73rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .35rem 1rem; border-radius: 2px; margin-bottom: 1.8rem;
  animation: l8FadeUp .8s ease both;
}
.l8-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); display: inline-block; animation: l8Pulse 2s ease-in-out infinite; }
.l8-hero-content h1 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(3.8rem, 7.5vw, 7rem) !important; line-height: .92 !important; letter-spacing: .04em !important;
  color: var(--white) !important; animation: l8FadeUp .8s .15s ease both;
  margin: 0 !important;
}
.l8-hero-content h1 em {
  font-style: normal; display: block;
  background: linear-gradient(135deg, var(--brand-lt) 0%, var(--brand) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.l8-hero-content p {
  margin-top: 1.6rem !important; font-size: 1.05rem !important; line-height: 1.72 !important;
  color: var(--foam) !important; font-weight: 300 !important; max-width: 500px;
  animation: l8FadeUp .8s .3s ease both;
}
.l8-hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; animation: l8FadeUp .8s .45s ease both; }

.l8-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.3); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  animation: l8FadeUp 1s 1s ease both;
}
.l8-scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(125,120,186,.7), transparent); animation: l8ScrollPulse 2s ease-in-out infinite; }

/* ── BUTTONS ── */
.l8-btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dk) 100%);
  color: #fff !important; padding: .9rem 2.2rem; font-weight: 600; font-size: .95rem;
  border: none; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-block;
  transition: opacity .2s, transform .15s; box-shadow: 0 4px 24px rgba(125,120,186,.35);
}
.l8-btn-primary:hover { opacity: .85; transform: translateY(-2px); }
.l8-btn-outline {
  border: 1.5px solid rgba(125,120,186,.4); color: var(--foam) !important; padding: .9rem 2.2rem;
  font-weight: 500; font-size: .95rem; border-radius: 3px; background: transparent;
  cursor: pointer; text-decoration: none; display: inline-block; transition: border-color .2s, color .2s, transform .15s;
}
.l8-btn-outline:hover { border-color: var(--brand-lt); color: var(--brand-lt) !important; transform: translateY(-2px); }

/* ── STATS BAR ── */
.l8-stats {
  background: var(--mid); border-top: 1px solid rgba(125,120,186,.2);
  padding: 2.6rem 5rem; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem;
}
.l8-stat-item { text-align: center; }
.l8-stat-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 3rem; line-height: 1; letter-spacing: .04em;
  background: linear-gradient(135deg, var(--brand-lt), var(--brand));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.l8-stat-label { font-size: .78rem; color: var(--foam); text-transform: uppercase; letter-spacing: .1em; margin-top: .4rem; opacity: .7; }

/* ── AWARDS STRIP ── */
.l8-awards {
  background: var(--deep); border-bottom: 1px solid rgba(125,120,186,.12);
  padding: 3rem 5rem; text-align: center;
}
.l8-awards-label {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand-lt); opacity: .7; margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.l8-awards-label::before, .l8-awards-label::after {
  content: ''; flex: 1; max-width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125,120,186,.3), transparent);
}
.l8-awards-row { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.l8-award-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 150px; height: 110px;
  border: 1px solid rgba(125,120,186,.2); border-radius: 6px;
  background: rgba(125,120,186,.05); padding: 1.2rem 1rem;
  transition: border-color .3s, background .3s, transform .25s;
  position: relative; overflow: hidden;
}
.l8-award-item:hover { border-color: rgba(125,120,186,.5); background: rgba(125,120,186,.1); transform: translateY(-3px); }
.l8-award-item.confirmed { border-color: rgba(125,120,186,.35); }
.l8-award-item.confirmed .award-check {
  position: absolute; top: 7px; right: 9px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand); display: flex; align-items: center; justify-content: center;
}
.l8-award-item.confirmed .award-check svg { width: 8px; height: 8px; }
.l8-award-item.pending { opacity: .45; border-style: dashed; }
.l8-award-item.pending:hover { opacity: .65; }
.l8-award-logo-wrap { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.l8-award-logo-wrap img { max-width: 100px; max-height: 52px; object-fit: contain; filter: brightness(0) invert(1); opacity: .85; }
.l8-award-name { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--foam); opacity: .6; margin-top: .6rem; text-align: center; line-height: 1.3; }
.l8-award-item.pending .l8-award-name { font-style: italic; }

/* ── WAVE DIVIDERS ── */
.l8-wave { line-height: 0; overflow: hidden; display: block; }
.l8-wave svg { display: block; width: 100%; }

/* ── SECTION LABEL ── */
.l8-section-tag { color: var(--brand-lt); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .8rem; display: block; }

/* ── SERVICES SECTION ── */
.l8-services { padding: 6rem 5rem; max-width: 1300px; margin: 0 auto; }
.l8-services h2 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(2.6rem, 4vw, 4rem) !important; letter-spacing: .05em !important; margin-bottom: 3.5rem !important; line-height: 1 !important;
}
.l8-services h2 span { background: linear-gradient(135deg, var(--brand-lt), var(--brand-dk)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.l8-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.l8-card {
  background: var(--surface); padding: 2.5rem 2rem;
  position: relative; overflow: hidden; transition: background .3s, transform .3s; cursor: pointer;
}
.l8-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--brand-dk), var(--brand-lt)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.l8-card:hover::after { transform: scaleX(1); }
.l8-card::before { content: ''; position: absolute; top: -30px; right: -30px; width: 100px; height: 100px; background: radial-gradient(circle, rgba(125,120,186,.09) 0%, transparent 70%); border-radius: 50%; transition: transform .4s; }
.l8-card:hover { background: #353560; transform: translateY(-3px); }
.l8-card:hover::before { transform: scale(2.5); }
.l8-card-icon { width: 44px; height: 44px; margin-bottom: 1.4rem; color: var(--brand-lt); }
.l8-card h3 { font-size: 1.05rem !important; font-weight: 600 !important; margin-bottom: .75rem !important; color: var(--white) !important; }
.l8-card p { font-size: .88rem !important; color: rgba(221,218,245,.55) !important; line-height: 1.68 !important; }

/* ── TRUST BAND ── */
.l8-trust { background: var(--mid); padding: 4rem 5rem; display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.l8-trust-text { max-width: 520px; }
.l8-trust-text h2 { font-family: 'Bebas Neue', sans-serif !important; font-size: clamp(2rem,3vw,2.8rem) !important; letter-spacing: .05em !important; margin-bottom: .8rem !important; line-height: 1.05 !important; color: var(--white) !important; }
.l8-trust-text p { font-size: .95rem !important; color: var(--foam) !important; opacity: .7; line-height: 1.7 !important; }
.l8-trust-badges { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.l8-badge { border: 1px solid rgba(125,120,186,.3); background: rgba(125,120,186,.07); padding: .9rem 1.4rem; border-radius: 4px; text-align: center; min-width: 110px; }
.l8-badge-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: .08em; color: var(--brand-lt); }
.l8-badge-sub { font-size: .72rem; color: var(--foam); opacity: .55; text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }

/* ── CTA BAND ── */
.l8-cta-band {
  background: linear-gradient(120deg, var(--brand-dk) 0%, var(--brand) 60%, var(--brand-lt) 100%);
  padding: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.l8-cta-band::before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E") repeat;
  background-size: 60px 60px;
}
.l8-cta-band h2 { font-family: 'Bebas Neue', sans-serif !important; font-size: clamp(2.2rem,3.5vw,3.2rem) !important; color: #fff !important; letter-spacing: .05em !important; max-width: 600px; line-height: 1.1 !important; position: relative; z-index: 1; }
.l8-cta-band h2 small { display: block; font-family: 'DM Sans', sans-serif; font-size: .95rem; letter-spacing: .02em; font-weight: 300; opacity: .85; margin-top: .5rem; }
.l8-btn-white { position: relative; z-index: 1; background: #fff; color: var(--brand-dk) !important; padding: 1.1rem 2.6rem; font-weight: 700; font-size: 1rem; border: none; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; transition: background .2s, transform .15s; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.l8-btn-white:hover { background: var(--foam); transform: translateY(-2px); }

/* ── FOOTER ── */
.l8-footer { background: #111124; padding: 3rem 5rem; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(125,120,186,.12); flex-wrap: wrap; gap: 1.2rem; }
.l8-footer p { font-size: .82rem; color: rgba(255,255,255,.3); margin: 0; }
.l8-footer a { color: var(--brand-lt); text-decoration: none; }
.l8-footer-logo { height: 36px; margin-bottom: .7rem; display: block; filter: brightness(0) invert(1); opacity: .55; }

/* ── RIPPLE EFFECT ── */
.l8-ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(125,120,186,.28) 0%, transparent 70%); animation: l8RippleOut linear forwards; }

/* ── KEYFRAMES ── */
@keyframes l8FadeUp   { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes l8Pulse    { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }
@keyframes l8ScrollPulse { 0%,100%{transform:scaleY(1);opacity:.6} 50%{transform:scaleY(.55);opacity:1} }
@keyframes l8RippleOut   { 0%{transform:scale(0);opacity:.7} 100%{transform:scale(1);opacity:0} }

/* ── RESPONSIVE ── */
@media(max-width:900px){
  .l8-nav { padding: 1rem 1.5rem; }
  .l8-nav ul { display: none; }
  .l8-hero-content { padding: 0 1.8rem; }
  .l8-stats { grid-template-columns: repeat(2,1fr); padding: 2rem 1.5rem; }
  .l8-awards { padding: 2.5rem 1.5rem; }
  .l8-award-item { width: 130px; height: 100px; }
  .l8-services { padding: 4rem 1.5rem; }
  .l8-cards { grid-template-columns: 1fr; }
  .l8-trust { padding: 3rem 1.5rem; flex-direction: column; }
  .l8-cta-band { padding: 3.5rem 1.5rem; }
  .l8-footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; }
}
