/* ============================================================
   Autotech Alignment Inc. — single-page demo
   Theme: industrial auto-shop, dark carbon + amber
   ============================================================ */

:root {
  --bg: #0b0e13;
  --bg-2: #10141b;
  --bg-3: #161b24;
  --line: #232a36;
  --line-2: #2f3847;
  --text: #edf1f6;
  --muted: #97a1b1;
  --amber: #ffb400;
  --amber-2: #ffc83d;
  --amber-dark: #c68a00;
  --on-amber: #14100a;
  --danger: #e5484d;
  --success: #39b57e;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Bahnschrift", "Arial Narrow", "Franklin Gothic Medium", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- Custom scrollbar (matches palette) ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #0a0d12; }
::-webkit-scrollbar-thumb {
  background: #2a3342;
  border-radius: 8px;
  border: 2px solid #0a0d12;
}
::-webkit-scrollbar-thumb:hover { background: var(--amber); }
::-webkit-scrollbar-corner { background: #0a0d12; }

@supports (scrollbar-width: thin) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--amber) #0a0d12;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

img { display: block; max-width: 100%; }

.container { width: min(1120px, 92%); margin-inline: auto; }

section[id] { scroll-margin-top: 86px; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--amber);
  color: var(--on-amber);
  font-size: 13px;
  font-weight: 600;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  flex-wrap: wrap;
}
.topbar a { color: var(--on-amber); margin-left: 4px; }
.topbar a:hover { text-decoration: none; opacity: .8; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 14, 19, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease;
}
.brand-link:hover { opacity: .8; }
.brand-link:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.brand .logo {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--amber);
  color: var(--on-amber);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 1px;
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 12% 100%, 0 88%);
}
.brand-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.brand-sub { color: var(--muted); font-size: 12px; letter-spacing: .4px; }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 9px 12px;
  border-radius: 6px;
}
.main-nav a:hover { background: var(--bg-3); text-decoration: none; }
.main-nav a.nav-cta {
  background: var(--amber);
  color: var(--on-amber);
  margin-left: 8px;
}
.main-nav a.nav-cta:hover { background: var(--amber-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .8px;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  line-height: 1;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: var(--amber-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--amber); background: rgba(255, 180, 0, .06); }
.btn-dark { background: var(--on-amber); color: var(--amber); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 12.5px; }

/* ---------- Heroes / section heads ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(78vh, 720px);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 10%;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 14, 19, .55) 0%, rgba(11, 14, 19, .72) 100%),
    linear-gradient(90deg, rgba(11, 14, 19, .85) 0%, rgba(11, 14, 19, .35) 70%);
}
.hero-content { position: relative; padding-block: 90px; max-width: 640px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 36px; height: 2px;
  background: var(--amber);
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}
.hero .lede { color: #c6cfdb; font-size: 17.5px; max-width: 520px; margin-bottom: 26px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Ticker strip */
.ticker {
  overflow: hidden;
  background: var(--amber);
  color: var(--on-amber);
  border-block: 1px solid #e0a300;
  padding-block: 10px;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker 28s linear infinite;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ticker-track span { padding-inline: 28px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section.alt { background: var(--bg-2); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-label::after {
  content: "";
  width: 26px; height: 2px;
  background: var(--amber);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.6vw, 40px);
  text-transform: uppercase;
  letter-spacing: .4px;
  line-height: 1.08;
  margin-bottom: 14px;
}
.section-sub { color: var(--muted); max-width: 620px; margin-bottom: 40px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--line-2); }
.service-item-group { border-bottom: 1px solid var(--line); }
.service-item {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 30px 20px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.service-item:hover { background: var(--bg-3); }
.service-item .num {
  font-family: var(--font-head);
  color: var(--amber-dark);
  font-weight: 600;
  font-size: 18px;
  width: 34px;
  flex: none;
}
.service-item .body { flex: 1; min-width: 0; }
.service-item h3 {
  font-family: var(--font-head);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}
.service-item p { color: var(--muted); font-size: 14px; }
.service-item .price {
  font-family: var(--font-head);
  color: var(--amber);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Generic lists ---------- */
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: #c6cfdb; font-size: 15px; }
.check-list svg { flex: none; margin-top: 3px; color: var(--amber); }

/* ---------- Google Reviews ---------- */
.reviews-head {
  display: flex;
  gap: 34px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.rating-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 26px;
  flex-wrap: wrap;
}
.g-logo { width: 46px; height: 46px; flex: none; }
.g-logo svg { width: 46px; height: 46px; display: block; }
.rating-num {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.rating-num .of { font-size: 20px; color: var(--muted); margin-left: 2px; }
.rating-badge .stars { color: var(--amber); display: flex; gap: 2px; }
.rating-badge .stars svg { width: 18px; height: 18px; }
.rating-where { width: 100%; color: var(--muted); font-size: 13px; margin-top: 2px; }
.rating-where strong { color: var(--text); }

.reviews-cta { max-width: 420px; }
.reviews-cta p { color: var(--muted); margin-bottom: 16px; font-size: 15px; }

/* ---------- Split (about) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.split .media { position: relative; }
.split .media img {
  width: 100%;
  border: 1px solid var(--line-2);
  filter: saturate(.9) contrast(1.05);
}
.split .media .frame {
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--amber);
  pointer-events: none;
}
.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: #c6cfdb; font-size: 15px; }
.check-list svg { flex: none; margin-top: 3px; color: var(--amber); }

/* ---------- Booking modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(6, 8, 11, .78);
  backdrop-filter: blur(4px);
}
.modal.open { display: flex; }
.modal-panel {
  width: min(780px, 100%);
  margin-block: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg-2);
  z-index: 2;
}
.modal-head h2 { font-family: var(--font-head); font-size: 20px; text-transform: uppercase; letter-spacing: .6px; }
.icon-btn {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.icon-btn:hover { border-color: var(--amber); background: rgba(255, 180, 0, .08); }

.modal-body { padding: 26px 24px 30px; }

.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.steps .step {
  flex: 1;
  height: 3px;
  background: var(--line);
  position: relative;
}
.steps .step.done { background: var(--amber); }
.steps .step.active::after {
  content: "";
  position: absolute; left: 0; top: 0; height: 100%;
  width: 50%;
  background: var(--amber-2);
  animation: stepbar 1.4s ease forwards;
}
@keyframes stepbar { from { width: 0; } to { width: 50%; } }

.step-title { font-family: var(--font-head); font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 18px; }
.step-title b { color: var(--text); }

/* Service options */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-opt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.svc-opt:hover { border-color: var(--line-2); }
.svc-opt.selected { border-color: var(--amber); background: rgba(255, 180, 0, .08); }
.svc-opt .svc-name { font-family: var(--font-head); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .4px; color: var(--text); }
.svc-opt .svc-price { color: var(--amber); font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.svc-opt .svc-desc { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* Form fields */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label.fld-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
label.fld-label .req { color: var(--amber); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  padding: 12px 13px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--text);
  font: 15px var(--font-body);
  transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); }
input[type="date"] { color-scheme: dark; }
::placeholder { color: #5c6575; }

/* Slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.slot {
  padding: 12px 6px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .4px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, opacity .12s ease;
}
.slot:hover { border-color: var(--amber); }
.slot.selected { background: var(--amber); color: var(--on-amber); border-color: var(--amber); }
.slot.taken { opacity: .3; cursor: not-allowed; }
.slot.taken:hover { border-color: var(--line-2); }
.slot-note { color: var(--muted); font-size: 13px; margin-block: 12px 8px; }

/* Modal / confirm */
.confirm { text-align: center; padding-block: 12px; }
.confirm .mark {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(57, 181, 126, .12);
  color: var(--success);
  border: 2px solid var(--success);
}
.confirm h3 { font-family: var(--font-head); font-size: 24px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.confirm .ref { color: var(--amber); font-family: var(--font-head); letter-spacing: 1.5px; font-weight: 600; margin-bottom: 18px; }
.confirm table { margin: 0 auto 22px; text-align: left; border-collapse: collapse; font-size: 14.5px; }
.confirm table td { padding: 6px 16px; color: var(--muted); }
.confirm table td:last-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.confirm .add-label { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.confirm .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 16px; }

/* ---------- Location / contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: stretch; }
.info-list { display: grid; gap: 2px; }
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--bg-2);
}
.info-row:first-child { border-top: 1px solid var(--line); }
.info-row .icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255, 180, 0, .1); color: var(--amber); }
.info-row h4 { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 3px; }
.info-row p, .info-row a { font-size: 15px; color: var(--text); line-height: 1.45; }
.map-frame { border: 1px solid var(--line-2); min-height: 320px; background: var(--bg-2); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }

/* Open by day */
.hours-list { list-style: none; margin-top: 4px; display: grid; gap: 2px; }
.hours-list li { display: flex; justify-content: space-between; gap: 18px; font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--line); padding: 3px 0; }
.hours-list li span:last-child { color: var(--text); }
.hours-list li.closed span:last-child { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 34px;
}
.footer-brand { text-align: center; }
.footer-brand .line1 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .8px; font-size: 15px; margin-bottom: 6px; }
.footer-brand .line2 { color: var(--muted); font-size: 14px; }
.footer-brand .line2 a { color: var(--amber); font-weight: 600; }
.footer-brand .line2 a:hover { text-decoration: none; border-bottom: 1px solid var(--amber); }

/* ---------- Back to top ---------- */
#to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 48px; height: 48px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--bg-3);
  color: var(--amber);
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, border-color .15s ease;
}
#to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#to-top:hover { border-color: var(--amber); color: var(--on-amber); background: var(--amber); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(60px);
  z-index: 110;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--amber);
  color: var(--text);
  padding: 13px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0;
  transition: all .28s ease;
  max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-left-color: var(--danger); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .services-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .main-nav { justify-content: center; }
  .topbar-inner { justify-content: center; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
  .section { padding-block: 52px; }
  .service-item { flex-wrap: wrap; }
  .reviews-head { flex-direction: column; align-items: stretch; }
  .rating-badge { justify-content: center; text-align: center; }
  .rating-where { text-align: center; }
}