/* CompUS — palette sampled from photos/ (keyboard off-white, "Help!" key red,
   PCB cobalt, chassis charcoal), adjusted for WCAG AA. */
:root {
  --bg: #f5f7fa;
  --fg: #1a2332;
  --accent: #c1121f;      /* red "Help!" key — CTA only */
  --accent-2: #1d5fa8;    /* PCB cobalt — links, focus */
  --card: #ffffff;
  --dark: #131a22;        /* chassis black — hero scrim, footer */
  --dark-fg: #f2f5f8;
  --border: #d8dee6;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  scroll-padding-top: 5rem; /* keep focused elements clear of the sticky nav */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.9375rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--accent-2); }
a:hover { color: var(--fg); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(29, 95, 168, 0.35);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 100;
  background: var(--card);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 0; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--fg);
  text-decoration: none;
}
.brand-accent { color: var(--accent); }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 0.625rem 0.75rem;
  color: var(--fg);
  text-decoration: none;
  border-radius: 8px;
}
.nav-list a:hover { background: var(--bg); }
.nav-list a[aria-current="page"] {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: background-color 200ms ease-out, color 200ms ease-out;
}
.btn-primary,
.btn-call,
.nav-list a.btn-call {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover,
.btn-call:hover,
.nav-list a.btn-call:hover {
  background: #9b0e19;
  color: #ffffff;
}
.btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); color: #ffffff; }

/* Hero */
.hero {
  background-size: cover;
  background-position: center;
}
.hero-scrim {
  background: linear-gradient(to right, rgba(19, 26, 34, 0.9), rgba(19, 26, 34, 0.65));
}
.hero-inner {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  max-width: 1100px;
  color: var(--dark-fg);
}
.hero-inner h1 { color: #ffffff; max-width: 22ch; }
.hero-sub { font-size: 1.25rem; max-width: 45ch; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Sections */
.section { padding: 3rem 0; }
.section-alt { background: #e8ecf1; }
.section-lead { max-width: 65ch; }
.page-header {
  padding: 3rem 0 0.5rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 1.5rem 0;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(26, 35, 50, 0.08);
}
.service-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Reviews */
.review-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}
.review-card blockquote { margin: 0; max-width: 65ch; }
.review-card h2 { font-size: 1.25rem; }
.review-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #47566b;
  margin-bottom: 0.75rem;
}
.stars-row { display: inline-flex; gap: 2px; }
.star { fill: #b3860a; }
.hero .star { fill: #f0b429; }
.stat-band {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
}

/* Gallery */
.gallery {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
}

/* CTA band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.cta-band h2 { margin-top: 0; }
.cta-band > div { max-width: 60ch; }
.cta-band p:last-child { margin-bottom: 0; }

/* Prose pages */
.prose { max-width: 70ch; }

/* Placeholder */
.placeholder {
  border: 2px dashed var(--accent-2);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  background: rgba(29, 95, 168, 0.06);
  max-width: 70ch;
}
.placeholder p { margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.contact-phone { margin: 1rem 0 1.5rem; }
address { font-style: normal; margin-bottom: 1rem; }
.hours-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 24rem;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.hours-table th { font-weight: 600; }

.contact-form .field { margin-bottom: 1.25rem; }
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--card);
  border: 1px solid #8494a8;
  border-radius: 8px;
  padding: 0.75rem;
  min-height: 44px;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}
.field-note { color: #47566b; font-size: 0.9375rem; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--dark-fg);
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
}
.site-footer a { color: #9cc4ee; }
.site-footer a:hover { color: #ffffff; }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
}
.footer-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b9c4d1;
}
.footer-hours,
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-hours li {
  display: flex;
  justify-content: space-between;
  max-width: 18rem;
  padding: 0.125rem 0;
}
.footer-nav li { padding: 0.25rem 0; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a3542;
  font-size: 0.9375rem;
  color: #b9c4d1;
}

@media (max-width: 640px) {
  .section { padding: 2rem 0; }
  .hero-inner { padding-top: 3rem; padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Live Google reviews widget support (added for Places ToS compliance,
   2026-08-07) — minimal, additive rules only. */
.reviews-loading { list-style: none; color: var(--muted, #666); }
.reviews-attribution { font-size: 0.85rem; color: var(--muted, #666); margin-top: 0.5rem; }
.reviews-attribution a { color: inherit; }
.hours-loading { list-style: none; color: var(--muted, #666); }
.hours-attribution { font-size: 0.85rem; color: var(--muted, #666); margin-top: 0.5rem; }
.hours-attribution a { color: inherit; }
[data-reviews-live] { list-style: none; padding: 0; }
[data-reviews-live] .stars { letter-spacing: 0.05em; margin-bottom: 0.4rem; }
