/* ============ Miles Mechanic design system ============ */
:root {
  --navy-950: #0a1420;
  --navy-900: #0e1b2c;
  --navy-800: #16283f;
  --navy-700: #1f3450;
  --slate-600: #46586e;
  --slate-500: #5d7089;
  --slate-300: #b6c2d1;
  --slate-200: #d7dfe8;
  --slate-100: #eef2f6;
  --slate-50: #f7f9fb;
  --orange-600: #ea6a12;
  --orange-500: #f97b1c;
  --orange-100: #fef911;
  --orange-tint: #fff3e8;
  --green-600: #1a8a4a;
  --red-600: #cc3324;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgb(10 20 32 / .08);
  --shadow-md: 0 4px 16px rgb(10 20 32 / .10);
  --shadow-lg: 0 12px 40px rgb(10 20 32 / .16);
  --radius: 12px;
  --radius-lg: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-600); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section-alt { background: var(--slate-50); }
.section-dark { background: var(--navy-900); color: var(--slate-200); }
.section-dark h2 { color: var(--white); }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange-600); margin-bottom: .6rem;
}
.section-dark .kicker { color: var(--orange-500); }
.lead { font-size: 1.125rem; color: var(--slate-600); max-width: 46rem; }
.section-dark .lead { color: var(--slate-300); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(14 27 44 / .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { color: var(--white); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--orange-500); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate-200); text-decoration: none; font-weight: 600; font-size: .95rem; padding-block: .5rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  font-size: 1.6rem; padding: .5rem .75rem; cursor: pointer;
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: .5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgb(255 255 255 / .08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding-block: .8rem; font-size: 1.05rem; }
  .nav-links .btn { margin-top: .6rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: 0 4px 14px rgb(249 123 28 / .35); }
.btn-primary:hover { background: var(--orange-600); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgb(255 255 255 / .35); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--navy-900); color: var(--white); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.08rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background: var(--navy-950);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgb(10 20 32 / .93) 15%, rgb(10 20 32 / .72) 48%, rgb(10 20 32 / .28) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(4rem, 12vw, 8.5rem); max-width: 44rem; }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--slate-200); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.1rem 1.8rem; margin-top: 2rem; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .95rem; color: var(--slate-200); }
.hero-points svg { width: 20px; height: 20px; color: var(--orange-500); flex: none; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--navy-800); color: var(--slate-200); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; padding-block: 1.4rem; }
.trust-item { display: flex; align-items: center; gap: .7rem; font-size: .92rem; font-weight: 600; }
.trust-item svg { width: 26px; height: 26px; color: var(--orange-500); flex: none; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--slate-200);
  transition: box-shadow .15s ease, transform .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-img { aspect-ratio: 3 / 2; background: var(--navy-800); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--slate-600); font-size: .95rem; margin: 0 0 .8rem; flex: 1; }
.card-price { font-weight: 700; color: var(--navy-900); font-size: .95rem; }
.card-price small { color: var(--slate-500); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; counter-reset: step; }
.step { position: relative; padding: 1.6rem 1.4rem 1.4rem; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm); }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--orange-500); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; margin-bottom: .9rem;
}
.step p { color: var(--slate-600); font-size: .95rem; margin: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm); background: var(--white); }
table.pricing { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 540px; }
table.pricing th, table.pricing td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--slate-100); }
table.pricing th { background: var(--navy-900); color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
table.pricing tr:last-child td { border-bottom: 0; }
table.pricing td.range { font-weight: 700; white-space: nowrap; }
table.pricing tr:hover td { background: var(--slate-50); }

/* ---------- Accordion ---------- */
.faq-list { display: grid; gap: .8rem; max-width: 50rem; }
details.faq {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
details.faq summary {
  cursor: pointer; font-weight: 700; padding: 1.05rem 1.3rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--orange-600); font-weight: 600; transition: transform .15s; flex: none; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--slate-600); }

/* ---------- Badges / misc ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--orange-tint); color: var(--orange-600);
  font-size: .8rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px;
}
.check-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .55rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; }
.check-list svg { width: 21px; height: 21px; color: var(--green-600); flex: none; margin-top: .15rem; }
.check-list.x svg { color: var(--red-600); }
.notice {
  border-left: 4px solid var(--orange-500); background: var(--orange-tint);
  padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--navy-800); font-size: .95rem;
}

.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 3/2; object-fit: cover; background: var(--navy-800); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--orange-600), var(--orange-500)); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .btn-dark { box-shadow: var(--shadow-md); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: clamp(2.5rem, 6vw, 4rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--slate-300); font-size: .92rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-block: 3rem 2rem; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--slate-300); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .08); padding-block: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .85rem; color: var(--slate-500); }

/* ---------- Forms ---------- */
.field { margin-block-end: 1.35rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.field .hint { display: block; font-size: .85rem; color: var(--slate-500); margin-top: .35rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field input[type="date"], .field select, .field textarea {
  width: 100%; font-size: 1rem; font-family: inherit;
  padding: .8rem .95rem; min-height: 48px;
  border: 1.5px solid var(--slate-300); border-radius: 10px; background: var(--white);
  color: var(--navy-900);
}
.field textarea { min-height: 110px; resize: vertical; }
.field :is(input, select, textarea):focus-visible { outline: 3px solid rgb(249 123 28 / .45); outline-offset: 1px; border-color: var(--orange-500); }
.field :is(input, textarea):user-invalid { border-color: var(--red-600); }
.field-error { color: var(--red-600); font-size: .85rem; font-weight: 600; margin-top: .35rem; display: none; }
.field.invalid .field-error { display: block; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row-3 { grid-template-columns: 1fr 1fr 1fr; } }

/* choice buttons (radio cards) — clean rounded rectangles */
.choice-grid { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.choice-grid.wide { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.choice input { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.choice span {
  display: flex; align-items: center; gap: .6rem;
  border: 1.5px solid var(--slate-200); border-radius: 12px; padding: .85rem 1rem;
  font-weight: 600; font-size: .93rem; cursor: pointer; background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color .12s, background .12s, transform .12s;
  min-height: 52px; line-height: 1.3; color: var(--navy-800);
}
.choice span::after {
  content: ""; width: 20px; height: 20px; flex: none; margin-left: auto;
  border: 2px solid var(--slate-200); border-radius: 50%;
  transition: border-color .12s, background .12s;
}
.choice span:hover { border-color: var(--slate-500); transform: translateY(-1px); }
.choice input:checked + span {
  border-color: var(--orange-500); background: var(--orange-tint); color: var(--navy-900);
  box-shadow: 0 0 0 1px var(--orange-500), var(--shadow-sm);
}
.choice input:checked + span::after {
  border-color: var(--orange-500); background: var(--orange-500);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>');
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.choice input:focus-visible + span { outline: 3px solid rgb(249 123 28 / .45); outline-offset: 1px; }

/* ---------- Wizard ---------- */
.wizard { max-width: 46rem; margin-inline: auto; }
.wizard-progress { display: flex; gap: .4rem; margin-bottom: 2rem; }
.wizard-progress span { height: 6px; flex: 1; border-radius: 3px; background: var(--slate-200); }
.wizard-progress span.done { background: var(--orange-500); }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.wizard h2 { margin-bottom: .3rem; }
.wizard .step-sub { color: var(--slate-600); margin: 0 0 1.6rem; }

/* photo upload */
.photo-drop {
  border: 2px dashed var(--slate-300); border-radius: var(--radius);
  padding: 1.6rem; text-align: center; color: var(--slate-600); cursor: pointer;
  background: var(--slate-50); transition: border-color .12s;
}
.photo-drop:hover, .photo-drop.drag { border-color: var(--orange-500); }
.photo-previews { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.photo-previews .ph { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--slate-200); }
.photo-previews img { width: 100%; height: 100%; object-fit: cover; }
.photo-previews .ph .st { position: absolute; inset: auto 0 0; font-size: .65rem; text-align: center; background: rgb(14 27 44 / .75); color: #fff; padding: 2px; }
.photo-previews .ph button { position: absolute; top: 2px; right: 2px; background: rgb(14 27 44 / .8); color: #fff; border: 0; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: .8rem; line-height: 1; }

/* review summary */
.review-box { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.review-box dl { margin: 0; display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: .45rem 1rem; font-size: .93rem; }
.review-box dt { font-weight: 700; color: var(--slate-600); }
.review-box dd { margin: 0; }

.form-status { margin-top: 1rem; font-weight: 600; display: none; }
.form-status.err { display: block; color: var(--red-600); }
.form-status.ok { display: block; color: var(--green-600); }

.success-panel { text-align: center; padding: 3rem 1rem; }
.success-panel .big { font-size: 3.2rem; }

/* utility */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.visually-hidden { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; white-space: nowrap; }
