/* US Automobile – front-end styles (Phase 4 redesign, Dec 2026)
   Type: Barlow Condensed (display, signage) + Barlow (text).
   Colour: workshop green, green-ink, concrete, white, signboard yellow (used sparingly). */

:root {
  --green: #05884a;
  --green-dark: #046b3a;
  --ink: #10261d;
  --ink-soft: #3d4a44;
  --concrete: #e8e9e4;
  --concrete-2: #d9dbd4;
  --white: #ffffff;
  --sign: #f3c318;
  --focus: #f3c318;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Barlow", "Segoe UI", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
  --radius: 3px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 64px;           /* room for the mobile action bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--green-dark); }
a:hover { color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.55rem; line-height: 1.15; }
p { margin: 0 0 1em; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: var(--section) 0; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em;
  padding: 0.55em 1.1em; border-radius: var(--radius);
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  text-decoration: none; cursor: pointer; line-height: 1.1;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-ghost { border-color: var(--ink); }
.btn-lg { font-size: 1.3rem; padding: 0.6em 1.3em; }
.btn-small { font-size: 1.02rem; padding: 0.42em 0.9em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.text-link { font-weight: 600; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--concrete-2); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand img { width: 120px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--green); }
.nav-toggle { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }

@media (max-width: 899px) {
  .header-inner { min-height: 64px; gap: 12px; }
  .brand img { width: 96px; }
  .header-phone, .header-actions .btn { display: none; }
  .nav-toggle {
    display: inline-block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
    background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: 4px 12px; color: var(--ink); cursor: pointer;
  }
  .main-nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--concrete-2); padding: 8px var(--gutter) 16px;
  }
  .nav-open .main-nav ul { display: flex; }
  .main-nav li a { display: block; padding: 12px 0; font-size: 1.35rem; border-bottom: 1px solid var(--concrete); }
}

/* ---------- Hero ---------- */
.hero { background: var(--concrete); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 0.95fr 1.05fr; gap: 56px; } }
.hero-copy h1 { max-width: 13ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.hero-call { color: var(--ink-soft); }
.hero-call a { color: var(--ink); font-weight: 600; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius); }

/* The signboard ribbon: the one bold element */
.ribbon { background: var(--ink); color: var(--white); border-top: 6px solid var(--sign); }
.ribbon-inner { display: flex; flex-wrap: wrap; gap: 6px 0; padding-top: 16px; padding-bottom: 16px; }
.ribbon-inner span {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: 0.01em;
  padding-right: 22px; margin-right: 22px; border-right: 2px solid rgba(255,255,255,0.28); line-height: 1.2;
}
.ribbon-inner span:last-child { border-right: 0; margin-right: 0; }

/* ---------- Assurances ---------- */
.assure { border-bottom: 1px solid var(--concrete-2); }
.assure-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .assure-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .assure-list { grid-template-columns: repeat(6, 1fr); } }
.assure-list li { padding: 22px 16px 22px 0; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.4; }
.assure-list strong { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--green-dark); }

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Feature services (photo-led, no cards) ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 40px 32px; }
@media (min-width: 960px) {
  .feature-grid { grid-template-columns: 2fr 1fr; }
  .feature-grid .feature:nth-child(3) { grid-column: 1 / 2; grid-row: 2; }
  .feature-grid .feature:nth-child(2) { grid-column: 2; grid-row: 1; }
  .feature-grid .feature:nth-child(4) { grid-column: 2; grid-row: 2; }
}
.feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.feature-text { padding-top: 16px; max-width: 34em; }
.feature-text p { color: var(--ink-soft); margin: 0; }

.all-services { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 2px solid var(--ink); }
.service-columns { list-style: none; padding: 0; margin: 0 0 20px; columns: 1; column-gap: 40px; }
@media (min-width: 600px) { .service-columns { columns: 2; } }
@media (min-width: 960px) { .service-columns { columns: 4; } }
.service-columns li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--concrete-2); }

/* ---------- Steps (a real sequence, so numbered) ---------- */
.steps-section { background: var(--concrete); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 4px solid var(--green); padding-top: 18px; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--green); display: block; margin-bottom: 10px; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- Workshops ---------- */
.workshop-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .workshop-grid { grid-template-columns: 1fr 1fr; } }
.workshop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.workshop-text { padding-top: 18px; }
.workshop address { font-style: normal; color: var(--ink-soft); margin-bottom: 16px; max-width: 30em; }
.workshop-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { background: var(--concrete); }
.faq details { border-bottom: 1px solid var(--concrete-2); }
.faq details:first-of-type { border-top: 1px solid var(--concrete-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.8rem; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); max-width: 44em; padding-bottom: 8px; }

/* ---------- Booking form ---------- */
.book { background: var(--ink); color: var(--white); }
.book h2 { color: var(--white); }
.book-grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .book-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.book-intro p { color: rgba(255,255,255,0.82); font-size: 1.12rem; }
.book-call a { color: var(--white); font-weight: 600; }
.form-card { background: var(--white); color: var(--ink); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); border-top: 6px solid var(--sign); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 5px; }
.field small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; color: var(--ink);
  background: var(--white); border: 1.5px solid #b9bdb4; border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 3px solid rgba(5,136,74,0.2); outline-offset: 0; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.lead-form .btn-block { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1c15; color: rgba(255,255,255,0.78); font-size: 0.98rem; padding-top: 56px; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-head { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.site-footer address { font-style: normal; margin-bottom: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 2px 0; }
.footer-links a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; padding-bottom: 22px; font-size: 0.9rem; }
.footer-base p { margin: 0; }

/* ---------- Mobile action bar ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); border-top: 3px solid var(--sign); }
.action-bar a { color: var(--white); text-decoration: none; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; padding: 14px 4px; }
.action-bar a + a { border-left: 1px solid rgba(255,255,255,0.18); }
.action-bar a:nth-child(2) { background: var(--green); }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------- Lead status box (set by dev.js) ---------- */
.lead-status a { color: inherit; font-weight: 600; }

/* Workshop addresses in hero and booking section */
.hero-addresses { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--concrete-2); display: grid; gap: 16px; }
@media (min-width: 600px) { .hero-addresses { grid-template-columns: 1fr 1fr; gap: 24px; } }
.hero-addresses strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.hero-addresses address { font-style: normal; font-size: 0.95rem; line-height: 1.45; color: var(--ink-soft); margin: 2px 0 4px; }
.hero-addresses a { font-weight: 600; font-size: 0.95rem; }
.book-addresses { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); }
.book .book-addresses p { font-size: 0.98rem; line-height: 1.5; }
.book-addresses strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--white); }
.book-addresses a { color: var(--white); font-weight: 600; }

/* Hero refinements after desktop review: shorter headline, photo fills the column */
.hero-copy h1 { max-width: 16ch; font-size: clamp(2.5rem, 5.2vw, 4.1rem); }
@media (min-width: 960px) {
  .hero-grid { align-items: stretch; }
  .hero-photo { display: flex; }
  .hero-photo picture { flex: 1; }
  .hero-photo img { height: 100%; aspect-ratio: auto; min-height: 520px; }
}

/* ===================== Inner pages (Phase 4) ===================== */
.page-intro { background: var(--concrete); padding: clamp(28px, 5vw, 56px) 0 clamp(32px, 5vw, 56px); }
.page-intro h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }
.page-intro .lead { max-width: 40em; }
.page-intro-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .page-intro.has-photo .page-intro-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.page-intro-photo { margin: 0; }
.page-intro-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.page-intro .hero-actions { margin-bottom: 0; }

.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.95rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #8a918c; }
.crumbs a { color: var(--ink-soft); }

/* Jump links (services) */
.jump { border-bottom: 1px solid var(--concrete-2); background: var(--white); }
.jump ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.jump a { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--green); }
.jump a:hover { color: var(--green-dark); }

/* Service groups */
.svc-group + .svc-group { border-top: 1px solid var(--concrete-2); }
.svc-group-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .svc-group-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
.svc-group-head p { color: var(--ink-soft); font-size: 1.1rem; }
.svc-group-head img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-top: 10px; }
.svc-list { margin: 0; }
.svc-item { padding: 16px 0; border-bottom: 1px solid var(--concrete-2); scroll-margin-top: 90px; }
.svc-item:first-child { border-top: 2px solid var(--ink); }
.svc-item dt { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.svc-item dd { margin: 4px 0 0; color: var(--ink-soft); }
.svc-list .btn { margin-top: 18px; }
.assure-band { background: var(--concrete); border-bottom: 0; }

/* About */
.two-col { display: grid; gap: 36px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 72px; } }
.prose-section p { max-width: 38em; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--concrete-2); }
.facts li:first-child { border-top: 2px solid var(--ink); }
.facts h3 { font-size: 1.35rem; margin-bottom: 4px; }
.facts p { margin: 0; color: var(--ink-soft); }
.photo-strip { padding-bottom: var(--section); }
.photo-strip-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .photo-strip-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Contact */
.contact-ways { border-bottom: 1px solid var(--concrete-2); }
.contact-ways-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 600px) { .contact-ways-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .contact-ways-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-way { display: block; padding: 22px 18px 22px 0; text-decoration: none; color: var(--ink); }
.contact-way strong { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--green-dark); }
.contact-way span { color: var(--ink-soft); word-break: break-word; }
a.contact-way:hover span { color: var(--ink); text-decoration: underline; }
.location address { font-style: normal; color: var(--ink-soft); margin-bottom: 14px; max-width: 32em; }
.map-frame { margin-top: 18px; aspect-ratio: 4 / 3; background: var(--concrete); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.book select { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; color: var(--ink); background: var(--white); border: 1.5px solid #b9bdb4; border-radius: var(--radius); }

/* Gallery */
.gallery-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } .gallery-grid .g-wide { grid-column: span 2; grid-row: span 2; } }
.gallery-grid figure { margin: 0; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery-grid .g-wide img { height: calc(100% - 2.2em); aspect-ratio: auto; }
.gallery-grid figcaption { font-size: 0.93rem; color: var(--ink-soft); padding-top: 6px; }

/* 404 */
.nf-links { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.nf-links a { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }

/* Ribbon: separators as leading bars so a wrapped line never ends on one */
.ribbon-inner { gap: 6px 22px; }
.ribbon-inner span { border-right: 0; padding-right: 0; margin-right: 0; }
.ribbon-inner span + span::before { content: ""; display: inline-block; width: 2px; height: 0.9em; background: rgba(255,255,255,0.28); margin-right: 22px; vertical-align: -0.05em; }
/* Gallery: wide photo fills both rows */
@media (min-width: 1000px) {
  .gallery-grid .g-wide { display: flex; flex-direction: column; }
  .gallery-grid .g-wide picture { flex: 1; min-height: 0; }
  .gallery-grid .g-wide img { height: 100%; aspect-ratio: auto; }
}
