:root{
  --navy:#0b1f3a;
  --navy-2:#122a4d;
  --red:#e8262c;
  --orange:#f7941e;
  --blue:#0072bc;
  --blue-2:#29abe2;
  --white:#f5f7fa;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
html,body{height:100%;}
body{
  font-family:'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background:var(--navy);
  color:var(--white);
  overflow-x:hidden;
  min-height:100vh;
  position:relative;
}

/* Animated gradient backdrop */
#bg-canvas{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  display:block;
}

.veil{
  position:fixed;
  inset:0;
  z-index:1;
  background:
    radial-gradient(1200px 800px at 15% 20%, rgba(232,38,44,0.14), transparent 60%),
    radial-gradient(1200px 800px at 85% 80%, rgba(0,114,188,0.16), transparent 60%),
    linear-gradient(180deg, rgba(11,31,58,0.65) 0%, rgba(11,31,58,0.92) 100%);
  pointer-events:none;
}

/* ---------- Nav ---------- */
header{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 28px;
  background:rgba(11,31,58,0.72);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.nav-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#fff;
}
.nav-brand img{
  height:38px;
  width:auto;
  border-radius:8px;
  background:#fff;
  padding:3px;
}
.nav-brand span{
  font-weight:800;
  font-size:15px;
  letter-spacing:0.2px;
  white-space:nowrap;
}
nav.links{
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
}
nav.links a{
  color:#c7d2e3;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.3px;
  transition:color 0.2s ease;
  padding-bottom:4px;
  border-bottom:2px solid transparent;
}
nav.links a:hover{ color:#fff; }
nav.links a.active{
  color:#fff;
  border-bottom-color:var(--orange);
}
.nav-call{
  display:inline-flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(90deg, var(--red), var(--orange));
  padding:9px 16px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
.nav-call svg{ width:14px; height:14px; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:40px;
  height:40px;
  border:none;
  border-radius:10px;
  background:rgba(255,255,255,0.08);
  cursor:pointer;
  flex-shrink:0;
  padding:0;
}
.nav-toggle .bar{
  width:18px;
  height:2px;
  border-radius:2px;
  background:#fff;
  transition:transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .bar:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2){ opacity:0; }
.nav-toggle.is-open .bar:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:760px){
  header{ padding:12px 16px; flex-wrap:wrap; }
  .nav-brand span{ display:none; }
  .nav-toggle{ display:flex; }
  nav.links{
    order:10;
    flex-basis:100%;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    max-height:0;
    overflow:hidden;
    opacity:0;
    margin-top:0;
    transition:max-height 0.35s ease, opacity 0.25s ease, margin-top 0.35s ease;
  }
  nav.links.open{
    max-height:420px;
    opacity:1;
    margin-top:14px;
  }
  nav.links a{
    padding:14px 8px;
    font-size:16px;
    border-bottom:1px solid rgba(255,255,255,0.08);
    border-radius:0;
  }
  nav.links a.active{
    border-bottom:1px solid rgba(255,255,255,0.08);
    color:var(--orange);
  }
}

/* ---------- Layout ---------- */
main{ position:relative; z-index:2; }
section{
  padding:80px 24px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.section-inner{
  width:100%;
  max-width:900px;
}
.eyebrow{
  font-size:11px;
  letter-spacing:2.5px;
  text-transform:uppercase;
  font-weight:700;
  color:var(--blue-2);
  margin-bottom:12px;
}
h2{
  font-size:clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight:800;
  letter-spacing:-0.3px;
  margin-bottom:18px;
}
.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in{
  opacity:1;
  transform:translateY(0);
}

/* ---------- Home hero ---------- */
.hero{
  min-height:82vh;
  justify-content:center;
  padding-top:60px;
}
.logo-plate{
  background:#ffffff;
  border-radius:32px;
  padding:20px;
  width:230px;
  height:230px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
  opacity:0;
  transform:translateY(-16px) scale(0.92);
  animation:dropIn 0.9s cubic-bezier(.2,.9,.25,1.1) 0.15s forwards;
  margin:0 auto;
}
.logo-plate img{
  width:100%;
  height:100%;
  object-fit:contain;
}
@keyframes dropIn{
  to{opacity:1; transform:translateY(0) scale(1);}
}

h1{
  margin-top:26px;
  font-size:clamp(2rem, 5vw, 3.2rem);
  font-weight:800;
  letter-spacing:-0.5px;
  line-height:1.1;
  opacity:0;
  animation:fadeUp 0.8s ease 0.5s forwards;
}
h1 .accent{
  background:linear-gradient(90deg, var(--red), var(--orange) 45%, var(--blue-2) 65%, var(--blue));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-sub{
  margin-top:14px;
  font-size:clamp(1.05rem, 2vw, 1.3rem);
  color:#dfe6f2;
  font-weight:600;
  opacity:0;
  animation:fadeUp 0.8s ease 0.65s forwards;
}
.tagline{
  margin-top:10px;
  font-size:clamp(0.95rem, 1.8vw, 1.05rem);
  color:#c7d2e3;
  font-weight:400;
  max-width:620px;
  opacity:0;
  animation:fadeUp 0.8s ease 0.8s forwards;
  margin-left:auto;
  margin-right:auto;
}
.divider{
  width:64px;
  height:3px;
  margin:28px auto;
  border-radius:2px;
  background:linear-gradient(90deg, var(--red), var(--orange), var(--blue-2), var(--blue));
  opacity:0;
  animation:fadeUp 0.8s ease 0.95s forwards, growLine 1.2s ease 1s forwards;
}
.hero-actions{
  opacity:0;
  animation:fadeUp 0.8s ease 1.1s forwards;
}

/* ---------- Simple page header (About / Services / Area / Contact) ---------- */
.page-title{
  opacity:0;
  animation:fadeUp 0.8s ease 0.1s forwards;
}
.page-sub{
  opacity:0;
  animation:fadeUp 0.8s ease 0.25s forwards;
  color:#c7d2e3;
  max-width:640px;
  margin:0 auto;
}

@keyframes fadeUp{
  from{opacity:0; transform:translateY(14px);}
  to{opacity:1; transform:translateY(0);}
}
@keyframes growLine{
  from{width:0;}
  to{width:64px;}
}
@keyframes pulse{
  0%,100%{transform:scale(1); opacity:1;}
  50%{transform:scale(1.6); opacity:0.5;}
}
@keyframes ring{
  0%,100%{transform:rotate(0deg);}
  10%{transform:rotate(-15deg);}
  20%{transform:rotate(12deg);}
  30%{transform:rotate(-10deg);}
  40%{transform:rotate(6deg);}
  50%,100%{transform:rotate(0deg);}
}

/* ---------- Cards ---------- */
.card{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.09);
  backdrop-filter:blur(6px);
  border-radius:18px;
  padding:32px 34px;
  text-align:left;
}
.card p{
  font-size:clamp(0.95rem, 1.6vw, 1.05rem);
  line-height:1.75;
  color:#e7ecf5;
}
.card p strong{ color:#fff; font-weight:600; }
.card p + p{ margin-top:14px; }

/* ---------- Services ---------- */
.services-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
  text-align:left;
}
@media (max-width:760px){
  .services-grid{ grid-template-columns:1fr; }
}
.service-group{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.09);
  backdrop-filter:blur(6px);
  border-radius:18px;
  padding:26px 24px;
}
.service-group h3{
  font-size:15px;
  font-weight:800;
  letter-spacing:0.3px;
  margin-bottom:14px;
}
.service-group.heating h3{ color:var(--orange); }
.service-group.cooling h3{ color:var(--blue-2); }
.service-group.extra h3{ color:#9fd6ff; }
.service-group ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.service-group li{
  font-size:14px;
  color:#dbe3f0;
  padding-left:16px;
  position:relative;
  line-height:1.4;
}
.service-group li::before{
  content:'';
  position:absolute;
  left:0;
  top:7px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
  opacity:0.7;
}
.service-group.heating li::before{ color:var(--orange); }
.service-group.cooling li::before{ color:var(--blue-2); }
.service-group.extra li::before{ color:#9fd6ff; }

/* ---------- Service Area ---------- */
.area-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-top:22px;
}
.area-chip{
  padding:8px 16px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  color:#e7ecf5;
}
.area-note{
  margin-top:22px;
  font-size:14px;
  color:#c7d2e3;
  max-width:640px;
  margin-left:auto;
  margin-right:auto;
}

/* ---------- Coverage Map ---------- */
.map-wrap{
  margin-top:40px;
  width:100%;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 20px 50px rgba(0,0,0,0.35);
}
#service-map{
  height:460px;
  width:100%;
  background:#0b1f3a;
}
@media (max-width:600px){
  #service-map{ height:360px; }
}
.map-pin{
  position:relative;
  width:16px;
  height:16px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--red), var(--orange));
  border:2px solid #fff;
  box-shadow:0 0 14px rgba(247,148,30,0.6);
}
.map-pin.hq{
  width:22px;
  height:22px;
  background:linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow:0 0 18px rgba(41,171,226,0.7);
}
.map-pin-pulse{
  position:absolute;
  inset:-8px;
  border-radius:50%;
  border:2px solid rgba(247,148,30,0.55);
  animation:pinPulse 2.2s ease-out infinite;
}
.map-pin.hq .map-pin-pulse{
  border-color:rgba(41,171,226,0.6);
}
@keyframes pinPulse{
  0%{ transform:scale(0.6); opacity:0.9; }
  100%{ transform:scale(2.4); opacity:0; }
}
.leaflet-popup-content-wrapper{
  background:#10254a;
  color:#fff;
  border-radius:12px;
}
.leaflet-popup-content{
  font-family:'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size:13px;
}
.leaflet-popup-tip{ background:#10254a; }
.leaflet-control-attribution{
  background:rgba(11,31,58,0.75) !important;
  color:#9fb0c9 !important;
  font-size:10px !important;
}
.leaflet-control-attribution a{ color:#c7d2e3 !important; }
.leaflet-control-zoom a{
  background:#10254a !important;
  color:#fff !important;
  border-color:rgba(255,255,255,0.15) !important;
}
.leaflet-control-zoom a:hover{
  background:#16346b !important;
}
.map-hint{
  margin-top:14px;
  font-size:12px;
  color:#7f8fac;
}

/* ---------- Contact ---------- */
.contact-card{
  display:flex;
  flex-direction:column;
  gap:18px;
  align-items:flex-start;
}
.contact-row{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:15px;
}
.contact-row .ico{
  width:36px;height:36px;
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg, var(--red), var(--orange));
  flex-shrink:0;
}
.contact-row .ico.blue{ background:linear-gradient(135deg, var(--blue), var(--blue-2)); }
.contact-row .ico svg{ width:17px; height:17px; color:#fff; }
.contact-row a{ color:#fff; text-decoration:none; font-weight:700; }
.contact-row a:hover{ text-decoration:underline; }
.contact-row .lbl{ color:#9fb0c9; font-size:12px; text-transform:uppercase; letter-spacing:1px; display:block; margin-bottom:2px; }
.contact-note{
  font-size:13px;
  color:#9fb0c9;
  margin-top:4px;
}
.big-call{
  display:inline-flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(90deg, var(--red), var(--orange));
  padding:16px 34px;
  border-radius:999px;
  font-size:clamp(1.2rem, 3vw, 1.6rem);
  font-weight:800;
  letter-spacing:0.5px;
  box-shadow:0 12px 34px rgba(232,38,44,0.35);
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}
.big-call:hover{
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 18px 44px rgba(232,38,44,0.5);
}
.big-call svg{
  width:22px;height:22px;
  animation:ring 2.4s ease-in-out infinite;
  transform-origin:top center;
}

/* ---------- Footer ---------- */
footer{
  position:relative;
  z-index:2;
  padding:44px 24px 36px;
  text-align:center;
  border-top:1px solid rgba(255,255,255,0.08);
}
footer .foot-brand{
  font-weight:800;
  font-size:16px;
  letter-spacing:0.4px;
  margin-bottom:6px;
}
footer .foot-brand .heat{ color:var(--orange); }
footer .foot-brand .cool{ color:var(--blue-2); }
footer .foot-line{
  font-size:13px;
  color:#c7d2e3;
  margin-bottom:6px;
}
footer .foot-contractor{
  font-size:12px;
  color:#9fb0c9;
  margin-bottom:14px;
}
footer .foot-services{
  font-size:12px;
  color:#7f8fac;
  max-width:640px;
  margin:0 auto 18px;
  line-height:1.6;
}
footer .foot-copy{
  font-size:11px;
  color:#5f6f8c;
}
footer .sep{ margin:0 8px; color:#3d4a63; }

@media (max-width:480px){
  section{ padding:56px 18px; }
  .logo-plate{width:170px;height:170px;padding:16px;border-radius:24px;}
  .card{padding:24px 20px;}
  .big-call{padding:14px 24px;}
}
