/* Jay's Mobile Mechanic, palette "Daylight Garage": cream base, deep navy, logo orange as fills only (never text on cream). */
:root {
  --navy: #13305A; --navy-2: #1B3B6B; --line-dark: #3A5378; --ui-dark: #8A9AB3;
  --cream: #F7F3EC; --paper: #FDFBF7; --ink: #1C2129; --muted: #4A5160;
  --on-dark: #F7F3EC; --muted-dark: #C9D2E0;
  --accent: #E8862A; --on-accent: #1C2129;
  --font-head: "Cabinet Grotesk", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1320px; --gutter: clamp(16px, 4vw, 56px); --header-h: 96px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: .98; letter-spacing: -.01em; margin: 0; overflow-wrap: anywhere; }
p { margin: 0; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.dark :focus-visible, .site-header :focus-visible, .mobile-panel :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 16px; font-weight: 700; }
.skip:focus { left: 16px; top: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dark { background: var(--navy); color: var(--on-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.3em; border: 1px solid transparent; font-family: var(--font-head); font-weight: 800; font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; line-height: 1.1; text-align: center; }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.btn-navy:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn-ghost:hover { background: var(--on-dark); color: var(--navy); }

/* Header (sticky) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--on-dark); border-bottom: 1px solid var(--accent); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand img { width: 84px; height: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav li + li { border-left: 1px solid var(--line-dark); }
.main-nav a { display: block; padding: 10px 18px; font-family: var(--font-head); font-weight: 800; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--accent); }
.header-phone:hover { color: var(--accent); }
.icon-btn, .menu-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: transparent; color: var(--on-dark); border: 1px solid var(--ui-dark); cursor: pointer; }
.icon-btn .icon, .menu-toggle .icon { width: 22px; height: 22px; }
.mobile-panel { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--navy); color: var(--on-dark); overflow-y: auto; padding: 8px var(--gutter) 32px; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.m-link { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; text-decoration: none; }
.m-link .icon { color: var(--accent); }
.m-foot { display: grid; gap: 12px; margin-top: 28px; }
.m-foot p { color: var(--muted-dark); }
.mobile-panel .btn-ghost { border-color: var(--ui-dark); }

/* Hero: split, navy text panel + photo */
.hero { display: grid; grid-template-columns: 47fr 53fr; border-bottom: 1px solid var(--line-dark); }
.hero-text { padding: clamp(32px, 5vw, 64px) var(--gutter); padding-right: clamp(24px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 22px; border-right: 1px solid var(--line-dark); container-type: inline-size; }
.tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--ui-dark); }
.tag i { display: inline-block; width: 18px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(2.4rem, 12cqi, 5.2rem); }
.rule { display: block; width: 100%; max-width: 560px; height: 6px; background: var(--accent); border: 0; margin: 0; }
.hero .lead { max-width: 34em; font-size: 1.0625rem; color: var(--muted-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; min-height: 460px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hours { position: absolute; right: 0; bottom: 0; background: var(--accent); color: var(--on-accent); padding: 20px 26px 22px 34px; clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%); display: grid; gap: 10px; }
.hours strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.75rem); text-transform: uppercase; line-height: 1; }
.hours span { justify-self: start; background: var(--navy); color: var(--on-dark); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; }

/* Four service tiles */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); }
.tile { container-type: inline-size; display: flex; align-items: center; justify-content: center; gap: .55em; min-height: 112px; padding: 20px; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; text-decoration: none; line-height: 1; }
.tile span { font-size: clamp(1rem, 11cqi, 2.1rem); }
.tile small { font-size: clamp(.7rem, 6cqi, 1.15rem); }
.tile.o { background: var(--accent); color: var(--on-accent); }
.tile.o small { color: var(--navy); }
.tile.n { background: var(--navy); color: var(--on-dark); }
.tile.n small { color: var(--accent); }
.tile:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Three steps */
.steps { padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--ink); }
.title-ruled { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin-bottom: 40px; }
.title-ruled::before, .title-ruled::after { content: ""; height: 1px; background: var(--ink); }
.title-ruled h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); text-align: center; }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.step { container-type: inline-size; display: flex; gap: 18px; align-items: flex-start; padding: 4px 28px; }
.step + .step { border-left: 1px solid var(--ink); }
.step:first-child { padding-left: 0; }
.step b { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 18cqi, 4rem); line-height: .85; color: var(--navy); }
.step h3 { font-size: clamp(1.05rem, 6.5cqi, 1.35rem); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Town strip */
.towns { border-bottom: 1px solid var(--line-dark); }
.towns .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; flex-wrap: wrap; padding-block: 14px; }
.towns-label { white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding-right: 22px; border-right: 1px solid var(--line-dark); font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); }
.towns ul { display: flex; flex-wrap: wrap; flex: 1; justify-content: space-between; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.towns li { font-size: .95rem; font-family: var(--font-head); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.towns li::before { content: "/"; color: var(--accent); margin-right: 8px; }

/* What we fix */
.fix { background: var(--paper); padding: clamp(56px, 7vw, 96px) 0; }
.fix .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.fix-head { container-type: inline-size; display: grid; gap: 18px; }
.fix-head h2 { font-size: clamp(2rem, 11cqi, 3.6rem); }
.fix-head p { color: var(--muted); max-width: 30em; }
.text-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; color: var(--navy); text-underline-offset: 4px; }
.text-link:hover { color: var(--ink); }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.svc li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; padding: 20px 0; border-bottom: 1px solid var(--ink); }
.svc b { grid-row: span 2; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--navy); line-height: 1.1; }
.svc h3 { font-size: 1.3rem; line-height: 1.1; }
.svc p { color: var(--muted); font-size: .95rem; }

/* Photo + panel pairs */
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair-photo { position: relative; min-height: 440px; }
.pair-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel { container-type: inline-size; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px); }
.panel h2 { font-size: clamp(2rem, 9.5cqi, 3.6rem); }
.panel p:not(.eyebrow) { max-width: 30em; }
.panel.orange { background: var(--accent); color: var(--on-accent); }
.panel.dark p:not(.eyebrow) { color: var(--muted-dark); }
.panel.dark .eyebrow { color: var(--on-dark); }

/* CTA band */
.cta { background: var(--accent); color: var(--on-accent); text-align: center; padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--ink); }
.cta .wrap { display: grid; justify-items: center; gap: 18px; }
.cta h2 { font-size: clamp(2rem, 5vw, 4rem); max-width: 18ch; }
.cta p:not(.eyebrow) { max-width: 34em; }
.cta .btn-row { justify-content: center; align-items: center; gap: 24px; }
.cta-phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; text-underline-offset: 5px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark); padding-top: clamp(48px, 6vw, 72px); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.foot-brand { color: var(--on-dark); display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; margin-bottom: 14px; }
.foot-brand .icon { color: var(--accent); fill: var(--accent); width: 22px; height: 22px; }
.foot-grid p { color: var(--muted-dark); max-width: 26em; }
.foot-grid h2 { font-size: .85rem; letter-spacing: .14em; color: var(--accent); margin-bottom: 14px; line-height: 1.4; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid .icon { color: var(--ui-dark); }
.legal { border-top: 1px solid var(--line-dark); }
.legal .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 20px; font-size: .875rem; color: var(--muted-dark); }
.legal a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1100px) {
  .main-nav a { padding: 10px 12px; }
  .header-phone span { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 80px; }
  .brand img { width: 68px; }
  .main-nav, .header-phone, .header-actions > .btn { display: none; }
  .header-inner { justify-content: space-between; }
  .icon-btn, .menu-toggle { display: inline-flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-text { border-right: 0; }
  .hero-photo { min-height: 340px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(3) { background: var(--navy); color: var(--on-dark); }
  .tile:nth-child(3) small { color: var(--accent); }
  .tile:nth-child(4) { background: var(--accent); color: var(--on-accent); }
  .tile:nth-child(4) small { color: var(--navy); }
  .step-list { grid-template-columns: 1fr; }
  .step, .step:first-child { padding: 20px 0; }
  .step + .step { border-left: 0; border-top: 1px solid var(--ink); }
  .towns-label { border-right: 0; padding-right: 0; width: 100%; }
  .towns ul { justify-content: flex-start; }
  .fix .wrap { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .pair-photo { min-height: 300px; }
  .pair.flip .pair-photo { order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .title-ruled { grid-template-columns: 1fr; }
  .title-ruled::before, .title-ruled::after { display: none; }
  .title-ruled h2 { text-align: left; }
  .hours { position: static; clip-path: none; }
  .hero-photo { display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
  .hero-photo img { position: absolute; }
  .hours { position: relative; }
  .btn-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cta .btn-row { align-items: center; gap: 18px; }
  .cta .btn-row .btn { align-self: stretch; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* Current page in menu */
.main-nav a[aria-current="page"] { color: var(--accent); }
.m-link[aria-current="page"] { color: var(--accent); }
.header-actions > .btn[aria-current="page"] { background: var(--on-dark); border-color: var(--on-dark); color: var(--navy); }

/* Inner page hero: text + large mark */
.page-hero { border-bottom: 1px solid var(--line-dark); }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.page-hero-text { container-type: inline-size; display: grid; gap: 22px; justify-items: start; }
.page-hero h1 { font-size: clamp(2.3rem, 8.6cqi, 5.2rem); max-width: 16ch; }
.page-hero .lead { max-width: 36em; font-size: 1.0625rem; color: var(--muted-dark); }
.rule.short { width: 140px; }
.hero-mark { justify-self: end; display: grid; place-items: center; width: min(100%, 260px); aspect-ratio: 1; border: 1px solid var(--line-dark); color: var(--accent); }
.hero-mark .icon { width: 58%; height: 58%; stroke-width: 1.25; }

/* Heading + ruled list split (What we fix, Service area) */
.list-split { padding: clamp(56px, 7vw, 96px) 0; }
.list-split .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.list-head { container-type: inline-size; display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
.list-head h2 { font-size: clamp(1.7rem, 8cqi, 3.4rem); }
.list-head p:not(.eyebrow) { color: var(--muted); max-width: 30em; }
.list-head .hours-text { color: var(--ink); }
.town-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.town-list li { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--ink); font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); text-transform: uppercase; line-height: 1.1; }
.town-list .icon { color: var(--navy); width: 22px; height: 22px; stroke-width: 1.5; }

/* Specialty: intro band, then alternating photo/copy blocks */
.spec-intro { background: var(--accent); color: var(--on-accent); padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.spec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.spec-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-top: 14px; }
.spec-head p:not(.eyebrow) { max-width: 34em; }
.panel h3 { font-size: clamp(1.8rem, 8.5cqi, 3.2rem); }
.specialty .pair-photo { min-height: 420px; }

/* How it works */
.how-split { display: grid; grid-template-columns: 52fr 48fr; }
.how-steps { padding: clamp(48px, 6vw, 80px) var(--gutter); padding-right: clamp(24px, 5vw, 80px); container-type: inline-size; }
.big-steps { list-style: none; margin: 0 0 0 auto; padding: 0; max-width: 720px; border-top: 1px solid var(--ink); }
.big-steps li { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--ink); }
.big-steps b { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 9cqi, 3.6rem); line-height: .85; color: var(--navy); width: 1.35em; font-variant-numeric: tabular-nums; }
.big-steps h2 { font-size: clamp(1.35rem, 5.2cqi, 2.1rem); margin-bottom: 10px; }
.big-steps p { color: var(--muted); }
.how-split .pair-photo { min-height: 520px; }

/* Request service */
.request-sec { padding: clamp(48px, 7vw, 96px) 0; }
.request { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.request-head { container-type: inline-size; display: grid; gap: 18px; }
.request-head h1 { font-size: clamp(2.4rem, 15cqi, 5.4rem); }
.request-head p:not(.eyebrow) { color: var(--muted); max-width: 30em; }
.contact-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-lines a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
.contact-lines .icon { color: var(--navy); }
.contact-lines a:hover { color: var(--navy); }
.form-panel { container-type: inline-size; padding: clamp(24px, 4vw, 40px); padding-top: calc(clamp(24px, 4vw, 40px) + 8px); position: relative; }
.form-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .03em; text-transform: uppercase; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.opt { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--muted-dark); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--ui-dark); border-radius: 0; font: inherit; }
.field textarea { min-height: 140px; resize: vertical; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #FFB4A8; outline: 1px solid #FFB4A8; }
.err { color: #FFB4A8; font-size: .9rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.form-foot .btn { min-width: min(100%, 260px); }
.small { font-size: .875rem; color: var(--muted-dark); flex: 1 1 220px; }
.small a { color: var(--on-dark); }
.form-status { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--ui-dark); background: var(--navy-2); }
.form-status strong { font-family: var(--font-head); font-size: 1.15rem; text-transform: uppercase; }
.form-status p { color: var(--muted-dark); margin-top: 6px; }
.form-status a { color: var(--on-dark); }
.form-status.is-ok { border-color: #9FE6BC; }
.form-status.is-ok strong { color: #9FE6BC; }
.form-status.is-warn { border-color: var(--accent); }
.form-status.is-error { border-color: #FFB4A8; }
.form-status.is-error strong { color: #FFB4A8; }

@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .list-split .wrap, .request { grid-template-columns: 1fr; }
  .list-head { position: static; }
  .spec-head { grid-template-columns: 1fr; }
  .how-split { grid-template-columns: 1fr; }
  .how-split .pair-photo { min-height: 300px; order: -1; }
  .specialty .pair-photo { min-height: 280px; }
  .big-steps { margin: 0; max-width: none; }
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}
