/*
 * Revly Mobile Auto Care - site styles.
 * Colors come from colors.css (the brand palette); this file is layout and components.
 * Sections with class="theme-dark" use the dark palette automatically.
 */

:root {
  --font-display: "Saira", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 76px;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(11, 20, 34, .06), 0 12px 32px rgba(11, 20, 34, .08);
}

/* ---------- Base ---------- */
*, *::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(--color-bg); color: var(--color-text);
  font: 400 1.0625rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--color-link); text-underline-offset: 3px; }
a:hover { color: var(--color-link-hover); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.1; }
p, ul, ol, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
::selection { background: var(--blue-200); color: var(--neutral-900); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--revly-blue); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Type ---------- */
.display { font-family: var(--font-display); font-weight: 800; font-style: italic; font-stretch: 80%; text-transform: uppercase; line-height: .95; letter-spacing: .005em; text-wrap: balance; }
.h1 { font-size: clamp(2.9rem, 7.4vw, 5.75rem); }
.h2 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); }
.accent { color: var(--color-icon-accent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .28em; text-transform: uppercase; color: var(--color-link);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--revly-blue); }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--color-text-muted); max-width: 60ch; }
.prose { display: grid; gap: 16px; color: var(--color-text-muted); max-width: 62ch; }
.prose strong { color: var(--color-text); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--color-text); --btn-border: var(--color-border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border: 2px solid var(--btn-border); border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 1rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { --btn-bg: var(--color-accent); --btn-fg: var(--color-on-accent); --btn-border: var(--color-accent); }
.btn-primary:hover { --btn-bg: var(--color-accent-hover); --btn-border: var(--color-accent-hover); }
.btn-outline:hover { --btn-border: var(--color-text); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--revly-midnight); --btn-border: #fff; }
.btn-light:hover { --btn-bg: var(--blue-50); --btn-border: var(--blue-50); }
.btn-ghost-light { --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .75); }
.btn-ghost-light:hover { --btn-border: #fff; --btn-bg: rgba(255, 255, 255, .1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--neutral-950); color: var(--neutral-300); font-size: .875rem; }
.topbar .container { display: flex; align-items: center; gap: 28px; min-height: 42px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { width: 16px; height: 16px; color: var(--revly-electric); }
.topbar .end { margin-left: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--revly-midnight); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .2s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.navbar { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; border-radius: 6px; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; padding: 12px 14px; border-radius: 8px; color: var(--neutral-300); text-decoration: none; font: 600 1.0625rem/1 var(--font-display); letter-spacing: .03em; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--revly-blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: none; width: 48px; height: 48px; place-items: center; border: 1.5px solid rgba(255, 255, 255, .22); border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.icon-btn:hover { border-color: #fff; color: #fff; }
.icon-btn .icon { width: 24px; height: 24px; }
.mobile-nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: 8px var(--gutter) 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
.mobile-nav a.link { display: block; padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); color: #fff; text-decoration: none; font: 700 1.375rem/1.2 var(--font-display); }
.mobile-nav a.link[aria-current="page"] { color: var(--revly-electric); }
.mobile-nav .btn-row { margin-top: 20px; display: grid; }
.mobile-nav .meta { margin-top: 20px; display: grid; gap: 8px; color: var(--neutral-300); font-size: .9375rem; }

@media (max-width: 959px) {
  :root { --header-h: 68px; }
  .topbar { display: none; }
  .nav, .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .icon-btn { display: inline-grid; }
  .brand img { height: 44px; }
}
@media (min-width: 960px) { .mobile-nav { display: none !important; } }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--revly-midnight); color: #fff; }
.hero-media { position: absolute; inset: 0 0 0 36%; z-index: 0; }
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 45%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--revly-midnight) 0%, rgba(11, 20, 34, .55) 14%, rgba(11, 20, 34, 0) 38%),
    linear-gradient(0deg, rgba(11, 20, 34, .75) 0%, rgba(11, 20, 34, 0) 32%);
}
.hero-content { display: flex; flex-direction: column; justify-content: center; gap: 24px; max-width: 590px; min-height: clamp(560px, calc(100svh - var(--header-h) - 42px), 800px); padding-block: 72px 170px; }
.hero .lead { color: var(--neutral-300); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; color: var(--neutral-300); font-size: .9375rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--revly-electric); }

/* Angled edge with blue stripes at the bottom of dark banners */
.edge { position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(56px, 8vw, 120px); pointer-events: none; }
.edge .fill { fill: var(--edge-color, #fff); }
.edge .stripe-a { fill: var(--revly-blue); }
.edge .stripe-b { fill: var(--revly-electric); }

@media (max-width: 859px) {
  .hero-media { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .hero-media img { object-position: 20% 50%; }
  .hero-media::after { background: linear-gradient(0deg, var(--revly-midnight) 0%, rgba(11, 20, 34, 0) 45%); }
  .hero-content { min-height: 0; padding-block: 4px 104px; }
}

/* ---------- Inner page banner ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--revly-midnight); color: #fff; }
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--revly-midnight) 12%, rgba(11, 20, 34, .6) 60%, rgba(11, 20, 34, .35)); }
.page-hero-content { display: grid; gap: 18px; max-width: 760px; padding-block: clamp(64px, 9vw, 112px) clamp(104px, 13vw, 160px); }
.page-hero .lead { color: var(--neutral-300); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--color-bg-alt); }
.theme-dark.section { background: var(--color-bg); }
.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; justify-items: center; text-align: center; }
.section-foot { margin-top: clamp(32px, 5vw, 48px); display: flex; justify-content: center; }

.tile { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--color-accent-subtle); color: var(--color-icon-accent); }
.tile .icon { width: 28px; height: 28px; }

/* Highlights under the hero */
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; }
.highlight { display: flex; align-items: flex-start; gap: 18px; }
.highlight h2 { font-size: 1.3125rem; margin-bottom: 6px; }
.highlight p { color: var(--color-text-muted); font-size: 1rem; }
@media (max-width: 859px) { .highlights { grid-template-columns: 1fr; gap: 24px; } }

/* Split: photo + text */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.split > .copy { display: grid; gap: 22px; }
.split.reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split.reverse > .media { order: 2; }
.photo-frame { position: relative; padding: 0 0 28px 28px; }
.photo-frame::before { content: ""; position: absolute; left: 0; bottom: 0; width: 58%; height: 72%; border-radius: var(--radius-lg); background: var(--revly-blue); }
.photo-frame img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.photo-frame.wide img { aspect-ratio: 4 / 3; }
.checklist { display: grid; gap: 12px; list-style: none; padding: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.checklist .icon { margin-top: 3px; color: var(--color-icon-accent); }
@media (max-width: 859px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > .media { order: 0; }
  .photo-frame { max-width: 520px; }
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.card:hover { border-color: var(--revly-blue); transform: translateY(-3px); }
.card h3 { font-size: 1.4375rem; }
.card p { color: var(--color-text-muted); font-size: 1rem; }
.card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; color: var(--color-text-muted); font-size: .9375rem; }
.card-price strong { color: var(--color-text); font: 800 1.625rem/1 var(--font-display); }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.card:hover .card-link .icon { transform: translateX(3px); }
@media (max-width: 959px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .cards { grid-template-columns: 1fr; } }

/* Recent work */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--neutral-900); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 20px 18px; color: #fff; font: 600 1.0625rem/1.3 var(--font-display); background: linear-gradient(0deg, rgba(11, 20, 34, .92), rgba(11, 20, 34, 0)); }
@media (max-width: 859px) { .gallery { grid-template-columns: 1fr; } .gallery img { aspect-ratio: 4 / 3; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.step { display: grid; gap: 10px; align-content: start; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.step-num { font: italic 800 3rem/1 var(--font-display); font-stretch: 80%; color: var(--color-icon-accent); }
.step h3 { font-size: 1.3125rem; }
.step p { color: var(--color-text-muted); font-size: 1rem; }
@media (max-width: 859px) { .steps { grid-template-columns: 1fr; } }

/* Call-to-action band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--revly-blue); color: #fff; }
.cta-band::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: -8%; width: 46%; background: var(--blue-600); transform: skewX(-18deg); }
.cta-band::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; right: 34%; width: 3%; background: var(--blue-600); transform: skewX(-18deg); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(48px, 7vw, 80px); }
.cta-band .copy { display: grid; gap: 10px; }
.cta-band p { max-width: 52ch; }
.cta-phone { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 800 clamp(1.75rem, 3.4vw, 2.5rem)/1 var(--font-display); }
.cta-phone:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.cta-phone .icon { width: .9em; height: .9em; }

/* ---------- Services page ---------- */
.note-box { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--color-accent-subtle); color: var(--color-on-accent-subtle); font-weight: 500; }
.note-box .icon { margin-top: 2px; }
.service-list { display: grid; gap: 18px; margin-top: 32px; }
.service { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 28px 32px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); scroll-margin-top: calc(var(--header-h) + 24px); }
.service .tile { width: 72px; height: 72px; border-radius: 18px; }
.service .tile .icon { width: 36px; height: 36px; }
.service h2 { font-size: 1.6875rem; font-weight: 700; }
.service p { margin-top: 8px; color: var(--color-text-muted); max-width: 62ch; }
.service-price { display: grid; gap: 6px; justify-items: end; text-align: right; min-width: 190px; }
.service-price .label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-subtle); }
.service-price .amount { font: italic 800 2.375rem/1 var(--font-display); font-stretch: 85%; }
.service-price .note { font-size: .9375rem; color: var(--color-text-muted); }
.service-price a { margin-top: 6px; font-weight: 600; font-size: .9375rem; }
@media (max-width: 759px) {
  .service { grid-template-columns: auto minmax(0, 1fr); gap: 18px 20px; padding: 24px; }
  .service .tile { width: 56px; height: 56px; border-radius: 14px; }
  .service .tile .icon { width: 28px; height: 28px; }
  .service-price { grid-column: 1 / -1; justify-items: start; text-align: left; padding-top: 16px; border-top: 1px solid var(--color-border); }
}
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; }
.extras li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); font-weight: 600; }
.extras .tile { width: 44px; height: 44px; border-radius: 12px; }
.extras .tile .icon { width: 22px; height: 22px; }
@media (max-width: 959px) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .extras { grid-template-columns: 1fr; } }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--color-bg); border-left: 6px solid var(--revly-blue); }
.callout .copy { display: grid; gap: 10px; max-width: 56ch; }
.callout p { color: var(--color-text-muted); }

/* ---------- About ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.value { display: grid; gap: 14px; align-content: start; padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.value h3 { font-size: 1.3125rem; }
.value p { color: var(--color-text-muted); font-size: 1rem; }
@media (max-width: 859px) { .values { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 16px; padding: 28px; border-radius: var(--radius-lg); background: var(--color-bg-alt); }
.faq-aside p { color: var(--color-text-muted); }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: 1.5rem; margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 4px; cursor: pointer; list-style: none; font: 600 1.1875rem/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-link); }
.faq summary .icon { color: var(--color-icon-accent); transition: transform .2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { display: grid; gap: 12px; max-width: 68ch; padding: 0 4px 24px; color: var(--color-text-muted); }
@media (max-width: 859px) { .faq-layout { grid-template-columns: 1fr; } .faq-aside { position: static; order: 2; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.contact-card h2 { font-size: 1.1875rem; margin-bottom: 4px; }
.contact-card p { color: var(--color-text-muted); font-size: 1rem; }
.contact-card .big { color: var(--color-text); text-decoration: none; font: 800 1.625rem/1.2 var(--font-display); }
.contact-card .big:hover { color: var(--color-link); }
.contact-card .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-weight: 600; font-size: .9375rem; }
.form-card { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow); }
.form-card > h2 { font-size: 1.875rem; }
.form-card > p { margin: 8px 0 28px; color: var(--color-text-muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.req { color: var(--red-600); }
.optional { color: var(--color-text-subtle); font-weight: 400; }
.hint { font-size: .875rem; color: var(--color-text-subtle); }
input, select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--color-border-strong); border-radius: 10px;
  background: var(--color-bg); color: var(--color-text); font: inherit; font-size: 1rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
textarea { min-height: 132px; resize: vertical; }
select { appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A566A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
input:hover, select:hover, textarea:hover { border-color: var(--neutral-400); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 4px rgba(37, 99, 255, .22); }
[aria-invalid="true"] { border-color: var(--red-600); }
.field-error { display: flex; align-items: flex-start; gap: 6px; color: var(--red-700); font-size: .875rem; font-weight: 500; }
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--color-border-strong); border-radius: 10px; cursor: pointer; font-weight: 500; }
.radio input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--revly-blue); }
.radio:has(input:checked) { border-color: var(--color-accent); background: var(--color-accent-subtle); }
.radio:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-actions p { color: var(--color-text-muted); font-size: .9375rem; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.error-summary { margin-bottom: 24px; padding: 18px 20px; border: 2px solid var(--red-600); border-radius: var(--radius); background: var(--color-danger-subtle); color: var(--color-on-danger-subtle); }
.error-summary:focus { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.error-summary h3 { font-size: 1.125rem; margin-bottom: 8px; }
.error-summary ul { padding-left: 20px; display: grid; gap: 4px; }
.error-summary a { color: inherit; font-weight: 600; }
.form-status { display: grid; gap: 12px; padding: 24px; border-radius: var(--radius); }
.form-status:focus { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.form-status.success { background: var(--color-success-subtle); color: var(--color-on-success-subtle); }
.form-status.error { background: var(--color-danger-subtle); color: var(--color-on-danger-subtle); margin-top: 20px; }
.form-status h3 { font-size: 1.375rem; }
.form-status a { color: inherit; font-weight: 700; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 859px) { .contact-grid, .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--neutral-950); color: var(--neutral-300); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 40px; padding-block: 64px 48px; }
.footer-brand img { width: 230px; height: auto; }
.footer-brand p { margin-top: 20px; max-width: 34ch; }
.site-footer h2 { margin-bottom: 16px; color: #fff; font: 600 .8125rem/1.2 var(--font-display); letter-spacing: .24em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 10px; list-style: none; padding: 0; }
.site-footer a { color: var(--neutral-300); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--revly-electric); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .875rem; color: var(--neutral-400); }
@media (max-width: 959px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
