
/*
Theme Name: MitigateNow Premium v5
Theme URI: https://mitigatenow.us
Author: MitigateNow
Author URI: https://mitigatenow.us
Description: Agency-grade premium restoration theme with insurance help page, quiz funnel, popups, and AI-style imagery.
Version: 5.0
Text Domain: mitigatenow-premium-v5
*/

:root{
  --mn-teal:#00B5D9;
  --mn-teal-dark:#0089A4;
  --mn-navy:#0B1120;
  --mn-gray:#111827;
  --mn-text:#374151;
  --mn-bg:#F3F4F6;
  --mn-card:#FFFFFF;
  --mn-accent:#FBBF24;
  --mn-red:#EF4444;
}

/* Reset */
*{box-sizing:border-box;}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:var(--mn-bg);
  color:var(--mn-text);
}
a{color:var(--mn-teal-dark);text-decoration:none;}
a:hover{text-decoration:underline;}

/* Emergency top bar */
.emergency-bar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:60;
  background:var(--mn-navy);
  color:#F9FAFB;
  font-size:12px;
  padding:6px 18px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
}
.emergency-bar span.label{
  text-transform:uppercase;
  letter-spacing:0.14em;
  font-weight:600;
  color:#FACC15;
}
.emergency-bar a{
  color:#F9FAFB;
  font-weight:700;
}

/* Sticky header */
.site-header{
  position:sticky;
  top:30px;
  z-index:50;
  background:#ffffff;
  box-shadow:0 10px 30px rgba(15,23,42,0.16);
  padding:14px 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  transition:all .25s ease;
}
.site-header.shrink{
  padding:8px 20px;
  box-shadow:0 6px 18px rgba(15,23,42,0.25);
}
.site-brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.logo-img{
  height:120px;
  width:auto;
  transition:height .25s ease;
}
.site-header.shrink .logo-img{
  height:80px;
}
.brand-text{
  display:flex;
  flex-direction:column;
}
.brand-name{
  font-weight:800;
  font-size:22px;
  color:var(--mn-teal-dark);
  letter-spacing:0.03em;
}
.brand-tag{
  font-size:12px;
  color:#6B7280;
}

.header-cta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.call-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.16em;
  color:#6B7280;
}
.call-number{
  font-size:24px;
  font-weight:800;
  color:var(--mn-red);
}
.emergency-pill{
  background:rgba(239,68,68,0.09);
  color:var(--mn-red);
  border-radius:999px;
  padding:5px 12px;
  font-size:11px;
  font-weight:600;
}

/* Main layout */
.site-main{
  max-width:1200px;
  margin:0 auto;
  padding:120px 18px 40px;
}

/* Hero */
.hero{
  background:linear-gradient(135deg,#0f172a 0%,#020617 50%,#0b1120 100%);
  border-radius:26px;
  box-shadow:0 35px 80px rgba(15,23,42,0.6);
  padding:32px;
  display:flex;
  flex-wrap:wrap;
  gap:32px;
  align-items:center;
  color:#E5E7EB;
  overflow:hidden;
  position:relative;
}
.hero::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:radial-gradient(circle at top left,rgba(56,189,248,0.18),transparent 55%);
  opacity:.9;
}
.hero-inner{
  position:relative;
  width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:32px;
}
.hero-left{flex:1 1 320px;}
.hero-kicker{
  font-size:13px;
  font-weight:600;
  color:#7DD3FC;
  text-transform:uppercase;
  letter-spacing:0.16em;
  margin-bottom:8px;
}
.hero-title{
  font-size:32px;
  line-height:1.1;
  color:#F9FAFB;
  margin:0 0 10px;
}
.hero-title span.highlight{
  color:#FACC15;
}
.hero-sub{
  font-size:15px;
  color:#CBD5F5;
  margin-bottom:14px;
}
.hero-list{
  list-style:none;
  padding:0;
  margin:0 0 12px;
}
.hero-list li{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:14px;
  margin-bottom:4px;
}
.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background:#22D3EE;
  margin-top:6px;
}
.hero-ctas{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.btn-primary{
  border:none;
  border-radius:999px;
  padding:10px 22px;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  background:var(--mn-red);
  color:#fff;
  box-shadow:0 10px 25px rgba(239,68,68,0.6);
  transition:transform .12s ease, box-shadow .12s ease;
}
.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 35px rgba(239,68,68,0.7);
}
.btn-secondary{
  border-radius:999px;
  padding:9px 18px;
  border:1px solid rgba(148,163,184,0.8);
  background:rgba(15,23,42,0.8);
  font-size:13px;
  cursor:pointer;
  color:#E5E7EB;
}
.btn-secondary:hover{
  background:rgba(15,23,42,1);
}

.hero-right{
  flex:1 1 320px;
  position:relative;
}
.hero-img{
  width:100%;
  border-radius:22px;
  box-shadow:0 26px 60px rgba(15,23,42,0.85);
}
.hero-badge{
  position:absolute;
  bottom:14px;
  left:14px;
  background:rgba(15,23,42,0.92);
  color:#E5E7EB;
  padding:10px 12px;
  border-radius:16px;
  font-size:11px;
  border:1px solid rgba(148,163,184,0.4);
}

/* Sections */
.section{
  margin-top:32px;
}
.section-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:8px;
}
.section-kicker{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.14em;
  color:#9CA3AF;
}
.section-title{
  font-size:22px;
  color:var(--mn-gray);
  margin:2px 0 0;
}
.section-sub{
  font-size:13px;
  color:#6B7280;
}

/* Card grid + icons */
.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:16px;
  margin-top:16px;
}
.card{
  background:var(--mn-card);
  border-radius:18px;
  padding:18px;
  box-shadow:0 14px 40px rgba(15,23,42,0.09);
  position:relative;
  overflow:hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-40%;
  opacity:0;
  background:radial-gradient(circle at top left,rgba(56,189,248,0.12),transparent 55%);
  transition:opacity .18s ease;
}
.card:hover::before{
  opacity:1;
}
.card-icon{
  width:32px;
  height:32px;
  border-radius:10px;
  background:rgba(56,189,248,0.12);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:6px;
  font-size:18px;
}
.card-title{
  font-weight:700;
  font-size:16px;
  color:var(--mn-gray);
  margin:0 0 4px;
}
.card-tag{
  display:inline-block;
  font-size:11px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(15,23,42,0.03);
  color:#4B5563;
  margin-bottom:6px;
}
.card-body{
  font-size:13px;
  color:#6B7280;
}

/* Testimonial carousel */
.testimonial-carousel{
  display:flex;
  gap:16px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:6px;
}
.testimonial{
  min-width:260px;
  max-width:320px;
  background:#020617;
  color:#E5E7EB;
  border-radius:16px;
  padding:18px;
  scroll-snap-align:start;
}
.testimonial-quote{
  font-size:14px;
}
.testimonial-name{
  font-size:12px;
  margin-top:8px;
  color:#9CA3AF;
}

/* Before/after slider */
.ba-wrapper{
  position:relative;
  max-width:100%;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 18px 50px rgba(15,23,42,0.6);
  margin-top:18px;
}
.ba-img{
  display:block;
  width:100%;
}
.ba-img-after{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden;
}
.ba-img-after img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.ba-handle{
  position:absolute;
  top:0;
  bottom:0;
  width:2px;
  background:#FBBF24;
  left:50%;
}
.ba-handle-knob{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:26px;
  height:26px;
  border-radius:999px;
  background:#FBBF24;
  box-shadow:0 10px 30px rgba(15,23,42,0.8);
}

/* Floating call button */
.floating-call{
  position:fixed;
  right:16px;
  bottom:20px;
  z-index:70;
}
.floating-call a{
  display:flex;
  align-items:center;
  gap:6px;
  background:#EF4444;
  color:#fff;
  padding:9px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  box-shadow:0 18px 40px rgba(239,68,68,0.75);
  animation:floatPulse 1.8s infinite ease-in-out;
}
@keyframes floatPulse{
  0%,100{transform:translateY(0);box-shadow:0 18px 40px rgba(239,68,68,0.75);}
  50%{transform:translateY(-3px);box-shadow:0 24px 60px rgba(239,68,68,0.9);}
}

/* FAQ */
.faq-item{
  background:#fff;
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:8px;
  box-shadow:0 4px 18px rgba(15,23,42,0.04);
}
.faq-q{
  font-weight:600;
  font-size:14px;
}
.faq-a{
  font-size:13px;
  color:#6B7280;
  margin-top:4px;
}

/* Insurance help page */
.ins-hero{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  margin-top:10px;
}
.ins-hero-main{
  flex:1 1 320px;
}
.ins-hero-side{
  flex:1 1 260px;
}
.ins-checklist{
  list-style:none;
  padding:0;
}
.ins-checklist li{
  font-size:14px;
  margin-bottom:4px;
}
.ins-step{
  background:#fff;
  border-radius:12px;
  padding:12px;
  margin-bottom:8px;
}

/* Quiz */
.quiz-wrapper{
  background:#fff;
  border-radius:18px;
  padding:18px;
  box-shadow:0 12px 30px rgba(15,23,42,0.08);
  max-width:560px;
}
.quiz-step{
  display:none;
}
.quiz-step.active{
  display:block;
}
.quiz-nav{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
}
.quiz-nav button{
  border-radius:999px;
  border:none;
  padding:8px 16px;
  cursor:pointer;
}
.quiz-nav .prev{background:#E5E7EB;}
.quiz-nav .next{background:#EF4444;color:#fff;}

/* Popups */
.mn-popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.75);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:80;
}
.mn-popup{
  background:#ffffff;
  border-radius:18px;
  max-width:420px;
  width:90%;
  padding:20px;
  box-shadow:0 20px 60px rgba(0,0,0,0.4);
}
.mn-popup h3{
  margin-top:0;
}
.mn-popup-close{
  position:absolute;
  top:10px;
  right:14px;
  cursor:pointer;
  font-size:18px;
}

/* Footer */
.site-footer{
  background:#020617;
  color:#9CA3AF;
  text-align:center;
  padding:20px 18px 26px;
  font-size:12px;
  margin-top:40px;
}

/* Responsive */
@media(max-width:900px){
  .site-header{
    flex-direction:column;
    align-items:flex-start;
    padding:10px 16px;
  }
  .site-main{
    padding:130px 14px 34px;
  }
}


/* === Image enhancements (services + hero) === */
.card-grid-services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-media { border-radius: 18px; overflow: hidden; margin-bottom: 12px; background: #0b1120; }
.card-img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-right picture, .hero-right img { width: 100%; height: auto; display: block; }
.hero-img { border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover; }

/* Page hero banner for service detail pages */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid #e5e7eb; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02) contrast(1.02); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,17,32,0.78), rgba(11,17,32,0.25)); }
.page-hero-inner { position: relative; max-width: 1100px; margin: 0 auto; padding: 64px 20px; }
.page-hero-title { color: #fff; margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; }

/* Reduce layout shift for images */
img { height: auto; }
