/* ==========================================================================
   Meng Autos - Main Stylesheet
   ========================================================================== */

:root {
  --ma-dark: #16181d;
  --ma-dark-2: #1f2229;
  --ma-red: #c8102e;
  --ma-red-dark: #a30d26;
  --ma-gray: #f4f5f7;
  --ma-gray-2: #e9eaed;
  --ma-text: #23262b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ma-text);
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* ---------- Utility section backgrounds ---------- */
.bg-gray {
  background-color: var(--ma-gray);
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: #5a5f6a;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

/* ---------- Navbar ---------- */
.navbar-ma {
  background-color: var(--ma-dark);
}

.navbar-ma .navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.navbar-ma .navbar-brand span {
  color: var(--ma-red);
}

.navbar-ma .nav-link {
  color: #d7d9dd;
  font-weight: 500;
  margin: 0 0.15rem;
  transition: color 0.2s ease;
}

.navbar-ma .nav-link:hover,
.navbar-ma .nav-link.active {
  color: #ffffff;
}

.navbar-ma .btn-login {
  background-color: var(--ma-red);
  color: #fff;
  border: none;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.navbar-ma .btn-login:hover {
  background-color: var(--ma-red-dark);
  color: #fff;
}

/* ---------- Buttons ---------- */
.btn-ma-red {
  background-color: var(--ma-red);
  border: 1px solid var(--ma-red);
  color: #fff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-ma-red:hover {
  background-color: var(--ma-red-dark);
  border-color: var(--ma-red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(200, 16, 46, 0.25);
}

.btn-ma-outline {
  background-color: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-ma-outline:hover {
  background-color: #ffffff;
  color: var(--ma-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.75) 0%, rgba(15, 17, 21, 0.55) 55%, rgba(15, 17, 21, 0.85) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-weight: 800;
  font-size: 2.6rem;
}

.hero p.lead {
  max-width: 640px;
  color: #e7e8ea;
}

.page-banner {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 4.5rem 0;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.72);
}

.page-banner .container {
  position: relative;
  z-index: 2;
}

/* ---------- Cards ---------- */
.card-ma {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.card-ma:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(200, 16, 46, 0.1);
  color: var(--ma-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Vehicle cards */
.vehicle-card img {
  height: 210px;
  object-fit: cover;
  width: 100%;
}

.vehicle-card .badge-sample {
  background-color: var(--ma-gray-2);
  color: #444;
  font-weight: 500;
}

.vehicle-price {
  color: var(--ma-red);
  font-weight: 700;
  font-size: 1.15rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #e3e4e7;
  font-size: 0.92rem;
}

.spec-list li:last-child {
  border-bottom: none;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background-color: var(--ma-dark);
  color: #c9cbd1;
}

footer.site-footer h5 {
  color: #ffffff;
  font-weight: 700;
}

footer.site-footer a {
  color: #c9cbd1;
  transition: color 0.2s ease;
}

footer.site-footer a:hover {
  color: var(--ma-red);
}

footer.site-footer hr {
  border-color: #33363d;
}

/* ---------- Forms ---------- */
.form-card {
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ma-red);
  box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.15);
}

.form-note {
  background-color: var(--ma-gray);
  border-left: 4px solid var(--ma-red);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* ---------- Login ---------- */
.login-wrapper {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
}

.login-side-image {
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  min-height: 420px;
}

/* ---------- Misc ---------- */
.value-icon {
  font-size: 2rem;
  color: var(--ma-red);
}

.disclaimer-banner {
  background-color: #fff4f4;
  border: 1px solid #f2c9cf;
  color: #7a1626;
  border-radius: 8px;
  padding: 0.9rem 1.25rem;
  font-size: 0.92rem;
}

.legal-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero {
    min-height: 60vh;
  }
}
