/* ==========================================================
   East Mountain Plumber — main.css (mobile-first)
   Clean "banded sections" layout + plumber-friendly palette
   File: /public_html/assets/main.css
   ========================================================== */

/* --------------------------
   0) Theme tokens
--------------------------- */
:root{
  /* Plumber-friendly: trust + clean + high-contrast */
  --bg: #0b1220;          /* deep navy */
  --surface: #0f1a31;     /* card surface */
  --ink: #eef3ff;         /* text */
  --muted: rgba(238,243,255,.78);

  --brand: #1e88ff;       /* primary blue */
  --brand2:#19c37d;       /* accent green for "available now" */
  --warn: #ffcc66;        /* warm highlight */
  --danger:#ff5a5f;

  --line: rgba(238,243,255,.12);

  --bandA: linear-gradient(180deg, rgba(30,136,255,.10), rgba(25,195,125,.06));
  --bandB: linear-gradient(180deg, rgba(255,204,102,.10), rgba(30,136,255,.06));
  --bandC: linear-gradient(180deg, rgba(238,243,255,.06), rgba(238,243,255,.02));

  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --shadow2: 0 10px 28px rgba(0,0,0,.35);

  --wrap: min(1120px, 92vw);
  --pad: clamp(18px, 2.2vw, 28px);

  --h1: clamp(28px, 3.5vw, 44px);
  --h2: clamp(22px, 2.5vw, 30px);
  --h3: clamp(18px, 2vw, 22px);
  --p:  16px;

  --ease: cubic-bezier(.2,.8,.2,1);
}

/* --------------------------
   1) Reset & base
--------------------------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, "Apple Color Emoji","Segoe UI Emoji";
  font-size: var(--p);
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(30,136,255,.28), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(25,195,125,.22), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(255,204,102,.12), transparent 55%),
    var(--bg);
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
p{ margin:0 0 14px; color: var(--muted); }
strong{ color: var(--ink); }

.container{
  width: var(--wrap);
  margin: 0 auto;
}

.muted{ color: var(--muted); }
.small{ font-size: 13px; color: rgba(238,243,255,.70); }

/* --------------------------
   2) Utilities
--------------------------- */
.section{
  padding: clamp(34px, 5.2vw, 74px) 0;
  position: relative;
}
.section + .section{ border-top: 1px solid rgba(238,243,255,.06); }

.band{
  position: relative;
  overflow: clip;
}
.band::before{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  opacity: .95;
}
.band.band-a::before{ background: var(--bandA); }
.band.band-b::before{ background: var(--bandB); }
.band.band-c::before{ background: var(--bandC); }

.card{
  background: rgba(15,26,49,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: var(--pad);
  backdrop-filter: blur(10px);
}
.card.soft{
  background: rgba(15,26,49,.58);
}

.grid{
  display:grid;
  gap: 14px;
}
@media (min-width: 860px){
  .grid.cols-2{ grid-template-columns: 1.1fr .9fr; gap: 20px; }
  .grid.cols-3{ grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

.hr{
  height:1px;
  background: rgba(238,243,255,.10);
  margin: 18px 0;
}

/* --------------------------
   3) Buttons
--------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(238,243,255,.14);
  background: rgba(238,243,255,.06);
  color: var(--ink);
  font-weight: 650;
  text-decoration:none;
  transition: transform .12s var(--ease), background .12s var(--ease), border-color .12s var(--ease);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.btn:hover{
  text-decoration:none;
  transform: translateY(-1px);
  background: rgba(238,243,255,.09);
  border-color: rgba(238,243,255,.22);
}

.btn-primary{
  background: linear-gradient(135deg, rgba(30,136,255,1), rgba(25,195,125,1));
  border-color: rgba(255,255,255,.15);
  color: #061025;
}
.btn-primary:hover{
  background: linear-gradient(135deg, rgba(30,136,255,1), rgba(25,195,125,.92));
}

.btn-outline{
  background: transparent;
  border-color: rgba(238,243,255,.20);
}

.btn-danger{
  background: linear-gradient(135deg, rgba(255,90,95,1), rgba(255,204,102,1));
  border-color: rgba(255,255,255,.18);
  color:#1a0b0b;
}

/* --------------------------
   4) Header / Nav
--------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,18,32,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(238,243,255,.08);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 180px;
}
.logo{
  width: 34px;
  height: 34px;
}
.brand-name{
  font-weight: 780;
  letter-spacing: .2px;
}
.nav{
  display:none;
  gap: 16px;
  align-items:center;
}
.nav a{
  color: rgba(238,243,255,.84);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
}
.nav a:hover{
  text-decoration:none;
  background: rgba(238,243,255,.08);
}
@media (min-width: 860px){
  .nav{ display:flex; }
}

/* Mobile: make header CTA always accessible */
@media (max-width: 859px){
  .header-row .btn{
    padding: 10px 14px;
    font-size: 14px;
  }
  .brand-name{ font-size: 14px; }
}

/* --------------------------
   5) Hero
--------------------------- */
.hero{
  padding: clamp(30px, 5vw, 66px) 0;
}
.hero h1{
  font-size: var(--h1);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.hero .lead{
  font-size: clamp(15px, 1.6vw, 18px);
  margin: 0 0 18px;
  color: rgba(238,243,255,.82);
}
.badge-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 10px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(238,243,255,.14);
  background: rgba(238,243,255,.06);
  color: rgba(238,243,255,.88);
  font-weight: 650;
  font-size: 13px;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand2);
  box-shadow: 0 0 0 4px rgba(25,195,125,.18);
}

/* Hero cards */
.kpi{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.kpi .card{
  padding: 14px;
}
.kpi .num{
  font-size: 22px;
  font-weight: 850;
  color: var(--ink);
}
.kpi .lbl{
  font-size: 13px;
  color: rgba(238,243,255,.75);
}
@media (min-width: 860px){
  .kpi{ grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------
   6) Typography blocks
--------------------------- */
h2{
  font-size: var(--h2);
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}
h3{
  font-size: var(--h3);
  margin: 0 0 10px;
}
ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(238,243,255,.78);
}
li{ margin: 8px 0; }

.link-list{
  list-style:none;
  padding:0;
  margin: 10px 0 0;
}
.link-list li{ margin: 10px 0; }
.link-list a{
  text-decoration:none;
  border-bottom: 1px solid rgba(238,243,255,.18);
  padding-bottom: 2px;
}
.link-list a:hover{
  border-bottom-color: rgba(25,195,125,.8);
}

/* --------------------------
   7) Service cards (bands)
--------------------------- */
.feature-card{
  position: relative;
  overflow: hidden;
}
.feature-card::after{
  content:"";
  position:absolute;
  right:-40px; top:-40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle at 30% 30%, rgba(30,136,255,.35), transparent 60%);
  filter: blur(0px);
  opacity: .9;
  pointer-events:none;
}
.feature-card .meta{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  margin-top: 10px;
}
.pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(238,243,255,.06);
  border: 1px solid rgba(238,243,255,.12);
  font-size: 12.5px;
  color: rgba(238,243,255,.82);
  font-weight: 650;
}

/* --------------------------
   8) Forms
--------------------------- */
.form{
  display:grid;
  gap: 12px;
}
label{
  display:block;
  font-weight: 650;
  color: rgba(238,243,255,.92);
  margin-bottom: 6px;
}
input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(238,243,255,.14);
  background: rgba(6,10,20,.45);
  color: var(--ink);
  outline: none;
}
textarea{ min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(25,195,125,.7);
  box-shadow: 0 0 0 4px rgba(25,195,125,.14);
}

/* --------------------------
   9) CTA strip (emergency band)
--------------------------- */
.cta-strip{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30,136,255,.16), rgba(25,195,125,.10));
  padding: 16px;
  display:flex;
  flex-direction: column;
  gap: 12px;
  align-items:flex-start;
}
@media (min-width: 860px){
  .cta-strip{
    flex-direction: row;
    align-items:center;
    justify-content: space-between;
    gap: 18px;
  }
}
.cta-strip .cta-title{
  font-weight: 850;
  font-size: 18px;
  margin: 0 0 4px;
}
.cta-strip .cta-sub{
  margin: 0;
  color: rgba(238,243,255,.82);
}

/* --------------------------
   10) Footer
--------------------------- */
.site-footer{
  margin-top: 40px;
  border-top: 1px solid rgba(238,243,255,.10);
  background: rgba(6,10,20,.25);
}
.footer-grid{
  display:grid;
  gap: 18px;
  padding: 34px 0 18px;
}
@media (min-width: 860px){
  .footer-grid{
    grid-template-columns: 1.3fr .7fr 1fr;
    gap: 26px;
  }
}
.footer-brand{
  font-weight: 900;
  letter-spacing: .2px;
}
.footer-title{
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-bottom{
  padding: 16px 0 30px;
  border-top: 1px solid rgba(238,243,255,.08);
}

/* --------------------------
   11) Tables (optional)
--------------------------- */
.table{
  width:100%;
  border-collapse: collapse;
  border: 1px solid rgba(238,243,255,.12);
  border-radius: 14px;
  overflow:hidden;
}
.table th, .table td{
  padding: 12px;
  border-bottom: 1px solid rgba(238,243,255,.10);
}
.table th{
  text-align:left;
  background: rgba(238,243,255,.06);
  color: rgba(238,243,255,.92);
}
.table td{ color: rgba(238,243,255,.82); }

/* --------------------------
   12) Accessibility helpers
--------------------------- */
.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;
}

/* --------------------------
   13) Optional: floating mobile call button
   Add <a class="float-call" href="tel:...">Call</a>
--------------------------- */
.float-call{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(30,136,255,1), rgba(25,195,125,1));
  color: #061025;
  font-weight: 850;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow);
}
@media (min-width: 860px){
  .float-call{ display:none; }
}
