/* Finishing touch check additions. Keeps the existing dark look as the default. */

html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100%; }

.btn, .btn-sm, nav a, .form input, .form select, .form textarea, .form .btn, .cbar a, .skip:focus {
  box-sizing: border-box;
  min-height: 44px;
}
nav a {
  display: inline-flex;
  align-items: center;
}
.skip:focus, .skip:focus-visible {
  left: 8px;
  top: 8px;
  min-height: 44px;
  padding: 12px 16px;
}

/* Phone-smart actions sit in the contact column */
#quote .ps-actions { margin: 16px 0 8px; }
#quote .ps-action {
  --ps-action-border: var(--gold);
  --ps-action-ink: var(--cream);
  --ps-action-bg: var(--coal-3);
}
.ps-a2hs {
  bottom: calc(84px + 0.6rem);
  z-index: 40;
  --ps-a2hs-bg: #2a1f18;
  --ps-a2hs-ink: #f7f1e8;
}
.ps-a2hs-dismiss {
  min-height: 44px;
  min-width: 44px;
}
.ps-a2hs[hidden] { display: none !important; }
/* Room for the Home Screen hint above the contact bar, so it does not cover the form or footer */
body:has(.ps-a2hs) { padding-bottom: 180px; }
@media (min-width: 900px) {
  .ps-a2hs { bottom: 6.5rem; right: 460px; left: auto; width: min(420px, calc(100% - 500px)); }
  body:has(.ps-a2hs) { padding-bottom: 120px; }
}

/* Seasons and holidays: a thin gold accent only, so the designed look stays */
html[data-ps-season="spring"] .top { box-shadow: inset 0 3px 0 #7a9b5c; }
html[data-ps-season="summer"] .top { box-shadow: inset 0 3px 0 var(--gold-l); }
html[data-ps-season="autumn"] .top { box-shadow: inset 0 3px 0 #b87333; }
html[data-ps-season="winter"] .top { box-shadow: inset 0 3px 0 #8aa0b8; }
html[data-ps-holiday] .top { box-shadow: inset 0 3px 0 var(--gold); }

/* Dark mode: the live design is already dark. In light preference, lighten the page
   body only. Keep the header, footer, gold buttons and hero text as designed, so
   contrast never falls when variables would otherwise invert on a hardcoded dark bar. */
:root { color-scheme: dark; }
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --coal: #f6f1e6;
    --coal-2: #efe8d8;
    --coal-3: #fffdf8;
    --cream: #1c1915;
    --mute: #5b5346;
    --line: #d4cbb8;
    --ink: #1c1915;
    --stone: #f3eee3;
    --green-d: #1c1915;
  }
  body, .sec, .hero { color: var(--cream); }
  .top {
    background: rgba(20, 18, 16, 0.96);
  }
  .top .brand,
  .top .brand-txt strong,
  .top nav a:not(.btn) {
    color: #f1ead8;
  }
  .top .brand-txt span {
    color: #e2c278;
  }
  .logo {
    box-shadow: 0 0 0 1px #c9a24a, 0 0 0 4px #141210, 0 0 0 5px rgba(201, 162, 74, 0.5);
  }
  .btn, .btn-sm, .btn:hover, .btn-sm:hover,
  .hero .btn-light, .hero .btn-light:hover,
  .cbar a, .skip {
    color: #141210 !important;
  }
  .form input, .form select, .form textarea {
    background: #fff;
    color: #1c1915;
    border-color: #c9c2b2;
  }
  .form-note {
    background: #f7f1e4;
    color: #3a3228;
  }
  .foot {
    background: #0d0c0a;
    color: #c9bfa8;
  }
  .foot a { color: #e2c278; }
  .cbar { background: rgba(20, 18, 16, 0.85); }
  .ps-a2hs {
    --ps-a2hs-bg: #f7f1e8;
    --ps-a2hs-ink: #2a1f18;
  }
  #quote .ps-action {
    --ps-action-ink: #1c1915;
  }
}

/* 404 */
.missing { min-height: 50vh; }
.missing h1 { margin-top: 0; }

/* Common questions */
.faq { margin-top: 22px; }
.faq-item { padding: 18px 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 8px; }
.faq-item p { margin: 0; color: var(--mute); max-width: 70ch; }
