/* TrueHill LLC: cool-leaning electrical palette (electric blue, deep navy, cool ice, volt-yellow accent); saturated
   blue hero and section bands with white text over white content, full-width bands with alternating alignment, slab
   serif headings with a sans body, pill-button navigation, price tables, pill buttons and tags, circuit-trace motif */
@font-face {
  font-family: "Ledger Slab";
  src: url("fonts/ledger-slab-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1d5fc4;
  --blue-d: #154a9c;
  --navy: #0e1a2e;
  --ice: #e8f1ff;
  --tint: #f2f7fe;
  --volt: #ffcf33;
  --muted: #4c5b70;
  --rule: #d6e2f3;
  --white: #ffffff;
  --slab: "Ledger Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: "Fira Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 18px; border-radius: 999px;
  background: var(--volt); color: var(--navy); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* header with pill-button nav */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; margin-right: auto; }
.brand img { width: 58px; height: 58px; border-radius: 14px; }
.brand-name { font-family: var(--slab); font-weight: 700; font-size: 1.6rem; }
.main-nav ul { list-style: none; margin: 0; padding: 5px; display: flex; flex-wrap: wrap; gap: 4px; background: var(--ice); border-radius: 999px; }
.main-nav a { display: block; padding: 8px 18px; border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { background: var(--white); }
.main-nav a[aria-current="page"] { background: var(--blue); color: var(--white); }
.head-call { white-space: nowrap; }

/* pills and tags */
.pill { display: inline-block; padding: 10px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.pill-volt { background: var(--volt); color: var(--navy); }
.pill-volt:hover { background: var(--white); color: var(--navy); }
.pill-white { background: var(--white); color: var(--blue-d); }
.pill-white:hover { background: var(--volt); color: var(--navy); }
.pill-blue { background: var(--blue); color: var(--white); }
.pill-blue:hover { background: var(--navy); color: var(--white); }
.pill-line { border-color: var(--blue); color: var(--blue-d); }
.pill-line:hover { background: var(--ice); }
.tag { display: inline-block; margin: 0 0 14px; padding: 3px 12px; border-radius: 999px; background: var(--ice); color: var(--blue-d); font-weight: 600; font-size: 0.85rem; }
.tag-volt { background: var(--volt); color: var(--navy); }
.tag-blue { background: var(--blue); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-row.center { justify-content: center; margin-top: 30px; }

/* full-width bands with alternating alignment */
.band { padding: 64px 0; }
.band.blue { background: var(--blue) url("assets/motif-circuit.svg") 0 0 / 60px 60px; color: var(--white); }
.band.blue h1, .band.blue h2 { color: var(--white); }
.band.blue .lede, .band.blue p { color: #e3ecfb; }
.band.blue .tag-volt { color: var(--navy); }
.band.blue .spot .tag-blue { color: var(--white); }
.band.tint { background: var(--tint); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.band-grid.rev .band-text { order: 2; text-align: right; }
.band-grid.rev .band-side { order: 1; }
.band-grid.rev .btn-row { justify-content: flex-end; }
.lede { font-size: 1.15rem; max-width: 36em; }
.hero-art { width: 100%; border-radius: 28px; border: 6px solid var(--white); }
.cat-pills { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cat-pills a { display: flex; align-items: center; gap: 14px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--ice); color: var(--navy); text-decoration: none; }
.cat-pills a:hover { background: var(--volt); }
.cat-pills img { width: 48px; height: 48px; background: var(--white); border-radius: 50%; padding: 6px; }
.cn { flex: 1; font-family: var(--slab); font-weight: 700; font-size: 1.2rem; }
.cat-pills .tag { margin: 0; background: var(--white); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%; background: var(--volt); box-shadow: inset 0 0 0 5px var(--volt), inset 0 0 0 9px var(--navy); }
.band.blue .checks li { color: #e3ecfb; }
.band.blue .checks strong { color: var(--white); }
.band-grid.rev .checks li { padding-left: 0; padding-right: 30px; }
.band-grid.rev .checks li::before { left: auto; right: 0; }
.spot { padding: 30px; border-radius: 28px; background: var(--white); color: var(--navy); }
.band.blue .spot p { color: var(--muted); }
.amount { font-family: var(--slab); font-weight: 700; font-size: 2rem; color: var(--blue-d) !important; }
.addr-line { font-family: var(--slab); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--navy); }
.side-icon { width: 160px; height: 160px; padding: 26px; border-radius: 50%; background: var(--white); margin-inline: auto; }

/* price tables in alternating bands */
.jump { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump .pill { padding: 6px 14px; font-size: 0.92rem; }
.cat { scroll-margin-top: 10px; padding: 54px 0; }
.cat-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.cat-grid.rev { grid-template-columns: minmax(0, 1fr) 260px; }
.cat-grid.rev .cat-head { order: 2; text-align: right; }
.cat-grid.rev .cat-head img { margin-left: auto; }
.cat-head img { width: 72px; height: 72px; margin-bottom: 12px; }
.cat-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.ptable { color: var(--navy); width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--rule); border-radius: 22px; overflow: hidden; background: var(--white); }
.ptable caption { text-align: left; font-family: var(--slab); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); padding-bottom: 12px; }
.ptable thead th { text-align: left; padding: 12px 18px; background: var(--navy); color: var(--white); font-weight: 600; font-size: 0.9rem; }
.ptable tbody th, .ptable tbody td { text-align: left; vertical-align: top; padding: 14px 18px; border-top: 1px solid var(--rule); }
.ptable tbody th { font-weight: 600; width: 34%; }
.ptable td.d { color: var(--muted); }
.ptable .p { text-align: right; }
.price { display: inline-block; padding: 3px 14px; border-radius: 999px; background: var(--ice); color: var(--blue-d); font-weight: 600; white-space: nowrap; }
.call { display: inline-block; margin-top: 6px; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.ptable.on-blue { border-color: rgba(255, 255, 255, 0.4); }
.ptable.on-blue thead th { background: var(--volt); color: var(--navy); }
.ptable.on-blue tbody td.d { color: var(--muted); }
.ptable.on-blue .price { background: var(--volt); color: var(--navy); }

/* about + contact */
.story p { color: var(--muted); }
.story p.first { color: var(--navy); font-size: 1.3rem; line-height: 1.5; }
.facts-card { padding: 30px; border-radius: 28px; background: var(--ice); }
.facts { margin: 0; }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.85rem; font-weight: 600; color: var(--blue-d); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.hours td .tag { margin: 0 0 0 6px; background: var(--volt); color: var(--navy); }
.hours td { white-space: nowrap; }
.note { margin: 18px 0 0; padding: 12px 20px; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 600; display: inline-block; }
.map-frame { display: block; width: 100%; height: 400px; border: 0; border-radius: 28px; background: var(--ice); }
.map-link { margin: 14px 0 0; }

/* footer */
.site-footer { background: var(--navy); color: #c6d3e6; padding: 38px 0 22px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--volt); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.footer-name { font-family: var(--slab); font-weight: 700; font-size: 1.5rem; color: var(--white); margin-bottom: 4px; }
.site-footer address { margin-bottom: 6px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-bottom { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid #22324c; font-size: 0.88rem; }

@media (max-width: 1060px) {
  .head-row { flex-wrap: wrap; }
  .head-call { order: 2; }
  .main-nav { order: 3; flex-basis: 100%; }
}
@media (max-width: 960px) {
  .band-grid, .cat-grid, .cat-grid.rev { grid-template-columns: 1fr; gap: 28px; }
  .band-grid.rev .band-text, .cat-grid.rev .cat-head { order: 0; text-align: left; }
  .band-grid.rev .btn-row { justify-content: flex-start; }
  .band-grid.rev .checks li { padding-left: 30px; padding-right: 0; }
  .band-grid.rev .checks li::before { left: 0; right: auto; }
  .cat-grid.rev .cat-head img { margin-left: 0; }
  .cat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .cat-head img { width: 54px; height: 54px; margin: 0; }
  .cat-head h2 { margin: 0; }
  .cat-head .tag { margin: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .band, .cat { padding: 44px 0; }
  .brand-name { font-size: 1.35rem; }
  .main-nav ul { border-radius: 22px; }
  .main-nav ul { gap: 2px; padding: 4px; }
  .main-nav a { padding: 7px 10px; font-size: 0.85rem; }
  .ptable:not(.hours) thead { display: none; }
  .ptable:not(.hours), .ptable:not(.hours) tbody, .ptable:not(.hours) tr, .ptable:not(.hours) th, .ptable:not(.hours) td { display: block; width: 100%; }
  .ptable:not(.hours) tbody th { width: 100%; padding-bottom: 2px; }
  .ptable:not(.hours) tbody td { border-top: 0; padding-top: 2px; padding-bottom: 6px; }
  .ptable:not(.hours) tbody td.p { text-align: left; padding-bottom: 16px; }
  .hours tbody th, .hours tbody td { padding: 12px 12px; }
  .hours td { white-space: normal; }
  .note { border-radius: 18px; }
  .map-frame { height: 300px; }
}
