/* SD Custom Garage — site.css (brand: navy #020169, red #c24c4c, sky #4bb6f5) */
:root {
  --navy: #020169;
  --navy-2: #0d0c8a;
  --navy-dark: #01004a;
  --red: #c24c4c;
  --red-dark: #a33a3a;
  --sky: #4bb6f5;
  --ink: #23232b;
  --text: #45454f;
  --muted: #5f5f6b;
  --line: #e3e3ea;
  --bg-alt: #f4f4f8;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(2, 1, 105, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; 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: 1rem; top: -100px; z-index: 100;
  background: #fff; color: var(--navy); padding: .6rem 1rem; border-radius: 6px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand img { width: 140px; height: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5);
  border-radius: 6px; padding: .45rem .8rem; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 18px; height: 2px; background: #fff; position: relative; content: "";
}
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-top: 1px solid rgba(255,255,255,.15); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav a {
  display: block; color: #fff; text-decoration: none; padding: .7rem .25rem;
  font-weight: 600; letter-spacing: .02em; border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 4px 0 0 var(--red); padding-left: .9rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; border: 0; background: none; }
  .site-nav ul { display: flex; gap: .25rem; padding: 0; }
  .site-nav a { border: 0; padding: .55rem .85rem; border-radius: 6px; text-transform: uppercase; font-size: .9rem; }
  .site-nav a:hover { background: rgba(255,255,255,.1); box-shadow: none; padding-left: .85rem; }
  .site-nav a[aria-current="page"] { background: var(--red); box-shadow: none; padding-left: .85rem; }
  .brand img { width: 170px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: inherit; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; text-align: center; border-radius: 6px; padding: .8rem 1.4rem; border: 2px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-primary[disabled] { background: #6b6b78; cursor: not-allowed; }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { display: block; width: 100%; }
.text-link { font-weight: 600; }

/* ---------- Hero ---------- */
.hero, .page-hero {
  background: #111 url(/assets/img/garage-bg.jpg) center / cover no-repeat;
  color: #fff; text-align: center; position: relative;
}
.hero { padding: 2.5rem 0 3rem; }
.hero h1 { margin: 0 auto 1.5rem; max-width: 520px; }
.hero h1 img { width: 100%; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 0; }
.page-hero { padding: 3rem 0; }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(2rem, 6vw, 3.2rem); text-shadow: 1px 1px 5px #000; letter-spacing: .02em; }
@media (min-width: 900px) { .hero { padding: 4rem 0 4.5rem; } .page-hero { padding: 4.5rem 0; } }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--navy); }
.section-title::after { content: ""; display: block; width: 60px; height: 4px; background: var(--red); margin: .6rem auto 0; border-radius: 2px; }
.intro { text-align: center; }
.lead { font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--ink); line-height: 1.45; }

.service-tags { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.service-tags li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 6px; padding: .5rem .9rem; color: var(--ink); font-weight: 600; }

.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 3rem 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cta-band a:not(.btn) { color: #fff; font-weight: 700; }
.cta-band p:last-child { margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #ddd; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.04); }
.gallery-inline { margin: 1.5rem 0; }
@media (min-width: 700px) { .gallery-3 { grid-template-columns: repeat(3, 1fr); gap: 1rem; } .gallery-2 { gap: 1rem; } }
@media (min-width: 1100px) { .gallery-3:not(.gallery-inline) { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Content layout ---------- */
.content-grid { display: grid; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 960px) { .content-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.prose { max-width: 75ch; }
.prose p { margin-bottom: 1.15em; }
.feature-img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 2rem; width: 100%; }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.service-list li { border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 8px; padding: 1rem 1.25rem; }
.service-list h2 { font-size: 1.15rem; color: var(--navy); margin-bottom: .35rem; }
.service-list p { margin: 0; }

.sidebar .card { background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem; border-top: 5px solid var(--navy); }
.sidebar h2 { font-size: 1.35rem; color: var(--navy); }
@media (min-width: 960px) { .sidebar { position: sticky; top: 96px; } }

/* ---------- Contact ---------- */
.contact-cards { list-style: none; padding: 2.5rem 0 1rem; margin: 0; display: grid; gap: 1rem; }
.contact-cards li { text-align: center; background: var(--bg-alt); border-radius: var(--radius); padding: 1.5rem 1rem; }
.contact-cards svg { color: var(--red); margin: 0 auto .5rem; }
.contact-cards h2 { font-size: 1.3rem; margin-bottom: .3rem; color: var(--navy); }
.contact-cards p { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Forms ---------- */
.form-card { padding: 2rem 0 3rem; margin: 0 auto; }
.form-card > h2 { color: var(--navy); border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.site-form fieldset { border: 0; padding: 0; margin: 0 0 .5rem; }
.site-form legend { font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .3rem; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b9b9c6; border-radius: 6px; padding: .75rem .85rem;
}
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(75,182,245,.6); outline-offset: 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.req { color: var(--red-dark); }
.req-note { font-size: .9rem; color: var(--muted); }
.form-note { margin-top: 1rem; font-size: .95rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #d9d9ee; padding: 3rem 0 0; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sky); }
.footer-grid { display: grid; gap: 2rem; }
.footer-logo img { width: 260px; }
.footer-title { color: #fff; font-size: 1.15rem; margin-bottom: .6rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.site-footer address strong { color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.1fr 1fr .7fr; align-items: start; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Forms: Turnstile, honeypot, status */
.hp-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;}
.cf-turnstile{margin:1rem 0;}
.form-status{margin:.75rem 0 0;font-weight:600;}
.form-status.is-pending{color:inherit;}
.form-status.is-success{color:#0b6b2a;}
.form-status.is-error{color:#a11313;}
