:root {
  --bg: #050505;
  --bg-soft: #111111;
  --panel: rgba(18, 18, 18, 0.88);
  --panel-strong: rgba(10, 10, 10, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --muted: #cacccb;
  --accent: #ff6f20;
  --accent-deep: #ec5400;
  --danger: #bd2130;
  --success: #28a745;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 111, 32, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 111, 32, 0.08), transparent 20%),
    linear-gradient(180deg, #040404 0%, #0a0a0a 38%, #111111 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  min-height: 100vh;
  position: relative;
  padding-top: 6.5rem;
}

.page-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
}

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

main,
.site-footer {
  position: relative;
  z-index: 0;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem clamp(1rem, 3vw, 2.5rem);
  position: fixed;
  inset: 0 0 auto 0;
  isolation: isolate;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  z-index: 1000;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #090909;
  font-family: "Lato", "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.site-nav {
  display: inline-flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-self: end;
}

.account-chip {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.account-chip small {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
}

.compact-shell {
  padding-bottom: 4.5rem;
}

.narrow {
  width: min(760px, calc(100% - 2rem));
}

.hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-card {
  position: relative;
}

.hero-copy {
  padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.hero h1,
.dashboard-header h1,
.form-panel h1,
.text-panel h1 {
  margin: 0;
  font-family: "Lato", "Arial Black", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero .lead,
.form-panel .lead,
.text-panel p,
.dashboard-header p {
  color: var(--muted);
}

.hero .lead {
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 52rem;
  margin: 1.3rem 0 0;
}

.hero-actions,
.form-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled,
.button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.button:disabled:hover,
.button[disabled]:hover {
  transform: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #111111;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

.button-danger {
  background: rgba(189, 33, 48, 0.18);
  color: #ffd7dc;
  border: 1px solid rgba(189, 33, 48, 0.4);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card,
.dashboard-header,
.form-panel,
.text-panel,
.contact-panel,
.stat-panel,
.empty-panel,
.error-panel {
  padding: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.feature-list,
.copy-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.media-panel {
  min-height: 25rem;
}

.image-bleed,
.image-bleed img {
  height: 100%;
}

.image-bleed img {
  width: 100%;
  object-fit: cover;
}

.stat-panel h2,
.section-heading h2,
.form-panel h2,
.contact-panel h2,
.empty-panel h3,
.booking-card h3 {
  margin: 0;
  font-family: "Lato", "Arial Black", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.stat-panel p,
.feature-card p,
.timeline-step p,
.contact-panel p,
.empty-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.stats div {
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.stats strong,
.dashboard-metrics strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  font-family: "Lato", "Arial Black", sans-serif;
}

.section-heading {
  margin-bottom: 1.1rem;
}

.compact-heading {
  margin-bottom: 0.8rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.4rem;
}

.feature-card h3,
.timeline-step h3,
.vehicle-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline.single-column {
  grid-template-columns: 1fr;
}

.timeline-step {
  padding: 1.35rem;
}

.timeline-step span {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 111, 32, 0.14);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.compact-form {
  margin-top: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
}

label span,
.detail-list dt {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 1rem;
  padding: 0.92rem 1rem;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 111, 32, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 111, 32, 0.14);
}

.dashboard-grid {
  align-items: start;
}

.stacked-column,
.stack-list {
  display: grid;
  gap: 1rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.privacy-note,
.dashboard-metrics div {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  min-width: min(24rem, 100%);
}

.dashboard-metrics span {
  color: var(--muted);
}

.vehicle-card,
.booking-card {
  padding: 1.2rem;
}

.vehicle-head,
.booking-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.vehicle-head span {
  color: var(--muted);
}

.detail-list {
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.detail-list div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.8rem;
}

.detail-list dd {
  margin: 0;
}

.muted-box {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.6;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pending {
  background: rgba(255, 111, 32, 0.14);
  color: #ffc59d;
}

.status-confirmed {
  background: rgba(40, 167, 69, 0.18);
  color: #c7f5d3;
}

.status-in_progress {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.status-waiting_parts {
  background: rgba(255, 193, 7, 0.12);
  color: #ffe7a0;
}

.status-completed {
  background: rgba(82, 196, 26, 0.14);
  color: #d7fcbf;
}

.status-cancelled,
.status-rejected {
  background: rgba(189, 33, 48, 0.18);
  color: #ffd7dc;
}

.support-text {
  color: var(--muted);
  margin: 1rem 0 0;
  line-height: 1.7;
}

.compact-support {
  margin-top: 0.55rem;
}

.inline-support {
  margin: 0;
  align-self: center;
  max-width: 26rem;
}

.customer-match-card,
.service-log-card {
  padding: 1.2rem;
}

.code-box strong {
  display: block;
  color: var(--text);
}

.code-box code {
  display: block;
  margin-top: 0.55rem;
  color: #ffffff;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  word-break: break-word;
}

.service-vehicle-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.service-log-topline,
.service-log-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-log-topline {
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-log-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.service-log-card p {
  color: var(--text);
  line-height: 1.7;
}

.service-log-footer {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.compact-card h3 {
  font-size: 1.1rem;
}

.flash {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
}

.flash-success {
  background: rgba(40, 167, 69, 0.12);
  color: #d8f7de;
}

.flash-error {
  background: rgba(189, 33, 48, 0.14);
  color: #ffd7dc;
}

.inline-form {
  margin: 0;
}

.text-panel p,
.text-panel li {
  line-height: 1.8;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  color: var(--muted);
}

.footer-links {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .two-up,
  .card-grid,
  .timeline,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    justify-items: start;
  }

  .site-actions {
    justify-self: start;
    flex-wrap: wrap;
  }

  .dashboard-header,
  .contact-panel {
    flex-direction: column;
    align-items: start;
  }

  .dashboard-metrics,
  .stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .hero h1,
  .dashboard-header h1,
  .form-panel h1,
  .text-panel h1 {
    font-size: 2.4rem;
  }

  .site-nav {
    justify-content: start;
  }
}

.site-header {
  gap: clamp(1rem, 2vw, 2rem);
  padding: 1.1rem clamp(1rem, 2.6vw, 2rem);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
  gap: 0.65rem;
}

.brand-mark {
  width: clamp(4.5rem, 8vw, 7rem);
  height: auto;
  display: block;
  background: none;
  border-radius: 0;
}

.brand-text strong {
  font-family: "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: clamp(1.85rem, 3.3vw, 3.3rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.site-nav {
  gap: clamp(0.7rem, 1.6vw, 1.9rem);
}

.site-nav a {
  padding: 0.2rem 0.1rem;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  background: transparent;
  text-decoration: none;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-actions {
  gap: 0.55rem;
}

.site-actions .button {
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}

.showcase {
  padding-top: 0;
}

.showcase-photo-frame {
  width: 100%;
  min-height: clamp(20rem, 48vw, 32rem);
  overflow: hidden;
}

.showcase-photo {
  width: 100%;
  height: clamp(20rem, 48vw, 32rem);
  object-fit: cover;
  object-position: center center;
}

.showcase-stripe {
  height: 1.5rem;
  background: linear-gradient(90deg, var(--accent) 0%, #f58220 100%);
}

.showcase-brand-band {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: clamp(1.4rem, 4vw, 2.8rem) clamp(1rem, 4vw, 3rem);
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-summary {
  margin: 0;
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.showcase-wordmark {
  display: block;
  text-align: right;
  font-family: "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.home-intro-grid {
  align-items: stretch;
}

.home-copy-panel h1 {
  margin-bottom: 1rem;
  font-family: "Lato", "Arial Black", sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.home-copy-panel p,
.foundation-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.foundation-panel {
  padding: 1.5rem;
}

.foundation-panel h2 {
  margin-bottom: 0.6rem;
}

.contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-grid .feature-card h3 {
  margin-bottom: 0.5rem;
}

.contact-grid .feature-card a {
  color: #ffffff;
  text-decoration: none;
}

.contact-grid .feature-card a:hover {
  color: var(--accent);
}

.timeline-step {
  min-height: 100%;
}

@media (max-width: 980px) {
  body {
    padding-top: 8rem;
  }

  .showcase-brand-band,
  .site-header {
    grid-template-columns: 1fr;
  }

  .showcase-brand-band {
    align-items: start;
  }

  .showcase-wordmark {
    text-align: left;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 10rem;
  }

  .site-nav {
    justify-content: flex-start;
    row-gap: 0.8rem;
  }

  .showcase-stripe {
    height: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
