/* ============================================================
   base.css — shared reset + header/nav + CTA + footer + a11y
   Loaded on every page BEFORE the page-specific assets/css/page-*.css.
   Page CSS supplies hero/content/layout styling and may set
   --cta-primary / --cta-secondary to theme the CTA buttons.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.7; background: #fff; color: #0f172a; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #38bdf8; outline-offset: 2px; }

.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-link {
  position: absolute; left: 8px; top: -48px;
  background: #0f172a; color: #f8fafc; padding: 10px 16px;
  border-radius: 6px; z-index: 1000; transition: top .15s;
}
.skip-link:focus { top: 8px; }

/* ---- header / nav (identical on every page) ---- */
.site-header {
  background: #0f172a;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.site-logo { font-weight: 800; color: #f8fafc; font-size: 1.05rem; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: #cbd5e1; font-weight: 600; font-size: .92rem; transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #38bdf8; }
.header-phone { background: var(--cta-primary, #1d4ed8); color: #fff; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; white-space: nowrap; text-decoration: none; }
.header-phone:hover { opacity: .9; }

/* ---- CTA block (structure identical, color themed per page) ---- */
.cta { padding: 56px 20px; text-align: center; }
.cta-lead { max-width: 640px; margin: 0 auto 24px; font-size: 1.05rem; color: inherit; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px;
  font-weight: 700; text-decoration: none; min-height: 48px; border-radius: 8px;
}
.btn-call { background: var(--cta-primary, #1d4ed8); color: #fff; }
.btn-sms  { background: var(--cta-secondary, #f8fafc); color: var(--cta-primary, #1d4ed8); border: 2px solid var(--cta-primary, #1d4ed8); }

/* ---- photo row (per §7.2, identical structure site-wide) ---- */
.photo-row { display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap; margin: 28px 0; }
.photo-row figure { max-width: 320px; width: 100%; }
.photo-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.photo-row figcaption { margin-top: 8px; font-size: .85rem; color: #64748b; text-align: center; }

/* ---- generic element resets used across page-specific components ---- */
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
dl dt { font-weight: 700; }
dl dd { margin-bottom: 12px; color: #475569; }

/* ---- footer (§8.2 — completely identical on every page) ---- */
.site-footer { background: #1E293B; color: #94A3B8; padding: 40px 20px; font-size: .875rem; line-height: 1.6; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.footer-brand { font-weight: 700; font-size: 1.05rem; color: #F8FAFC; margin: 0; }
.footer-tel { color: #38BDF8; font-weight: 700; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.footer-nav a { color: #CBD5E1; }
.footer-nav a:hover { color: #38BDF8; }
.footer-copy { margin-top: 10px; font-size: .75rem; color: #64748B; }

@media (max-width: 480px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
