/* ============================================================
   CarlosMorenoAuto.com — Ford-Inspired Design System
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Ford-inspired palette */
  --ford-blue: #003478;
  --ford-blue-deep: #000B29;
  --ford-blue-light: #0056A0;
  --white: #FFFFFF;
  --off-white: #F7F7F7;
  --light-gray: #E0E0E0;
  --charcoal: #121212;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --text-dark: #111111;
  --wa-green: #25D366;
  --overlay-dark: rgba(0, 11, 41, 0.85);

  /* Typography */
  --font-display: 'Roboto Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radii (Ford uses mostly sharp corners) */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --radius-xl: 8px;
  --radius-full: 999px;

  /* Shadows (Subtle, flat) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 32px rgba(0,0,0,0.15);
  --shadow-card: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-normal: 0.25s var(--ease-out);
  --transition-slow: 0.4s var(--ease-out);
}

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

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-blue { color: var(--ford-blue); }
.text-white { color: var(--white); }

/* ---------- Section Layout ---------- */
.section {
  padding: var(--space-3xl) var(--space-md);
  position: relative;
}
.section__container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.section--white { background: var(--white); }
.section--light { background: var(--off-white); }
.section--dark {
  background: var(--ford-blue-deep);
  color: var(--white);
}
.section--charcoal {
  background: var(--charcoal);
  color: var(--white);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}
.section-header p {
  font-size: 16px;
  color: var(--medium-gray);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}
.section--dark .section-header p,
.section--charcoal .section-header p {
  color: rgba(255,255,255,0.7);
}

/* Accent line (Ford blue) */
.accent-line {
  width: 60px;
  height: 4px;
  background: var(--ford-blue);
  margin: 0 auto var(--space-lg);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 20, 50, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition-normal);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px var(--space-2xl);
}
.header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__logo {
  height: 28px;
  width: auto;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-width 0.4s ease;
}
.header.scrolled .header__logo {
  opacity: 1;
  max-width: 200px;
}
.header__divider {
  color: rgba(255,255,255,0.3);
  font-size: 18px;
  font-weight: 300;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-width 0.4s ease;
}
.header.scrolled .header__divider {
  opacity: 1;
  max-width: 20px;
}
.header__badge {
  height: 18px;
  width: auto;
  opacity: 0.7;
}
.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__lang {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}
.header__lang-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: transparent;
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}
.header__lang-btn.active {
  background: var(--white);
  color: var(--ford-blue);
  border-radius: var(--radius-full);
}
.header__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--ford-blue);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition-fast);
}
.header__phone:hover { background: var(--ford-blue-deep); }
.header__phone-icon { font-size: 15px; }

/* ============================================================
   HERO (FULL-WIDTH)
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding-top: 60px;
  background: var(--ford-blue-deep);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
@media (min-width: 768px) {
  .hero__bg {
    left: auto;
    right: 0;
    width: 60%; /* Extending slightly left for a longer, softer fade */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 15%, rgba(0,0,0,0.6) 35%, black 50%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 15%, rgba(0,0,0,0.6) 35%, black 50%, black 100%);
  }
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; 
  transform: scale(1.10);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(0, 11, 41, 0.95) 0%,
    rgba(0, 11, 41, 0.9) 25%,
    rgba(0, 11, 41, 0.4) 38%,
    rgba(0, 11, 41, 0) 45% /* Smoothly ends to blend with the soft mask */
  );
}
.hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-2xl);
}
.hero__content {
  max-width: 600px;
}
.hero__signature {
  display: block;
  width: clamp(280px, 40vw, 480px);
  height: auto;
  margin-bottom: var(--space-lg);
  filter: brightness(0) invert(1);
}
.hero__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--white);
  padding-bottom: 4px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
}
.hero__title span { color: var(--light-gray); }

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--light-gray);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: var(--space-xl);
}
.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.hero__contact {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero "Explorar Inventario" — blue filled, outline on hover */
.btn--hero-blue {
  background: var(--ford-blue);
  color: var(--white);
  border-color: var(--white);
}
.btn--hero-blue:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Hero contact pill buttons */
.btn--hero-call {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 13px;
}
.btn--hero-call:hover {
  background: var(--white);
  color: var(--ford-blue-deep);
}
.btn--hero-wa {
  background: var(--wa-green);
  color: var(--white);
  border-color: var(--wa-green);
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 13px;
}
.btn--hero-wa:hover {
  background: #1ebe5b;
  border-color: #1ebe5b;
}

/* ============================================================
   BUTTONS (FORD STYLE)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--ford-blue-deep);
  color: var(--white);
  border-color: var(--ford-blue-deep);
}
.btn--primary:hover {
  background: var(--ford-blue);
  border-color: var(--ford-blue);
  box-shadow: var(--shadow-md);
}
.btn--secondary {
  background: transparent;
  color: var(--ford-blue-deep);
  border-color: var(--ford-blue-deep);
}
.btn--secondary:hover {
  background: var(--ford-blue-deep);
  color: var(--white);
}
.btn--submit {
  background: var(--ford-blue);
  color: var(--white);
  width: 100%;
}
.btn--submit:hover {
  background: var(--ford-blue-deep);
}
.btn--white-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--white-outline:hover {
  background: var(--white);
  color: var(--ford-blue-deep);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ford-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}
.btn-link:hover { color: var(--ford-blue-deep); text-decoration: underline; }

/* ============================================================
   SECTION 2 — QUICK LEAD CAPTURE
   ============================================================ */
.lead-section {
  padding: var(--space-3xl) var(--space-md);
  background: var(--white);
}
.lead-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--light-gray);
}
.lead-card h2 {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--ford-blue-deep);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}
.lead-card > p {
  text-align: center;
  color: var(--medium-gray);
  font-size: 15px;
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

/* Form Styles */
.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ford-blue);
  box-shadow: 0 0 0 3px rgba(0, 52, 120, 0.1);
}
.form-group input::placeholder { color: #B0B0B0; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23666'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ============================================================
   SECTION 3 — VEHICLE INTENT
   ============================================================ */
.intent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 720px;
  margin: 0 auto;
  padding-top: 70px; /* Space for overhanging images from vehicle-card */
}
.intent-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  cursor: pointer;
}
.intent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--ford-blue);
}
.intent-card__icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}
.intent-card__title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ford-blue-deep);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}
.intent-card__desc {
  font-size: 14px;
  color: var(--medium-gray);
  line-height: 1.5;
  margin-bottom: var(--space-lg);
}

/* ============================================================
   SECTION 4 — VEHICLE CARDS (NEW FORD)
   ============================================================ */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding-top: 50px; /* Space for overhanging images */
}
.vehicle-card {
  background: var(--white);
  border-radius: 4px;
  overflow: visible;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.vehicle-card__img {
  background: transparent;
  padding: 0 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 180px; /* Fixed height to ensure all images align uniformly */
  margin-top: -70px; /* Adjusted to accommodate larger images popping out */
  position: relative;
  z-index: 2;
}
.vehicle-card__img img {
  height: 140px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform var(--transition-normal);
}
.vehicle-card:hover .vehicle-card__img img {
  transform: scale(1.05); /* Adjusted from 1.03 for a slightly more noticeable effect */
}
.vehicle-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.vehicle-card__name {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.vehicle-card__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
}
.vehicle-card__features {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}
.vehicle-card__features li {
  font-size: 13px;
  color: var(--medium-gray);
  line-height: 1.5;
  margin-bottom: 8px;
}
.vehicle-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 10px;
}
.vehicle-card__actions .btn {
  width: auto;
}
.vehicle-card__actions .btn--primary.pill {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}
.vehicle-card__actions .btn--link {
  color: var(--ford-blue);
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  border: none;
  box-shadow: none;
}
.vehicle-card__actions .btn--link:hover {
  text-decoration: underline;
}

/* ============================================================
   SECTION 5 — USED VEHICLES
   ============================================================ */
.used-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.used-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}
.used-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.used-card__icon {
  font-size: 40px;
  margin-bottom: var(--space-md);
}
.used-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ford-blue-deep);
  letter-spacing: 0.02em;
}
.used-cta { text-align: center; margin-top: var(--space-2xl); }

/* ============================================================
   SECTION 6 — TRUST / CARLOS BIO
   ============================================================ */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.bio__photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bio__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}
.bio__content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  color: var(--ford-blue-deep);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-md);
}
.bio__content h2 span { color: var(--gold); }
.bio__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--medium-gray);
  margin-bottom: var(--space-lg);
}
.bio__checks {
  margin-bottom: var(--space-xl);
}
.bio__checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
}

/* ============================================================
   SECTION 7 — CREDIT RELIEF
   ============================================================ */
.credit-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}
.credit-content h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}
.credit-content h2 span { color: var(--gold); }
.credit-subtitle {
  font-size: 18px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: var(--space-xl);
}
.credit-checks {
  text-align: left;
  width: fit-content;
  margin: 0 auto var(--space-xl);
}
.credit-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

/* ============================================================
   SECTION 8 — SOCIAL PROOF / TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.testimonial-card__stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}
.testimonial-card__text {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: var(--space-md);
}
.testimonial-card__author {
  font-size: 14px;
  font-weight: 700;
  color: var(--ford-blue-deep);
}
.testimonial-card__role {
  font-size: 12px;
  color: var(--medium-gray);
}

/* ============================================================
   CLIENTS PHOTO STRIP — Infinite scroll
   ============================================================ */
.clients-strip {
  width: 100%;
  overflow: hidden;
  background: var(--off-white);
  padding: var(--space-lg) 0;
}
.clients-strip__track {
  display: flex;
  gap: var(--space-md);
  width: max-content;
  animation: strip-scroll 35s linear infinite;
}
.clients-strip__track img {
  height: 200px;
  width: auto;
  border-radius: var(--radius-xl);
  object-fit: cover;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}
@keyframes strip-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .clients-strip__track img {
    height: 140px;
  }
  .clients-strip__track {
    animation-duration: 25s;
  }
}

/* ============================================================
   SECTION 9 — FINAL CTA
   ============================================================ */
.final-cta {
  text-align: center;
  padding: var(--space-2xl) 0;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}
.final-cta h2 span { color: var(--gold); }
.final-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-xl);
}
.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}
.footer__logo {
  height: 28px;
  margin: 0 auto var(--space-md);
  opacity: 0.8;
}
.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer__links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--white); }
.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   STICKY MOBILE FOOTER
   ============================================================ */
.sticky-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--white);
  border-top: 1px solid var(--light-gray);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: 8px 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.sticky-footer__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.sticky-footer__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  transition: all var(--transition-fast);
}
.sticky-footer__btn--call {
  background: var(--off-white);
  color: var(--ford-blue-deep);
}
.sticky-footer__btn--appointment {
  background: var(--ford-blue);
  color: var(--white);
}
.sticky-footer__btn--wa {
  background: var(--off-white);
  color: var(--ford-blue-deep);
}
.sticky-footer__icon { font-size: 22px; }

/* ============================================================
   LEAD GATE POPUP
   ============================================================ */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--overlay-blue);
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  animation: fadeIn 0.25s var(--ease-out);
}
.popup-overlay.active { display: flex; }

.popup-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 20, 50, 0.35);
  animation: slideUp 0.35s var(--ease-out);
}
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--medium-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}
.popup-close:hover {
  background: var(--light-gray);
  color: var(--text-dark);
}
.popup-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ford-blue), var(--ford-blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto var(--space-md);
}
.popup-card h2 {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ford-blue-deep);
  text-align: center;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}
.popup-card > p {
  text-align: center;
  color: var(--medium-gray);
  font-size: 14px;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-wa);
  animation: pulse 2s ease-in-out infinite;
  margin-right: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
  .used-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-grid { gap: var(--space-xl); }
}

/* Mobile */
@media (max-width: 768px) {
  .section { padding: var(--space-2xl) var(--space-md); }

  .header__phone span:last-child { display: none; }
  .header__badge { height: 12px; }
  .header__inner { padding: 10px 0 10px 56px; }
  .header__right { padding-right: var(--space-md); }

  .header.scrolled .header__logo {
    position: fixed;
    top: 118px;
    left: 0;
    width: 495px;
    max-width: none;
    height: auto;
    z-index: 101;
    filter: brightness(0) invert(1);
  }
  .header__divider { display: none; }

  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 60px 0 0;
    position: relative;
  }
  .hero__bg {
    position: relative;
    height: 350px;
    flex-shrink: 0;
  }
  .hero__bg img {
    object-position: center 15%;
    transform: scale(1);
  }
  .hero__overlay {
    display: none;
  }
  .hero__container {
    background: var(--ford-blue-deep);
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__signature {
    width: clamp(200px, 60vw, 280px);
    margin-bottom: var(--space-md);
    margin-top: -50px;
    position: relative;
    z-index: 4;
  }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__checks { flex-direction: column; gap: 6px; }

  .intent-grid { grid-template-columns: 1fr; max-width: 400px; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .used-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .bio-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bio__photo {
    max-width: 320px;
    margin: 0 auto;
  }
  .bio__checks li { justify-content: center; }

  .lead-card { padding: var(--space-xl) var(--space-md); }

  .sticky-footer { display: block; }
  body { padding-bottom: 80px; }

  .final-cta__actions { flex-direction: column; align-items: center; }
  .final-cta__actions .btn { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
  .used-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 40px; }
}
