/* --- CSS VARIABLES (Colors) --- */
:root {
  --bg-black: #111111;
  --bg-dark-gray: #1a1a1a;
  --primary-blue: #0376b3;
  --text-white: #ffffff;
  --text-gray: #b0b0b0;
  --border-gray: #333333;
  --accent-green: #2ecc71; /* for status like 'roadworthy' */
  --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* --- RESET AND BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- UTILITY CLASSES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: #0376b3;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--text-white);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: var(--text-white);
  color: var(--bg-black);
}

.red-text {
  color: var(--primary-blue);
}

.text-center {
  text-align: center;
}

/* --- HEADER --- */
header {
  background-color: rgba(17, 17, 17, 0.95);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-gray);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* =========================
   HEADER LOGO
   ========================= */

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 150px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* =========================
   MOBILE LOGO
   ========================= */

@media (max-width: 768px) {
  .logo img {
    width: 125px;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 115px;
  }
}
nav ul {
  display: flex;
  gap: 20px;
}

nav a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

nav a:hover {
  color: var(--primary-blue);
}

.phone-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.phone-cta i {
  color: var(--primary-blue);
}

/* --- HERO SECTION --- */
.hero {
  padding: 160px 0 80px; /* Offset for fixed header */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
    url("../Images/vehicles/2015-golf-7-gti/img-20260825-wa0036.webp");
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text p {
  color: var(--text-gray);
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.hero-image img {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- SERVICE ICONS (Sub-Hero) --- */
.services-bar {
  background-color: var(--bg-dark-gray);
  padding: 30px 0;
  border-bottom: 1px solid var(--border-gray);
}

.services-bar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
}

.service-item i {
  font-size: 28px;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.service-item h4 {
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.service-item p {
  color: var(--text-gray);
  font-size: 12px;
}

/* --- ABOUT SECTION --- */
.about {
  padding: 80px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h4 {
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-text p {
  color: var(--text-gray);
  margin-bottom: 15px;
}

.about-image img {
  border-radius: 8px;
}

.about-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 36px;
  color: var(--primary-blue);
}
.stat-item {
  padding: 0 15px;
}

/* --- FEATURED VEHICLES --- */
.featured {
  padding: 80px 0;
  background-color: var(--bg-dark-gray);
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.vehicle-card {
  background-color: var(--bg-black);
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.vehicle-img-container {
  height: 150px;
  overflow: hidden;
}

.vehicle-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vehicle-info {
  padding: 15px;
}

.vehicle-year-make {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}

.vehicle-price {
  color: var(--primary-blue);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.vehicle-details-btns {
  display: flex;
  gap: 10px;
}

.btn-view {
  font-size: 12px;
  padding: 8px 16px;
}

/* --- 'WHY CHOOSE' (Steps) --- */
.steps {
  padding: 80px 0;
}

.steps-intro {
  max-width: 600px;
  margin: 0 auto 50px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.step-item i {
  font-size: 32px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.step-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-item p {
  color: var(--text-gray);
  font-size: 10px;
}

/* --- BUYING MADE EASY --- */
.buying-process {
  padding: 80px 0;
  background-color: var(--bg-dark-gray);
}

.process-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-top: 50px;
}

.process-flow::after {
  /* Connecting line */
  content: "";
  position: absolute;
  top: 20px;
  left: 10%;
  width: 80%;
  height: 2px;
  background-color: var(--border-gray);
  z-index: 1;
}

.process-step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
}

.step-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: #fff;
  font-weight: bold;
}

/* --- FAQ SECTION --- */
.faq {
  padding: 80px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.faq-item {
  background-color: var(--bg-dark-gray);
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-question:hover {
  background-color: #252525;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out;
  color: var(--text-gray);
  font-size: 14px;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust as needed for content */
  padding: 10px 20px 20px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

/* --- FINAL CTA --- */
.final-cta {
  padding: 100px 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
    url("../Images/Main-image.webp");
  background-size: cover;
  background-position: center;
  text-align: center;
}

.final-cta h2 {
  font-size: 36px;
  margin-bottom: 30px;
}

/* --- FOOTER --- */
footer {
  background-color: #0d0d0d;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-gray);
  color: var(--text-gray);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo .logo {
  margin-bottom: 15px;
}

.footer-col h4 {
  color: var(--text-white);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.contact-info li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-info i {
  color: var(--primary-blue);
  margin-top: 3px;
}

.map-container {
  height: 150px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  margin-bottom: 10px;
  /* Placeholder background */
  background-color: #222;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
}

.social-links a:hover {
  background-color: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-gray);
  font-size: 12px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-text h1 {
    font-size: 38px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  header {
    padding: 10px 0;
  }
  .logo {
    font-size: 20px;
  }
  nav ul,
  .phone-cta {
    display: none;
  }
  .hero {
    padding: 120px 0 60px;
  }
  .hero-content,
  .about-content,
  .faq-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-btns,
  .about-stats {
    justify-content: center;
  }
  .services-bar-grid,
  .vehicle-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .process-flow {
    flex-direction: column;
    gap: 30px;
  }
  .process-flow::after {
    display: none;
  } /* Hide line */

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-info li {
    justify-content: center;
  }
  .social-links {
    justify-content: center;
  }
}

/* Hide mobile menu btn by default on desktop */
.mobile-menu-btn {
  display: none;
}

/* Extracted inline presentation rules */
.full-width {
  width: 100%;
}
.center-text {
  text-align: center;
}

@media (max-width: 768px) {
  nav.mobile-menu-open {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.98);
    padding: 20px;
  }

  nav.mobile-menu-open ul {
    flex-direction: column;
    gap: 15px;
  }

  .phone-cta.mobile-menu-open {
    display: flex;
    position: absolute;
    top: 310px;
    width: 100%;
    justify-content: center;
    background-color: rgba(17, 17, 17, 0.98);
    padding: 10px;
  }
}

/* ================================
   MOBILE NAVIGATION
   ================================ */

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 1101;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    color: #fff;
    flex: 0 0 44px;
  }

  header .header-content {
    position: relative;
  }

  header nav {
    display: block;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    transition:
      max-height 0.3s ease,
      opacity 0.2s ease,
      visibility 0.3s ease;
    z-index: 1100;
  }

  header nav.mobile-menu-open {
    max-height: 420px;
    visibility: visible;
    opacity: 1;
  }

  header nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 8px 15px 12px;
    margin: 0;
  }

  header nav li {
    width: 100%;
    list-style: none;
  }

  header nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    width: 100%;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  header nav li:last-child a {
    border-bottom: 0;
  }

  header .phone-cta {
    display: none;
  }
}
