/* S.R Auto Repair: racing green and brass, orange engine light */
:root {
  --brand: #1F3D2E;
  --brand-deep: #16291F;
  --brand-soft: #2C5240;
  --accent: #C8A25F;
  --accent-light: #E4C990;
  --paper: #F6F2EA;
  --white: #FFFFFF;
  --ink: #1A1F1C;
  --ink-soft: #3A443E;
  --muted: #56615A;
  --line: #E6DFD2;
  --on-dark: #CFD8D2;
  --radius: 20px;
  --max: 1160px;
  --serif: "Zilla Slab", Rockwell, Georgia, serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; color: var(--brand); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }

/* Header */
.site-header { background: var(--brand); color: var(--paper); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand:hover { color: var(--paper); }
.brand svg { width: 200px; height: auto; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--on-dark); text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); background: var(--brand-soft); }
.nav .nav-call { color: var(--brand-deep); background: var(--accent); font-weight: 700; padding: 10px 18px; border-radius: 999px; margin-left: 6px; }
.nav .nav-call:hover { background: var(--accent-light); color: var(--brand-deep); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn-brass { background: var(--accent); color: var(--ink); }
.btn-brass:hover { background: var(--accent-light); color: var(--ink); }
.btn-outline-light { border-color: #4E6B5B; color: var(--paper); background: transparent; }
.btn-outline-light:hover { border-color: var(--accent); color: var(--paper); }
.btn-green { background: var(--brand); color: var(--paper); }
.btn-green:hover { background: var(--brand-deep); color: var(--paper); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Hero */
.hero { background: var(--brand); color: var(--paper); padding: 72px 0 88px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { color: var(--paper); }
.hero .lead { color: var(--on-dark); font-size: 1.15rem; margin-top: 20px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-badge { display: flex; justify-content: center; }
.hero-badge svg { width: 100%; height: auto; }
.page-hero { background: var(--brand); color: var(--paper); padding: 64px 0 56px; }
.page-hero h1 { color: var(--paper); }
.page-hero .lead { color: var(--on-dark); font-size: 1.12rem; margin-top: 16px; max-width: 40em; }

/* Sections */
.section { padding: 80px 0; }
.section-white { background: var(--white); }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-head .kicker { color: var(--muted); }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.section-white .card { background: var(--paper); }
.card p { color: var(--ink-soft); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.icon svg { width: 26px; height: 26px; }

.service-card { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.service-card:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }

.service-detail { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: 0; }
.service-detail .icon { width: 64px; height: 64px; border-radius: 18px; }
.service-detail .icon svg { width: 32px; height: 32px; }
.service-detail p { color: var(--ink-soft); margin-top: 8px; max-width: 46em; }

/* Info band */
.info-band { background: var(--brand-deep); color: var(--paper); padding: 56px 0; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.info-grid h3 { color: var(--accent); font-size: 1.1rem; margin-bottom: 8px; }
.info-grid p, .info-grid a { color: var(--on-dark); }
.info-grid a:hover { color: var(--paper); }

/* CTA */
.cta { background: var(--accent); color: var(--ink); border-radius: 28px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: var(--brand-deep); }
.cta p { color: var(--ink); margin-top: 8px; }

/* Prose */
.prose p + p { margin-top: 16px; }
.prose p { color: var(--ink-soft); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.panel { background: var(--brand); color: var(--paper); border-radius: var(--radius); padding: 32px; }
.panel h3 { color: var(--accent); }
.panel p { color: var(--on-dark); margin-top: 10px; }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-list h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-list p, .contact-list a { color: var(--ink-soft); }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 6px 0; color: var(--ink-soft); }
.hours td:last-child { text-align: right; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.form-card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.form-card > p { color: var(--ink-soft); margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.field .req { color: #8A5A12; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #CFC6B5; border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200,162,95,.45); }
.field [aria-invalid="true"] { border-color: #A23B2A; }
.field-help { font-size: .88rem; color: var(--muted); }
.field-error, .form-error { font-size: .9rem; color: #A23B2A; font-weight: 600; }
.form-error { margin-bottom: 14px; }
.form-status { color: var(--muted); }
.form-thanks { background: var(--paper); border-radius: 16px; padding: 24px; }
.form-thanks h3 { margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--brand); color: var(--on-dark); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-grid h3 { color: var(--accent); font-size: 1.05rem; margin-bottom: 12px; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-grid a { color: var(--on-dark); text-decoration: none; }
.footer-grid a:hover { color: var(--paper); text-decoration: underline; }
.footer-brand svg { width: 220px; height: auto; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--brand-soft); margin-top: 40px; padding-top: 20px; font-size: .9rem; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-logo { max-width: 360px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-4, .grid-3, .grid-2, .info-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .header-inner { justify-content: center; }
  .nav { justify-content: center; }
  .nav .nav-call { margin-left: 0; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 56px 0; }
  .cta { padding: 32px 24px; }
  .form-card { padding: 24px 20px; }
  .service-detail { grid-template-columns: minmax(0, 1fr); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero photo: workshop image, greyscale, under a racing green tint */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("https://static.wixstatic.com/media/37c8b8_5012a30e3d4c488aaa90a5a27359107b~mv2.jpg/v1/fill/w_1920,h_1000,al_c,q_80/hero-workshop.jpg") center / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
}
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(22,41,31,.85) 0%, rgba(31,61,46,.70) 50%, rgba(31,61,46,.40) 100%);
}
.page-hero::after { background: linear-gradient(100deg, rgba(22,41,31,.85) 0%, rgba(31,61,46,.66) 60%, rgba(31,61,46,.52) 100%); }
.hero { padding: 104px 0 120px; }
@media (max-width: 640px) {
  .hero { padding: 64px 0 72px; }
  .hero::after { background: rgba(22,41,31,.72); }
}

/* Subtle texture and hero logo panel */
.site-header, .site-footer, .info-band { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-logo { width: 100%; max-width: 440px; padding: 32px 28px 24px; border-radius: 24px; background: rgba(10,25,18,.55); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 48px rgba(0,0,0,.3); }
@media (max-width: 640px) { .brand svg { width: 180px; } }

/* Orange outline with rounded corners around the logos */
.brand { border: 2px solid #F28C28; border-radius: 14px; padding: 6px 12px; }
.hero-logo { border: 2px solid #F28C28; border-radius: 24px; }
