/* YourCarGarage, house look: paper-and-ink editorial, one deep accent, no AI-slop gradients. */

:root {
  --paper: #faf7f1;
  --ink: #1c1b18;
  --muted: #6b675e;
  --accent: #175239;        /* deep racing green */
  --accent-ink: #ffffff;
  --gold: #e0a712;          /* warm amber accent (badges, highlights, stars) */
  --gold-soft: #fbeecb;     /* amber tint background */
  --gold-ink: #3a2c00;      /* text on amber */
  --line: #e5e0d5;
  --plate-yellow: #fcd535;
  --plate-blue: #003399;
  --radius: 14px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
button { cursor: pointer; font-family: inherit; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 20px 24px;
}
.wordmark {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark .dot { color: var(--gold); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); }
.nav-signin {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  background: #fff;
}

/* ---------- hero ---------- */
.hero {
  max-width: 760px; margin: 0 auto; padding: 64px 24px 40px; text-align: center;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.12;
}
.hero-sub {
  margin: 18px auto 34px; max-width: 460px;
  color: var(--muted); font-size: 1.08rem;
}

/* the plate: the one thing on the page */
.find { max-width: 620px; margin: 0 auto; }
.plate {
  display: flex; align-items: stretch; overflow: hidden;
  background: var(--plate-yellow);
  border: 2px solid #1c1b18; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(28, 27, 24, 0.12);
}
.plate-band {
  display: flex; align-items: flex-end; justify-content: center;
  background: var(--plate-blue); color: #fff;
  font-size: 0.8rem; font-weight: 700; padding: 8px 10px; min-width: 44px;
}
.plate input {
  flex: 1; width: 100%;
  background: transparent; border: 0; outline: none;
  font-family: "Arial Narrow", var(--sans); font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 3.6rem); letter-spacing: 0.13em;
  text-align: center; text-transform: uppercase; color: #1c1b18;
  padding: 20px 10px; min-width: 0;
}
.plate-band { min-width: 52px; font-size: 0.85rem; }
.plate input::placeholder { color: rgba(28, 27, 24, 0.35); }

.find-row { display: flex; gap: 10px; margin-top: 14px; }
.find-row input {
  flex: 1 1 auto; min-width: 130px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 15px 16px; font-size: 1.05rem;
  text-transform: uppercase; outline: none; color: var(--ink);
}
.find-row input:focus { border-color: var(--accent); }
.find-service {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 14px 14px; font-size: 1.05rem; color: var(--ink); outline: none; cursor: pointer;
  flex: 0 0 auto;
}
.find-service:focus { border-color: var(--accent); }
.btn-go {
  border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font-size: 1.05rem; font-weight: 600; padding: 14px 22px;
  transition: background 0.15s ease;
}
.btn-go:hover { background: #0f3d2a; }
.find-msg { min-height: 1.4em; margin-top: 10px; color: var(--accent); font-size: 0.95rem; }

.hero-trust { margin-top: 26px; color: var(--muted); font-size: 0.9rem; }

/* trust strip: loud, industry-appropriate reassurance */
.trust-strip {
  max-width: 820px; margin: 34px auto 0; padding: 0 24px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: 0.88rem; color: var(--ink); font-weight: 500;
}
.trust-item .tick { color: var(--accent); font-weight: 800; }
.trust-item .count { color: var(--gold-ink); background: var(--gold-soft); border-radius: 6px; padding: 1px 7px; font-weight: 700; }

/* ---------- steps ---------- */
.steps {
  max-width: 1000px; margin: 30px auto 60px; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.9rem;
  margin-bottom: 10px;
}
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 26px 24px; text-align: center; color: var(--muted); font-size: 0.9rem;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; text-align: left; max-width: 720px; margin: 0 auto 20px; }
.foot-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 8px; }
.foot-col a { display: block; color: var(--accent); text-decoration: none; font-size: 0.9rem; padding: 3px 0; }
.foot-col a:hover { text-decoration: underline; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-sub, .find, .hero-trust { animation: rise 0.5s ease both; }
  .hero-sub { animation-delay: 0.08s; }
  .find { animation-delay: 0.16s; }
  .hero-trust { animation-delay: 0.24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .find-row { flex-direction: column; }
  .btn-go { width: 100%; }
}

/* ---------- results page (rich, BMG-class) ---------- */
.muted { color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 1px; }
.btn-book {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 600; font-size: 0.98rem; cursor: pointer;
}
.btn-book:hover { background: #0f3d2a; }
.g-badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  background: var(--accent); color: #fff; border-radius: 4px; padding: 2px 6px; vertical-align: middle;
}
.g-badge-v { background: #5b7f6a; }
.g-badge-founding { background: var(--gold); color: var(--gold-ink); }
.g-badge-quality { background: #e2efe7; color: #175239; }
.g-badge[title] { cursor: help; }
.rc-legend { margin: 22px 0 8px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 0.88rem; color: var(--muted); }
.rc-legend strong { display: block; color: var(--ink); margin-bottom: 8px; }
.rc-legend ul { margin: 0; padding: 0; list-style: none; }
.rc-legend li { margin: 7px 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.rc-legend .g-badge { flex-shrink: 0; }

/* search + vehicle bar */
.search-bar { background: var(--accent); color: #fff; }
.search-bar-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.veh { display: flex; align-items: center; gap: 12px; }
.veh-plate {
  background: var(--plate-yellow); color: #111; border: 2px solid #111; border-radius: 6px;
  font-family: "Arial Narrow", sans-serif; font-weight: 700; letter-spacing: 0.08em;
  font-size: 1.15rem; padding: 5px 12px;
}
.veh-info { font-size: 0.98rem; opacity: 0.96; }
.veh-info .muted { color: rgba(255,255,255,0.7); }
.veh-mot { background: rgba(255,255,255,0.16); border-radius: 5px; padding: 2px 8px; margin-left: 6px; font-size: 0.85rem; }
.edit-form { display: flex; gap: 8px; }
.edit-form select, .edit-form input {
  border: 0; border-radius: 8px; padding: 9px 12px; font-size: 0.95rem; background: #fff; color: var(--ink);
  text-transform: uppercase;
}
.edit-form .btn-go { border: 0; border-radius: 8px; background: var(--gold); color: var(--gold-ink); font-weight: 700; padding: 9px 16px; cursor: pointer; }

/* layout: filters + results */
.results-layout { max-width: 1040px; margin: 0 auto; padding: 22px 22px 60px; display: grid; grid-template-columns: 220px 1fr; gap: 22px; }
.filters { align-self: start; position: sticky; top: 16px; }
.filter-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.filter-block h3 { font-family: var(--serif); font-weight: 600; font-size: 0.98rem; margin-bottom: 8px; }
.radio { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; padding: 4px 0; cursor: pointer; }

.results-main { min-width: 0; }
.results-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 3.2vw, 1.9rem); letter-spacing: -0.01em; line-height: 1.15; }
.results-sub { color: var(--muted); margin-top: 5px; font-size: 0.98rem; }
.results-list { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.loading { color: var(--muted); padding: 20px 0; }
.results-empty { color: var(--muted); padding: 24px 0; }

/* the rich card */
.rc { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 1px 3px rgba(28,27,24,0.04); }
.rc-left { flex: 0 0 auto; }
.rc-logo { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: var(--paper); }
.rc-logo-fallback { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: #fff; background: var(--accent); }
.rc-mid { flex: 1; min-width: 0; }
.rc-title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-title a { color: var(--ink); text-decoration: none; }
.rc-title a:hover { color: var(--accent); }
.rc-addr { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.rc-facts { display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.rc-fact { font-size: 0.9rem; }
.rc-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; text-align: right; min-width: 130px; }
.rc-price { line-height: 1.1; }
.rc-price-label { display: block; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; }
.rc-price-val { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--accent); }
.rc-nopay { font-size: 0.76rem; color: var(--muted); }

@media (max-width: 860px) {
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .filter-block { margin-bottom: 0; }
}
@media (max-width: 620px) {
  .filters { grid-template-columns: 1fr; }
  .rc { flex-wrap: wrap; }
  .rc-right { width: 100%; align-items: stretch; text-align: left; flex-direction: row; justify-content: space-between; align-items: center; }
  .rc-right .btn-book { flex: 0 0 auto; }
  .search-bar-inner { gap: 10px; }
  .edit-form { width: 100%; }
  .edit-form input { flex: 1; min-width: 0; }
}

/* ---------- garage landing page ---------- */
.g-page { max-width: 760px; margin: 0 auto; padding: 20px 20px 60px; }
.claim-bar {
  background: #eef2ee; border: 1px solid #d3e0d6; border-radius: var(--radius);
  padding: 14px 16px; font-size: 0.95rem; margin-bottom: 20px;
}
.btn-claim {
  display: inline-block; margin-left: 8px; background: var(--accent); color: #fff;
  text-decoration: none; border-radius: 8px; padding: 7px 14px; font-weight: 600; font-size: 0.9rem;
}
.g-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.01em; }
.g-hero-flex { display: flex; gap: 18px; align-items: flex-start; }
.gh-logo-wrap { flex: 0 0 auto; }
.gh-logo { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); background: #fff; display: block; }
.gh-logo-fallback { display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.8rem; color: #fff; background: var(--accent); }
.gh-main { flex: 1; min-width: 0; }
.g-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.g-photo { width: 100%; height: 130px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.reviews-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reviews-score { font-family: var(--serif); font-weight: 700; font-size: 2rem; color: var(--accent); }
.faq { padding: 10px 0; border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.faq p { color: var(--muted); margin-top: 4px; }
.g-hero-meta { color: var(--muted); margin-top: 6px; }
.g-hero-rating { margin-top: 6px; }
.g-hero-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn-ghost {
  border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none;
  border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 0.95rem;
}
.g-sec { margin-top: 30px; }
.g-sec h2 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; margin-bottom: 12px; }
.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.src-note { color: var(--muted); font-size: 0.85rem; margin-top: 8px; font-style: italic; }
.veh-banner {
  background: var(--accent); color: #fff; border-radius: 10px; padding: 12px 16px;
  margin-bottom: 12px; font-size: 1rem;
}
.veh-banner .veh-mot { background: rgba(255,255,255,0.16); border-radius: 5px; padding: 2px 8px; }
.cf-turnstile { margin-bottom: 12px; }
.g-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.g-map iframe { width: 100%; height: 300px; border: 0; display: block; }
.g-map-addr { color: var(--muted); margin: 10px 0; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.hours-list li:last-child { border-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #eef2ee; border-radius: 999px; padding: 5px 12px; font-size: 0.85rem; }
.book-note { background: var(--gold-soft); border: 1px solid #ecd9a6; border-radius: 10px; padding: 12px 14px; font-size: 0.95rem; color: var(--ink); margin-bottom: 14px; }
.req { color: #c0503a; font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.req-hint { font-size: 0.85rem; color: var(--muted); margin: 0; }
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.book-form label { display: flex; flex-direction: column; gap: 5px; font-size: 0.9rem; color: var(--muted); }
.book-form .fl { display: block; }
.book-form label.full { grid-column: 1 / -1; }
.book-form input, .book-form select, .book-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 1rem;
  background: #fff; color: var(--ink); outline: none; font-family: inherit;
}
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { border-color: var(--accent); }
.book-form .btn-book { grid-column: 1 / -1; border: 0; cursor: pointer; text-align: center; }
.book-msg { grid-column: 1 / -1; min-height: 1.3em; color: var(--accent); font-size: 0.95rem; }
@media (max-width: 560px) { .book-form { grid-template-columns: 1fr; } }

/* checkboxes must never stretch (house CSS gotcha) */
input[type="checkbox"], input[type="radio"] {
  width: 16px; height: 16px; accent-color: var(--accent);
}
