/* =========================
   homepage.css (CLEANED) — PART 1/3
   ========================= */

/* Root Variables */
:root{
  --bg:#ffffff;
  --surface:#f8fafc;
  --border:#e5e7eb;
  --borderf:#9b9a9a36;
  --text:#000000;
  --muted:#25282e;

  --primary:#130bb6;
  --title:#276295;
  --primary-soft:#e9f4fc;

  --radius:14px;
  --nav-h:100px;
  --shadow:0 14px 30px rgba(0,0,0,.15);

  /* Slogan colors */
  --slogan-blue:#0716ea;
  --slogan-green:#028f00;
  --slogan-bg:#100e1c;
}

/* Global reset / base */
*,*::before,*::after{box-sizing:border-box;}
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Inter",sans-serif;
  background:#fff;
  color:#1f2937;
  line-height:1.6;
}
img{max-width:100%;display:block;}
a{text-decoration:none;color:inherit;}
button{font-family:inherit;}
main{padding:0;}
[hidden]{display:none !important;}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* Layout helpers */
.container{
  width:min(1100px,92%);
  margin:0 auto;
  text-align:center;
}
.section{padding:64px 0;}
.section-lg{padding:96px 0;}
.section-video{background:#f0fef5ba;}
.section-inner{
  width:min(1100px,92%);
  margin:auto;
}

@media (max-width:767px){
  .section{padding:48px 0;}
  .section-lg{padding:72px 0;}
}

/* A11y */
.skip-link{
  position:absolute;
  top:-40px;
  left:0;
  background:#000;
  color:#fff;
  padding:8px 12px;
  z-index:1000;
  text-decoration:none;
  border-radius:4px;
}
.skip-link:focus{top:10px;}

.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;
}

/* Typography */
h1,h2,h3,h4,h5,h6{
  margin:0 0 .75em;
  font-weight:600;
  line-height:1.2;
  color:var(--text);
}
h1{font-size:2.5rem;letter-spacing:-.02em;font-weight:680;}
h2{font-size:2rem;}
h3{font-size:1.4rem;}
h4{font-size:1.25rem;font-weight:600;}
h5{font-size:2rem;text-align:center;font-weight:600;color:var(--text);}

@media (max-width:767px){
  h1{font-size:2rem;}
  h2{font-size:1.9rem;}
  h3{font-size:1.1rem;}
}

/* Header / Navigation */
.topbar{
  position:sticky;
  top:0;
  z-index:1000;
  height:var(--nav-h);
  background:rgba(255,255,255,.95);
  border-bottom:1px solid var(--border);
}
.topbar-inner{
  height:var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--border);
}

/* Left cluster */
.lefts-cluster{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:-18px;
}

/* Menu button */
.menu-btn{
  min-width:48px;
  min-height:48px;
  width:48px;
  height:48px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--border);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:box-shadow .2s ease,transform .05s ease,background .2s ease;
}
.menu-btn:hover{box-shadow:0 6px 14px rgba(0,0,0,.12);background:#f9fafb;}
.menu-btn:active{transform:scale(.97);}
.menu-btn:focus-visible{outline:3px solid rgba(30,136,229,.5);outline-offset:2px;}

.menu-icon{width:18px;height:12px;position:relative;display:block;}
.menu-icon span{
  position:absolute;
  left:0;right:0;
  height:2px;
  background:var(--text);
  border-radius:999px;
}
.menu-icon span:nth-child(1){top:0;}
.menu-icon span:nth-child(2){top:5px;}
.menu-icon span:nth-child(3){top:10px;}

/* Company */
.company{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  text-decoration:none;
}
.site-logo{width:auto;height:70px;object-fit:contain;}
.site-title{width:auto;height:100px;padding:0;object-fit:contain;}

/* Right actions */
.topbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

/* Buttons */
.btn{
  min-height:44px;
  padding:.55rem .9rem;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:background .2s ease,border-color .2s ease;
}
.btn:hover{background:#f9fafb;}
.btn:focus-visible{outline:3px solid rgba(30,136,229,.35);outline-offset:2px;}

.btn-primary{
  background:var(--primary);
  color:#fff;
  border-color:rgba(30,136,229,.4);
}
.btn-primary:hover{background:#1976d2;}
.btn-primary:focus-visible{outline:3px solid rgba(255,255,255,.5);outline-offset:2px;}

/* =========================
   homepage.css (CLEANED) — PART 2/3
   ========================= */

/* Slogan */
.slogan{
  display:flex;            /* fixed */
  align-items:center;
}
.slogan-pill{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
  background:#e3e7ed99;
  color:var(--text);
  border:1px solid var(--border);
  border-radius:11px;
  padding:4px 8px;
  font-weight:700;
  font-size:.95rem;
  margin-left:3px;
  margin-bottom:12px;
  white-space:nowrap;
}
.slogan-part-blue{color:#18108c;font-weight:700;}
.slogan-part-green{color:#117d18;font-weight:700;}
.slogan-part-blue1{color:#13a7f1;font-weight:700;}
.slogan-part-green1{color:#3aed29;font-weight:700;}

.slogan-mobile-text{display:inline;font-size:.85rem;font-weight:650;}
.slogan-desktop-text{display:none;font-size:.95rem;font-weight:650;}

/* Drawer */
.drawer-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:999;
}
.drawer{
  position:fixed;
  top:0;left:0;
  width:min(320px,86vw);
  height:100%;
  background:#fff;
  border-right:1px solid var(--border);
  box-shadow:var(--shadow);
  transform:translateX(-103%);
  transition:transform .25s ease;
  z-index:1000;
  display:flex;
  flex-direction:column;
}
.drawer-header{
  height:var(--nav-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  border-bottom:1px solid var(--border);
}
.drawer-title{font-size:1rem;font-weight:800;}
.drawer-close{
  width:40px;height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
}
.drawer-close:focus-visible{outline:3px solid rgba(30,136,229,.35);outline-offset:2px;}
.drawer-body{padding:14px;overflow-y:auto;}
.drawer-nav{display:grid;gap:8px;}
.drawer-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:44px;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:650;
  text-decoration:none;
  color:inherit;
  transition:background .2s ease,border-color .2s ease;
}
.drawer-link:hover{background:#f4f9ff;border-color:rgba(30,136,229,.4);}
.drawer-link:focus-visible{outline:3px solid rgba(30,136,229,.35);outline-offset:2px;}
.drawer-link.active{background:var(--primary-soft);border-color:rgba(30,136,229,.6);}

.drawer-cta{
  margin-top:16px;
  padding:14px;
  border-radius:var(--radius);
  background:var(--surface);
  border:1px solid var(--border);
}
.drawer-cta p{margin:0 0 10px;font-size:.95rem;color:var(--muted);}

/* Open state */
html.drawer-open,
html.drawer-open body{overflow:hidden;}
html.drawer-open .drawer-overlay{opacity:1;pointer-events:auto;}
html.drawer-open .drawer{transform:translateX(0);}

/* Mobile slogan section */
.slogan-mobile-section{
  display:none;
  text-align:center;
  background:#24242a;
  font-weight:700;
  font-size:.95rem;
  max-height:fit-content;
}

@media (max-width:499px){
  .slogan{display:none;}
  .slogan-mobile-section{
    display:block;
    padding:6px;
    text-align:center;
  }
  .slogan-mobile-section .slogan-pill{
    display:inline;
    background:transparent;
    color:#fff;
    border:0;
    border-radius:0;
    padding:12px;
    justify-content:center;
  }
  /* fixed invalid var(#hex) */
  .slogan-mobile-section .slogan-part-blue1{color:#13a7f1;}
  .slogan-mobile-section .slogan-part-green1{color:#1ffc1b;}
}

/* Topbar responsive */
@media (min-width:350px) and (max-width:499px){
  .topbar-actions .btn{
    min-height:30px;
    padding:.3rem .6rem;
    font-size:.7rem;
    border-radius:10px;
    max-width:125px;
    max-height:45px;
  }
}
@media (min-width:500px) and (max-width:554px){
  .topbar-actions .btn{
    min-height:30px;
    padding:.3rem .6rem;
    font-size:.7rem;
    border-radius:10px;
    max-width:65px;
    max-height:45px;
  }
}
@media (min-width:555px) and (max-width:767px){
  .topbar-actions .btn{
    min-height:30px;
    padding:.3rem .6rem;
    font-size:.7rem;
    border-radius:10px;
    max-width:125px;
    max-height:45px;
  }
}
@media (min-width:768px) and (max-width:782px){
  .topbar-actions .btn{
    min-height:30px;
    padding:.3rem .6rem;
    font-size:.9rem;
    border-radius:10px;
    max-width:125px;
    max-height:45px;
  }
}
@media (min-width:768px){
  .slogan-mobile-text{display:none;}
  .slogan-desktop-text{display:inline;}
}
@media (min-width:500px) and (max-width:767px){
  .site-logo{height:65px;}
  .slogan-mobile-text{display:none;}
  .slogan-desktop-text{display:inline;font-size:.75rem;font-weight:660;}
}
@media (min-width:350px) and (max-width:767px){
  .topbar{height:70px;backdrop-filter:blur(12px);}
  .topbar-inner{height:70px;}
  .menu-btn{min-width:20px;min-height:20px;width:38px;height:48px;border-radius:12px;}
  .menu-icon{width:16px;height:12px;}
  .company{gap:0;margin:auto;}
  .topbar-actions{gap:0;}
  .lefts-cluster{gap:6px;margin-left:0;}
  .site-title{height:60px;width:auto;padding:0;}
  .site-logo{height:50px;width:auto;padding:0;}
}
@media (max-width:349px){
  .topbar{height:70px;backdrop-filter:blur(12px);}
  .topbar-inner{height:70px;}
  .menu-btn{min-width:20px;min-height:20px;width:28px;height:48px;border-radius:12px;}
  .menu-icon{width:12px;height:10px;}
  .company{gap:0;margin:auto;}
  .topbar-actions{gap:0;}
  .topbar-actions .btn{
    min-height:30px;
    min-width:50px;
    padding:.3rem .6rem;
    font-size:.7rem;
    border-radius:10px;
    max-width:65px;
    max-height:45px;
  }
  .lefts-cluster{gap:3px;margin-left:0;}
  .site-title{height:50px;width:auto;padding:0;}
  .site-logo{height:40px;width:auto;padding:0;}
}

/* Hero */
.home-hero{
  background-image:url("/images/home_img1.avif");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  position:relative;
  color:#fff;
  min-height:550px;
  display:flex;
  align-items:center;
}
.home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}
.home-hero .section-inner{position:relative;z-index:1;}
.home-hero-grid{display:grid;gap:40px;align-items:center;}
@media (min-width:768px){
  .home-hero-grid{grid-template-columns:1.1fr .9fr;}
}
.home-hero-content h1{
  color:#fff;
  max-width:650px;
  font-size:2.5rem;
  text-shadow:0 2px 6px rgba(0,0,0,.608);
  font-weight:700;
}
.hero-text{
  font-size:1.1rem;
  max-width:650px;
  font-weight:630;
  margin-top:10px;
  color:#e5e7eb;
  padding-bottom:40px;
  text-shadow:0 2px 6px rgba(0,0,0,.781);
}
.home-hero-card{
  background:#fff;
  color:var(--text);
  padding:24px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.home-hero-card h2{font-size:1.4rem;margin-bottom:12px;font-weight:650;}
.home-hero-card p{margin-bottom:20px;color:var(--muted);}
.home-hero-card .btn{margin-top:8px;}

@media (min-width:768px){
  .home-hero-card{padding:32px;}
  .home-hero-card h2{font-size:1.6rem;}
  .home-hero-card p{font-weight:600;}
}
@media (max-width:768px){
  .home-hero-content h1{font-size:2rem;}
  .hero-text{padding-bottom:0;margin-bottom:0;}
}

/* Features */
.home-sections{
  display:flex;
  flex-direction:column;
  gap:0;
  padding:0;
}
.home-feature{
  border-radius:18px;
  overflow:hidden;
  content-visibility:auto;
  contain-intrinsic-size:700px;
}
.feature-inner{
  display:flex;
  flex-direction:column;
  justify-content:space-evenly;
}
.feature-content{
  padding:0 28px 20px;
  text-align:center;
  margin-top:0;
}
.feature-content h2{margin-bottom:12px;font-weight:650;}
.feature-content p{margin-bottom:20px;color:var(--muted);font-weight:600;}

.feature-image,
.feature-image2{
  width:100%;
}
.feature-image img,
.feature-image2 img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

@media (max-width:768px){
  .feature-image,
  .feature-image2,
  .feature-image7{padding:12px 0 4px;}

  .feature-image img,
  .feature-image2 img,
  .feature-image7 img{
    max-width:82%;
    margin:0 auto 10px;
    border-radius:12px;
  }

  .feature-content{padding:24px 20px 8px;}
}

@media (min-width:768px){
  .home-feature{padding:48px 0;}

  .feature-inner{
    max-width:1100px;
    margin:0 auto;
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:38px;
    align-items:start;
  }

  .feature-content{
    text-align:left;
    padding:0 20px;
  }

  .feature-image{
    display:flex;
    align-items:stretch;
    position:relative;
    justify-self:end;
  }
  .feature-image img{
    width:auto;
    height:auto;
    max-height:350px;
    max-width:400px;
    object-fit:cover;
    border-radius:14px;
    padding-top:4px;
  }

  .feature-image2{
    display:flex;
    align-items:stretch;
    position:relative;
    justify-self:auto;
  }
  .feature-image2 img{
    width:auto;
    height:auto;
    max-height:400px;
    max-width:400px;
    object-fit:cover;
    border-radius:14px;
    padding-top:4px;
  }

  .feature-image7{
    display:flex;
    align-items:center;
    position:relative;
    justify-self:auto;
  }
  .feature-image7 img{
    width:auto;
    height:auto;
    max-height:550px;
    max-width:550px;
    object-fit:cover;
    border-radius:14px;
    padding-top:40px;
  }


  .feature-next-steps p{
    color:var(--muted);
    font-weight:600;
    text-align:center;
    margin:0 auto 20px;
    max-width:min(1100px,80%);
    padding-inline:30px;
  }
}

/* Section background colors */
.feature-water-test{background:#e3f2fd;}
.feature-manage-leads{background:#f0fef5ba;}
.feature-questions{background:#e3f2fd;}
.feature-next-steps{background:#f0fef5ba;}

/* Headings inside feature blocks */
.feature-questions h2,
.feature-water-test h2,
.feature-manage-leads h2{
  font-size:2rem;
  margin-bottom:0;
  font-weight:650;
  text-align:center;
  padding-top:26px;
  padding-bottom:26px;
}
.feature-next-steps h3{
  font-size:2rem;
  margin-bottom:12px;
  font-weight:650;
  text-align:center;
  padding-top:26px;
  padding-bottom:16px;
}
.feature-next-steps p{
  color:var(--muted);
  font-weight:600;
  text-align:center;
  margin:0 auto 5px;
}

.feature-next-steps .feature-image7 img {
  width: 100%;
  height: 600px;
  max-width: 400px;
  object-fit: cover;
  border-radius: 14px;
}

/* Video Section */
.how-it-works{padding-top:12px;padding-bottom:12px;}
.video-wrapper{
  margin-top:40px;
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}
.video-wrapper video{
  width:100%;
  height:auto;
  border-radius:16px;
  background:#000;
  box-shadow:var(--shadow);
  margin-bottom:10px;
}
@media (min-width:200px) and (max-width:767px){
  .video-wrapper{margin-top:32px;}
  .feature-questions p,
  .feature-water-test p,
  .feature-manage-leads p{ text-align:left; }

  .feature-next-steps p{
    text-align:left;
    margin:0 auto 0;
    max-width:min(1100px,90%);
    padding-inline:30px;
  }
  .feature-questions h2,
  .feature-manage-leads h2{
    padding-top:46px;
    padding-bottom:0;
  }
  .feature-next-steps h3{
    margin-bottom:32px;
    padding-top:46px;
  }
}

@media (min-width:200px) and (max-width:480px){
  .feature-next-steps .feature-image7 img{
    height:400px;
    max-width:82%;
    margin:-70px auto 10px;
    border-radius:12px;
  }
}
@media (min-width:481px) and (max-width:767px){
  .feature-next-steps .feature-image7 img{
    height:460px;
    max-width:72%;
    margin: auto auto 10px;
    border-radius:12px;
  }
}

/* Contact button wrapper (kept simple; uses your .btn-primary styling) */
.contact-btn{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
}

/* GoHighLevel Form Embed (scoped) */
.ghl-form-wrapper{
  width:100%;
  max-width:720px;
  margin:2.5rem auto 0;
  padding:0;
  background:transparent;
  border-radius:12px;
  contain:layout size;
  min-height:656px;
  aspect-ratio:720 / 656;
  position:relative;
}
.ghl-form-wrapper.loading{background:#f5f7fa;}
.ghl-form-wrapper iframe{
  width:100%;
  height:656px;
  border:none;
  display:block;
  background:transparent;
  will-change:contents;
}

@media (max-width:768px){
  .ghl-form-wrapper{
    max-width:100%;
    margin-top:2rem;
    min-height:720px;
    aspect-ratio:auto;
  }
  .ghl-form-wrapper iframe{height:720px;}
}
@media (max-width:480px){
  .ghl-form-wrapper{min-height:800px;}
  .ghl-form-wrapper iframe{height:800px;}
}

/* Footer */
.footer{
  position:relative;
  padding:40px 0 60px;
  background:#fff;
  border-top:1px solid var(--borderf);
}
.footer__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  align-items:center;
  justify-items:center;
}
.footer__center{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-align:center;
  height:auto;
}
.footer__nav{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(auto, 1fr)); /* fixed */
  gap:16px;
  align-items:center;
  justify-content:center;
}
.footer__brand .brand__mark{
  width:auto;
  height:70px;
  align-items:center;
  color:#000;
}
.footer__links{
  display:inline-flex;
  gap:22px;
  flex-wrap:wrap;
  color:#0c2a54;
  font-size:18px;
  font-weight:600;
}
.footer__note{
  text-align:center;
  margin-bottom:18px;
  color:#040510;
  font-size:18px;
  font-weight:550;
}
@media (min-width:768px){
  .footer__links{margin-bottom:30px;}
}
@media (max-width:767px){
  .footer__brand .brand__mark{height:35px;}
  .footer__links{font-size:14px;gap:8px;}
  .footer__note{font-size:14px;}
}