/* =====================
   H-TOWN AUTO EXCHANGE
   Red & Black Theme
   ===================== */

:root {
  --red: #cc0000;
  --red-dark: #990000;
  --red-light: #ff2222;
  --black: #0a0a0a;
  --dark: #111111;
  --dark2: #1a1a1a;
  --dark3: #222222;
  --gray: #333333;
  --light-gray: #aaaaaa;
  --white: #ffffff;
  --font-head: 'Bebas Neue', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

a { color: var(--red); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.red { color: var(--red); }

/* ===================== NAVBAR ===================== */
.navbar {
  background: var(--black);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-img-wrap { display: flex; align-items: center; }
.nav-logo-img { height: 60px; width: auto; object-fit: contain; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active { background: var(--red); color: var(--white); }

.nav-phone {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 4px;
}
.nav-phone:hover { background: var(--red-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}

.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }

.btn-white { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-white:hover { background: #ddd; color: var(--black); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.2rem; }

/* ===================== HERO ===================== */
.hero {
  background: var(--black);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(204,0,0,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(204,0,0,0.08) 0%, transparent 60%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.hero-content { max-width: 800px; position: relative; z-index: 2; }

.hero-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 30px rgba(204,0,0,0.4));
}

.hero-sub {
  font-size: 1.15rem;
  color: #ccc;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-contact {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #aaa;
}

.hero-contact a { color: var(--red); }
.hero-contact a:hover { color: var(--red-light); }

/* ===================== FEATURES ===================== */
.features {
  background: var(--dark);
  padding: 5rem 0;
  border-top: 1px solid #222;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--dark2);
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--red);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover { transform: translateY(-4px); border-top-color: var(--red-light); }

.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.feature-card h3 {
  font-family: var(--font-cond);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-card p { color: var(--light-gray); font-size: 0.95rem; }

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: var(--red);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.cta-banner p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }

.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===================== LOCATION ===================== */
.location-section {
  background: var(--dark);
  padding: 5rem 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.location-info h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.loc-item { margin-bottom: 1.25rem; }
.loc-item strong { display: block; color: var(--red); font-family: var(--font-cond); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.loc-item p { color: #ccc; }
.loc-item a { color: var(--red); }

.location-map iframe { border-radius: 8px; border: 2px solid #333 !important; }

/* ===================== PAGE HEADER ===================== */
.page-header {
  background: var(--dark2);
  border-bottom: 3px solid var(--red);
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-head);
  font-size: 3rem;
  letter-spacing: 0.05em;
}

.page-header p { color: var(--light-gray); margin-top: 0.5rem; }

/* ===================== INVENTORY ===================== */
.inventory-section { background: var(--black); padding: 4rem 0; }

.inventory-notice {
  background: var(--dark2);
  border-left: 4px solid var(--red);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 2.5rem;
  color: #ccc;
}

.inventory-notice a { color: var(--red); }

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.vehicle-card {
  background: var(--dark2);
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.vehicle-card:hover { transform: translateY(-4px); }

.vehicle-img.placeholder-img {
  background: var(--dark3);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 2px solid var(--red);
}

.vehicle-info { padding: 1.25rem; }

.vehicle-info h3 {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.vehicle-sub { color: var(--light-gray); font-size: 0.9rem; margin-bottom: 1rem; }

.inventory-cta {
  background: var(--dark2);
  border: 1px solid #333;
  border-top: 3px solid var(--red);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
}

.inventory-cta h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.inventory-cta p { color: #ccc; margin-bottom: 1.5rem; }

/* ===================== ABOUT ===================== */
.about-section { background: var(--black); padding: 5rem 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-head);
  font-size: 2.2rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text p { color: #ccc; margin-bottom: 1rem; line-height: 1.8; }

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 2.5rem; letter-spacing: 0.05em; }
.stat span:last-child { font-size: 0.8rem; color: var(--light-gray); text-transform: uppercase; letter-spacing: 0.1em; }

.about-logo-wrap { display: flex; justify-content: center; }
.about-logo { width: 100%; max-width: 420px; border-radius: 12px; filter: drop-shadow(0 0 20px rgba(204,0,0,0.3)); }

.visit-section { background: var(--dark); padding: 5rem 0; text-align: center; }

.visit-section h2 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.visit-card {
  background: var(--dark2);
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--red);
  border-radius: 8px;
  padding: 2rem 1.5rem;
}

.visit-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.visit-card h3 { font-family: var(--font-cond); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.visit-card p { color: #ccc; }
.visit-card a { color: var(--red); }

/* ===================== CREDIT FORM ===================== */
.form-section { background: var(--black); padding: 4rem 0; }

.form-intro {
  background: var(--dark2);
  border-left: 4px solid var(--red);
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 2.5rem;
  color: #ccc;
}

.credit-form { max-width: 900px; }

.form-section-title {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
  margin: 2rem 0 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-full { grid-column: 1 / -1; }
.form-spacer { grid-column: 1 / -1; height: 0.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark2);
  border: 1px solid #333;
  border-radius: 4px;
  color: var(--white);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }

.form-group select option { background: var(--dark2); }

.form-submit { margin-top: 2.5rem; text-align: center; }

.form-disclaimer {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-success {
  margin-top: 1.5rem;
  background: #0a2a0a;
  border: 1px solid #2a5a2a;
  color: #8f8;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--dark2);
  border-top: 3px solid var(--red);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
}

.footer h4 {
  font-family: var(--font-cond);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 1rem;
}

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a { color: #aaa; font-size: 0.95rem; }
.footer ul a:hover { color: var(--red); }

.footer p { color: #aaa; font-size: 0.95rem; line-height: 1.7; }
.footer a { color: var(--red); }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p { color: #555; font-size: 0.85rem; }

/* ===================== MOBILE ===================== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--black);
    border-bottom: 3px solid var(--red);
    padding: 1rem;
    gap: 0.25rem;
    z-index: 999;
  }

  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.65rem 1rem; }

  .navbar { position: relative; }

  .hero-logo { max-width: 320px; }
  .hero-sub { font-size: 1rem; }

  .location-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }

  .page-header h1 { font-size: 2.2rem; }
  .cta-banner h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-contact { flex-direction: column; gap: 0.5rem; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .about-stats { justify-content: center; }
}
