/* =========================================================
   NIBAN CAR — STYLE SHEET
   Modern & minimal theme
   ========================================================= */

:root {
  --primary: #1D4ED8;
  --primary-dark: #1E3A8A;
  --primary-light: #EFF6FF;
  --accent: #F59E0B;
  --accent-dark: #B45309;
  --text: #1F2937;
  --text-light: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --zalo: #0068FF;
  --messenger: #00B2FF;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.10);
  --max-width: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 12px; color: var(--text-light); }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head h2 { color: var(--text); }
.section-head p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* =========================================================
   HEADER
   ========================================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  margin-right: auto;
}
.logo-img {
  height: 46px;
  width: 46px;
  object-fit: cover;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}
.logo-text {
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.header-actions { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

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

.btn-call { background: var(--accent); color: #fff; }
.btn-call:hover { background: var(--accent-dark); }

.btn-zalo { background: var(--zalo); color: #fff; }
.btn-zalo:hover { opacity: 0.9; }

.btn-messenger { background: linear-gradient(135deg, #00B2FF, #006AFF); color: #fff; }
.btn-messenger:hover { opacity: 0.9; }

.btn-block { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  color: #fff;
  background-image: url('../images/hero/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,18,48,0.55) 0%, rgba(15,30,80,0.35) 35%, rgba(29,78,216,0.08) 75%, rgba(29,78,216,0) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 20px 70px;
}
.hero-content .eyebrow {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.hero-content h1 {
  color: #fff;
  font-size: 2.8rem;
  max-width: 640px;
}
.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 560px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  display: block;
  font-size: 1.6rem;
}
.hero-stats div span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

/* =========================================================
   FILTER BAR
   ========================================================= */
.filter-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin: -34px auto 40px;
  position: relative;
  z-index: 5;
  max-width: var(--max-width);
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 150px;
}
.filter-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
}
.filter-field select,
.filter-field input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}
.filter-field button {
  height: 42px;
}

/* =========================================================
   CAR GRID & CARDS
   ========================================================= */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.car-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.car-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}
.car-card-img img { width: 100%; height: 100%; object-fit: cover; }

.car-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.car-card-body h3 { margin: 0; }
.car-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-light);
}
.car-tags span {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}
.car-card-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 8px;
}
.car-card-price .price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}
.car-card-price .price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
}

/* =========================================================
   TRUST / WHY-CHOOSE SECTION
   ========================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}
.feature-card .icon {
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* =========================================================
   CONTACT CTA BANNER
   ========================================================= */
.cta-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); }
.cta-banner .btn-group { justify-content: center; }
.cta-banner .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.12); }

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: #111827;
  color: #D1D5DB;
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 36px;
}
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-col p { color: #9CA3AF; margin-bottom: 8px; font-size: 0.92rem; }
.footer-col > a {
  display: block;
  color: #D1D5DB;
  margin-bottom: 10px;
  font-size: 0.92rem;
}
.footer-col p a {
  color: #D1D5DB;
}
.footer-col a:hover { color: #fff; }
.footer-logo { color: #fff; margin-bottom: 10px; }
.footer-logo .logo-img {
  background: #fff;
  padding: 3px;
  box-shadow: none;
}
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a {
  background: rgba(255,255,255,0.08);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 20px;
  text-align: center;
}
.footer-bottom p { color: #6B7280; font-size: 0.82rem; margin: 0; }

/* =========================================================
   FLOATING CONTACT BUTTONS
   ========================================================= */
.floating-contacts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}
.fab:hover { transform: scale(1.08); }
.fab-call { background: var(--accent); }
.fab-zalo { background: var(--zalo); font-size: 0.95rem; }
.fab-messenger { background: linear-gradient(135deg, #00B2FF, #006AFF); }

/* =========================================================
   PAGE HEADER (sub-pages)
   ========================================================= */
.page-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, var(--primary-dark) 0%, var(--primary) 55%, #2563EB 100%);
  padding: 52px 0;
  text-align: center;
  color: #fff;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 15%, rgba(245, 158, 11, 0.30), transparent 55%),
    radial-gradient(circle at 8% 95%, rgba(255, 255, 255, 0.10), transparent 50%);
  pointer-events: none;
}
.page-header::after {
  content: "";
  position: absolute;
  top: -60px;
  right: 8%;
  width: 220px;
  height: 220px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: 8px; color: #fff; }
.page-header p { color: rgba(255, 255, 255, 0.85); max-width: 640px; margin: 0 auto; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: #fff; }

/* =========================================================
   CAR DETAIL PAGE
   ========================================================= */
.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: flex-start;
}
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { flex-wrap: wrap; display: flex; gap: 10px; }
.gallery-thumbs img {
  width: 88px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}
.gallery-thumbs img.active { border-color: var(--primary); }

.detail-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.detail-price small { font-size: 0.95rem; font-weight: 500; color: var(--text-light); }

.spec-list { list-style: none; padding: 0; margin: 18px 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.spec-list li span:first-child { color: var(--text-light); }
.spec-list li span:last-child { font-weight: 600; }

.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tag-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}
.tag-list li::before { content: "✓"; color: var(--primary); font-weight: 800; }

.two-col-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 12px;
}

/* =========================================================
   PROCEDURES PAGE
   ========================================================= */
.steps {
  display: grid;
  gap: 18px;
}
.step-card {
  display: flex;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.step-card h3 { margin-bottom: 4px; }
.step-card p { margin: 0; }

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.doc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.doc-card h3 { font-size: 1.05rem; }
.doc-card ul { margin: 0; padding-left: 20px; color: var(--text-light); font-size: 0.92rem; }
.doc-card li { margin-bottom: 6px; }

.note-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  padding: 18px 22px;
}
.note-box h3 { color: var(--accent-dark); margin-bottom: 6px; }
.note-box p { color: #92400E; margin: 0; }

/* =========================================================
   MEDIA / CONTENT PAGE
   ========================================================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.media-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.media-card-img { aspect-ratio: 4/3; overflow: hidden; }
.media-card-img img { width: 100%; height: 100%; object-fit: cover; }
.media-card-body { padding: 16px; }
.media-date {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.media-card-body h3 { margin-bottom: 6px; font-size: 1.05rem; }
.media-card-body p { margin: 0; font-size: 0.92rem; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}
.contact-info-list { list-style: none; padding: 0; margin: 18px 0; }
.contact-info-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-list .icon { font-size: 1.3rem; }
.contact-info-list strong { display: block; margin-bottom: 2px; }
.contact-info-list span, .contact-info-list a { color: var(--text-light); font-size: 0.92rem; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  min-height: 420px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* =========================================================
   ADMIN PAGE
   ========================================================= */
.admin-form { margin-bottom: 18px; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}
.form-field input,
.form-field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.form-field small {
  color: var(--text-light);
  font-size: 0.8rem;
}
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 36px;
}
.admin-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.car-edit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 22px;
}
.car-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.car-edit-head h3 { margin: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 880px) {
  .detail-layout, .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 18px;
    gap: 10px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm span { display: none; }
  .hero { background-image: url('../images/hero/hero-banner-mobile.jpg'); }
  .hero-content { padding: 240px 20px 40px; }
  .hero-content h1 { font-size: 2.1rem; }
  .hero-content p { max-width: 100%; }
  .hero-stats { gap: 20px; }
  .filter-bar { margin-top: 16px; flex-direction: column; align-items: stretch; }
  .footer-inner { grid-template-columns: 1fr; }
}
