/* Davis Paint DP LLC: earthy, dusty coatings palette (terracotta, ochre, dusty teal, sage grey, putty, charcoal);
   terracotta vertical side header and hero/section bands with white text over white content, split hero (text /
   tint-counter graphic), monospace labels and prices with a geometric sans body, paint-chip price tables, sharp
   corners and 1px rules, swatch-strip motif */
@font-face {
  font-family: "Tag Mono";
  src: url("fonts/tag-mono-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tag Mono";
  src: url("fonts/tag-mono-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --rust: #a6533a;
  --rust-d: #8a4430;
  --ochre: #d6a648;
  --teal: #5f8a8b;
  --sage: #8f9a86;
  --putty: #efe8dc;
  --char: #2b2724;
  --muted: #5d5650;
  --rule: #ddd4c6;
  --white: #ffffff;
  --mono: "Tag Mono", "Courier New", monospace;
  --sans: "Outfit", "Segoe UI", Arial, sans-serif;
  --rail: 250px;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--char); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust-d); text-underline-offset: 3px; }
a:hover { color: var(--char); }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.mono, .label, .ptable thead th, .facts dt { font-family: var(--mono); }
.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 16px;
  background: var(--ochre); color: var(--char); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* vertical side header */
.shell {
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, var(--rust) 0 var(--rail), transparent var(--rail));
}
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding: 24px 22px; background: var(--rust); color: var(--white); border-right: 8px solid transparent; border-image: url("assets/motif-swatch.svg") 0 0 0 8 / 0 0 0 8px repeat; }
.brand { display: block; color: var(--white); text-decoration: none; }
.brand img { width: 150px; height: 150px; margin-bottom: 12px; }
.brand-name { display: block; font-weight: 700; font-size: 1.3rem; line-height: 1.15; }
.rail-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.rail-nav a { display: flex; align-items: baseline; gap: 12px; padding: 10px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.35); color: var(--white); text-decoration: none; font-weight: 700; }
.rail-nav a:hover { background: rgba(0, 0, 0, 0.12); }
.rail-nav a[aria-current="page"] { background: var(--white); color: var(--rust-d); padding-left: 10px; }
.num { font-family: var(--mono); font-weight: 400; font-size: 0.8rem; opacity: 0.85; }
.rail-foot { margin-top: auto; font-size: 0.95rem; }
.rail-foot p { margin: 0 0 4px; font-size: 0.8rem; opacity: 0.9; }
.rail-foot a { color: var(--white); font-weight: 700; font-size: 1.15rem; }
.main-col { min-width: 0; }
main { padding: 0 clamp(20px, 4vw, 56px) 40px; max-width: 1180px; }

/* split hero and page bands */
.band { margin: 0 calc(-1 * clamp(20px, 4vw, 56px)); padding: 52px clamp(20px, 4vw, 56px); background: var(--rust); color: var(--white); border-left: 1px solid rgba(255, 255, 255, 0.25); }
.band h1 { color: var(--white); }
.band .lede { color: #f6e5dd; font-size: 1.15rem; max-width: 38em; }
.band.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.band-art { border: 1px solid rgba(255, 255, 255, 0.6); background: var(--putty); }
.hero-art { width: 100%; }
.label { display: inline-block; margin: 0 0 14px; padding: 3px 10px; background: var(--char); color: var(--white); font-size: 0.8rem; letter-spacing: 0.04em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-block; padding: 10px 20px; border: 1px solid var(--rust); font-weight: 700; text-decoration: none; }
.btn-white { background: var(--white); border-color: var(--white); color: var(--rust-d); }
.btn-white:hover { background: var(--ochre); border-color: var(--ochre); color: var(--char); }
.btn-line { border-color: var(--white); color: var(--white); }
.btn-line:hover { background: var(--white); color: var(--rust-d); }
.btn-rust { background: var(--rust); color: var(--white); }
.btn-rust:hover { background: var(--char); border-color: var(--char); color: var(--white); }
.btn-outline { color: var(--rust-d); background: var(--white); }
.btn-outline:hover { background: var(--putty); }

/* sections */
.sec { padding: 46px 0; border-bottom: 1px solid var(--rule); }
.sec:last-child { border-bottom: 0; }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.chip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.chip-list a { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 0 16px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--char); text-decoration: none; }
.chip-list a:hover { background: var(--putty); }
.chip { display: block; height: 40px; margin: 0 -16px 6px; }
.chip-list img { width: 52px; height: 52px; }
.cn { font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.code { font-size: 0.78rem; color: var(--muted); margin: 0; }
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--char); }
.rules li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.rules strong { color: var(--char); }
.rules.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; border-top: 0; }
.rules.three li { border-top: 1px solid var(--char); border-bottom: 0; }
.spot { padding: 26px; background: var(--putty); border-top: 8px solid var(--ochre); }
.spot p { color: var(--muted); }
.spot .label { color: var(--white); }
.amount { font-size: 1.5rem; font-weight: 700; color: var(--rust-d) !important; }

/* paint-chip price tables */
.jump { list-style: none; margin: 0; padding: 26px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--rule); color: var(--char); text-decoration: none; font-weight: 700; font-size: 0.93rem; }
.jump a:hover { border-color: var(--char); }
.jump .chip { width: 22px; height: 22px; margin: 0; }
.cat { scroll-margin-top: 12px; }
.card-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--chip); color: var(--white); }
.card-head img { width: 54px; height: 54px; background: var(--white); padding: 4px; }
.card-head h2 { margin: 0; color: var(--white); letter-spacing: 0.03em; }
.card-head .code { color: var(--white); opacity: 0.85; }
#exterior-marine .card-head h2, #exterior-marine .card-head .code, #supplies-tools .card-head h2, #supplies-tools .card-head .code { color: var(--char); }
.ptable { width: 100%; border-collapse: collapse; border: 1px solid var(--rule); border-top: 0; }
.ptable caption { text-align: left; font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.ptable thead th { text-align: left; padding: 9px 14px; font-weight: 400; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--char); background: var(--putty); }
.ptable thead td { background: var(--putty); border-bottom: 1px solid var(--char); }
.ptable tbody th, .ptable tbody td { text-align: left; vertical-align: top; padding: 13px 14px; border-bottom: 1px solid var(--rule); }
.ptable tbody th { font-weight: 700; }
.ptable .d { display: block; font-weight: 400; color: var(--muted); }
.ptable .p { text-align: right; white-space: nowrap; font-weight: 700; }
.ptable td.sw { width: 34px; padding: 13px 0 13px 14px; }
.ptable td.sw span { display: block; width: 20px; height: 28px; }
.call { font-family: var(--sans); font-size: 0.88rem; }

/* about + contact */
.story p { color: var(--muted); }
.story p.first { color: var(--char); font-size: 1.3rem; line-height: 1.5; }
.facts-box { padding: 24px; border: 1px solid var(--char); border-top: 8px solid var(--teal); }
.facts { margin: 0; }
.facts div { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.hours { border-top: 1px solid var(--rule); }
.hours thead th { background: var(--white); }
.hours td { white-space: nowrap; }
.hn { display: block; font-family: var(--mono); font-size: 0.82rem; color: var(--rust-d); }
.map-frame { display: block; width: 100%; height: 400px; border: 1px solid var(--char); background: var(--putty); }
.map-link { margin: 12px 0 0; }

/* footer */
.swatch-rule { height: 8px; background: url("assets/motif-swatch.svg") 0 0 / 96px 8px repeat-x; }
.site-footer { background: var(--char); color: #d3cbc1; padding: 34px clamp(20px, 4vw, 56px) 22px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--ochre); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.footer-name { font-weight: 700; font-size: 1.35rem; 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 #4a433e; font-size: 0.8rem; }

@media (max-width: 1240px) {
  .chip-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .shell { display: block; background: none; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 20px; border-right: 0; border-bottom: 8px solid transparent; border-image: url("assets/motif-swatch.svg") 0 0 8 0 / 0 0 8px 0 repeat; }
  .brand { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
  .brand img { width: 56px; height: 56px; margin: 0; }
  .rail-nav { flex-basis: 100%; }
  .rail-nav ul { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; border-top: 0; gap: 4px; }
  .rail-nav a { border: 1px solid rgba(255, 255, 255, 0.45); padding: 6px 10px; }
  .rail-nav a[aria-current="page"] { padding-left: 10px; }
  .num { display: none; }
  .rail-foot { margin: 0; }
  .rail-foot p { display: none; }
  .band.split, .two { grid-template-columns: 1fr; }
  .rules.three { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .rail-nav a { font-size: 0.88rem; padding: 6px 8px; }
  .rail-nav a[aria-current="page"] { padding-left: 8px; }
  .chip-list { grid-template-columns: 1fr 1fr; }
  .ptable:not(.hours) thead { display: none; }
  .ptable:not(.hours) tr { display: grid; grid-template-columns: 34px minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
  .ptable:not(.hours) tbody th, .ptable:not(.hours) tbody td { border-bottom: 0; }
  .ptable:not(.hours) td.sw { grid-row: 1 / span 2; }
  .ptable:not(.hours) tbody th { padding-bottom: 4px; }
  .ptable:not(.hours) td.p { grid-column: 2; text-align: left; white-space: normal; padding-top: 0; }
  .hours td { white-space: normal; }
  .map-frame { height: 300px; }
}
