:root {
  --primary: #0a4d8c;
  --primary-dark: #073562;
  --primary-light: #e9f2fa;
  --accent-gold: #f59e0b;
  --accent-red: #d32f2f;
  --accent-red-hover: #b71c1c;
  --zalo-color: #0084ff;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius: 8px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile sticky footer */
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* TOPBAR */
.topbar {
  background: var(--primary-dark);
  color: #e2e8f0;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a {
  color: #fde047;
  font-weight: 600;
}

/* HEADER */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-badge {
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.brand-info h1, .brand-info .site-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.brand-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.nav-menu a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  padding: 6px 0;
  position: relative;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
}
.nav-menu a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-hotline {
  background: var(--accent-red);
  color: white !important;
  font-weight: 700;
  font-size: 15px;
  padding: 9px 18px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(211,47,47,0.35);
}
.btn-hotline:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #073562 0%, #0a4d8c 60%, #1565c0 100%);
  color: white;
  padding: 40px 0 50px 0;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #ffffff;
}
.hero p.lead {
  font-size: 17px;
  max-width: 800px;
  margin: 0 auto 24px auto;
  color: #e2e8f0;
}
.hero-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  background: rgba(0,0,0,0.18);
  padding: 6px 14px;
  border-radius: 20px;
}
.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-call-hero {
  background: var(--accent-red);
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 28px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(211,47,47,0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-banner-wrap {
  max-width: 1100px;
  margin: 0 auto 24px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.2);
}
.hero-banner-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.promo-banner-box {
  max-width: 960px;
  margin: 28px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.promo-banner-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* SECTION COMMON */
.section {
  padding: 45px 0;
}
.section-title-wrap {
  text-align: center;
  margin-bottom: 35px;
}
.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.3;
}
.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 10px auto 0 auto;
}

/* QUICK ROUTES CARDS (9 ROUTES LAYOUT) */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1024px) {
  .route-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (max-width: 680px) {
  .route-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.route-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding: 24px 18px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.route-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

/* TOP RIGHT "TUYẾN HOT" BADGE */
.route-card-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 0 18px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
  z-index: 2;
}

/* HEADER & TITLE */
.route-card-header {
  margin-bottom: 8px;
  padding-right: 75px; /* Space for TUYẾN HOT badge */
}
.route-card.no-badge .route-card-header {
  padding-right: 0;
}
.route-card-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}
.route-card-dot {
  display: inline-block;
  width: 5px;
  height: 16px;
  background: #dc2626;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 3px;
}
.route-card-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
  margin-top: 8px;
  min-height: 38px;
}

/* PRICE BOX */
.route-price-card-box {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 16px;
}
.route-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13.5px;
  border-bottom: 1px dashed #e2e8f0;
}
.route-price-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.route-price-row:first-child {
  padding-top: 0;
}
.route-price-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-weight: 500;
}
.route-price-val {
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}
.route-price-val.val-red {
  color: #dc2626;
  font-size: 14.5px;
  font-weight: 800;
}
.route-price-val.val-dark {
  color: #0f172a;
  font-weight: 700;
}

/* ACTION BUTTONS (GỌI ĐẶT XE & ĐẶT NHANH) */
.route-card-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}
.btn-card-call {
  flex: 1;
  background: #dc2626;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 0;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-card-call:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}
.btn-card-fast {
  flex: 1;
  background: #f1f5f9;
  color: #1e293b !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 0;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-card-fast:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}
.route-card-detail-link {
  display: block;
  text-align: center;
  color: #2563eb;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
  transition: color 0.15s ease;
}
.route-card-detail-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* PRICE TABLE */
.price-table-container {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
}
.price-table th {
  background: var(--primary);
  color: white;
  padding: 14px 16px;
  font-weight: 700;
}
.price-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-color);
}
.price-table tbody tr:nth-child(even) {
  background: #f8fafc;
}
.price-table tbody tr:hover {
  background: #f1f5f9;
}
.price-table .col-price {
  font-weight: 700;
  color: var(--accent-red);
  white-space: nowrap;
}
.price-table .btn-table-call {
  background: var(--accent-red);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  white-space: nowrap;
}

/* SERVICES GRID */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.service-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}
.service-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.service-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* WHY CHOOSE US */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.why-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.why-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent-gold);
  margin-bottom: 6px;
}
.why-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* FLEET GALLERY */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.fleet-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.fleet-img-wrap {
  height: 180px;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}
.fleet-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fleet-info {
  padding: 16px;
}
.fleet-info h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.fleet-info p {
  font-size: 13px;
  color: var(--text-muted);
}

/* PAGE DETAIL CONTENT STYLING */
.page-content-box {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.page-content-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 24px 0 12px 0;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}
.page-content-box h2:first-child {
  margin-top: 0;
}
.page-content-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 18px 0 8px 0;
}
.page-content-box p {
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--text-main);
}
.page-content-box ul, .page-content-box ol {
  margin-left: 20px;
  margin-bottom: 16px;
  font-size: 15px;
}
.page-content-box li {
  margin-bottom: 6px;
}

/* BREADCRUMBS */
.breadcrumb {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--primary);
}
.breadcrumb span {
  margin: 0 6px;
}

/* CONTACT BOX */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-info-card {
  background: var(--primary-light);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 24px;
}
.contact-info-card h3 {
  font-size: 20px;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 14px;
}
.contact-detail-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
}

/* FOOTER */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 45px 0 25px 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 35px;
}
.footer h4 {
  color: white;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  display: inline-block;
}
.footer p {
  line-height: 1.6;
  margin-bottom: 10px;
}
.footer ul {
  list-style: none;
}
.footer ul li {
  margin-bottom: 8px;
}
.footer ul li a:hover {
  color: white;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* FLOATING CALL & ZALO BUTTONS (Hiệu ứng rung lắc & tỏa sóng) */
.float-btn {
  position: fixed;
  bottom: 25px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  text-decoration: none;
  cursor: pointer;
}

.float-call {
  left: 20px;
  background: #e11d48;
}

.float-zalo {
  right: 20px;
  background: #0084ff;
}

.float-wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.float-call .wave-1 {
  background: rgba(225, 29, 72, 0.6);
  animation: ripple-wave 1.8s infinite ease-out;
}
.float-call .wave-2 {
  background: rgba(225, 29, 72, 0.35);
  animation: ripple-wave 1.8s infinite ease-out 0.6s;
}

.float-zalo .wave-1 {
  background: rgba(0, 132, 255, 0.6);
  animation: ripple-wave 1.8s infinite ease-out;
}
.float-zalo .wave-2 {
  background: rgba(0, 132, 255, 0.35);
  animation: ripple-wave 1.8s infinite ease-out 0.6s;
}

.float-icon {
  position: relative;
  z-index: 2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: phone-shake 1.6s infinite ease-in-out;
}

@keyframes ripple-wave {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@keyframes phone-shake {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  10%, 30%, 50%, 70% {
    transform: rotate(-14deg) scale(1.12);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(14deg) scale(1.12);
  }
  90% {
    transform: rotate(0deg) scale(1);
  }
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    gap: 12px;
  }
  .nav-menu.show {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .header-cta .btn-hotline {
    display: none;
  }
  .hero h1 {
    font-size: 24px;
  }
  .hero p.lead {
    font-size: 15px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
