/* ═══════════════════════════════════════════════════════════════
   SERVORA — HOMEPAGE-SPECIFIC STYLES
   Loaded only on the front page (see inc/enqueue.php).
   Everything global lives in style.css.
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE HERO — LCP OPTIMIZED
   ═══════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
  background-color: var(--dark); /* Fallback color */
}

/* 1. Background Image Wrapper */
.hero__bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 2. Dark Overlay (For text readability without hiding the image) */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.65) 50%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 1;
}

/* 3. Content Container (z-index ensures it sits above the overlay) */
.hero__container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

/* Typography & Layout */
.hero .eyebrow {
  display: inline-block;
  background: rgba(232, 99, 10, 0.15);
  color: var(--cta);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero h1 span {
  color: var(--cta);
}

.hero__lead {
  color: #f0f4f8;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 30px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* 4. Optimized Button with CSS Phone Icon */
.button--hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--cta);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  padding: 18px 40px;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(232, 99, 10, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
  min-width: 320px;
  text-decoration: none;
}

.button--hero:hover {
  background: var(--cta-hover);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* CSS-Only Phone Icon to replace heavy inline SVG */
.hero-icon-phone {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  /* Standard phone SVG as data URI to save requests */
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>') no-repeat center;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path></svg>') no-repeat center;
}

.hero__micro-disclosure {
  color: #d1dce8;
  font-size: 13px;
  line-height: 1.5;
  margin: 16px auto 0;
  max-width: 500px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.hero__points {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 30px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.hero__points b {
  color: var(--cta);
  font-size: 18px;
}

.hero__separator {
  display: inline-block;
  width: 1px;
  height: 14px;
  background-color: rgba(255,255,255,0.3);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .hero {
    min-height: 500px;
    padding: 60px 15px;
  }
  .button--hero {
    width: 100%;
    font-size: 20px;
    padding: 16px 20px;
    min-width: 0;
  }
  .hero__points {
    flex-direction: column;
    gap: 10px;
  }
  .hero__separator {
    display: none;
  }
}
/* ═══════════════════════════════════════════════════════════════
   2. SITUATION CARDS — homepage "What Happened?" grid
   ═══════════════════════════════════════════════════════════════ */

.situation-grid{display:grid;grid-template-columns: repeat(4, 1fr);;gap:16px 20px}
.situation-card{display:grid; grid-template-columns:60px 1fr; gap:14px; min-height:140px; padding:16px 18px; border:1px solid var(--border); border-radius:var(--radius); background:var(--white); box-shadow:0 2px 8px rgba(12,45,92,.025); cursor:pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;}
.situation-card:hover, .situation-card:focus-within{transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 12px 26px rgba(12,45,92,.12);}
.round-icon{display:flex; align-items:center; justify-content:center; width:50px; height:50px; border-radius:50%; background:var(--dark); color:var(--white); font-size:25px; box-shadow:0 3px 7px rgba(12,45,92,.16);}
.round-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2}
.situation-card h3{margin:2px 0 6px;color:var(--dark-hover);font-size:16px;line-height:1.25}
.situation-card p{margin:0 0 9px;font-size:13px;line-height:1.5;color:var(--body)}
.situation-card a{font-size:12px;font-weight:700;text-decoration:underline}
.situation-card a b{font-size:16px;text-decoration:none;margin-left:3px}
.situation-card .crisis-note {margin-top: 0.5rem; padding: 0.5rem 0.75rem; background: #fef2f2; border-left: 3px solid #b8272c; border-radius: 4px; font-size: 0.825rem; line-height: 1.5; color: #7f1d1d;}
.situation-card .crisis-note strong {color: #b8272c;}

/* ═══════════════════════════════════════════════════════════════
   3. SECTION LINK
   ═══════════════════════════════════════════════════════════════ */

.section-link{text-align:center;margin-top:18px}
.section-link p{margin:0 0 8px;color:var(--dark-hover);font-size:13px;font-weight:700}
.section-link--tight{margin-top:14px}

/* ═══════════════════════════════════════════════════════════════
   4. CENTER CTA
   ═══════════════════════════════════════════════════════════════ */

.center-cta{display:flex;flex-direction:column;align-items:center;gap:7px;margin-top:16px}
.center-cta .button{min-width:285px}
.center-cta small{font-size:11px;color:var(--muted);text-align:center;line-height:1.5}

/* ═══════════════════════════════════════════════════════════════
   5. SERVICES OVERVIEW
   ═══════════════════════════════════════════════════════════════ */

.services-overview{padding-top:34px;padding-bottom:28px}
.services-overview .section-heading{margin-bottom:26px}
.service-links{display:grid; grid-template-columns:repeat(5,1fr); row-gap:0px; border-top:1px solid var(--border); border-bottom:1px solid var(--border);}
.service-links a{position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:110px; height:100%; padding:18px 8px 16px; text-align:center; color:var(--dark-hover); font-size:13px; font-weight:700; line-height:1.3; letter-spacing:-0.005em; transition:background .2s ease,color .2s ease;}
.service-links a:not(:nth-child(5n))::after{content:""; position:absolute; right:0; top:22px; bottom:22px; width:1px; background:linear-gradient(to bottom,transparent 0%,var(--border) 20%,var(--border) 80%,transparent 100%); pointer-events:none;}
.service-links a:nth-child(n+6)::before{content:""; position:absolute; left:14px; right:14px; top:0; height:1px; background:linear-gradient(to right,transparent 0%,var(--border) 20%,var(--border) 80%,transparent 100%); pointer-events:none;}
.service-links a span{display:flex; align-items:center; justify-content:center; width:34px; height:34px; margin-bottom:8px; color:var(--primary); transition:color .2s ease,transform .2s ease;}
.service-links a span svg{width:28px;height:28px;fill:none;stroke:currentColor}
.service-links a:hover, .service-links a:focus-visible{color:var(--primary);text-decoration:none;background:var(--bg-soft);}
.service-links a:hover span svg, .service-links a:focus-visible span svg{transform:scale(1.08)}
.services-overview .section-link{margin-top:20px}

/* ═══════════════════════════════════════════════════════════════
   6. HOMEPAGE MEDIA INFO IMAGES
   ═══════════════════════════════════════════════════════════════ */

.is-front-page .info-feature__media{background-image: url("../images/referral-connection.webp");}
.is-front-page .info-feature__media--what-is{background-image: url("../images/what-is-cleanup.webp");}

/* ═══════════════════════════════════════════════════════════════
   7. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 980px){
  .hero__copy{padding:25px 22px 22px 24px}
  .hero h1{font-size:clamp(29px,4vw,39px)}
  .hero__lead{font-size:14px}
  .situation-grid{gap:14px}
  .situation-card{grid-template-columns:48px 1fr;padding:14px;gap:10px}
  .round-icon{width:43px;height:43px;font-size:22px}
  .situation-card h3{font-size:14px}
}

@media (max-width: 700px){
  .hero{display:flex; flex-direction:column; height:auto; min-height:auto; max-height:none; background-image:none; background-color:#f8fcff; overflow:visible; padding:0;}
  .hero::before{display:none}
  .hero__copy{order:1; display:block; min-height:auto; height:auto; padding:27px 20px 24px; background:#f8fcff;}
  .hero__content{max-width:none}
  .hero h1{font-size:clamp(30px,8vw,40px);letter-spacing:-.8px}
  .hero__lead{font-size:14px}
  .button--hero{width:100%;min-width:0;font-size:17px}
  .hero__image{display:block; order:2; width:100%; min-height:220px; background-color:var(--bg-soft); background-image:url("../images/home-hero.webp"); background-position:center; background-size:cover; background-repeat:no-repeat;}
  .hero__points{gap:7px 9px;font-size:11px}
  .micro-disclosure{font-size:10px}

  .situation-grid{grid-template-columns:1fr;gap:12px}
  .situation-card{min-height:0;grid-template-columns:50px 1fr;padding:14px}
  .situation-card h3{font-size:15px}
  .situation-card p{font-size:13px}

  .center-cta .button{width:100%}
  .center-cta small{line-height:1.5}

  .service-links{grid-template-columns:repeat(3,1fr);row-gap:0}
  .service-links a{min-height:104px;padding:16px 6px 14px;font-size:12px}
  .service-links a:not(:nth-child(6n))::after{display:none}
  .service-links a:not(:nth-child(3n))::after{content:""; position:absolute; right:0; top:16px; bottom:16px; width:1px; background:linear-gradient(to bottom,transparent 0%,var(--border) 20%,var(--border) 80%,transparent 100%);}
  .service-links a:nth-child(-n+6)::before{display:none}
  .service-links a:not(:nth-last-child(-n+3))::before{content:""; position:absolute; left:12px; right:12px; bottom:0; height:1px; background:linear-gradient(to right,transparent 0%,var(--border) 15%,var(--border) 85%,transparent 100%); pointer-events:none;}
  .service-links a span{width:30px;height:30px;margin-bottom:6px}
  .service-links a span svg{width:24px;height:24px}
}

@media (max-width:380px){
  .hero h1{font-size:29px}
  .hero__points{font-size:10px;gap:6px}
  .service-links a{font-size:11px}
}

@media (prefers-reduced-motion:reduce){
  .situation-card:hover{transform:none}
  .service-links a:hover span svg{transform:none}
}

/* ============================================================ */
/* NEW SECTIONS — homepage additions                            */
/* ============================================================ */

.info-feature--reverse {direction: rtl;}
.info-feature--reverse > * {direction: ltr;}
.info-feature--reverse .info-feature__media {background-position: center;}
.info-feature__media--what-is {background-color: var(--bg-soft); background-image: url("what-is-cleanup.webp"); background-position: center; background-size: cover; background-repeat: no-repeat;}

.situations-needed .needed-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px;}
.needed-card {background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 28px 26px; position: relative;}
.needed-card--yes {border-left: 4px solid var(--primary);} /* Changed from green to primary */
.needed-card--no {border-left: 4px solid var(--muted);}

.needed-card__badge {display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 16px; flex-shrink: 0;}
.needed-card__badge svg {width: 24px; height: 24px;}
.needed-card--yes .needed-card__badge {background: var(--bg-soft); color: var(--primary);} /* Changed from green to primary */
.needed-card--no .needed-card__badge {background: var(--bg-soft); color: var(--muted);}

.needed-card h3 {margin: 0 0 14px; font-size: 18px; line-height: 1.35; color: var(--dark-hover);}
.needed-card .check-list {margin: 0;}

.process-grid {display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 32px; position: relative;}
.process-grid::before {content: ""; position: absolute; top: 42px; left: calc(10% + 34px); right: calc(10% + 34px); height: 2px; background-image: linear-gradient(to right, rgba(29,111,214,.25) 50%, transparent 50%); background-size: 12px 2px; background-repeat: repeat-x; z-index: 0; pointer-events: none;}
.process-step {background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 24px 20px; position: relative; z-index: 1;}
.process-step__num {display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--white); font-weight: 800; font-size: 16px; margin-bottom: 16px; border: 3px solid var(--white); box-shadow: 0 4px 12px rgba(29,111,214,.18); position: relative; z-index: 2;}
.process-step h3 {margin: 0 0 10px; font-size: 16px; line-height: 1.35; color: var(--dark-hover);}
.process-step p {margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--body);}

.regulations-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px;}
.regulation-card {display: flex; gap: 16px; padding: 28px 26px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; position: relative;}
.regulation-card__icon {display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;}
.regulation-card__icon svg {width: 24px; height: 24px;}
.regulation-card--blue .regulation-card__icon {background: var(--bg-soft); color: var(--primary);}
.regulation-card--amber .regulation-card__icon {background: var(--bg-soft); color: var(--accent);}
.regulation-card h3 {margin: 0 0 10px; font-size: 17px; line-height: 1.35; color: var(--dark-hover);}
.regulation-card p {margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--body);}

.section-footnote {max-width: 780px; margin: 28px auto 0; text-align: center; font-size: 15px; line-height: 1.6; color: var(--body);}

.ask-grid {display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px;}
.ask-group {background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 26px 24px; position: relative;}

.ask-group:nth-child(1) {border-left: 4px solid var(--primary);}
.ask-group:nth-child(2) {border-left: 4px solid var(--dark);}
.ask-group:nth-child(3) {border-left: 4px solid var(--accent);}

.ask-group__icon {display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;}
.ask-group__icon svg {width: 22px; height: 22px;}
.ask-group:nth-child(1) .ask-group__icon {background: var(--bg-soft); color: var(--primary);}
.ask-group:nth-child(2) .ask-group__icon {background: var(--bg-soft); color: var(--dark);}
.ask-group:nth-child(3) .ask-group__icon {background: var(--bg-soft); color: var(--accent);}

.ask-group h3 {margin: 0 0 14px; font-size: 17px; line-height: 1.35; color: var(--dark-hover);}
.ask-group .check-list {margin: 0;}

@media (max-width: 1024px) {
  .process-grid {grid-template-columns: repeat(2, 1fr);}
  .process-grid::before {display: none;}
  .ask-grid {grid-template-columns: 1fr 1fr;}
}

@media (max-width: 900px) {
  .regulations-grid {grid-template-columns: 1fr; gap: 18px;}
}

@media (max-width: 768px) {
  .situations-needed .needed-grid {grid-template-columns: 1fr; gap: 18px;}
  .process-grid {grid-template-columns: 1fr; gap: 16px;}
  .process-step__num {width: 40px; height: 40px; font-size: 15px;}
  .ask-grid {grid-template-columns: 1fr; gap: 18px;}
  .needed-card, .process-step, .ask-group, .regulation-card {padding: 22px 20px;}
  .regulation-card {flex-direction: column; gap: 12px;}
}

@media (max-width: 520px) {
  .needed-card h3, .process-step h3, .ask-group h3, .regulation-card h3 {font-size: 16px;}
  .section-footnote {font-size: 14.5px; padding: 0 4px;}
}