/* ==================================================
   ACEONE AUTOS LTD — LUXURY CORPORATE MASTER v4
   Fully Aligned Layout System
================================================== */

:root {
  --primary: #0F1E3A;
  --primary-dark: #0a152a;
  --accent: #B11226;
  --accent-dark: #8c0e1d;
  --gold: #C6A94A;
  --light-bg: #f4f6f9;
  --white: #ffffff;
  --text-dark: #111827;
  --text-light: #6b7280;
  --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
  --shadow-medium: 0 20px 50px rgba(0,0,0,0.08);
}

/* ==================================================
   GLOBAL RESET
================================================== */

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.4px;
}

p {
  color: var(--text-light);
  font-size: 16px;
}

/* ==================================================
   MASTER CONTAINER SYSTEM (CRITICAL FIX)
================================================== */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================================================
   SECTIONS
================================================== */

.section {
  padding: 100px 0;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  position: relative;
}

.section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--gold);
  display: block;
  margin: 12px auto 0;
}

.alt-bg {
  background: var(--light-bg);
}

/* ==================================================
   HEADER (NOW PERFECTLY ALIGNED)
================================================== */

.site-header {
  background: var(--primary);
  padding: 20px 0;
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-area img {
  height: 48px;
}

.site-title {
  color: #fff;
  font-size: 20px;
}

/* ==================================================
   NAVIGATION (FIXED ALIGNMENT)
================================================== */

.main-nav {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.main-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: 0.3s ease;
}

.main-nav a:hover {
  color: var(--gold);
}

/* ==================================================
   HERO
================================================== */

.hero {
  background: url('../images/hero.jpg') center/cover no-repeat;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,30,58,0.92),
    rgba(15,30,58,0.75)
  );
}

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

.hero h2 {
  font-size: 38px;
}

.hero p {
  margin-top: 12px;
}

/* ==================================================
   BUTTONS
================================================== */

.button {
  background: var(--accent);
  color: #fff;
  padding: 14px 34px;
  border-radius: 50px;
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

.secondary-btn {
  background: var(--primary);
}

.secondary-btn:hover {
  background: var(--primary-dark);
}

/* ==================================================
   VEHICLE GRID
================================================== */

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: #f3f4f6;
  padding: 15px;
}

.card-content {
  padding: 22px;
}

/* ==================================================
   VEHICLE DETAIL PAGE (CLEAN + BALANCED)
================================================== */

.vehicle-detail-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.vehicle-gallery {
  max-width: 750px;
  margin: 0 auto 60px auto;
}

.main-image-wrapper {
  background: #f3f4f6;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.main-image-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: contain;
}

.thumbnail-row {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  overflow-x: auto;
}

.thumbnail-row img {
  width: 85px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s ease;
}

.thumbnail-row img:hover,
.thumbnail-row img.active-thumb {
  opacity: 1;
  border: 2px solid var(--gold);
}

/* Vehicle Info */

.vehicle-info {
  max-width: 750px;
  margin: 0 auto;
  text-align: left;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
  background: #f9fafb;
  border-radius: 10px;
  overflow: hidden;
}

.spec-table td {
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.spec-table td:first-child {
  font-weight: 600;
  background: #f3f4f6;
}

.vehicle-description {
  margin-top: 20px;
}

/* ==================================================
   DIRECTOR SECTION
================================================== */

.director-section {
  background: var(--light-bg);
}

.director-container {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 50px;
  align-items: center;
  text-align: left;
}

.director-image img {
  width: 100%;
  max-width: 240px;
  border-radius: 14px;
  box-shadow: var(--shadow-medium);
}

/* ==================================================
   FOOTER
================================================== */

footer {
  background: var(--primary);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  font-size: 14px;
}

/* ==================================================
   WHATSAPP FLOAT
================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-medium);
  transition: 0.3s ease;
  z-index: 999;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
}

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

@media (max-width: 992px) {

  .director-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .main-image-wrapper img {
    height: 340px;
  }
}

@media (max-width: 768px) {

  .hero {
    height: 75vh;
  }

  .hero h2 {
    font-size: 28px;
  }

  .main-nav-inner {
    gap: 18px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .main-image-wrapper img {
    height: 260px;
  }
}