/* ═══════════════════════════════════════════════════════════════
   NHẬT LỢI AUTO — Shared Styles
   Industrial / Precision aesthetic
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Noto+Sans:wght@300;400;500&family=Noto+Sans+Vietnamese:wght@300;400;500&display=swap');

/* ── CSS Variables (màu sắc & font chung) ── */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1b2f45;
  --steel:      #2e4a6b;
  --accent:     #e8a020;
  --accent-dim: #b87d10;
  --light:      #f4f6f8;
  --muted:      #8da0b3;
  --white:      #ffffff;
  --danger:     #c0392b;
  --success:    #27ae60;

  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'Noto Sans', 'Noto Sans Vietnamese', sans-serif;

  --radius:     6px;
  --shadow:     0 4px 20px rgba(0,0,0,0.18);
  --transition: 0.22s ease;
}

/* ── Reset cơ bản ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--navy);
  line-height: 1.6;
  font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Thanh điều hướng (Navigation bar) ── */
.navbar {
  background: var(--navy);
  border-bottom: 3px solid var(--accent);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 12px;
}
.navbar-logo img {
  height: 44px; width: auto;
}
.navbar-logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem; font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.navbar-logo-text span {
  display: block; color: var(--accent);
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase;
}
.navbar-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.navbar-links a {
  color: #b0c4d8;
  font-size: 0.88rem; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius);
  transition: var(--transition);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.navbar-links a:hover,
.navbar-links a.active {
  background: var(--steel);
  color: var(--white);
}
.navbar-cta {
  background: var(--accent) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
}
.navbar-cta:hover { background: var(--accent-dim) !important; }

/* Nút chuyển ngôn ngữ */
.lang-toggle {
  background: var(--steel);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  padding: 4px 10px; border-radius: 4px;
  font-size: 0.78rem; cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
  margin-left: 8px;
}
.lang-toggle:hover { background: var(--accent); color: var(--navy); }

/* ── Footer ── */
footer {
  background: var(--navy);
  color: #8da0b3;
  padding: 48px 24px 24px;
  margin-top: 80px;
  border-top: 3px solid var(--accent);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand h3 {
  font-family: var(--font-head);
  color: var(--white); font-size: 1.2rem;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--accent); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-contact-item {
  display: flex; gap: 8px;
  font-size: 0.88rem; margin-bottom: 8px;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid var(--steel);
  display: flex; justify-content: space-between;
  font-size: 0.78rem;
}

/* ── Nút chung ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer; border: none;
  transition: var(--transition);
  text-transform: uppercase;
}
.btn-primary {
  background: var(--accent); color: var(--navy);
}
.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,160,32,0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent); color: var(--navy);
}

/* ── Tiêu đề section ── */
.section-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-head);
  font-size: 2.2rem; font-weight: 800;
  color: var(--navy); line-height: 1.1;
  margin-bottom: 16px;
}

/* ── Thẻ sản phẩm (Product card) ── */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #dce5ef;
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.product-card-img {
  aspect-ratio: 4/3;
  background: #eef2f7;
  display: flex; align-items: center;
  justify-content: center; overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 16px;
}
.product-card-body { padding: 16px; flex: 1; }
.product-card-brand {
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 4px;
}
.product-card-name {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
  line-height: 1.2;
}
.product-card-desc {
  font-size: 0.83rem; color: #5a7080;
  line-height: 1.5; margin-bottom: 12px;
}
.product-card-footer {
  padding: 12px 16px;
  border-top: 1px solid #eef2f7;
  display: flex; justify-content: space-between;
  align-items: center;
}
.price-tag {
  font-family: var(--font-head);
  font-size: 0.9rem; color: var(--muted);
  font-style: italic;
}

/* ── Form liên hệ ── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.83rem;
  font-weight: 500; color: var(--navy);
  margin-bottom: 6px;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #c5d3de;
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--navy);
  transition: var(--transition);
  background: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,160,32,0.15);
}
.form-control.input-error {
  background-color: #fff0f0;
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Responsive (màn hình nhỏ / điện thoại) ── */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .section-title { font-size: 1.7rem; }
}

/* ── Tiện ích ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
