/* Panel Works PNW — mobile-first, no web fonts, no animation. */
:root {
  --navy: #0f2a44;
  --navy-2: #1b3d60;
  --amber: #f2a900;
  --ink: #1d2733;
  --muted: #4a5868;
  --line: #d6dde5;
  --bg-soft: #f3f6f9;
  --link: #0b5cad;
  --ok: #1d6b36;
  --err: #a4161a;
  --radius: 8px;
  --wrap: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: #fff;
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: 4.5rem; /* room for the fixed mobile CTA bar */
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber); outline-offset: 2px;
}
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin: 0 0 .75rem; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.small { font-size: .9rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* Header + navigation */
.site-header { background: var(--navy); color: #fff; }
.header-row { display: flex; align-items: center; gap: .75rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: .5rem; min-height: 44px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; flex: 1 1 auto; min-width: 0; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand img { flex: 0 0 auto; }
.btn.header-cta { display: none; flex: 0 0 auto; }
.nav-toggle {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .75rem;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); font: inherit; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.site-nav { display: none; border-top: 1px solid rgba(255,255,255,.15); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0 auto; padding: .25rem 1rem .75rem; }
.site-nav a { display: block; padding: .7rem 0; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-nav a[aria-current="page"] { color: var(--amber); font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1rem; line-height: 1.2; cursor: pointer; text-align: center; }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: #ffbf1f; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }

/* Fixed mobile CTA bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: .5rem; padding: .5rem 1rem calc(.5rem + env(safe-area-inset-bottom)); background: var(--navy); box-shadow: 0 -2px 8px rgba(0,0,0,.2); }
.mobile-bar .btn { flex: 1 1 0; min-width: 0; padding-left: .5rem; padding-right: .5rem; white-space: nowrap; }
.mobile-bar .btn:first-child:not(:only-child) { flex-grow: 1.6; } /* the call button carries the longer label */

/* Content */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5rem; max-width: var(--wrap); margin: 0 auto; padding: .25rem 1rem 0; font-size: .9rem; color: var(--muted); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; }
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 2rem 0 1.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.section { padding-top: .5rem; padding-bottom: 1.5rem; }
.prose { max-width: 46rem; }
.answer { background: var(--bg-soft); border-left: 4px solid var(--amber); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.25rem 0; max-width: 46rem; }
.answer p { margin: .25rem 0; }
.answer .answer-label { font-weight: 700; color: var(--navy); }
.callout { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0; max-width: 46rem; background: #fff; }
.callout-title { font-weight: 700; color: var(--navy); margin: 0 0 .35rem; }
.callout p:last-child { margin-bottom: 0; }
.warn { border-color: var(--err); border-left-width: 4px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1rem 0; padding: 0; list-style: none; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; background: #fff; }
.card h3 { margin-top: 0; }
.card h3 a { display: inline-block; padding: .7rem 0; margin: -.7rem 0; } /* 44px tap area, same layout */
.link-list li { margin: 0; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; }
.card p { margin-bottom: 0; }
.table-scroll { overflow-x: auto; max-width: 100%; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: .975rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem; border: 1px solid var(--line); }
th { background: var(--bg-soft); color: var(--navy); }
.checklist { padding-left: 1.25rem; }
.checklist li { margin: .35rem 0; }
.cta-band { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.5rem; margin: 2rem 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band a:not(.btn) { color: #fff; }
.source-note { font-size: .9rem; color: var(--muted); }
.diagram { margin: 1.25rem 0; max-width: 46rem; }
.diagram figcaption { font-size: .9rem; color: var(--muted); }

/* Form */
.estimate-form { max-width: 36rem; }
.field { margin: 0 0 1rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; }
fieldset.field { border: 0; padding: 0; }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 400 !important; min-height: 44px; cursor: pointer; }
.check input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: 0; }
.req, .opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #8a97a6; border-radius: 6px; background: #fff; color: var(--ink); min-height: 44px;
}
[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.field-error { color: var(--err); margin: .3rem 0 0; font-size: .95rem; }
.form-errors { border: 2px solid var(--err); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; color: var(--err); }
.form-errors ul { margin: .25rem 0 0; }
.more-details { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1rem; }
.more-details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.more-details[open] summary { margin-bottom: .75rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: 0 0 1rem; min-height: 0; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.success { color: var(--ok); }
.form-status.error { color: var(--err); }

/* Footer */
.site-footer { background: #0b2034; color: #d7e0ea; margin-top: 3rem; padding: 2rem 0 1rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.footer-brand, .footer-heading { font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.copyright { margin-top: 1rem; color: #a9b7c6; }

/* Below desktop the fixed CTA bar overlays the bottom of the viewport: keep focused or
   scrolled-to elements (form fields, error-summary targets) from landing underneath it. */
@media (max-width: 959px) {
  html { scroll-padding-bottom: 5.5rem; }
}
@media (min-width: 480px) {
  .btn.header-cta { display: inline-flex; }
}
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; padding: 0 1rem; }
  .site-nav a { border-bottom: 0; padding: .6rem 0; }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 479px) {
  .hide-sm { display: none; }
  .estimate-form button[type="submit"] { width: 100%; }
}
/* Smallest phones (320–359px): keep the full brand name and the call number on one line. */
@media (max-width: 359px) {
  .hide-xs { display: none; }
  .nav-toggle { padding: 0 .7rem; min-width: 44px; justify-content: center; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
