/**
 * ARIA MOTORS LLC — DESIGN SYSTEM & STYLESHEET
 * ---------------------------------------------------------------------------
 * Mobile-first, high-contrast, accessible styling for families & first-time
 * car buyers in Clinton, MD & Prince George's County.
 *
 * TO CHANGE BRAND COLORS: Edit the 4 brand tokens right below and save.
 */

:root {
  /* === BRAND COLORS (Edit these to match your exact colors) === */
  --brand-navy: #0F2537;
  --brand-navy-deep: #091724;
  --brand-navy-soft: #1B3B54;
  --brand-accent: #C86D2D;       /* Warm Copper Gold */
  --brand-accent-hover: #AD5A20;
  --brand-accent-soft: #FDF3EC;
  --brand-teal: #0F766E;         /* Trust / Credit-Safe Accent */
  --brand-teal-soft: #ECFAF8;

  /* === NEUTRALS === */
  --bg-page: #F7F8FA;
  --bg-surface: #FFFFFF;
  --bg-muted: #EEF1F5;
  --border-subtle: #DCE2EA;
  --border-strong: #C2CCD8;

  --text-primary: #111C27;
  --text-secondary: #465567;
  --text-muted: #64748B;
  --text-on-dark: #F8FAFC;
  --text-on-dark-muted: #CBD5E1;

  /* === TYPOGRAPHY === */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* === RADII & SHADOWS === */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 37, 55, 0.06);
  --shadow-sm: 0 4px 12px rgba(15, 37, 55, 0.06);
  --shadow-md: 0 12px 28px rgba(15, 37, 55, 0.10);
  --shadow-lg: 0 22px 48px rgba(15, 37, 55, 0.16);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 76px; /* space for sticky mobile bar on small screens */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--brand-navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 2000;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(1180px, 100% - 48px);
  }
}

.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;
}

.hidden {
  display: none !important;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  color: var(--brand-navy);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--brand-accent-soft);
  color: #9A4A12;
  border: 1px solid rgba(200, 109, 45, 0.3);
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
}

.status-pill.live {
  background: var(--brand-teal-soft);
  color: #0B5D56;
  border-color: rgba(15, 118, 110, 0.3);
}

.status-pill.live .dot {
  background: var(--brand-teal);
}

/* === BUTTONS (Large 48px+ tap targets) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  text-align: center;
  line-height: 1.25;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(200, 109, 45, 0.25);
}

.btn-primary:hover {
  background: var(--brand-accent-hover);
  box-shadow: 0 6px 18px rgba(200, 109, 45, 0.34);
}

.btn-navy {
  background: var(--brand-navy);
  color: #FFFFFF;
}

.btn-navy:hover {
  background: var(--brand-navy-soft);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--brand-navy);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--brand-navy);
  background: var(--bg-muted);
}

.btn-teal {
  background: var(--brand-teal);
  color: #FFFFFF;
}

.btn-teal:hover {
  background: #0B5D56;
}

.btn-sm {
  min-height: 42px;
  padding: 8px 14px;
  font-size: 0.86rem;
}

.btn-block {
  width: 100%;
}

/* === STICKY HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  padding: 10px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--brand-accent);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 4px;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand-navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta-desktop {
  display: none;
}

/* Language Toggle Pill */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-muted);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  min-height: 44px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.lang-toggle span {
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-toggle span.active {
  background: var(--brand-navy);
  color: #FFFFFF;
}

/* Mobile Menu Button */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 12px 16px 20px;
  box-shadow: var(--shadow-md);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-drawer a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  border-radius: var(--radius-sm);
}

.mobile-nav-drawer a:hover {
  background: var(--bg-muted);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
  .header-cta-desktop {
    display: inline-flex;
  }
  .menu-toggle,
  .mobile-nav-drawer {
    display: none !important;
  }
}

/* === HERO SECTION === */
.hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  padding: 36px 0 56px;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 900px) {
  .hero-section {
    padding: 60px 0 76px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 48px;
    align-items: center;
  }
}

.hero-content h1 {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  margin-top: 16px;
  margin-bottom: 18px;
}

.hero-highlight {
  color: var(--brand-accent);
}

.hero-lede {
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 26px;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

@media (min-width: 520px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-navy);
}

.trust-chip svg {
  color: var(--brand-teal);
  flex-shrink: 0;
}

/* Hero Coming Soon / Waitlist Card */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .card {
    padding: 30px;
  }
}

.hero-waitlist-card {
  border-top: 4px solid var(--brand-accent);
  box-shadow: var(--shadow-md);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-top-row h2 {
  font-size: 1.35rem;
}

.card-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* === TRUST PILLARS BAND === */
.pillars-band {
  padding: 40px 0;
  background: var(--brand-navy);
  color: var(--text-on-dark);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.pillar-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 22px;
}

.pillar-box h3 {
  color: #FFFFFF;
  font-size: 1.08rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pillar-box svg {
  color: #F0A36A;
  flex-shrink: 0;
}

.pillar-box p {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* === SECTIONS COMMON === */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 900px) {
  .section {
    padding: 80px 0;
  }
}

.section-alt {
  background: var(--bg-surface);
}

.section-head {
  max-width: 740px;
  margin-bottom: 36px;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 12px;
}

.section-head p {
  font-size: 1.02rem;
  line-height: 1.65;
}

/* === INVENTORY SECTION (PENDING & LIVE MODES) === */
.coming-soon-panel {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 860px) {
  .coming-soon-panel {
    padding: 40px;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-teal-soft);
  color: var(--brand-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 800;
  font-size: 0.85rem;
}

.coming-soon-cta-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Live Inventory Filter Bar & Grid */
.md-pricing-banner {
  background: var(--brand-accent-soft);
  border: 1.5px solid rgba(200, 109, 45, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.md-pricing-banner strong {
  color: var(--brand-navy);
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.md-pricing-banner p {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.filter-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .filter-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .filter-bar {
    grid-template-columns: repeat(5, 1fr) auto;
    align-items: end;
  }
}

.inventory-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-navy);
}

.inventory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 680px) {
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .inventory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vehicle-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.vehicle-photo-wrap {
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
  position: relative;
  overflow: hidden;
}

.vehicle-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-body-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 37, 55, 0.88);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
}

.vehicle-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vehicle-card-title {
  font-size: 1.18rem;
  margin-bottom: 4px;
}

.vehicle-card-trim {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* MD Law § 15-311.1(e): Processing charge disclosed in >= 10pt bold right beside price */
.vehicle-price-block {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.vehicle-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.1;
}

.md-processing-disclosure {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem; /* 14.4px — exceeds Maryland's 10pt minimum */
  font-weight: 800;  /* bold as required by MD § 15-311.1(e) */
  color: var(--brand-navy);
  line-height: 1.35;
}

.md-tax-note {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.vehicle-quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.vehicle-vin-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  word-break: break-all;
}

.vehicle-card-actions {
  margin-top: auto;
}

.empty-inventory-box {
  background: var(--bg-surface);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
}

.empty-inventory-box h3 {
  margin-bottom: 8px;
}

.empty-inventory-box p {
  max-width: 52ch;
  margin: 0 auto 20px;
}

/* === ABOUT SECTION === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
  }
}

.about-story p {
  font-size: 1.03rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-story p:last-of-type {
  margin-bottom: 24px;
}

.owner-promise-card {
  background: var(--brand-navy);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
  .owner-promise-card {
    padding: 34px;
  }
}

.owner-promise-card h3 {
  color: #FFFFFF;
  font-size: 1.35rem;
  margin: 10px 0 22px;
}

.promise-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.promise-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 16px;
}

.promise-stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: #F0A36A;
  line-height: 1.15;
}

.promise-stat-label {
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
  margin-top: 6px;
  line-height: 1.35;
}

.reviews-placeholder-card {
  margin-top: 28px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* === TWO-COLUMN FORM SECTIONS (SELL/TRADE & FINANCING) === */
.split-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 920px) {
  .split-form-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 44px;
  }
}

.info-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.section-alt .info-mini-card {
  background: var(--bg-page);
}

.info-mini-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.info-mini-card p {
  font-size: 0.92rem;
}

.notice-callout {
  background: var(--brand-accent-soft);
  border: 1px solid rgba(200, 109, 45, 0.32);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #833E0E;
  font-weight: 600;
}

.credit-safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--brand-teal-soft);
  border: 1px solid rgba(15, 118, 110, 0.3);
  color: #0B5D56;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* === FORMS === */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 1rem; /* 16px prevents iOS Safari auto-zoom on focus */
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-textarea {
  min-height: 96px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(200, 109, 45, 0.18);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.form-hint a {
  color: var(--brand-accent);
  text-decoration: underline;
  font-weight: 600;
}

/* File Upload Box */
.file-upload-box {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--bg-page);
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.file-upload-box:hover {
  border-color: var(--brand-accent);
}

.file-upload-box input[type="file"] {
  width: 100%;
  font-size: 0.92rem;
  cursor: pointer;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.photo-preview-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.photo-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === CONTACT SECTION === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.contact-details-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.contact-info-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-top: 2px;
}

.contact-info-val a:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

.map-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .map-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.map-embed-wrap {
  width: 100%;
  height: 270px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-muted);
}

.map-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.area-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--brand-navy);
}

/* === FOOTER === */
.site-footer {
  background: var(--brand-navy-deep);
  color: var(--text-on-dark-muted);
  padding: 56px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  }
}

.footer-brand .brand-title {
  color: #FFFFFF;
}

.footer-brand p {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 34ch;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--text-on-dark-muted);
}

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.footer-license-line {
  color: #FFFFFF;
  font-weight: 700;
}

.footer-pending-note {
  color: #F0A36A;
  font-size: 0.84rem;
}

/* === STICKY MOBILE ACTION BAR === */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 12px;
  box-shadow: 0 -4px 16px rgba(15, 37, 55, 0.08);
}

.mobile-sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
}

.mobile-sticky-grid .btn {
  min-height: 46px;
  padding: 8px 10px;
  font-size: 0.84rem;
}

@media (min-width: 769px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* === MODALS (VEHICLE DETAIL, TEST DRIVE, CONFIRMATION) === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(9, 23, 36, 0.72);
  backdrop-filter: blur(4px);
  padding: 16px;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: 28px 22px;
  position: relative;
  box-shadow: var(--shadow-lg);
  margin: auto;
}

@media (min-width: 640px) {
  .modal-dialog {
    padding: 34px;
  }
}

.modal-dialog.modal-wide {
  max-width: 920px;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--brand-navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--bg-muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 16px;
}

@media (min-width: 820px) {
  .detail-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
}

.detail-main-photo {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
}

.detail-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.detail-thumb-btn {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--bg-muted);
}

.detail-thumb-btn.active {
  border-color: var(--brand-accent);
}

.detail-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.detail-spec-box {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.detail-spec-box span {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-spec-box strong {
  font-size: 0.92rem;
  color: var(--brand-navy);
}

.vin-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 16px;
}

.vin-copy-row code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  word-break: break-all;
}

.confirm-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--brand-teal-soft);
  border: 2px solid var(--brand-teal);
  color: var(--brand-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
}

/* === PRIVACY PAGE SPECIFIC === */
.privacy-main {
  padding: 40px 0 72px;
}

.privacy-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 640px) {
  .privacy-article {
    padding: 42px;
  }
}

.privacy-article h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.privacy-article ul {
  padding-left: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-secondary);
}
