/* Mobile-first · Landing page matching mockup */

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --text-primary: #FFFFFF;
  --text-secondary: #A8A8A8;
  --accent: #F59123;
  --accent-hover: #FFA33D;
  --accent-ink: #141414;
  --border: #2a2a2a;
  --radius-sm: 10px;
  --radius-btn: 12px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-pad: max(1.25rem, env(safe-area-inset-left));
  --page-pad-r: max(1.25rem, env(safe-area-inset-right));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink, #141414);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
}

.container {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad-r);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 3.25rem;
  width: auto;
  max-width: 15.75rem;
  object-fit: contain;
}

.brand-logo--sm {
  height: 2.5rem;
  max-width: 12rem;
}

.brand-logo--auth {
  height: 4.15rem;
  max-width: 18rem;
  margin-bottom: 1.25rem;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.brand-wordmark--sm {
  font-size: 0.9375rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), background 0.2s, opacity 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink, #141414);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-sm {
  width: auto;
  min-height: 2.5rem;
  padding: 0 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  min-height: 3.5rem;
  font-size: 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding: 0.5rem var(--page-pad-r) 0.5rem var(--page-pad);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-signin {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color 0.2s;
}

.header-signin:hover {
  color: var(--accent);
}

.header-find {
  display: none;
}

@media (min-width: 768px) {
  .header-find {
    display: inline-flex;
  }

  .site-nav a[href="/auth/customer/"] {
    display: none;
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
}

.menu-bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--text-primary);
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 0.75rem var(--page-pad) 1rem;
  background: rgba(0, 0, 0, 0.98);
  border-bottom: 1px solid var(--border);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.site-nav a:active,
.site-nav a:hover {
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .header-inner {
    max-width: 56rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    padding: 0;
    background: none;
    border: none;
    justify-content: center;
    gap: 1.75rem;
  }

  .site-nav a {
    min-height: auto;
    font-size: 0.875rem;
  }
}

/* Hero — text first, full-bleed photo below (matches mockup) */
.hero {
  padding-top: 1.75rem;
}

.hero-copy {
  animation: rise-in 0.7s var(--ease) both;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 12vw, 4.25rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-lead {
  margin-top: 1rem;
  max-width: 22rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-primary);
  opacity: 0.92;
}

.hero-cta {
  margin-top: 1.5rem;
  animation: rise-in 0.7s var(--ease) 0.12s both;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vehicle-picker {
  margin-top: 1.5rem;
  max-width: 24rem;
  animation: rise-in 0.7s var(--ease) 0.12s both;
}

.vehicle-picker-question {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.vehicle-picker-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.vehicle-field {
  display: block;
  margin: 0;
}

.vehicle-field select {
  width: 100%;
  min-height: 3rem;
  padding: 0 2.5rem 0 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background-color: var(--bg-secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23F59123' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.vehicle-field select:focus {
  outline: 2px solid rgba(245, 145, 35, 0.35);
  outline-offset: 1px;
  border-color: rgba(245, 145, 35, 0.55);
}

.vehicle-field select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.vehicle-picker .hero-cta {
  width: 100%;
  margin-top: 0.85rem;
}

.vehicle-picker .hero-cta[hidden] {
  display: none !important;
}

@media (min-width: 480px) {
  .vehicle-picker-fields {
    grid-template-columns: 5.25rem 1fr 1fr;
  }

  .vehicle-picker-fields .vehicle-field:nth-child(n + 4) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .vehicle-picker {
    max-width: 36rem;
  }

  .vehicle-picker-fields {
    grid-template-columns: 5.25rem 1fr 1fr 1fr 1fr;
  }

  .vehicle-picker-fields .vehicle-field:nth-child(n + 4) {
    grid-column: auto;
  }

  .vehicle-picker .hero-cta {
    width: auto;
    min-width: 16rem;
  }
}

.hero-photo {
  margin-top: 1.75rem;
  width: 100%;
  overflow: hidden;
  animation: fade-scale 1s var(--ease) 0.2s both;
}

.hero-photo img {
  width: 100%;
  height: clamp(14rem, 52vw, 28rem);
  object-fit: cover;
  object-position: center 55%;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero .container {
    max-width: 56rem;
  }

  .hero-title {
    font-size: clamp(3.5rem, 7vw, 5rem);
  }

  .hero-lead {
    font-size: 1.125rem;
    max-width: 28rem;
  }

  .hero-cta {
    width: auto;
    min-width: 16rem;
  }

  .hero-photo img {
    height: clamp(22rem, 40vw, 32rem);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-scale {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Trust strip */
.trust-strip {
  border-block: 1px solid var(--border);
  animation: rise-in 0.7s var(--ease) 0.28s both;
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.125rem 0;
}

.trust-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 0.5rem 0.25rem;
  position: relative;
}

.trust-chip:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--border);
}

.trust-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--text-primary);
}

.trust-chip span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

@media (min-width: 480px) {
  .trust-chip span {
    font-size: 0.75rem;
  }

  .trust-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
}

@media (min-width: 768px) {
  .trust-strip .container {
    max-width: 56rem;
  }

  .trust-strip-inner {
    padding: 1.5rem 0;
  }

  .trust-chip {
    flex-direction: row;
    gap: 0.75rem;
  }

  .trust-chip span {
    font-size: 0.875rem;
  }
}

/* Popular services */
.popular-services {
  padding: 2rem 0 1rem;
}

.popular-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.service-rows {
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.service-row:active,
.service-row:hover {
  color: var(--accent);
}

.service-row-icon {
  display: flex;
  width: 1.75rem;
  height: 1.75rem;
}

.service-row-icon svg {
  width: 100%;
  height: 100%;
}

.service-row-label {
  font-size: 1.0625rem;
  font-weight: 500;
}

.service-row-chevron {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-secondary);
  font-weight: 300;
}

.service-row:hover .service-row-chevron {
  color: var(--accent);
}

@media (min-width: 768px) {
  .popular-services .container {
    max-width: 56rem;
  }

  .popular-services {
    padding: 2.5rem 0 1.5rem;
  }

  .service-row {
    min-height: 4.5rem;
  }

  .service-row-label {
    font-size: 1.125rem;
  }
}

/* Provider invite */
.provider-invite {
  padding: 2rem 0 3rem;
  text-align: center;
}

.provider-invite p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.provider-invite a {
  color: var(--accent);
  font-weight: 600;
  transition: opacity 0.2s;
}

.provider-invite a:hover {
  opacity: 0.85;
}

@media (min-width: 768px) {
  .provider-invite {
    padding: 2.5rem 0 4rem;
  }

  .provider-invite p {
    font-size: 1rem;
  }
}

/* Footer */
.footer {
  padding: 2rem 0;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

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

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-meta {
  font-size: 0.75rem;
  opacity: 0.7;
}

@media (min-width: 768px) {
  .footer .container {
    max-width: 56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-cta,
  .hero-photo,
  .trust-strip {
    animation: none;
  }

  .btn:active {
    transform: none;
  }
}
