/*
=================================================================
H2Flow Plumbing - Global Styles (Brand-First)
Palette:
Navy  #001F4E
Blue  #00B5EF
LtBlu #68CEF2
Orange#F58021
Tan   #E8D9B4
Cream #FDF3CB
=================================================================
*/

:root{
  --navy:#001F4E;
  --blue:#00B5EF;
  --ltblue:#68CEF2;
  --orange:#F58021;
  --tan:#E8D9B4;
  --cream:#FDF3CB;

  --bg:#ffffff;
  --text:#0b1b2b;
  --muted:#526372;
  --line:rgba(0,31,78,.12);

  --radius:18px;
  --radius-sm:12px;

  --shadow: 0 14px 40px rgba(0,0,0,.10);
  --shadow-soft: 0 10px 28px rgba(0,0,0,.08);

  --container: 1100px;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{max-width:100%; height:auto; display:block;}
a{color:inherit; text-decoration:none;}
p{line-height:1.6; margin:0 0 14px;}
h1,h2,h3{margin:0 0 10px; letter-spacing:-.02em;}
h1{font-size: clamp(32px, 5vw, 54px); line-height:1.05;}
h2{font-size: clamp(22px, 3.2vw, 34px); line-height:1.15;}
strong{font-weight:800;}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

.muted{color:var(--muted);}
.text-accent{color:var(--navy);}

.no-scroll{overflow:hidden;}

.topbar-accent{
  height:4px;
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--orange));
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight:900;
  letter-spacing:.01em;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  cursor:pointer;
  user-select:none;
}

.btn--lg{padding: 14px 18px; font-size: 16px;}
.btn--primary{
  background: var(--orange);
  color:#fff;
  box-shadow: 0 16px 36px rgba(245,128,33,.28);
}
.btn--primary:active{transform: translateY(1px);}

.btn--ghost{
  background:#fff;
  border-color: rgba(0,31,78,.18);
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}
.btn--ghost:active{transform: translateY(1px);}

/* Icon buttons */
.iconbtn{
  width:44px; height:44px;
  border-radius: 12px;
  border:1px solid rgba(0,31,78,.14);
  background: rgba(255,255,255,.9);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}

.hamburger{
  width:18px; height:12px; position:relative;
}
.hamburger:before,
.hamburger:after,
.hamburger{
  display:block;
}
.hamburger:before,
.hamburger:after{
  content:"";
  position:absolute;
  left:0; right:0;
  height:2px;
  background: var(--navy);
  border-radius: 999px;
}
.hamburger:before{top:0;}
.hamburger:after{bottom:0;}
.hamburger{background: var(--navy); height:2px; border-radius:999px;}

.xicon{
  width:18px; height:18px; position:relative;
}
.xicon:before,
.xicon:after{
  content:"";
  position:absolute;
  top:50%; left:50%;
  width:18px; height:2px;
  background: var(--navy);
  border-radius: 999px;
  transform-origin:center;
}
.xicon:before{transform: translate(-50%,-50%) rotate(45deg);}
.xicon:after{transform: translate(-50%,-50%) rotate(-45deg);}

/* Mobile Header */
.mheader{
  position:sticky;
  top:0;
  z-index:1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,31,78,.10);
}
.mheader__inner{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex: 1;
}
.brand__logo{
  width:38px;
  height:38px;
  border-radius: 12px;
  border:1px solid rgba(0,31,78,.12);
  background:#fff;
  padding:5px;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.brand__text{min-width:0;}
.brand__name{
  font-weight: 950;
  color: var(--navy);
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand__tagline{
  font-size: 12px;
  color: var(--muted);
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.callpill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--orange);
  color:#fff;
  font-weight:950;
  box-shadow: 0 16px 36px rgba(245,128,33,.28);
}

/* Drawer */
.drawer{
  position:fixed;
  inset:0;
  z-index:1200;
  pointer-events:none;
  opacity:0;
  transition: opacity .16s ease;
}
.drawer.is-open{
  pointer-events:auto;
  opacity:1;
}
.drawer__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.42);
}
.drawer__panel{
  position:absolute;
  top:0; left:0;
  height:100%;
  width:min(340px, 86vw);
  background:#fff;
  border-right: 1px solid rgba(0,31,78,.12);
  box-shadow: var(--shadow);
  transform: translateX(-110%);
  transition: transform .18s ease;
  display:flex;
  flex-direction:column;
}
.drawer.is-open .drawer__panel{transform: translateX(0);}

.drawer__head{
  padding: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom: 1px solid rgba(0,31,78,.10);
}
.drawer__brand{
  display:flex; gap:10px; align-items:center;
}
.drawer__brand img{
  width:40px; height:40px;
  border-radius: 12px;
  border:1px solid rgba(0,31,78,.12);
  padding:5px;
}
.drawer__brandname{font-weight:950; color:var(--navy);}
.drawer__brandtag{font-size:12px; color:var(--muted); font-weight:800;}

.drawer__links{
  padding: 10px 14px 0;
  overflow:auto;
}
.drawer__links a{
  display:block;
  padding: 12px 10px;
  border-radius: 12px;
  font-weight:900;
  color: var(--navy);
}
.drawer__links a:active{background: rgba(104,206,242,.18);}
.drawer__links hr{
  border:0;
  border-top:1px solid rgba(0,31,78,.10);
  margin: 10px 0;
}

.drawer__cta{
  margin-top:auto;
  padding: 14px;
  display:grid;
  gap:10px;
  border-top: 1px solid rgba(0,31,78,.10);
}

/* Hero */
.hero{
  position:relative;
  padding: 22px 0 22px;
  overflow:hidden;
}
.hero__bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 20% 15%, rgba(104,206,242,.50), transparent 60%),
    radial-gradient(850px 420px at 90% 35%, rgba(0,181,239,.28), transparent 55%),
    radial-gradient(900px 500px at 40% 80%, rgba(245,128,33,.18), transparent 60%),
    linear-gradient(180deg, rgba(0,31,78,.04), rgba(255,255,255,1));
  pointer-events:none;
}

.hero__grid{
  position:relative;
  display:grid;
  gap: 22px;
  align-items:center;
}

.pill{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(104,206,242,.45);
  border: 1px solid rgba(0,31,78,.12);
  color: var(--navy);
  font-weight:950;
  letter-spacing:.08em;
  font-size: 12px;
  text-transform:uppercase;
}

.lead{
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
}

.hero__badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 12px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight:950;
  font-size: 13px;
  border: 1px solid rgba(0,31,78,.12);
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
}
.badge--blue{background: rgba(104,206,242,.45); color: var(--navy);}
.badge--light{background: rgba(255,255,255,.85); color: var(--navy);}
.badge--tan{background: rgba(232,217,180,.55); color: var(--navy);}

.hero__cta{
  display:grid;
  gap:12px;
  grid-template-columns: 1fr;
  margin: 14px 0 12px;
}

.checks{
  display:grid;
  gap:10px;
  margin-top: 10px;
}
.check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(253,243,203,.65);
  border: 1px solid rgba(0,31,78,.10);
  font-weight:900;
  color: var(--navy);
}
.check:before{
  content:"✓";
  width:24px;
  height:24px;
  border-radius:999px;
  background: rgba(0,181,239,.22);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:950;
}

/* Mascot / right side */
.hero__art{
  display:grid;
  gap:12px;
  align-content:start;
}
.mascotCard{
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,31,78,.12);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}
.mascotCard img{
  width:100%;
  height:auto;
  max-height: 520px;
  object-fit:contain;
}

.hero__mini{
  display:grid;
  gap:12px;
}
.miniCard{
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,31,78,.12);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}
.miniCard--orange{
  background: rgba(245,128,33,.12);
  border-color: rgba(245,128,33,.22);
}
.miniTitle{
  font-weight:950;
  color: var(--navy);
  margin-bottom: 6px;
}
.miniText{color: var(--muted); font-weight:700;}

/* Sections */
.section{padding: 26px 0;}
.section--alt{
  background:
    radial-gradient(900px 400px at 20% 10%, rgba(104,206,242,.34), transparent 60%),
    radial-gradient(900px 400px at 85% 60%, rgba(245,128,33,.14), transparent 60%),
    linear-gradient(180deg, rgba(0,31,78,.03), rgba(255,255,255,1));
  border-top: 1px solid rgba(0,31,78,.08);
  border-bottom: 1px solid rgba(0,31,78,.08);
}
.section__head{margin-bottom: 16px;}

/* Cards */
.cards{
  display:grid;
  gap:14px;
}
.card{
  background:#fff;
  border: 1px solid rgba(0,31,78,.12);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.card__top{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.card__icon{
  width:44px; height:44px;
  border-radius: 14px;
  background: rgba(0,181,239,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
}
.card__title{font-weight:950; color:var(--navy); font-size:18px;}
.card__desc{color:var(--muted); font-weight:700; margin-top:4px; line-height:1.35;}
.card__link{
  margin-top: 12px;
  font-weight:950;
  color: var(--orange);
}
.card--cta{
  border-color: rgba(245,128,33,.22);
  background: rgba(245,128,33,.06);
}

/* Request */
.request{
  display:grid;
  gap:16px;
}
.request__cta{
  display:grid;
  gap:12px;
  margin-top: 10px;
}
.request__facts{
  margin-top: 12px;
  color: var(--muted);
  font-weight:700;
  display:grid;
  gap:8px;
}
.trustBox{
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,31,78,.12);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}
.trustBox__title{
  font-weight:950;
  color: var(--navy);
  margin-bottom: 10px;
}
.trustBox ul{
  margin:0;
  padding-left: 18px;
  color: var(--muted);
  font-weight:700;
  display:grid;
  gap:8px;
}
.trustBox__note{
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(232,217,180,.55);
  border: 1px solid rgba(0,31,78,.10);
  color: var(--navy);
  font-weight:900;
}

/* Footer */
.footer{
  padding: 22px 0 90px; /* leave room for bottom bar */
}
.footer__grid{
  display:grid;
  gap:16px;
}
.footer__brand{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.footer__brand img{
  width:52px; height:52px;
  border-radius: 16px;
  border:1px solid rgba(0,31,78,.12);
  padding:7px;
  background:#fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}
.footer__name{font-weight:950; color:var(--navy);}
.footer__tag{color: var(--muted); font-weight:700; margin-top:6px;}
.footer__cols{
  display:grid;
  gap:16px;
}
.footer__h{font-weight:950; color:var(--navy); margin-bottom:8px;}
.footer a{
  display:block;
  padding: 6px 0;
  color: var(--navy);
  font-weight:800;
}
.footer__small{color: var(--muted); font-weight:700; margin-top:8px;}

/* Bottom bar */
.bottombar{
  position:fixed;
  left:0; right:0; bottom:0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,31,78,.10);
  z-index:1100;
  display:flex;
  gap:12px;
}
.bottombar__btn{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0,31,78,.18);
  background:#fff;
  font-weight:950;
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}
.bottombar__btn--call{
  border-color: rgba(245,128,33,.25);
  background: var(--orange);
  color:#fff;
  box-shadow: 0 16px 36px rgba(245,128,33,.28);
}

/* Responsive */
@media (min-width: 860px){
  .hero__grid{
    grid-template-columns: 1.25fr .85fr;
    gap: 24px;
  }
  .hero__cta{
    grid-template-columns: 1fr 1fr;
    max-width: 520px;
  }
  .cards{
    grid-template-columns: repeat(2, 1fr);
  }
  .request{
    grid-template-columns: 1.1fr .9fr;
    align-items:start;
  }
  .footer__grid{
    grid-template-columns: 1.1fr .9fr;
    align-items:start;
  }
  .footer__cols{
    grid-template-columns: 1fr 1fr;
  }
}

/* Extra safety: prevent giant blank gaps from accidental fixed heights */
.hero, .section, .footer { min-height: 0; }