/* ================================================================
   SELL US YOUR CAR — SHARED STYLESHEET
   Source of truth: layout.html + styles.css
   All pages link to this file. Do NOT put shared styles inline.
   ================================================================ */

/* ============================================================
   CSS RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a6fb5; text-decoration: none; transition: color .2s; }
a:hover { color: #0d4a7a; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.logo img { height: 85px; width: auto; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}
.main-nav a {
  display: inline-block;
  padding: 10px 20px;
  font-weight: 600;
  font-size: .95rem;
  color: #32485D;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav a.active {
  background: #1a6fb5;
  color: #fff;
}
.lang-switch {
  font-size: .85rem;
  font-weight: 600;
  color: #1a6fb5;
  border: 2px solid #1a6fb5;
  border-radius: 6px;
  padding: 6px 12px;
  transition: background .2s, color .2s;
}
.lang-switch:hover {
  background: #1a6fb5;
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #32485D;
  margin: 5px 0;
  border-radius: 3px;
  transition: transform .3s, opacity .3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #32485D 0%, #4B6D8C 100%);
  color: #fff;
  padding: 60px 20px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/hero-check-handshake.png') center 35%/50% no-repeat;
  opacity: .35;
}
.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 28px;
  opacity: .95;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: background .2s, transform .15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #e8a020; color: #fff; }
.btn-primary:hover { background: #d08a10; color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #32485D; }
.btn-phone { background: #27ae60; color: #fff; }
.btn-phone:hover { background: #1e8c4c; color: #fff; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 60px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: #f5f7fa; }
.section-dark { background: #32485D; color: #fff; }

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
  color: #32485D;
}
.section-dark .section-title { color: #fff; }
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-dark .section-subtitle { color: rgba(255,255,255,.8); }

/* ============================================================
   HOW IT WORKS - STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}
.step {
  padding: 30px 20px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1a6fb5;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; color: #32485D; margin-bottom: 8px; }
.step p { color: #555; font-size: .95rem; }

/* ============================================================
   CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 8px; color: #32485D; }
.card-body p { color: #555; font-size: .95rem; }

/* ============================================================
   FEATURES ROW (icon-style)
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}
.feature {
  padding: 24px 16px;
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.feature h3 { font-size: 1.1rem; color: #fff; margin-bottom: 6px; }
.feature p { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ============================================================
   SPLIT CONTENT (text + image side by side)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split-text h2 { font-size: 1.8rem; color: #32485D; margin-bottom: 16px; }
.split-text p { color: #555; margin-bottom: 12px; }
.split-img { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   CONTACT GRID
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  text-align: center;
}
.contact-card-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.contact-card h3 { font-size: 1.2rem; color: #32485D; margin-bottom: 8px; }
.contact-card p { color: #555; font-size: .95rem; }
.contact-card a { font-weight: 600; }

/* ============================================================
   DIRECTIONS SECTION
   ============================================================ */
.directions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.directions-text h3 {
  font-size: 1.2rem;
  color: #32485D;
  margin-bottom: 8px;
  margin-top: 20px;
}
.directions-text h3:first-child { margin-top: 0; }
.directions-text p { color: #555; margin-bottom: 4px; }
.directions-text ol {
  color: #555;
  padding-left: 20px;
  margin-bottom: 16px;
}
.directions-text ol li { margin-bottom: 4px; }
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

/* ============================================================
   HOURS TABLE
   ============================================================ */
.hours-table {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-collapse: collapse;
}
.hours-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  font-size: .95rem;
}
.hours-table td:first-child { font-weight: 600; color: #32485D; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .closed { color: #c0392b; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #1a6fb5 0%, #4B6D8C 100%);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 24px; opacity: .9; }

/* ============================================================
   SE HABLA ESPANOL BADGE
   ============================================================ */
.espanol-badge {
  text-align: center;
  padding: 20px;
  background: #fff3cd;
}
.espanol-badge p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #856404;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1e2f3d;
  color: rgba(255,255,255,.75);
  padding: 40px 20px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 1.05rem; }
.footer-col p, .footer-col a { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.8; }
.footer-col a:hover { color: #e8a020; }
.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .header-inner { height: 72px; }
  .logo img { height: 58px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    padding: 16px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 16px; }
  .hero { padding: 50px 16px; min-height: 260px; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 40px 16px; }
  .section-title { font-size: 1.5rem; }
  .split { grid-template-columns: 1fr; }
  .split-img { order: -1; }
  .directions-grid { grid-template-columns: 1fr; }
}
