/* =========================================================
   Appliance Repair Los Altos — Global Design System
   Direction: "Diagnostic instrument for luxury kitchens."
   Graphite + porcelain + brass, engraved-nameplate display type,
   gauge-readout mono for data, a recurring dial/gauge signature mark.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  /* Color tokens */
  --graphite-950: #14181c;
  --graphite-900: #1a1f24;
  --graphite-800: #232a31;
  --graphite-700: #323b44;
  --porcelain: #f5f3ee;
  --porcelain-dim: #eae7df;
  --steel: #c7cdd1;
  --steel-dim: #8a939a;
  --brass: #b8863e;
  --brass-light: #d4a968;
  --brass-dim: #8f6a30;
  --ink: #1b1f23;
  --ink-soft: #4a5158;
  --ink-faint: #6b737a;
  --border-soft: rgba(27, 31, 35, 0.1);
  --border-on-dark: rgba(245, 243, 238, 0.14);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout */
  --max-width: 1160px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* Shadows: layered, color-tinted, never flat */
  --shadow-card: 0 1px 2px rgba(20, 24, 28, 0.06), 0 8px 24px -12px rgba(20, 24, 28, 0.18);
  --shadow-card-hover: 0 2px 4px rgba(20, 24, 28, 0.08), 0 16px 32px -14px rgba(184, 134, 62, 0.28);
  --shadow-dark-card: 0 1px 0 rgba(245, 243, 238, 0.06) inset, 0 12px 30px -16px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: 1.7rem; line-height: 1.22; }
h3 { font-size: 1.2rem; line-height: 1.3; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: var(--brass-dim); text-decoration: none; }
a:hover { color: var(--brass); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2.5px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -------------------- Skip link -------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--brass);
  color: var(--graphite-950);
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* -------------------- Header -------------------- */
.site-header {
  background: var(--graphite-950);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border-on-dark);
}
.site-header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
}
.site-logo { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.site-logo__img { height: 40px; width: 40px; display: block; flex-shrink: 0; }
.site-logo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.82rem, 4.2vw, 1.05rem);
  color: var(--porcelain);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.site-nav__list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 1.6rem;
  align-items: center;
}
.site-nav__list a {
  color: var(--steel);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav__list a:hover,
.site-nav__list a.active { color: var(--brass-light); }
.site-nav__list a.active { position: relative; }
.site-nav__list a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--brass);
}

.site-nav__cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--graphite-950);
  background: var(--brass);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.site-nav__cta:hover { background: var(--brass-light); color: var(--graphite-950); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg { stroke: var(--porcelain); }

@media (min-width: 900px) {
  .site-nav__list { display: flex; }
  .site-nav__cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav panel */
.site-nav {
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--graphite-950);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  overflow-y: auto;
}
.site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (min-width: 900px) {
  .site-nav { position: static; inset: auto; opacity: 1; pointer-events: auto; transform: none; background: transparent; overflow: visible; display: flex; align-items: center; gap: 1.6rem; }
}
.site-nav__inner { padding: 1.5rem; }
@media (min-width: 900px) { .site-nav__inner { padding: 0; display: contents; } }
.site-nav__list { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
@media (min-width: 900px) { .site-nav__list { flex-direction: row; align-items: center; } }
.site-nav__list a { font-size: 1.1rem; }
@media (min-width: 900px) { .site-nav__list a { font-size: 0.92rem; } }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--graphite-950);
  color: var(--steel);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-on-dark);
}
.site-footer a { color: var(--steel); }
.site-footer a:hover { color: var(--brass-light); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid--home { grid-template-columns: 1.3fr 1fr; }
}
.footer-brand__word { font-family: var(--font-display); color: var(--porcelain); font-size: 1.15rem; font-weight: 600; }
.footer-brand p { color: var(--steel-dim); font-size: 0.92rem; max-width: 32ch; }
.footer-col h4 {
  color: var(--porcelain);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--steel-dim);
}
.footer-bottom a { color: var(--steel-dim); }

/* -------------------- Generic content typography -------------------- */
main { display: block; }
.prose { padding: 2.5rem 0; }
.prose h2 { margin-top: 0; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { text-decoration: underline; text-decoration-color: var(--brass-dim); text-underline-offset: 2px; }

/* Gauge divider — signature mark used between major sections */
.gauge-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
}
.gauge-divider::before,
.gauge-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-soft);
}
.gauge-divider svg { flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-brass { background: var(--brass); color: var(--graphite-950); box-shadow: var(--shadow-card); }
.btn-brass:hover { background: var(--brass-light); color: var(--graphite-950); box-shadow: var(--shadow-card-hover); }
.btn-ghost-dark { background: transparent; color: var(--porcelain); border-color: var(--border-on-dark); }
.btn-ghost-dark:hover { color: var(--brass-light); border-color: var(--brass); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-soft); }
.btn-outline:hover { color: var(--brass-dim); border-color: var(--brass); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
