/* Torque Garage, sample car repair and parts site by Solo Trace. Own palette and type (Part 7 concept 6): charcoal, steel, signal yellow, concrete, ash; Barlow Condensed + Barlow. Hard grid lines, no rounded corners. */
:root {
  --charcoal: #1C1C1E; --steel: #2E3136; --yellow: #FFD60A; --concrete: #F2F2F0; --ash: #B9BCC2; --line: #43474E; --line-soft: #35383E;
  --head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --max: 76rem; --gutter: clamp(1rem, 4vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.02rem; line-height: 1.6; color: var(--concrete); background: var(--charcoal); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 0.95; margin: 0; text-transform: uppercase; letter-spacing: 0.01em; color: var(--concrete); }
h1 { font-size: clamp(3.2rem, 9vw, 6.8rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: 1.7rem; }
p { margin: 0; }
a { color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 0.9rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 3px; background: var(--yellow); }
.lead { font-size: 1.15rem; max-width: 38rem; color: var(--ash); }
.muted { color: var(--ash); }
.num { font-family: var(--head); font-weight: 700; font-size: clamp(3rem, 7vw, 5rem); line-height: 0.9; color: var(--yellow); font-variant-numeric: tabular-nums; }
.num small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); margin-top: 0.5rem; }

/* Buttons: yellow is used for actions only */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3.25rem; padding: 0.75rem 1.6rem; font-family: var(--head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--yellow); background: var(--yellow); color: var(--charcoal); cursor: pointer; transition: background 160ms ease, color 160ms ease, transform 160ms ease; }
.btn:hover { background: #FFE24A; border-color: #FFE24A; transform: translateY(-2px); }
.btn--line { background: transparent; color: var(--concrete); border-color: var(--concrete); }
.btn--line:hover { background: var(--concrete); border-color: var(--concrete); color: var(--charcoal); }
.btn--small { min-height: 2.75rem; padding: 0.4rem 1.1rem; font-size: 1rem; }

/* Sample banner */
.banner { background: var(--yellow); color: var(--charcoal); font-size: 0.82rem; font-weight: 600; position: relative; z-index: 5; }
.banner .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; min-height: 2.5rem; padding-block: 0.3rem; }
.banner a { color: var(--charcoal); display: inline-flex; align-items: center; min-height: 2.75rem; }
.banner__links { display: flex; align-items: center; gap: 1.25rem; }
.lang { display: inline-flex; gap: 0.2rem; }
.lang a { text-decoration: none; padding-inline: 0.5rem; min-width: 2.75rem; justify-content: center; opacity: 0.65; }
.lang a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 0.25em; }
[hidden] { display: none !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(28, 28, 30, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { font-family: var(--head); font-weight: 700; font-size: 1.7rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; color: var(--concrete); display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; white-space: nowrap; }
.brand i { width: 0.9rem; height: 1.5rem; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%); }
.nav { display: none; gap: 0; border-left: 1px solid var(--line); }
.nav a { text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0 1rem; border-right: 1px solid var(--line); color: var(--concrete); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); }
@media (min-width: 960px) { .nav { display: flex; } }

/* Hero: dark, with a slow diagonal line pattern */
.hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; background: repeating-linear-gradient(135deg, transparent 0 22px, var(--line-soft) 22px 23px); background-size: 200% 200%; animation: drift 60s linear infinite; }
@keyframes drift { from { background-position: 0 0; } to { background-position: 230px 230px; } }
.hero .wrap { display: grid; gap: 2rem; padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 3rem; } }
.hero__copy { display: grid; gap: 1.4rem; }
.hero__copy h1 span { color: var(--yellow); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-top: 0.5rem; }
.hero__facts > div { padding: 1rem 0.9rem; border-right: 1px solid var(--line); }
.hero__facts > div:last-child { border-right: 0; }
.hero__facts .num { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.hero__media { position: relative; padding: 0 0.9rem 0.9rem 0; }
.hero__media::after { content: ""; position: absolute; inset: 0.9rem 0 0 0.9rem; border: 2px solid var(--yellow); z-index: -1; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.85); }

/* Sections and hard grid */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); scroll-margin-top: 5rem; border-bottom: 1px solid var(--line); }
.section--steel { background: var(--steel); }
.section__head { display: grid; gap: 0.5rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section__head--row { align-items: end; }
@media (min-width: 760px) { .section__head--row { grid-template-columns: 1fr auto; } }
.section__head p { color: var(--ash); max-width: 42rem; }

/* Services grid: numbered cells with shared borders */
.services { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }
.svc { display: grid; gap: 0.5rem; align-content: start; padding: 1.4rem 1.3rem 1.5rem; border: 1px solid var(--line); margin: -1px 0 0 -1px; background: var(--charcoal); transition: background 180ms ease; position: relative; }
.svc:hover { background: var(--steel); }
.svc__n { font-family: var(--head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--yellow); }
.svc h3 { margin-top: 0.2rem; }
.svc p { color: var(--ash); font-size: 0.96rem; }
.svc__price { font-family: var(--head); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em; margin-top: 0.4rem; }
.svc__price small { font-family: var(--body); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); display: block; }
.svc .btn { justify-self: start; margin-top: 0.6rem; }

/* Quote form */
.quote { display: grid; gap: 2rem; }
@media (min-width: 900px) { .quote { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; } }
.form { display: grid; gap: 1rem; background: var(--steel); border: 1px solid var(--line); padding: clamp(1.1rem, 3vw, 1.75rem); }
.section--steel .form { background: var(--charcoal); }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: 0.35rem; font-family: var(--head); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
.form input, .form select, .form textarea { width: 100%; min-height: 3.1rem; padding: 0.6rem 0.85rem; font: inherit; font-size: 1rem; color: var(--concrete); background: var(--charcoal); border: 1px solid var(--line); border-radius: 0; color-scheme: dark; }
.section--steel .form input, .section--steel .form select, .section--steel .form textarea { background: var(--steel); }
.form textarea { min-height: 7rem; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #8A8E96; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { border-color: var(--yellow); outline-offset: 0; }
.form__note { font-size: 0.85rem; color: var(--ash); }
.thanks { background: var(--steel); border: 1px solid var(--yellow); padding: 1.5rem; display: grid; gap: 0.5rem; }
.thanks p { color: var(--ash); }
.quote__side { display: grid; gap: 1.25rem; }
.quote__side ul { margin: 0; padding: 0; list-style: none; display: grid; }
.quote__side li { padding: 0.75rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; color: var(--ash); }
.quote__side li:last-child { border-bottom: 1px solid var(--line); }
.quote__side li::before { content: ""; width: 0.9rem; height: 0.9rem; margin-top: 0.4rem; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 60%, 0 100%); }
.quote__side li strong { color: var(--concrete); }

/* Steps */
.steps { display: grid; border: 1px solid var(--line); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 1.5rem 1.3rem 1.7rem; border: 1px solid var(--line); margin: -1px 0 0 -1px; display: grid; gap: 0.5rem; align-content: start; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--head); font-weight: 700; font-size: 3.4rem; line-height: 0.9; color: var(--yellow); }
.step p { color: var(--ash); font-size: 0.96rem; }

/* Parts */
.parts { display: grid; gap: 2rem; }
@media (min-width: 900px) { .parts { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; } }
.parts__img { position: relative; padding: 0 0 0.9rem 0.9rem; }
.parts__img::after { content: ""; position: absolute; inset: 0.9rem 0.9rem 0 0; border: 2px solid var(--yellow); z-index: -1; }
.parts__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.cat { padding: 1.1rem 1rem 1.2rem; border: 1px solid var(--line); margin: -1px 0 0 -1px; display: grid; gap: 0.25rem; align-content: start; text-decoration: none; color: var(--concrete); transition: background 180ms ease; }
.cat:hover { background: var(--steel); }
.cat h3 { font-size: 1.35rem; }
.cat span { color: var(--ash); font-size: 0.88rem; }
.cat em { font-style: normal; color: var(--yellow); font-family: var(--head); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; }

/* Hours and location */
.info { display: grid; border: 1px solid var(--line); }
@media (min-width: 900px) { .info { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 5fr); } }
.info > div { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); margin: -1px 0 0 -1px; display: grid; gap: 0.75rem; align-content: start; }
.hours { margin: 0; display: grid; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-block: 0.55rem; }
.hours dt { color: var(--ash); }
.hours dd { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.map { aspect-ratio: 4 / 3; border: 1px solid var(--line); background: repeating-linear-gradient(0deg, transparent 0 31px, var(--line-soft) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, var(--line-soft) 31px 32px), var(--steel); position: relative; display: grid; place-items: center; }
.map::before { content: ""; position: absolute; left: 20%; right: 10%; top: 55%; height: 10px; background: var(--line); transform: rotate(-12deg); }
.map::after { content: ""; position: absolute; left: 45%; top: 10%; bottom: 15%; width: 10px; background: var(--line); transform: rotate(18deg); }
.map span { position: relative; z-index: 1; font-family: var(--head); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--charcoal); background: var(--yellow); padding: 0.45rem 0.9rem; }

/* FAQ */
.faq { display: grid; max-width: 50rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--head); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.03em; text-transform: uppercase; min-height: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; list-style: none; padding-block: 0.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 1.8rem; line-height: 1; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.1rem; color: var(--ash); max-width: 44rem; }

/* Gallery strip */
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip figure { margin: 0; background: var(--charcoal); }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(0.8); }
.strip figcaption { padding: 0.6rem 0.8rem; font-size: 0.82rem; color: var(--ash); border-top: 1px solid var(--line); }

/* Services page: table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 40rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--head); font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); background: var(--steel); }
td.price { font-family: var(--head); font-weight: 700; font-size: 1.3rem; white-space: nowrap; color: var(--yellow); }
td small { color: var(--ash); display: block; }
.page-hero { border-bottom: 1px solid var(--line); position: relative; isolation: isolate; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; background: repeating-linear-gradient(135deg, transparent 0 22px, var(--line-soft) 22px 23px); background-size: 200% 200%; animation: drift 60s linear infinite; }
.page-hero .wrap { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 900px) { .page-hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 3rem; } }
.page-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(0.85); border: 1px solid var(--line); }

/* Footer */
.site-footer { background: #121214; color: var(--ash); padding-block: 3rem 2rem; font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.site-footer .brand { margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.site-footer a { color: var(--concrete); display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer h4 { margin: 0 0 0.5rem; font-size: 1rem; letter-spacing: 0.16em; color: var(--yellow); }
.site-footer .credit { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 0.5rem; font-size: 0.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before, .page-hero::before { animation: none !important; }
  .btn, .svc, .cat, .faq summary::after { transition: none !important; transform: none !important; }
}

/* No default tap flash on touch devices (2 November 2026); keyboard focus keeps this demo's own ring above. */
a, button, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
