  /* Fire-door-inspections pillar deltas. Loads on /fire-door-inspections/
     on top of service-base.css. Holds the "six fail reasons" card grid,
     the legal-duty cards + note, the door-specific mid-CTA card with an
     image panel, and door responsive overrides. */

  /* ---- DOOR HERO (overrides the shared flat-ember .hero) ----
     The door design uses a photographic hero (a fire-door corridor) with a
     dark overlay instead of the ember gradient + decorative circles. The
     template swaps the photo via inline style when an ACF "Hero photo" is set;
     this is the extracted design default. */
  .hero {
    background:
      linear-gradient(rgba(20,17,15,.55) 0%, rgba(20,17,15,.65) 100%),
      url('../images/door/hero.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
  }
  .hero::before,
  .hero::after { display: none; }

  /* ---- DOOR PROBLEM IMAGE (overrides the shared base64 photo) ----
     Door-specific inspection photo; template overrides via inline style when
     an ACF "Problem photo" is uploaded. */
  .problem-image {
    background-image: url('../images/door/problem.jpg');
    background-size: cover;
    background-position: center;
  }

  /* ---- SIX FAIL REASONS (inside .sec-who) ----
     Replaces FRA's .who-grid photo-card layout with text-led cards. */
  .fail-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-bottom: 48px;
  }
  .fail-card {
    border-radius: 12px; overflow: hidden;
    display: block; text-decoration: none;
    position: relative; aspect-ratio: 3/4;
    background: #2a2522;
    color: #fff;
  }
  .fail-card-img {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transition: transform .5s cubic-bezier(.22,.61,.36,1);
  }
  .fail-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,17,15,.05) 0%, rgba(20,17,15,.75) 100%);
    transition: opacity .3s ease;
  }
  .fail-card:hover .fail-card-img { transform: scale(1.06); }
  .fail-card:hover::after { opacity: .9; }
  .fail-card-body {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 18px 20px 22px; z-index: 2;
  }
  .fail-num { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--amber); margin-bottom: 4px; }
  .fail-card h3 { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.01em; line-height: 1.25; margin: 0; }
  .fail-card p {
    font-size: 13px; color: rgba(255,255,255,0); line-height: 1.5; margin: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, color .3s ease, margin .3s ease;
  }
  .fail-card:hover p { color: rgba(255,255,255,.82); max-height: 200px; margin-top: 6px; }
  .fail-cta-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: 28px 32px; background: #fff; border-radius: 8px; border: 1px solid var(--line);
  }
  .fail-cta-strip p { font-size: 15px; color: var(--ink-soft); margin: 0; max-width: 600px; line-height: 1.5; }

  /* ---- LEGAL DUTY SECTION ---- */
  .sec-legal { padding: 100px 0; background: #fff; }
  .legal-head {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    align-items: end; margin-bottom: 52px;
  }
  .legal-head .eyebrow { color: var(--ember); margin-bottom: 14px; }
  .legal-head h2 { font-size: 42px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 0; }
  .legal-head p { font-size: 16px; color: var(--ink-soft); line-height: 1.65; margin: 0; }
  .legal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
  .legal-card {
    background: #fff; border-radius: 8px; padding: 32px 28px 28px;
    border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px;
  }
  .legal-card .year { font-size: 56px; font-weight: 900; letter-spacing: -.04em; color: var(--ember); line-height: 1; }
  .legal-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; margin: 0; }
  .legal-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin: 0; flex: 1; }
  .legal-card .legal-tag {
    font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ember); padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto;
  }
  .legal-note {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--ink); border-radius: 8px; padding: 18px 22px;
    border: 1px solid var(--ink); font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.6;
  }
  .legal-note-icon {
    width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--amber);
    display: flex; align-items: center; justify-content: center;
    color: var(--amber); font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
  }
  .legal-note b, .legal-note strong { color: #fff; font-weight: 700; }

  /* ---- DOOR MID-CTA (overrides shared .sec-mid-cta) ----
     Base ships a single-column blue band; the door page uses a 2-up
     card with a photo panel left and the blue copy block right. */
  .sec-mid-cta { background: #fff; padding: 80px 0; }
  .mid-cta-inner {
    /* Edge-to-edge rounded card: width + side padding come from the parent
       .wrap. Padding here would inset the columns from the rounded edges. */
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 24px 60px -20px rgba(20,17,15,.18);
    min-height: 420px;
    align-items: stretch;
    color: #fff;
  }
  .mid-cta-image {
    background-size: cover; background-position: center;
    /* Default = the design's stock photo extracted to a real file.
       Template overrides via inline style="background-image:url(...)" when
       an ACF "Mid-CTA photo" is uploaded. */
    background-color: var(--cream-2, #E8E4DB);
    background-image: url('../images/door/mid-cta.jpg');
  }
  .mid-cta-copy {
    padding: 60px 56px; background: var(--blue, rgb(28,60,159));
    display: flex; flex-direction: column; justify-content: center; gap: 20px;
  }
  .mid-cta-copy h2 { font-size: 40px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 0; }
  .mid-cta-copy h2 em { font-style: normal; color: var(--amber); }
  .mid-cta-copy p { font-size: 16px; color: rgba(255,255,255,.8); line-height: 1.6; margin: 0; max-width: 420px; }

  /* ---- RESPONSIVE (door-only overrides) ---- */
  @media (max-width: 960px) {
    .legal-head { grid-template-columns: 1fr; gap: 24px; }
  }
  @media (max-width: 768px) {
    .fail-grid { grid-template-columns: 1fr 1fr; }
    .legal-cards { grid-template-columns: 1fr; }
    .fail-cta-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
    .mid-cta-inner { grid-template-columns: 1fr; min-height: 0; }
    .mid-cta-image { min-height: 240px; }
    .mid-cta-copy { padding: 36px 28px; }
    .mid-cta-copy h2 { font-size: 28px; }
  }
  @media (max-width: 480px) {
    .fail-grid { grid-template-columns: 1fr; }
  }
