/* Showcase templates: layout and components shared by every style.
   Colors and type come from the style file loaded after this one
   (assets/styles/<style>.css). Nothing here names a template color or font.
   Lovalto rules: 2px corners, 1px hairlines, no card shadows, no gradients,
   short motion, visible focus. */

:root {
  --head: 76px;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1200px;
  --radius: 2px;
  --bar-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0;
  padding-bottom: var(--bar-h);
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--body-size)/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
h1, h2, h3, .wordmark, .display {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  font-stretch: var(--display-stretch);
  letter-spacing: var(--display-tracking);
}
h1, h2, h3 { margin: 0 0 .5em; line-height: var(--display-leading); text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3, .h3 { font-size: var(--h3); line-height: 1.2; }
p, li, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: var(--radius); }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 880px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 60;
  padding: 10px 16px; background: var(--fg); color: var(--bg); border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { position: relative; display: flex; align-items: center; gap: 24px; min-height: var(--head); }
.wordmark { font-size: 1.35rem; line-height: 1; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.nav-phone { display: none; }
.header-phone { font-weight: 600; text-decoration: none; white-space: nowrap; }
.menu-btn {
  display: none; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--fg); border-radius: var(--radius); background: transparent; color: var(--fg);
  font: 600 .95rem/1 var(--text); cursor: pointer;
}
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .header-phone { margin-left: auto; }
  .header-row .header-cta { display: none; }
  .nav {
    display: none; position: absolute; top: 100%; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1);
    flex-direction: column; gap: 0; margin: 0; padding: 4px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-phone { display: block; font-weight: 600; }
  .nav-open .nav { display: flex; }
}
@media (max-width: 520px) {
  .header-phone { display: none; }
  .menu-btn { margin-left: auto; }
  .wordmark { font-size: 1.1rem; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); border-radius: var(--radius);
  font: 600 1rem/1.1 var(--text); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-outline:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; color: var(--fg); }
.link-arrow::after { content: ""; width: 18px; height: 2px; background: var(--accent); transition: width .2s; }
.link-arrow:hover::after, a:hover > .link-arrow::after { width: 30px; }

/* Status pill (open now / closed now) */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .85rem; font-weight: 600; white-space: nowrap;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.is-open::before { background: var(--ok); }

/* Home hero */
.hero { padding: clamp(48px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lede { max-width: 44ch; color: var(--muted); font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.5; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 24px; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Illustrations: flat fills and strokes from the style's --ill-* tokens */
.ill { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ill-bg); }
.ill svg { width: 100%; }
.ill-icon { display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--ill-line); }
.ill-icon svg { width: 38%; }

/* Interior page hero */
.page-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(36px, 5vw, 64px); background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 22ch; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; list-style: none; color: var(--muted); font-size: .9rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }

/* Sections */
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section.section-alt, .section-alt + .section { padding-top: var(--section); }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.section-alt + .section.section-alt { padding-top: 0; border-top: 0; }
.section.section-alt:has(+ .section-alt) { border-bottom: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.prose { max-width: 66ch; }
.prose h2 { margin-top: 1.4em; }
.prose-doc h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li + li { margin-top: .4em; }

/* Facts row */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; border-bottom: 1px solid var(--line); }
.fact { padding: 28px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-ico { display: block; width: 36px; height: 36px; margin-bottom: 14px; color: var(--fg); }
.fact h3 { margin-bottom: 6px; font-size: 1.1rem; }
.fact p { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; padding-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* Grids and cards (card format from the Tint Works services grid) */
.grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3 { grid-template-columns: 1fr; } }
.card { position: relative; padding: clamp(22px, 2.4vw, 32px); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
a.card { color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.svc { display: flex; flex-direction: column; }
.svc .ico { display: block; width: 52px; height: 52px; margin-bottom: 22px; color: var(--fg); }
.svc h3 { margin-bottom: 10px; }
.svc p { margin: 0 0 22px; color: var(--muted); }
.svc .link-arrow { margin-top: auto; }

/* Text and illustration side by side */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Lists */
.checklist { display: grid; gap: 12px; list-style: none; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg);
}
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 680px) { .cols-2 { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; list-style: none; counter-reset: step; }
.steps li { padding-top: 22px; border-top: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 12px;
  font-family: var(--display); font-weight: var(--display-weight); font-style: var(--display-style); font-stretch: var(--display-stretch);
  font-size: 1.9rem; line-height: 1; color: var(--accent-ink); font-variant-numeric: lining-nums tabular-nums;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; }
.areas li { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: .95rem; }
.areas a { font-weight: 600; }

/* Reviews */
.quote { display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 18px; font-size: 1.05rem; }
.quote figcaption { margin-top: auto; color: var(--muted); font-size: .95rem; }
.quote figcaption strong { display: block; color: var(--fg); font-weight: 600; }

/* Gallery tiles */
.tile { overflow: hidden; background: var(--ill-bg); border: 1px solid var(--line); border-radius: var(--radius); }
.tile svg { width: 100%; }
.tile figcaption { padding: 12px 16px; background: var(--bg); border-top: 1px solid var(--line); font-size: .95rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.08rem; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; margin-top: -1px;
  background: var(--fg); transition: transform .2s;
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0deg); }
.faq .answer { max-width: 70ch; padding: 0 0 22px; color: var(--muted); }
.faq-group + .faq-group { margin-top: clamp(40px, 5vw, 64px); }
.faq-group h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

/* CTA band */
.band { background: var(--band-bg); color: var(--band-fg); }
.cta-band { padding: clamp(48px, 7vw, 88px) 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0; color: var(--band-muted); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-phone { font-family: var(--display); font-weight: var(--display-weight); font-style: var(--display-style); font-stretch: var(--display-stretch); font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1; text-decoration: none; white-space: nowrap; }
.band .btn { background: var(--band-fg); color: var(--band-bg); border-color: var(--band-fg); }
.band .btn:hover { background: transparent; color: var(--band-fg); }
.band :focus-visible { outline-color: var(--band-fg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.req { margin-left: 6px; color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--field-line); border-radius: var(--radius);
  font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); font-size: .95rem; }
.details { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 18px 0 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.hours-list { list-style: none; }

/* Footer */
.site-footer { padding: 56px 0 32px; background: var(--surface); border-top: 1px solid var(--line); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { margin-bottom: 12px; font: 600 1rem/1.3 var(--text); letter-spacing: 0; }
.footer-list { display: grid; gap: 8px; list-style: none; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-about .wordmark { display: inline-block; margin-bottom: 12px; }
.footer-about p { color: var(--muted); max-width: 32ch; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  a.card:hover { transform: none; }
}
@media print {
  .site-header .nav, .menu-btn { display: none; }
  body { padding-bottom: 0; }
}

/* Showcase bar. Showcase chrome, not part of any template: Lumen Alto's night colors
   in every template and style, removed when a template becomes a client site.
   build.py appends this to base.css (Standard) and inlines it in single-page templates. */
.sc-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 clamp(16px, 3vw, 40px);
  background: #000000; color: #f2f0eb; border-top: 1px solid rgba(242, 240, 235, .16);
  font: 500 .9rem/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none;
  overflow-x: auto; white-space: nowrap;
}
.sc-bar a { color: #f2f0eb; text-decoration: none; }
.sc-bar a:hover { text-decoration: underline; }
.sc-bar :focus-visible { outline: 2px solid #f2f0eb; outline-offset: 2px; }
.sc-home { font-weight: 700; padding-right: 16px; border-right: 1px solid rgba(242, 240, 235, .24); }
.sc-label { color: rgba(242, 240, 235, .62); }
.sc-styles { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sc-styles li { flex-shrink: 0; text-wrap: nowrap; }
.sc-styles a { display: inline-block; padding: 7px 12px; border: 1px solid transparent; border-radius: 2px; }
.sc-styles a[aria-current] { border-color: rgba(242, 240, 235, .5); }
@media print { .sc-bar { display: none; } }

/* Template look switcher (2026-11-02): a bar at the top of every template page, above the site's
   header, and a corner "Next look" button once the bar scrolls away. Industry sites keep .sc-bar. */
.sc-looks {
  position: relative; z-index: 60;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding: 12px clamp(16px, 3vw, 40px);
  background: #000000; color: #f2f0eb; border-bottom: 1px solid rgba(242, 240, 235, .16);
  font: 500 15px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none; text-align: left;
}
.sc-looks a { color: #f2f0eb; text-decoration: none; }
.sc-looks :focus-visible, .sc-pill:focus-visible { outline: 2px solid #f2f0eb; outline-offset: 3px; }
.sc-looks p { margin: 0; }
.sc-looks-home { font-weight: 700; padding-right: 14px; border-right: 1px solid rgba(242, 240, 235, .24); }
.sc-looks-home:hover { text-decoration: underline; }
.sc-looks-prompt { font-weight: 700; }
.sc-looks-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sc-looks-list a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px 0 7px;
  border: 1px solid rgba(242, 240, 235, .38); border-radius: 999px; white-space: nowrap; font-size: 14px;
}
.sc-looks-list a:hover { border-color: #f2f0eb; background: rgba(242, 240, 235, .1); }
.sc-looks-list a[aria-current] { border: 2px solid #f2f0eb; padding: 0 12px 0 6px; background: rgba(242, 240, 235, .14); font-weight: 700; }
.sc-sw {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  box-shadow: 0 0 0 1px rgba(242, 240, 235, .55);
}
.sc-looks-count { margin-left: auto !important; color: rgba(242, 240, 235, .78); white-space: nowrap; }
.sc-looks-cur { display: none; }
.sc-looks-next, .sc-pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px;
  background: #f2f0eb; color: #000000 !important; font-weight: 700; white-space: nowrap;
}
.sc-looks-next:hover, .sc-pill:hover { background: #ffffff; }
.sc-vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sc-pill {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; gap: 10px; min-height: 46px;
  font: 700 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-transform: none; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 8px 24px rgba(0, 0, 0, .35);
}
.sc-pill[hidden] { display: none; }
.sc-pill-count { font-weight: 500; color: #3a3a3a; }
/* The prompt needs the most room, then the names. Below 1440px the prompt goes; below 1200px the
   names give way to swatches (names stay as tooltips) and the count names the current look. */
@media (max-width: 1439px) { .sc-looks-prompt { display: none; } }
@media (max-width: 1199px) {
  .sc-looks-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sc-looks-list a, .sc-looks-list a[aria-current] { width: 40px; padding: 0; justify-content: center; }
  .sc-looks-list a[aria-current] .sc-sw { box-shadow: 0 0 0 2px #000000, 0 0 0 4px #f2f0eb; }
  .sc-looks-list a { border-color: transparent; }
  .sc-looks-list a[aria-current] { border-color: transparent; background: none; }
  .sc-looks-cur { display: inline; color: #f2f0eb; font-weight: 700; }
}
@media (max-width: 760px) {
  .sc-looks { padding-block: 10px; }
  .sc-looks-home { order: 1; }
  .sc-looks-next { order: 2; margin-left: auto; }
  .sc-looks-count { order: 3; flex-basis: 100%; margin-left: 0 !important; }
  .sc-looks-list { order: 4; }
  .sc-pill-count { display: none; }
}
@media print { .sc-looks, .sc-pill { display: none !important; } }
