/* =============================================
   A1 AUTOMOTIVE GROUP - DEMO SITE STYLESHEET
   Color Palette: Black #111111, Red #CC0000, White #FFFFFF
   Accent: Light Gray #F5F5F5, Dark Gray #444444
   ============================================= */

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

:root {
  --black: #111111;
  --red: #CC0000;
  --red-dark: #990000;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-mid: #DDDDDD;
  --gray-dark: #444444;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.18);
  --radius: 8px;
  --transition: all 0.22s ease;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--gray-dark); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-black {
  background: var(--black);
  color: var(--white);
}
.btn-black:hover { background: #333; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.navbar-brand .brand-a1 {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -1px;
}
.navbar-brand .brand-sub {
  font-size: 0.72rem;
  color: var(--gray-mid);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.navbar-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.navbar-links a {
  color: var(--gray-mid);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--white);
  background: rgba(204,0,0,0.15);
}
.navbar-links .nav-cta {
  background: var(--red);
  color: var(--white);
  margin-left: 8px;
  padding: 9px 20px;
}
.navbar-links .nav-cta:hover { background: var(--red-dark); }
.navbar-espanol {
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 700;
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 3px 8px;
  margin-left: 8px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 26px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- SECTION WRAPPERS ---- */
.section { padding: 72px 24px; }
.section-gray { background: var(--gray-light); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 { color: var(--black); margin-bottom: 10px; }
.section-title p { color: var(--gray-dark); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.red-bar {
  width: 56px; height: 4px;
  background: var(--red);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--black) 60%, #2a0000 100%);
  color: var(--white);
  padding: 96px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: rgba(204,0,0,0.12);
  border-radius: 50%;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 span { color: var(--red); }
.hero p { color: #ccc; font-size: 1.12rem; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .stat-num { font-size: 2.2rem; font-weight: 900; color: var(--red); }
.hero-stat .stat-label { font-size: 0.85rem; color: #aaa; margin-top: 2px; }

/* ---- BUSINESS CARDS (HOME) ---- */
.biz-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.biz-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  text-align: center;
  border-top: 4px solid var(--red);
  transition: var(--transition);
  cursor: pointer;
}
.biz-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.biz-card-icon {
  width: 64px; height: 64px;
  background: #fff0f0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.8rem;
}
.biz-card h3 { color: var(--black); margin-bottom: 8px; }
.biz-card p { font-size: 0.9rem; margin-bottom: 18px; }
.biz-card a { color: var(--red); font-weight: 700; font-size: 0.9rem; }
.biz-card a:hover { text-decoration: underline; }

/* ---- VEHICLE CARDS ---- */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.vehicle-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.vehicle-img {
  position: relative;
  height: 200px;
  background: var(--gray-light);
  overflow: hidden;
}
.vehicle-img img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.vehicle-badge.new-badge { background: #1a7a1a; }
.vehicle-info { padding: 18px 20px; }
.vehicle-info h3 { font-size: 1.1rem; margin-bottom: 6px; }
.vehicle-meta {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.vehicle-meta span { font-size: 0.82rem; color: var(--gray-dark); }
.vehicle-meta span::before { margin-right: 4px; }
.vehicle-price { font-size: 1.5rem; font-weight: 900; color: var(--red); margin-bottom: 14px; }
.vehicle-price span { font-size: 0.85rem; font-weight: 400; color: var(--gray-dark); }
.vehicle-actions { display: flex; gap: 10px; }
.vehicle-actions .btn { flex: 1; text-align: center; }

/* ---- SEARCH / FILTER BAR ---- */
.search-bar {
  background: var(--black);
  padding: 28px 24px;
}
.search-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.search-inner select,
.search-inner input {
  flex: 1;
  min-width: 140px;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  background: #222;
  color: var(--white);
  outline: none;
}
.search-inner select option { background: #222; }
.search-inner .btn { white-space: nowrap; }

/* ---- SERVICES LIST ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.service-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition);
}
.service-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.service-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: #fff0f0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.service-item h4 { margin-bottom: 4px; }
.service-item p { font-size: 0.85rem; }

/* ---- MVA SERVICES LIST ---- */
.mva-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.mva-item {
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.mva-item:hover { background: #fff0f0; }

/* ---- FORMS ---- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  max-width: 560px;
}
.form-card h3 { margin-bottom: 6px; }
.form-card p { margin-bottom: 24px; font-size: 0.9rem; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--black);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.08);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-success {
  display: none;
  background: #e8f5e9;
  border: 1.5px solid #4caf50;
  border-radius: var(--radius);
  padding: 18px 22px;
  color: #2e7d32;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

/* ---- REVIEWS ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.review-stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 10px; }
.review-text { font-size: 0.93rem; color: var(--gray-dark); margin-bottom: 14px; font-style: italic; }
.review-author { font-weight: 700; font-size: 0.9rem; }
.review-biz { font-size: 0.8rem; color: var(--red); font-weight: 600; }

/* ---- WHY CHOOSE US ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.why-item { text-align: center; }
.why-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}
.why-item h4 { margin-bottom: 6px; }
.why-item p { font-size: 0.88rem; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 10px; }
.page-hero p { color: #aaa; font-size: 1rem; }
.page-hero .espanol-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-top: 12px;
}

/* ---- DOCS REQUIRED ---- */
.docs-box {
  background: #fff8f8;
  border: 1.5px solid #ffcccc;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 36px;
}
.docs-box h4 { color: var(--red); margin-bottom: 14px; font-size: 1rem; }
.docs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.docs-list li { font-size: 0.9rem; color: var(--gray-dark); padding-left: 16px; position: relative; }
.docs-list li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ---- VEHICLE DETAIL ---- */
.vehicle-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--gray-light);
  height: 320px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumb {
  width: 72px; height: 56px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--red); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-detail-info h1 { font-size: 1.9rem; margin-bottom: 8px; }
.vehicle-detail-price { font-size: 2.2rem; font-weight: 900; color: var(--red); margin-bottom: 20px; }
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.spec-item { background: var(--gray-light); border-radius: 6px; padding: 10px 14px; }
.spec-label { font-size: 0.78rem; color: var(--gray-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.spec-value { font-size: 0.97rem; font-weight: 700; color: var(--black); }
.detail-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---- ADMIN PAGE ---- */
.admin-header {
  background: var(--black);
  color: var(--white);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header h2 { font-size: 1.3rem; color: var(--white); }
.admin-badge {
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-left: 10px;
}
.admin-body { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}
.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  border-left: 4px solid var(--red);
}
.admin-stat-card .stat-num { font-size: 2rem; font-weight: 900; color: var(--black); }
.admin-stat-card .stat-label { font-size: 0.82rem; color: var(--gray-dark); }
.admin-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 36px;
}
.admin-table-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-mid);
}
.admin-table-header h3 { font-size: 1rem; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--gray-light); }
th { padding: 12px 16px; text-align: left; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-dark); }
td { padding: 13px 16px; font-size: 0.92rem; border-top: 1px solid var(--gray-mid); }
tr:hover td { background: #fafafa; }
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}
.status-active { background: #e8f5e9; color: #2e7d32; }
.status-pending { background: #fff8e1; color: #f57f17; }
.status-sold { background: #fce4ec; color: #c62828; }
.action-btns { display: flex; gap: 6px; }
.action-btns button {
  padding: 5px 12px;
  border-radius: 4px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-edit { background: #e3f2fd; color: #1565c0; }
.btn-edit:hover { background: #1565c0; color: var(--white); }
.btn-delete { background: #fce4ec; color: #c62828; }
.btn-delete:hover { background: #c62828; color: var(--white); }
.softr-note {
  background: #fffde7;
  border: 1.5px solid #f9a825;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #5d4037;
  margin-bottom: 28px;
}
.softr-note strong { color: #e65100; }

/* ---- FOOTER ---- */
.footer {
  background: var(--black);
  color: #aaa;
  padding: 56px 24px 28px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand .brand-a1 { font-size: 2rem; font-weight: 900; color: var(--red); }
.footer-brand p { font-size: 0.88rem; margin-top: 8px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #aaa; font-size: 0.88rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--red); }
.footer-col p { font-size: 0.88rem; margin-bottom: 6px; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-espanol {
  color: var(--red);
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid var(--red);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ---- ABOUT / CONTACT ---- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.location-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  border-top: 4px solid var(--red);
}
.location-card h3 { margin-bottom: 12px; font-size: 1.05rem; }
.location-card p { font-size: 0.9rem; margin-bottom: 6px; }
.location-card .hours { font-size: 0.85rem; color: var(--gray-dark); margin-top: 10px; }
.map-placeholder {
  background: var(--gray-light);
  border-radius: var(--radius);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  font-size: 0.95rem;
  border: 2px dashed var(--gray-mid);
  margin-bottom: 48px;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--gray-light);
  padding: 12px 24px;
  font-size: 0.85rem;
  color: var(--gray-dark);
}
.breadcrumb a { color: var(--red); }
.breadcrumb span { margin: 0 6px; }

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination button {
  width: 38px; height: 38px;
  border-radius: 6px;
  border: 1.5px solid var(--gray-mid);
  background: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.pagination button.active, .pagination button:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .vehicle-detail-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--black); padding: 16px 24px; gap: 4px; }
  .navbar-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .hero { padding: 64px 20px 56px; }
  h1 { font-size: 1.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .search-inner { flex-direction: column; }
  .search-inner select, .search-inner input { min-width: unset; width: 100%; }
}
@media (max-width: 480px) {
  .section { padding: 48px 16px; }
  .vehicle-actions { flex-direction: column; }
}
