/* =============================================
   FRONTIER MITSUBISHI — GLOBAL STYLES
   ============================================= */

/* --- CSS Variables --- */
:root {
  --red:          #E4002B;
  --red-dark:     #B8001F;
  --red-light:    #FF1A42;
  --black:        #0D0D0D;
  --charcoal:     #1C1C1C;
  --dark-gray:    #2E2E2E;
  --mid-gray:     #6B6B6B;
  --light-gray:   #AFAFAF;
  --border:       #E2E2E2;
  --bg-light:     #F6F6F6;
  --bg-off-white: #FAFAFA;
  --white:        #FFFFFF;
  --text-primary: #1C1C1C;
  --text-body:    #444444;
  --text-light:   #6B6B6B;

  --font-sans:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.15);
  --shadow-xl:  0 24px 64px rgba(0,0,0,0.20);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1280px;

  --header-height: 72px;
  --header-top-height: 38px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1440px) { .container { padding: 0 48px; } }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-body); line-height: 1.7; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-red {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}
.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(228, 0, 43, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}
.btn-outline-dark:hover {
  background: var(--text-primary);
  color: var(--white);
}
.btn-lg { padding: 15px 36px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* --- Section Spacing --- */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }
.section-dark {
  background: var(--charcoal);
  color: var(--white);
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-gray { background: var(--bg-light); }

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header.left { text-align: left; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-header.left p { margin-left: 0; }

/* --- CTA Section --- */
.cta-section {
  background: var(--charcoal);
  padding: 100px 0;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,0,43,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-section p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* --- Vehicle Cards --- */
.vehicle-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.vehicle-card-image {
  position: relative;
  background: var(--bg-light);
  aspect-ratio: 16/9;
  overflow: hidden;
}
.vehicle-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.vehicle-card:hover .vehicle-card-image img { transform: scale(1.04); }
.vehicle-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.vehicle-card-badge.badge-green { background: #16A34A; }
.vehicle-card-badge.badge-blue  { background: #1D6ABF; }
.vehicle-offer-overlay-stack {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vehicle-offer-overlay {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}
.vehicle-card-body { padding: 20px 22px 22px; }
.vehicle-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.vehicle-card-subtitle {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.vehicle-card-specs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.vehicle-card-spec {
  font-size: 12px;
  color: var(--mid-gray);
  background: var(--bg-light);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.vehicle-card-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.vehicle-card-price-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 4px;
}
.vehicle-card-price-old {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  text-decoration: line-through;
}
.vehicle-card-price--offer {
  color: #b8001f;
}
.vehicle-card-price-note {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.vehicle-card-price-note--sale {
  color: #E4002B;
  font-weight: 700;
}
.vehicle-card-actions {
  display: flex;
  gap: 8px;
}
.vehicle-card-actions .btn { flex: 1; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.12);
}
.form-control::placeholder { color: var(--light-gray); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; padding-right: 36px; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* --- Page Breadcrumb --- */
.page-hero {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2a2a2a 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='1' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E") repeat;
}
.page-hero .container { position: relative; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.4; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .hero-subtitle { color: rgba(255,255,255,0.65); font-size: 17px; max-width: 560px; }
.page-hero-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(228,0,43,0.08) 100%);
  pointer-events: none;
}

/* --- Utility --- */
.text-red { color: var(--red); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Responsive Grid --- */
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .section-header { margin-bottom: 36px; }
}

/* --- Scroll reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
