/* =========================================================
   Mike Thompson HVAC — "Lead Machine" Theme
   - Bold, conversion-first
   - Local SEO structure
   - No JS required
   ========================================================= */

:root{
  --bg: #0b1220;
  --panel: #0f1a33;
  --panel2:#101f3f;
  --card: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.12);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);

  --yellow: #f7c948;  /* urgency */
  --orange: #ff8a3d;  /* heat */
  --blue: #4fa3ff;    /* trust */
  --green:#34d399;    /* checks */

  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.35);

  --max: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(255,255,255,0.92);
  line-height: 1.55;

  /* IMPORTANT: background moved to fixed pseudo-elements below */
  background: #070d18;
  position: relative;
  min-height: 100%;
}

/* Fixed global photo background (stays put while content scrolls) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;

  background-image: url("/assets/img/home-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(10px) saturate(1.05);
  transform: scale(1.06); /* prevents blur edge clipping */
}

/* Global tint/contrast layer so text stays readable */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(900px 520px at 15% 10%, rgba(79,163,255,0.20), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(255,138,61,0.16), transparent 55%),
    linear-gradient(180deg, rgba(7,13,24,0.82), rgba(11,18,32,0.90) 35%, rgba(7,13,24,0.86));
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.small{ font-size:.92rem; }
.muted{ color: var(--muted); }
.hr{
  height: 1px;
  background: rgba(255,255,255,.10);
  border: 0;
  margin: 1.2rem 0;
}

/* Top emergency strip */
.emergency-strip{
  background: linear-gradient(90deg, rgba(247,201,72,.95), rgba(255,138,61,.90));
  color: #07101c;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.emergency-strip__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: .8rem;
  padding: .65rem 0;
  font-weight: 800;
}
.emergency-strip__inner span{
  font-weight: 900;
  letter-spacing:.01em;
}
.emergency-strip__cta{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.55rem .85rem;
  background: rgba(7,16,28,.14);
  border: 1px solid rgba(7,16,28,.18);
  border-radius: 999px;
  font-weight: 900;
}
.emergency-strip__cta:hover{ text-decoration:none; filter: brightness(1.02); }

/* Header / nav */
.header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11,18,32,.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: .9rem 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.brand__logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}
.brand__text{ display:flex; flex-direction:column; line-height:1.1; }
.brand__name{ font-weight: 920; letter-spacing:.01em; }
.brand__tag{ color: rgba(255,255,255,.65); font-size: .9rem; }

.nav{
  display:flex;
  gap:.45rem;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  color: rgba(255,255,255,.78);
  padding:.55rem .75rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav a:hover{
  text-decoration:none;
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.nav a[aria-current="page"]{
  color: #0b1220;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-color: transparent;
  font-weight: 950;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-weight: 920;
}
.btn:hover{ text-decoration:none; transform: translateY(-1px); }

.btn--call{
  color: #0b1220;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(255,138,61,.18);
}
.btn--secondary{
  background: rgba(79,163,255,.12);
  border-color: rgba(79,163,255,.20);
}
.btn--wide{ width: 100%; }
.btn img{ width: 18px; height: 18px; }

/* Layout sections */
.main{ padding: 1.3rem 0 3rem; }

.hero{
  padding: 2.2rem 0;
  position: relative;
  isolation: isolate;
  display: flow-root;
  overflow: clip; /* or hidden */

  /* Glass band over the fixed background image */
  background: linear-gradient(
    180deg,
    rgba(15,26,51,0.58),
    rgba(11,18,32,0.72)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero::before{
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("/assets/img/home-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: blur(8px) saturate(1.05);
  transform: scale(1.05); /* prevents blur edge clipping */

  z-index: -2;
}

.hero::after{
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(15,26,51,.88),
      rgba(11,18,32,.94)
    );

  z-index: -1;
}

.hero__grid{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 1rem;

  /* IMPORTANT: stop the panels from stretching to match each other */
  align-items: start;
}

@media (max-width: 920px){
  .hero__grid{ grid-template-columns: 1fr; }
}

/* Extra safety: ensure each panel sizes to its own content */
.hero__left,
.hero__right{
  align-self: start;
}


.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.hero__left{ padding: 1.35rem; }
.kicker{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  padding:.45rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.80);
  font-weight: 850;
  letter-spacing:.02em;
  text-transform: uppercase;
  font-size: .82rem;
}
.kicker img{ width:16px; height:16px; }

h1{
  margin:.75rem 0 .65rem;
  font-size: clamp(2.0rem, 3.3vw, 3.0rem);
  line-height: 1.05;
  letter-spacing:.01em;
}
.lede{
  margin: 0 0 1rem;
  color: rgba(255,255,255,.75);
  max-width: 70ch;
}

.hero__bullets{
  display:grid;
  gap:.55rem;
  margin: 1rem 0 1.1rem;
  padding:0;
  list-style:none;
}
.hero__bullets li{
  display:flex;
  gap:.6rem;
  align-items:flex-start;
  color: rgba(255,255,255,.80);
}
.hero__bullets img{ width:18px; height:18px; margin-top:.15rem; }

.hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
}

.hero__right{
  padding: 1.1rem;
  display:flex;
  flex-direction:column;
  gap:.75rem;
}
.card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: .95rem;
}
.card__title{
  margin: 0 0 .35rem;
  font-weight: 950;
  letter-spacing:.01em;
}
.card__text{ margin: 0; color: rgba(255,255,255,.72); }

.hero-art{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}
.hero-art img{ width:100%; height:auto; }

/* =========================================================
   Section spacing + background bands (NO bleed / NO collapse)
   ========================================================= */

/* Reset inter-section gaps (we control spacing via padding) */
.main > * + *{
  margin-top: 0;
}

/* Give HERO its own band too (optional but consistent) */
.hero{
  padding: 2.2rem 0;
  position: relative;
  isolation: isolate;
  display: flow-root;
}

/* Each .section is a self-contained band that always wraps its content */
.section{
  margin: 0;
  padding: 2.2rem 0;

  position: relative;
  isolation: isolate;

  display: flow-root;
  overflow: clip;

  background: linear-gradient(
  180deg,
  rgba(15,26,51,0.62),
  rgba(11,18,32,0.78)
);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Optional: section with no band background */
.section--clear{
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

/* Make sure first/last child margins never escape the section */
.section > :first-child{ margin-top: 0; }
.section > :last-child{ margin-bottom: 0; }


.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}
.section__title{
  margin:0;
  font-size: 1.55rem;
  letter-spacing:.01em;
}
.section__sub{
  margin:.25rem 0 0;
  color: rgba(255,255,255,.72);
  max-width: 72ch;
}

/* Grids */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px){
  .grid{ grid-template-columns: 1fr; }
}
.grid .card{ height: 100%; }

/* Service list (no JS) */
.service-list{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}
@media (max-width: 800px){
  .service-list{ grid-template-columns: 1fr; }
}
.service-item{
  display:flex;
  gap:.75rem;
  align-items:flex-start;
}
.service-item img{ width:20px; height:20px; margin-top:.1rem; }
.service-item strong{ display:block; font-weight: 950; }
.service-item span{ color: rgba(255,255,255,.70); display:block; margin-top:.15rem; }

/* Service areas "schema-style" layout */
.area-groups{
  display:grid;
  gap: 1rem;
}
.area-group{
  padding: 1rem;
}
.area-group h3{
  margin:0 0 .4rem;
  font-size: 1.05rem;
  letter-spacing:.01em;
}
.area-tags{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.area-tag{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.45rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  font-weight: 800;
  font-size:.9rem;
}
.area-tag img{ width:16px; height:16px; }

/* Contact */
.form{
  display:grid;
  gap: .8rem;
}
.form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
@media (max-width: 720px){
  .form__row{ grid-template-columns: 1fr; }
}
label{ display:block; font-weight: 900; margin-bottom: .35rem; }
.input{
  width:100%;
  padding: .9rem .95rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
}
.input:focus{
  border-color: rgba(247,201,72,.55);
  box-shadow: 0 0 0 4px rgba(247,201,72,.14);
}
textarea.input{ min-height: 140px; resize: vertical; }

/* Footer */
.footer{
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(7,13,24,.65);
}
.footer__inner{
  padding: 1.3rem 0;
  display:flex;
  flex-wrap:wrap;
  gap: 1rem;
  justify-content:space-between;
}
.footer a{ color: rgba(255,255,255,.85); }
.footer a:hover{ color:#fff; text-decoration: underline; }
