/* ===========================================================
   Dominic Repair: design tokens and base styles
   Concept: engineered stainless. Sharp corners, hard offset shadows,
   a dark graphite header over a brushed-steel page, a light footer.
   Palette from the logo: graphite #171C21, cobalt #2150F5, stainless #F5F7F8.
   Signature: the service ticket drawn as a repair tag (eyelet, string,
   barcode) and the brand name set as an engraved nameplate.
   =========================================================== */

:root {
  /* Surfaces */
  --color-bg: #EDF0F2;
  --color-surface: #FFFFFF;
  --steel-50: #F5F7F8;
  --steel-100: #E8ECEF;
  --steel-200: #D8DEE2;
  --steel-300: #CBD3D8;
  --color-line: #D3DADF;
  --color-line-strong: #B4BEC6;

  /* Ink */
  --color-ink: #171C21;
  --color-ink-soft: #424E58;
  --color-ink-faint: #66737D;

  /* Brand: cobalt on stainless, graphite as the dark surface */
  --color-brand: #1638B8;          /* links and text accents on light (7.9:1 on white) */
  --color-brand-dark: #171C21;
  --color-brand-tint: #E3EAFF;
  --color-accent: #2150F5;
  --color-accent-dark: #1638B8;
  --color-accent-bright: #8CA8FF;  /* accent on dark (graphite text on it: 7.9:1) */
  --color-accent-tint: #E3EAFF;
  --color-urgent: #C0322A;
  --color-urgent-tint: #FBE6E3;

  --shadow-sm: 0 1px 2px rgba(23, 28, 33, 0.08);
  --shadow-md: 0 6px 18px rgba(23, 28, 33, 0.10), 0 1px 3px rgba(23, 28, 33, 0.08);
  --shadow-lg: 0 18px 40px rgba(23, 28, 33, 0.16), 0 4px 10px rgba(23, 28, 33, 0.08);
  --shadow-hard: 4px 4px 0 var(--color-ink);

  /* Type */
  --font-display: "Archivo", "Arial Black", "Segoe UI", sans-serif;
  --font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Layout: sharp, engineered corners */
  --max-width: 1180px;
  --radius: 4px;
  --radius-sm: 3px;
  --gutter: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
@media (min-width: 960px) { body { padding-bottom: 0; } }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 108%;
  color: var(--color-brand-dark);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.8vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-top: 0; }
h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 100%; letter-spacing: -0.01em; }

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

a { color: var(--color-brand); text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: rgba(33, 80, 245, 0.4); }
a:hover { text-decoration-color: currentColor; }

ul, ol { padding-left: 1.3em; color: var(--color-ink-soft); }
li { margin-bottom: 0.5em; }
li:last-child { margin-bottom: 0; }

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--color-brand-dark);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; border-radius: 3px; }
.site-header :focus-visible, .cta-band :focus-visible, .mobile-cta-bar :focus-visible { outline-color: var(--color-accent-bright); }

/* ---------- Icons ---------- */
.icon {
  width: 1.4em;
  height: 1.4em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Header: solid graphite ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-brand-dark);
  border-bottom: 3px solid var(--color-accent);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}
.site-logo { display: flex; align-items: center; min-height: 44px; text-decoration: none; margin-right: auto; }
.site-logo__img { height: 34px; width: auto; display: block; }

.site-nav { display: none; gap: 0.2rem; align-items: center; }
.site-nav a {
  color: #C9D1D7;
  text-decoration: none;
  font-family: var(--font-display);
  font-stretch: 105%;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active { color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
}

.site-nav.is-open {
  display: flex;
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  background: var(--color-brand-dark);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.3rem var(--gutter) 1rem;
  border-bottom: 3px solid var(--color-accent);
}
.site-nav.is-open a {
  font-size: 0.9rem;
  padding: 1rem 0.2rem;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.site-nav.is-open a:last-child { border-bottom: none; }

@media (min-width: 960px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .btn.header-cta { display: inline-flex; margin-left: 0.6rem; }
}

/* ---------- Buttons: square, hard offset shadow on hover ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-ink);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard); }
.btn:active { transform: translate(0, 0); box-shadow: none; }

.btn--primary { background: var(--color-accent); color: #fff; border-color: var(--color-ink); }
.btn--secondary { background: var(--color-brand-dark); color: #fff; border-color: var(--color-ink); }
.btn--outline { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.88rem; }

/* On dark or cobalt surfaces */
.site-header .btn--primary, .mobile-cta-bar .btn--primary { background: var(--color-accent-bright); color: var(--color-brand-dark); border-color: var(--color-accent-bright); }
.site-header .btn:hover, .mobile-cta-bar .btn:hover, .cta-band .btn:hover { box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.35); }
.cta-band .btn--primary { background: #fff; color: var(--color-accent-dark); border-color: #fff; }
.cta-band .btn--secondary { background: var(--color-brand-dark); border-color: var(--color-brand-dark); }

/* ---------- Footer: light stainless ---------- */
.site-footer {
  background: var(--steel-200);
  color: var(--color-ink);
  padding: 3.5rem 0 1.8rem;
  margin-top: 4rem;
  border-top: 2px solid var(--color-ink);
}
.site-footer a { color: var(--color-ink); text-decoration-color: rgba(23, 28, 33, 0.35); }
.site-footer a:hover { color: var(--color-brand); text-decoration-color: currentColor; }
.site-footer .footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-logo { display: inline-block; padding: 0.55rem 0; margin-bottom: 0.4rem; text-decoration: none; }
.footer-logo img { height: 34px; width: auto; }
.site-footer h3 {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  margin-bottom: 0.9rem;
  border-bottom: 2px solid var(--color-ink);
}
.site-footer p { color: var(--color-ink-soft); font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; color: var(--color-ink-soft); font-size: 0.95rem; overflow-wrap: anywhere; }
.footer-bottom {
  border-top: 1px solid var(--color-line-strong);
  margin-top: 2.4rem;
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-ink-faint);
}

@media (max-width: 767px) {
  .site-footer li { margin-bottom: 0; }
  .site-footer li a { display: inline-block; padding: 0.65rem 0; }
}
@media (min-width: 640px) {
  .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 2rem; }
}
@media (min-width: 1100px) {
  .site-footer .footer-grid { grid-template-columns: 1.5fr 0.9fr 1.2fr 1.1fr 0.8fr; gap: 2rem; }
}

/* ---------- Mobile call dock: floating, not a full-width bar ---------- */
.mobile-cta-bar {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(23, 28, 33, 0.97);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.mobile-cta-bar .btn { flex: 1; border-radius: 8px; padding: 0.8rem 0.6rem; }
@media (min-width: 960px) { .mobile-cta-bar { display: none; } }
