/* Empire redesign layer, J.U.N.E. 2026-12-02 (Tony: apply the plan's navy, amber and cream direction,
   keep the logo exactly as it is). Loaded LAST on every page, so removing this one <link> restores the
   previous look. Light theme only; no dark-mode rules. Logo image and brand name are not restyled. */
:root {
  color-scheme: light;
  --primary-blue: #173a6b;
  --primary-blue-dark: #0f2747;
  --primary-blue-light: #2f5a96;
  --accent-orange: #b45309;
  --accent-orange-dark: #92400e;
  --accent-orange-light: #f59e0b;
  --emergency-red: #0f2747;
  --emergency-red-dark: #0b1d36;
  --gray-50: #fbf7ee;
  --gray-100: #f5eee0;
  --egd-cream: #fffdf7;
  --egd-amber: #f5b33b;
  --egd-amber-ink: #0f2747;
}
html, body { max-width: 100%; overflow-x: hidden; }
body { background: var(--egd-cream); }

/* Emergency bar: navy, with the phone as an amber pill so the number stays the loudest thing on screen. */
.emergency-bar { background: linear-gradient(90deg, #0f2747 0%, #173a6b 100%) !important; }
.emergency-bar .emergency-phone,
.emergency-bar a[href^="tel:"] {
  background: var(--egd-amber) !important;
  color: var(--egd-amber-ink) !important;
  font-weight: 700;
}

/* Breadcrumb strip and light bands in cream instead of cool gray-blue. */
.breadcrumb-nav { background: var(--gray-50) !important; border-bottom: 1px solid #ece3d0; }
.trust-bar, .trust-badges, .egd-trust-strip { background: var(--gray-50); }

/* Primary call-to-action: amber with navy ink (AA at normal size). */
.btn.btn-primary, .btn-primary { background: var(--egd-amber) !important; border-color: var(--egd-amber) !important; color: var(--egd-amber-ink) !important; }
.btn.btn-primary:hover, .btn-primary:hover { background: #e9a21f !important; border-color: #e9a21f !important; }

/* Area cards on the home page become plain links. */
.area-card a.egd-area-link { display: block; color: inherit; text-decoration: none; }
.area-card a.egd-area-link:hover h3, .area-card a.egd-area-link:focus-visible h3 { text-decoration: underline; }

/* Home FAQ and the guided problem finder. */
.egd-faq { max-width: 920px; margin: 0 auto; padding: 0 16px; }
.egd-faq details { background: #fff; border: 1px solid #ece3d0; border-radius: 10px; margin: 0 0 12px; padding: 14px 18px; }
.egd-faq summary { cursor: pointer; font-weight: 700; color: #0f2747; line-height: 1.45; }
.egd-faq details p { margin: 10px 0 0; line-height: 1.65; color: #1f2937; }
.egd-problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.egd-problem { background: #fff; border: 1px solid #ece3d0; border-left: 4px solid var(--egd-amber); border-radius: 10px; padding: 16px 18px; }
.egd-problem h3 { margin: 0 0 6px; font-size: 1.05rem; color: #0f2747; }
.egd-problem p { margin: 0 0 10px; line-height: 1.6; color: #1f2937; }
.egd-problem a { font-weight: 700; color: #173a6b; }
.egd-photo-hint { font-size: .9rem; color: #374151; margin-top: 6px; line-height: 1.5; }

/* Fewer decorative effects: the section fade-in no longer delays content. */
.fade-in-up { animation: none !important; opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Performance (plan section 4): the 002.jpg page hero sits under a dark overlay, so a lightly blurred WebP
   is indistinguishable there (perf/trial-enc/compare-overlay.png). Desktop 534 KB -> 76 KB, phones 119 KB -> 29 KB.
   Same selector as G.R.A.C.E.'s 2026-10-28 phone rule in main.css; only heroes whose inline style names 002.jpg. */
@media (min-width: 768px) {
  section.page-header[style*="images/002.jpg"] {
    background-image: linear-gradient(135deg, rgba(20, 33, 61, 0.8) 0%, rgba(44, 62, 80, 0.7) 50%, rgba(20, 33, 61, 0.8) 100%), url('/images/002-hero-1440.webp') !important;
    background-attachment: scroll !important;
  }
}
@media (max-width: 767px) {
  section.page-header[style*="images/002.jpg"] {
    background-image: linear-gradient(135deg, rgba(20, 33, 61, 0.8) 0%, rgba(44, 62, 80, 0.7) 50%, rgba(20, 33, 61, 0.8) 100%), url('/images/002-hero-768.webp') !important;
    background-attachment: scroll !important;
  }
}

/* Home area cards: two per row on phones so eight cards are not one long column. */
@media (max-width: 600px) {
  .areas-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .areas-grid .area-card { padding: 16px 10px !important; }
  .areas-grid .area-card h3 { font-size: 1rem !important; }
  .areas-grid .area-card .response-time { font-size: .78rem !important; padding: 6px 4px !important; }
}

/* The /quote/ form's own button (.submit-btn) had no rule anywhere and rendered as a gray browser default.
   It now matches the other form pages' primary action, in the redesign's amber with navy ink. */
.quote-form .submit-btn, .quote-form .form-submit {
  width: 100%; min-height: 54px; padding: 1rem 1.25rem; border: none; border-radius: 8px; cursor: pointer;
  background: var(--egd-amber) !important; color: var(--egd-amber-ink) !important; font-size: 1.125rem; font-weight: 700;
}
.quote-form .submit-btn:hover, .quote-form .submit-btn:focus-visible, .quote-form .form-submit:hover, .quote-form .form-submit:focus-visible { background: #e9a21f !important; }
