/* =========================================================
   Taxi Vũng Tàu 24H — CSS riêng của site (taxivungtau.sonnyweb.com)
   Mục lục: 1. Biến màu · 2. Khung chung · 3. Nút · 4. Hero
            5. Thẻ tài xế · 6. Lưới tuyến xe · 7. Lý do chọn · 8. Các bước
            9. Trang tuyến · 10. Header / footer · 11. Form · 12. Responsive
   ========================================================= */

/* 1. Biến màu — xanh lá (xe điện) + vàng taxi */
:root {
  --tx-green: #0E7C4A;
  --tx-green-2: #0A5C37;
  --tx-green-soft: #E9F6EF;
  --tx-yellow: #FFC20E;
  --tx-yellow-2: #F2A900;
  --tx-ink: #15241C;
  --tx-muted: #55675D;
  --tx-line: #DCE8E1;
  --tx-shadow: 0 10px 28px rgba(10, 60, 36, .10);
}

/* 2. Khung chung — bỏ đệm mặc định của khối HTML để khối tự canh */
.custom-html-block {
  padding: 0 !important;      /* khối CMS có đệm sẵn */
  background: none !important;
}
.tx-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.tx-sec { padding: 72px 0; }
.tx-sec.alt { background: var(--tx-green-soft); }
.tx-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.tx-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--tx-green-2);
  margin: 0;
}
.tx-head p { color: var(--tx-muted); font-size: 1.04rem; line-height: 1.6; margin: 12px 0 0; }
.tx-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff3c4;
  color: #7a5600;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* 3. Nút */
.tx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.tx-btn img { width: 20px; height: 20px; flex: 0 0 20px; }
.tx-btn:hover { transform: translateY(-1px); }
.tx-btn-call { background: var(--tx-yellow); color: #1d1500 !important; box-shadow: 0 8px 20px rgba(242, 169, 0, .35); }
.tx-btn-zalo { background: #0068FF; color: #fff !important; }
.tx-btn-line { background: #fff; color: var(--tx-green-2) !important; border: 2px solid var(--tx-green); }

/* 4. Hero */
.tx-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 194, 14, .25), transparent 40%),
    linear-gradient(135deg, #0A5C37 0%, #0E7C4A 55%, #13915A 100%);
  padding: 64px 0 72px;
}
.tx-hero::after {            /* vạch đường kẻ ở đáy hero */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 46px, transparent 46px 84px);
}
.tx-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.tx-hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 900; line-height: 1.1; margin: 0 0 14px; color: #fff; }
.tx-hero h1 span { color: var(--tx-yellow); }
.tx-hero .tx-lead { font-size: 1.1rem; line-height: 1.65; color: #E3F4EA; margin: 0 0 24px; max-width: 58ch; }
.tx-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.tx-ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tx-ticks li { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; color: #fff; }
.tx-ticks img { width: 18px; height: 18px; }
.tx-hero.small { padding: 48px 0 60px; }
.tx-crumb { font-size: .9rem; margin-bottom: 10px; color: #CFEBDB; }
.tx-crumb a { color: #fff !important; text-decoration: underline; }

/* 5. Thẻ tài xế */
.tx-driver {
  background: #fff;
  color: var(--tx-ink);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.tx-car {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 62%;          /* anh xe that, Henry gui 23/11 */
}
.tx-driver-head {
  background: var(--tx-yellow);
  color: #1d1500;
  font-weight: 900;
  letter-spacing: .02em;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tx-driver-head img { width: 22px; height: 22px; }
.tx-rows { padding: 8px 20px 4px; }
.tx-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--tx-line); }
.tx-row span { color: var(--tx-muted); font-weight: 600; }
.tx-row b { font-weight: 800; text-align: right; }
.tx-row b span { color: inherit; }
.tx-row a { color: var(--tx-green) !important; text-decoration: none; }
.tx-plate {
  display: inline-block;
  border: 2px solid #1b1b1b;
  border-radius: 6px;
  padding: 1px 8px;
  background: #fffbe8;
  font-family: "Roboto Mono", Consolas, monospace;
  letter-spacing: .04em;
}
.tx-driver-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 20px 20px; }
.tx-driver-foot .tx-btn { min-height: 46px; padding: 0 10px; font-size: .95rem; }

/* 6. Lưới tuyến xe */
.tx-routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tx-route {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--tx-line);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: var(--tx-ink) !important;
  box-shadow: var(--tx-shadow);
  transition: transform .15s, border-color .15s;
}
.tx-route:hover { transform: translateY(-3px); border-color: var(--tx-green); }
.tx-route .tx-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tx-green-soft); color: var(--tx-green); }
.tx-route .tx-ico img { width: 24px; height: 24px; }
.tx-route b { font-size: 1.05rem; margin-top: 6px; }
.tx-route small { color: var(--tx-muted); line-height: 1.5; font-size: .9rem; }
.tx-route em { font-style: normal; color: var(--tx-green); font-weight: 700; font-size: .9rem; margin-top: auto; padding-top: 6px; }

/* 7. Lý do chọn */
.tx-why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tx-why div { background: #fff; border-radius: 14px; padding: 22px; box-shadow: var(--tx-shadow); }
.tx-why .tx-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--tx-green); color: #fff; }
.tx-why .tx-ico img { width: 24px; height: 24px; }
.tx-why h3 { font-size: 1.05rem; margin: 14px 0 6px; color: var(--tx-green-2); }
.tx-why p { margin: 0; color: var(--tx-muted); line-height: 1.6; font-size: .95rem; }

/* 8. Các bước đặt xe */
.tx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.tx-steps li { list-style: none; background: #fff; border-radius: 14px; padding: 22px 22px 22px 70px; position: relative; box-shadow: var(--tx-shadow); line-height: 1.6; color: var(--tx-muted); }
.tx-steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 20px; top: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--tx-yellow);
  color: #1d1500;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.tx-steps b { display: block; color: var(--tx-ink); font-size: 1.02rem; }
.tx-steps ol { padding: 0; margin: 0; }

/* 9. Trang tuyến */
.tx-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.tx-prose h2 { font-size: 1.45rem; color: var(--tx-green-2); margin: 28px 0 10px; line-height: 1.3; }
.tx-prose h2:first-child { margin-top: 0; }
.tx-prose p { color: var(--tx-ink); line-height: 1.75; margin: 0 0 12px; }
.tx-prose ul { margin: 0 0 12px; padding-left: 0; list-style: none; }
.tx-prose li { position: relative; padding: 6px 0 6px 28px; line-height: 1.6; }
.tx-prose li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--tx-yellow); box-shadow: 0 0 0 3px #fff3c4; }
.tx-side { position: sticky; top: 136px; display: grid; gap: 16px; }
.tx-related { background: #fff; border: 1px solid var(--tx-line); border-radius: 14px; padding: 18px 20px; }
.tx-related h3 { margin: 0 0 8px; font-size: 1rem; color: var(--tx-green-2); }
.tx-related a { display: block; padding: 12px 0; border-bottom: 1px solid var(--tx-line); color: var(--tx-ink) !important; text-decoration: none; font-weight: 600; }
.tx-related a:last-child { border-bottom: 0; }
.tx-related a:hover { color: var(--tx-green) !important; }
.tx-note { background: #fff8db; border-left: 4px solid var(--tx-yellow-2); padding: 14px 16px; border-radius: 10px; color: #5c4400; line-height: 1.6; margin: 16px 0; }

/* 10. Header / footer */
/* Ghim thanh Hotline + header khi cuộn (Henry 23/11 15:14). Header của CMS đã sticky top:0;
   thanh Hotline thì không -> ghim nó ở top:0, header nằm ngay dưới (cao cố định 34px). */
.site-topbar {
  position: sticky;
  top: 0;
  z-index: 1001;
  height: 34px;
  overflow: hidden;           /* giữ đúng 34px để header không đè lên */
}
.site-topbar .topbar-container { height: 34px; align-items: center; }
.site-header { top: 34px !important; }   /* theme.css đặt top:0 */
html { scroll-padding-top: 160px; }      /* link #tuyen-xe không bị phần ghim che */

/* Số điện thoại nhấp nháy sáng cho khách chú ý (Henry 23/11 15:16).
   Nhịp 1,6 giây (dưới ngưỡng chớp gây khó chịu); tắt khi người dùng bật giảm chuyển động. */
@keyframes txPhoneText {
  0%, 100% { color: #FFFFFF; text-shadow: none; }
  50% { color: #FFE27A; text-shadow: 0 0 10px rgba(255, 214, 80, .95); }
}
@keyframes txPhoneRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 194, 14, .85); }
  70% { box-shadow: 0 0 0 12px rgba(255, 194, 14, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 194, 14, 0); }
}
.site-topbar a.topbar-item {
  font-weight: 800;
  animation: txPhoneText 1.6s ease-in-out infinite;
}
.site-header .header-cta,
.site-header .header-cta-mobile {
  animation: txPhoneRing 1.6s ease-out infinite;
}
.site-header .header-cta-mobile {
  background: var(--tx-yellow) !important;   /* nút gọi trên điện thoại cùng màu vàng như máy tính */
  border-color: var(--tx-yellow) !important;
  color: #1d1500 !important;
  font-weight: 800;
}
@media (prefers-reduced-motion: reduce) {
  .site-topbar a.topbar-item, .site-header .header-cta, .site-header .header-cta-mobile { animation: none; }
}

.site-header .header-cta, .header-actions > a.header-cta {
  background: var(--tx-yellow) !important;   /* rule CMS đã dùng màu chính */
  border-color: var(--tx-yellow) !important;
  color: #1d1500 !important;
  font-weight: 800;
}
.site-footer { background: linear-gradient(180deg, #0B4A2D, #072F1D) !important; color: #CFE3D7 !important; }
.site-footer a { color: #CFE3D7 !important; }
.site-footer a:hover { color: var(--tx-yellow) !important; }
.site-footer h4, .site-footer .footer-col-title, .site-footer .site-logo span { color: #fff !important; }
.site-footer .footer-slogan { color: var(--tx-yellow) !important; }
.site-footer .footer-bottom, .site-footer .footer-bottom * { color: #9CC0AB !important; }

/* Logo: bản CMS này luôn vẽ icon mặc định trước tên site -> ẩn, thay bằng logo taxi */
.site-logo svg { display: none; }
.site-logo::before { content: ""; width: 36px; height: 36px; flex: 0 0 36px; margin-right: 8px; background: url('/uploads/site/favicon-taxivungtau.svg') center/contain no-repeat; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo span { color: var(--tx-green-2); font-weight: 900; }

/* 11. Form đặt xe */
.block-contact .btn-primary { background: var(--tx-green) !important; border-color: var(--tx-green) !important; min-height: 50px; font-weight: 800; }

/* 12. Responsive */
@media (max-width: 1024px) {
  .tx-routes, .tx-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tx-hero-grid, .tx-page { grid-template-columns: 1fr; gap: 28px; }
  .tx-side { position: static; }
  .tx-steps { grid-template-columns: 1fr; }
  .tx-sec { padding: 52px 0; }
}
@media (max-width: 560px) {
  .tx-wrap { padding: 0 16px; }
  .tx-routes, .tx-why { grid-template-columns: 1fr; }
  .tx-hero { padding: 40px 0 56px; }
  .tx-hero-actions .tx-btn { flex: 1 1 100%; }
  .tx-row b { font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tx-btn, .tx-route { transition: none; }
}
