/* ═══════════════════════════════════════════════════════════════
   SERVORA — HOMEPAGE-SPECIFIC STYLES
   Loaded only on the front page (see inc/enqueue.php).
   Everything global lives in style.css.
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   1. HOMEPAGE HERO — fixed-height, background image on right
   ═══════════════════════════════════════════════════════════════ */
/* Base hero */
.hero {
    position: relative;
    min-height: 380px;
    height: 54vh;
    max-height: 560px;
    background-color: #f8fcff;
    background-image: var(--hero-image);
    background-position: right center;
    background-size: contain;
    background-repeat: no-repeat;
    overflow: hidden;

    /* Ultimate fallback if nothing set */
    --hero-image: url("../images/home-hero.webp");
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  /* Position the overlay right where the image's left edge starts */
  left: 40%;
  width: 10%;
  background: linear-gradient(
    90deg,
    #f8fcff 0%,
    rgba(248, 252, 255, 0.85) 35%,
    rgba(248, 252, 255, 0.40) 65%,
    rgba(248, 252, 255, 0) 100%
  );
  /* Blurs the left edge of the background photo underneath */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 1;
}
.hero__copy{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: inherit;
  height: 100%;
  padding: 32px 34px 32px max(24px, calc((100vw - var(--container)) / 2));
}
.hero__content{ width: 100%; max-width: 560px; }
.hero__image{ display: none; }
.hero h1{
  margin:0 0 10px;
  color:var(--navy-deep);
  font-size:clamp(31px,3.3vw,47px);
  line-height:1.08;
  letter-spacing:-1.2px;
  font-weight:800;
}
.hero h1 span{color:var(--blue)}
.hero__lead{max-width:570px;margin:0 0 14px;font-size:16px;line-height:1.42;color:#203e5e}
.button--hero{min-width:300px;padding:13px 22px;font-size:18px}
.hero__points{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
  margin-top:13px;
  color:#285274;
  font-size:12px;
  font-weight:700;
}
.hero__points span{white-space:nowrap;display:inline-flex;align-items:center;gap:4px}
.hero__points b{color:var(--green);margin-right:4px}
.hero__points i{height:12px;width:1px;background:#b8d3e8}
.micro-disclosure{margin:11px 0 0;color:#5a7191;font-size:11px;line-height:1.5}
.hero--home {
    --hero-image: url("../images/home-hero.webp");
}
.hero__inner .hero__image {
    background-image: var(--hero-image);
}
/* ═══════════════════════════════════════════════════════════════
   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(--blue-line);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:0 2px 8px rgba(7,54,111,.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(--blue);
  box-shadow: 0 12px 26px rgba(7,54,111,.12);
}
.round-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:50px;
  height:50px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  font-size:25px;
  box-shadow:0 3px 7px rgba(7,54,111,.16);
}
.round-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2}
.situation-card h3{margin:2px 0 6px;color:var(--navy-deep);font-size:16px;line-height:1.25}
.situation-card p{margin:0 0 9px;font-size:13px;line-height:1.5;color:#3e5e7e}
.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 — "View all …" line below grids
   ═══════════════════════════════════════════════════════════════ */

.section-link{text-align:center;margin-top:18px}
.section-link p{margin:0 0 8px;color:var(--navy-deep);font-size:13px;font-weight:700}
.section-link--tight{margin-top:14px}

/* ═══════════════════════════════════════════════════════════════
   4. CENTER CTA — homepage center-aligned button block
   ═══════════════════════════════════════════════════════════════ */

.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:#4d6a87;text-align:center;line-height:1.5}

/* ═══════════════════════════════════════════════════════════════
   5. SERVICES OVERVIEW — homepage 6×2 service-links grid
   ═══════════════════════════════════════════════════════════════ */

.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(--blue-line);
  border-bottom:1px solid var(--blue-line);
}
.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(--navy-deep);
  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(--blue-line) 20%,var(--blue-line) 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(--blue-line) 20%,var(--blue-line) 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:#0759a5;
  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(--blue);text-decoration:none;background:#f7fbff;}
.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
   ═══════════════════════════════════════════════════════════════
   Homepage-specific image references for the info-feature
   and pair sections. Inner pages override via inline styles
   or their own template CSS.
   ═══════════════════════════════════════════════════════════════ */

.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. HOMEPAGE RESPONSIVE — TABLET (980px)
   ═══════════════════════════════════════════════════════════════ */

@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}
}

/* ═══════════════════════════════════════════════════════════════
   8. HOMEPAGE RESPONSIVE — MOBILE (700px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 700px){
  /* Homepage hero becomes a stacked layout */
  .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:#dce8ef;
    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(--blue-line) 20%,var(--blue-line) 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(--blue-line) 15%,var(--blue-line) 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}
}

/* ═══════════════════════════════════════════════════════════════
   9. HOMEPAGE RESPONSIVE — SMALL MOBILE (380px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width:380px){
  .hero h1{font-size:29px}
  .hero__points{font-size:10px;gap:6px}
  .service-links a{font-size:11px}
}

/* ═══════════════════════════════════════════════════════════════
   10. REDUCED MOTION — homepage-specific
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion:reduce){
  .situation-card:hover{transform:none}
  .service-links a:hover span svg{transform:none}
}
/* ============================================================ */
/* NEW SECTIONS — homepage additions                             */
/* Reusable components for the extra homepage blocks.            */
/* ============================================================ */

/* --- Reversible info-feature (image on right instead of left) --- */
.info-feature--reverse {
  direction: rtl;
}
.info-feature--reverse > * {
  direction: ltr;
}
.info-feature--reverse .info-feature__media {
  background-position: center;
}
.info-feature__media--what-is {
  /* Unique image for "What Is Crime Scene Cleanup?" section —
     avoids repeating the handshake photo used in the section above */
  background-color: #eef2f6;
  background-image: url("what-is-cleanup.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* --- Section B: When Professional Cleanup Is Needed --- */
.situations-needed .needed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.needed-card {
  background: #ffffff;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  padding: 28px 26px;
  position: relative;
}
.needed-card--yes {
  border-left: 4px solid #2e7d32;
}
.needed-card--no {
  border-left: 4px solid #9aa5b1;
}

.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: #e6f4ea;
  color: #2e7d32;
}
.needed-card--no .needed-card__badge {
  background: #eef1f4;
  color: #5b6470;
}

.needed-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.35;
  color: #0b3d6b;
}
.needed-card .check-list {
  margin: 0;
}

/* --- Section C: What the Cleanup Process Involves --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 32px;
  position: relative;
}

/* Horizontal connector line linking the 5 numbered steps */
.process-grid::before {
  content: "";
  position: absolute;
  top: 42px;               /* vertically center with the numbered icons */
  left: calc(10% + 34px);  /* start after the first icon */
  right: calc(10% + 34px); /* end before the last icon */
  height: 2px;
  background-image: linear-gradient(
    to right,
    rgba(11,61,107,.25) 50%,
    transparent 50%
  );
  background-size: 12px 2px;
  background-repeat: repeat-x;
  z-index: 0;
  pointer-events: none;
}

.process-step {
  background: #ffffff;
  border: 1px solid #e5e9ef;
  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: #0b3d6b;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(11,61,107,.18);
  position: relative;
  z-index: 2;
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
  color: #0b3d6b;
}
.process-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a5561;
}

/* --- Section D: Michigan Regulations & Safety Standards --- */
.regulations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.regulation-card {
  display: flex;
  gap: 16px;
  padding: 28px 26px;
  background: #ffffff;
  border: 1px solid #e5e9ef;
  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: #e6f0f9;
  color: #0b3d6b;
}
.regulation-card--amber .regulation-card__icon {
  background: #fef3e2;
  color: #b45309;
}
.regulation-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.35;
  color: #0b3d6b;
}
.regulation-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4a5561;
}

/* --- Shared footnote for new sections --- */
.section-footnote {
  max-width: 780px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: #4a5561;
}

/* --- Section E: What to Ask a Provider Before Hiring --- */
.ask-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.ask-group {
  background: #ffffff;
  border: 1px solid #e5e9ef;
  border-radius: 12px;
  padding: 26px 24px;
  position: relative;
}

/* Color-coded left border for each column */
.ask-group:nth-child(1) {
  border-left: 4px solid #2e7d32;   /* Experience & Credentials → green */
}
.ask-group:nth-child(2) {
  border-left: 4px solid #0b3d6b;   /* Insurance & Licensing → navy */
}
.ask-group:nth-child(3) {
  border-left: 4px solid #b45309;   /* Process & Pricing → amber */
}

.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: #e6f4ea;
  color: #2e7d32;
}
.ask-group:nth-child(2) .ask-group__icon {
  background: #e6f0f9;
  color: #0b3d6b;
}
.ask-group:nth-child(3) .ask-group__icon {
  background: #fef3e2;
  color: #b45309;
}

.ask-group h3 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.35;
  color: #0b3d6b;
}
.ask-group .check-list {
  margin: 0;
}

/* ============================================================ */
/* RESPONSIVE                                                     */
/* ============================================================ */

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid::before {
    display: none;   /* hide connector when grid wraps */
  }
  .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;
  }
}

.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;
}
.call-disclosure{
    display: flex;
    margin-top: 10px;
}