/* ==========================================================================
   Gomery's Automotive — demo site styles
   Graphite ground, signal-red accent, road-stripe yellow detail. Mobile-first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink:        #17191e;
  --ink-2:      #1f2228;
  --ink-3:      #2a2e36;
  --steel:      #3a404b;

  --paper:      #ffffff;
  --paper-2:    #f4f4f2;
  --line:       #e0e0dc;

  --text:       #1d2026;
  --muted:      #5b616c;
  --on-dark:    #f3f4f6;
  --on-dark-2:  #b4b9c2;

  --accent:     #e03128;
  --accent-ink: #c4231b; /* red dark enough for white text */
  --accent-soft:#fdeceb;
  --stripe:     #f5c518; /* road-line yellow, decorative only */

  --radius:     12px;
  --radius-lg:  16px;
  --shadow:     0 10px 28px rgba(23, 25, 30, 0.09);
  --shadow-lg:  0 22px 50px rgba(23, 25, 30, 0.22);
  --ring:       0 0 0 3px rgba(224, 49, 40, 0.5);

  --wrap:       1160px;
  --gutter:     16px;
  --header-h:   64px;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 68px; /* room for the mobile call bar */
}
@media (min-width: 720px) { body { padding-bottom: 0; } }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 10vw, 4.8rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 6.5vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; --header-h: 76px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  border: 2px solid transparent; border-radius: 10px;
  font: 700 1rem/1.1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; font-size: 1.08rem; padding: .8em 1.5em; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent-ink); color: #fff; box-shadow: 0 6px 16px rgba(196, 35, 27, .32); }
.btn--accent:hover { background: #a51d16; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: #c9c9c4; }
.btn--ghost-dark:hover { border-color: var(--ink); }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  background: #0d0e11; color: var(--on-dark-2);
  font-size: .78rem; text-align: center; padding: 6px var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 25, 30, .97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 3px solid var(--accent);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font: 700 1.3rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.brand__sub { display: none; font: 500 .72rem/1 var(--font-body); color: var(--on-dark-2); text-transform: none; letter-spacing: .02em; margin-top: 4px; }

.nav { display: none; }
.header-call { min-height: 44px; padding: .5em .9em; font-size: 1rem; white-space: nowrap; }
.header-call__num { display: none; }

@media (min-width: 420px) { .brand__sub { display: block; } }
@media (min-width: 560px) {
  .header-call__num { display: inline; }
  .header-call__short { display: none; }
}
@media (min-width: 720px) {
  .brand__mark { width: 44px; height: 44px; }
  .brand__name { font-size: 1.6rem; }
  .header-call { font-size: 1.1rem; padding: .65em 1.2em; min-height: 52px; }
}
@media (min-width: 1060px) {
  .nav { display: flex; gap: 24px; margin-left: auto; margin-right: 18px; }
  .nav a { color: var(--on-dark); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .nav a:hover { border-bottom-color: var(--accent); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(800px 420px at 90% -10%, rgba(224, 49, 40, .30), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 34px),
    linear-gradient(165deg, var(--ink-3) 0%, var(--ink) 60%, #0e0f12 100%);
  padding: 44px 0 92px;
}
.hero__inner { position: relative; z-index: 1; }
.hero__rating {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 6px 14px; font-size: .92rem; color: var(--on-dark); margin-bottom: 20px;
}
.hero__stars { color: #ffc23d; letter-spacing: .1em; }
.eyebrow { font: 600 .8rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #ff9b94; margin-bottom: 14px; }
.eyebrow--dark { color: var(--accent-ink); }
.hero h1 { max-width: 13ch; }
.hero__lead { font-size: clamp(1.08rem, 4vw, 1.35rem); color: var(--on-dark); max-width: 40ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__hours { margin: 22px 0 0; color: var(--on-dark-2); font-size: .92rem; }

/* road with a dashed centre line along the bottom of the hero */
.hero__road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  background:
    repeating-linear-gradient(90deg, var(--stripe) 0 56px, transparent 56px 104px) center / 100% 5px no-repeat,
    #24272d;
  border-top: 3px solid #33373f;
}
@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 720px) {
  .hero { padding: 92px 0 150px; }
  .hero__road { height: 64px; }
}

/* ---------- Trust bar ---------- */
.trust { background: #24272d; color: var(--on-dark); padding: 4px 0 24px; }
.trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.trust__list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.trust__icon { width: 28px; height: 28px; color: var(--accent); flex: none; }
@media (min-width: 900px) {
  .trust { padding: 8px 0 30px; }
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .trust__list li { justify-content: center; font-size: 1rem; }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--paper-2); }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 36px; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section__lead--light { color: var(--on-dark-2); }
@media (min-width: 720px) { .section { padding: 92px 0; } }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 16px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px; box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
}
.card__icon { width: 44px; height: 44px; color: var(--ink-3); margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; }
.cards__more { text-align: center; margin: 28px 0 0; color: var(--muted); }
.cards__more a { font-weight: 700; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Why ---------- */
.why { display: grid; gap: 32px; }
.why__list { display: grid; gap: 18px; margin: 8px 0 24px; }
.why__list li { padding-left: 18px; border-left: 3px solid var(--line); }
.why__list h3 { margin-bottom: .25em; }
.why__list p { color: var(--muted); margin: 0; }
.why__owner {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 0;
}
.why__owner strong { color: var(--accent-ink); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.photos__item {
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  display: flex; align-items: flex-end; padding: 12px;
  border: 2px dashed #bdbdb6;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M33 8a8 8 0 0 0-7.7 10.3L12.6 31a3 3 0 0 0 4.2 4.2l12.7-12.7A8 8 0 0 0 40 16l-4.4 4.4-4.4-1.4-1.4-4.4z' fill='%23a3a39c'/%3E%3C/svg%3E") center 40% / 52px no-repeat,
    repeating-linear-gradient(135deg, #e9e9e5 0 10px, #efefeb 10px 20px);
}
.photos__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.photos__item span { font-size: .82rem; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .88); padding: 4px 8px; border-radius: 6px; }
@media (min-width: 900px) {
  .why { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
}

/* ---------- Steps ---------- */
.steps-section { background: var(--ink); color: #fff; }
.steps { display: grid; gap: 16px; counter-reset: none; }
.step {
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg);
  padding: 24px 22px;
}
.step__num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-ink); color: #fff; font: 700 1.4rem/1 var(--font-display); margin-bottom: 14px;
}
.step p { color: var(--on-dark-2); margin: 0; }
.steps__cta { text-align: center; margin-top: 32px; }
.steps__cta p { color: var(--on-dark-2); margin: 16px 0 0; }
.steps__cta a:not(.btn) { color: #fff; font-weight: 700; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; gap: 20px; align-items: stretch; }
.rating {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 28px; text-align: center; display: flex; flex-direction: column; justify-content: center;
  border-bottom: 5px solid var(--accent);
}
.rating__score { font: 700 4rem/1 var(--font-display); margin: 0; }
.rating__stars { color: #ffc23d; font-size: 1.6rem; letter-spacing: .12em; margin: 8px 0 6px; }
.rating__label { color: var(--on-dark-2); margin: 0; font-size: .95rem; }
.review {
  margin: 0; position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px 24px; box-shadow: var(--shadow);
}
.review__tag {
  position: absolute; top: -12px; left: 22px;
  background: var(--accent-soft); color: var(--accent-ink); border: 1px solid #f6c3c0;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.review blockquote { margin: 0 0 12px; }
.review blockquote p { font-size: clamp(1.15rem, 3.6vw, 1.45rem); line-height: 1.45; font-weight: 500; margin: 0; }
.review figcaption { color: var(--muted); font-size: .9rem; }
@media (min-width: 800px) { .reviews { grid-template-columns: 1fr 2fr; gap: 28px; } }

/* ---------- Visit ---------- */
.visit { display: grid; gap: 28px; }
.visit__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 22px; box-shadow: var(--shadow);
}
.visit__address { font-style: normal; font-size: 1.1rem; font-weight: 600; margin-bottom: 18px; }
.visit__note { font-weight: 400; color: var(--muted); font-size: .95rem; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.hours th, .hours td { text-align: left; padding: 10px 0; border-top: 1px solid var(--line); font-size: .98rem; }
.hours th { font-weight: 600; }
.hours td { text-align: right; color: var(--muted); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.area h3 { margin-bottom: 14px; }
.area__list { display: flex; flex-wrap: wrap; gap: 10px; }
.area__list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px 9px 14px; font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.area__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (min-width: 720px) { .visit__card { padding: 34px 32px; } }
@media (min-width: 900px) { .visit { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; } }

/* ---------- Appointment form ---------- */
.estimate { background: linear-gradient(165deg, var(--ink-3), var(--ink)); color: #fff; }
.estimate__inner { display: grid; gap: 32px; }
.estimate__intro p { color: var(--on-dark); font-size: 1.05rem; }
.estimate__intro .btn { margin: 8px 0 22px; }
.estimate__facts li { color: var(--on-dark-2); font-size: .95rem; padding: 4px 0; }
@media (min-width: 900px) { .estimate__inner { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; } }

.form-card { background: var(--paper); color: var(--text); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--shadow-lg); }
@media (min-width: 720px) { .form-card { padding: 34px 32px; } }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-body); color: var(--text);
  background: #fff; border: 2px solid #cfcfca; border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field [aria-invalid="true"] { border-color: #c81e1e; }

.days { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.days legend { width: 100%; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; min-width: 58px; text-align: center;
  padding: 10px 12px; border: 2px solid #cfcfca; border-radius: 999px;
  font-weight: 600; font-size: .92rem; transition: background-color .15s, border-color .15s, color .15s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { box-shadow: var(--ring); }

.form__error { color: #b91c1c; font-weight: 600; font-size: .92rem; }
.form__note { color: var(--muted); font-size: .82rem; text-align: center; margin: 12px 0 0; }

.thanks { text-align: center; padding: 18px 4px; }
.thanks:focus { box-shadow: none; }
.thanks__icon { width: 64px; height: 64px; color: #15803d; margin: 0 auto 12px; }
.thanks h3 { font-size: 2rem; text-transform: uppercase; }
.thanks .btn { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #0d0e11; color: var(--on-dark-2); padding: 40px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner { display: grid; gap: 18px; }
.site-footer__brand { font: 700 1.5rem/1 var(--font-display); text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.site-footer__info li { padding: 3px 0; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.site-footer__base p { margin: 0; }
.site-footer__demo { color: #858b96; }
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer__info { text-align: right; }
}

/* ---------- Mobile call bar ---------- */
.mobile-call {
  position: fixed; left: 12px; right: 12px; bottom: 10px; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; border-radius: 12px;
  background: var(--accent-ink); color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
  transition: transform .2s, opacity .2s;
}
.js .mobile-call:not(.is-shown) { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (min-width: 720px) { .mobile-call { display: none; } }
