/*
Theme Name: Taxi Đồng Xoài
Theme URI: https://dongxoaitaxi.io.vn/
Author: Taxi Đồng Xoài
Description: Theme WordPress riêng cho Taxi Đồng Xoài, tối ưu đặt xe nhanh và hiển thị dịch vụ taxi địa phương.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: taxi-binh-long
*/

:root {
  --red-950: #07101e;
  --red-900: #0b192e;
  --red-800: #132644;
  --red-700: #ffb700;
  --red-600: #ff9d00;
  --rose-100: #fff8e6;
  --rose-200: #ffe8aa;
  --rose-300: #ffd000;
  --ink: #0b192e;
  --muted: #4a5d78;
  --line: #d8e2ec;
  --paper: #f4f7fa;
  --surface: #ffffff;
  --wash: #ebf1f7;
  --blue: #0088ff;
  --shadow: 0 10px 28px rgba(11, 25, 46, .09);
  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a, button, .btn, .hotline, .main-nav a, .sticky-actions a, .inline-cta a, .site-footer a, .service-card {
  transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

:focus-visible {
  outline: 2px solid var(--red-700);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  background: var(--red-900);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 25, 46, .96);
  border-bottom: 2px solid rgba(255, 183, 0, .3);
  color: #fff;
  backdrop-filter: blur(8px);
}

.admin-bar .site-header {
  top: 32px;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-mark img {
  display: block;
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255, 183, 0, .2);
  color: #ffb700;
}

.hotline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--red-700), var(--red-600));
  color: #0b192e;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(255, 183, 0, .3);
}

.hotline:hover {
  box-shadow: 0 14px 30px rgba(255, 183, 0, .4);
  transform: translateY(-1px);
}

.hotline:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(255, 183, 0, .3);
}

/* Homepage Hero */
.hero {
  background:
    linear-gradient(118deg, rgba(11, 25, 46, .94), rgba(19, 38, 68, .86)),
    url("assets/images/hero-bg.jpeg") center/cover no-repeat;
  color: #fff;
  padding: 52px 0 40px;
}

/* Detail Page Hero - Fixing White-on-White text and invisible buttons */
.page-hero {
  padding: 52px 0;
  background: linear-gradient(125deg, #0b192e, #132644) !important;
  color: #ffffff !important;
  border-bottom: 3px solid #ffb700 !important;
}

.page-hero h1 {
  font-size: 38px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

.page-hero .eyebrow {
  color: #ffb700 !important;
  font-weight: 900 !important;
}

.page-hero .lead {
  color: #e2e8f0 !important;
  font-size: 18px !important;
}

.page-hero .btn-primary {
  background: linear-gradient(145deg, #ffb700, #ff8c00) !important;
  color: #0b192e !important;
  font-weight: 900 !important;
  box-shadow: 0 8px 22px rgba(255, 183, 0, 0.4) !important;
  border: none !important;
}

.page-hero .btn-primary:hover {
  background: linear-gradient(145deg, #ffd000, #ffb700) !important;
  transform: translateY(-2px) !important;
}

.page-hero .btn-secondary {
  background: #1d3557 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border: 1.5px solid #ffb700 !important;
}

.page-hero .btn-secondary:hover {
  background: #ffb700 !important;
  color: #0b192e !important;
  border-color: #ffb700 !important;
  transform: translateY(-2px) !important;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  align-items: center;
  gap: 36px;
}

.reverse {
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.05fr);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffb700;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-wrap: balance;
  color: #ffffff;
}

h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-wrap: balance;
  color: #0b192e;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0b192e;
}

p {
  margin: 12px 0 0;
}

.lead {
  font-size: 18px;
  color: rgba(255, 255, 255, .88);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(145deg, var(--red-700), var(--red-600));
  color: #0b192e;
  box-shadow: 0 12px 26px rgba(255, 183, 0, .28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 183, 0, .36);
}

.btn-secondary {
  border: 1px solid #ffb700;
  background: #132644;
  color: #fff;
}

.btn-secondary:hover {
  background: #ffb700;
  color: #0b192e;
}

.btn-dark {
  background: var(--red-900);
  color: #fff;
}

.btn-dark:hover {
  background: var(--red-800);
}

.hero-media img,
.feature-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.quick-contact {
  padding: 24px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.quick-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}

.quick-grid strong {
  display: block;
  font-size: 18px;
  color: #0b192e;
}

.quick-grid span {
  color: var(--muted);
}

.quick-phone {
  font-size: 30px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--red-700);
}

.quick-phone:hover {
  color: var(--red-600);
}

.transparency-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 232, 170, .55), transparent 32%),
    linear-gradient(180deg, #fff, var(--paper));
}

.transparency-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
  gap: 28px;
  align-items: stretch;
}

.transparency-grid > div:first-child,
.transparency-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
}

.transparency-card {
  background: linear-gradient(180deg, #fff, var(--rose-100));
}

.transparency-card h3 {
  color: var(--ink);
}

.transparency-card a {
  color: var(--red-900);
  font-weight: 900;
}

.section {
  padding: 56px 0;
}

.service-band {
  background: var(--wash);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.price-card,
.about-card,
.route-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.price-card {
  overflow-x: auto;
}

.price-card h3 {
  margin-bottom: 14px;
  color: var(--ink);
}

.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.area-pills span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--red-900);
  font-size: 14px;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: var(--red-900);
  color: #ffb700;
}

tr:last-child td {
  border-bottom: 0;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(11, 25, 46, .08);
}

.service-card:hover {
  border-color: var(--red-700);
  box-shadow: 0 16px 34px rgba(11, 25, 46, .14);
  transform: translateY(-3px);
}

.service-card a {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card div {
  padding: 18px;
}

.service-card p {
  color: var(--muted);
}

.service-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--red-900);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 30px;
  color: #1e293b !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--red-700);
  border-bottom: 3px solid var(--red-700);
  transform: rotate(-45deg);
}

.about-card {
  margin-top: 24px;
  background: #ffffff !important;
  border: 1.5px solid #d8e2ec !important;
  border-left: 5px solid #ffb700 !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 10px 25px rgba(11, 25, 46, 0.08) !important;
}

.about-card strong {
  display: block;
  color: #0b192e !important;
  font-size: 19px !important;
  font-weight: 800 !important;
}

.about-card p {
  color: #334155 !important;
  font-size: 16px !important;
}

.cta-section {
  padding-top: 0;
}

.cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--red-900), var(--red-800));
  color: #fff;
  box-shadow: var(--shadow);
}
.cta-box h2 {
	color: #fff !important;
}
.cta-box p {
  color: rgba(255, 255, 255, .84);
}

/* Detail Content Section Styling */
.text-only {
  padding-bottom: 36px;
}

.content {
  max-width: 860px;
}

.content h2 {
  margin-top: 32px;
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0b192e !important;
  border-bottom: 2px solid #ffb700;
  display: inline-block;
  padding-bottom: 4px;

}

.content h2:first-child {
  margin-top: 0;
}

.content p,
.content li {
  color: #1e293b !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

.legal p {
  font-size: 17px;
  color: #334155 !important;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.route-card h3 {
  color: var(--ink);
}

/* Inline CTA Box inside detail pages */
.inline-cta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 28px !important;
  padding: 18px 24px !important;
  border: 1.5px solid #ffb700 !important;
  border-radius: var(--radius-md) !important;
  background: #0b192e !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(11, 25, 46, 0.15) !important;
}

.inline-cta strong {
  color: #ffb700 !important;
  font-size: 17px !important;
}

.inline-cta a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffb700, #ff8c00) !important;
  color: #0b192e !important;
  font-weight: 900 !important;
}

.inline-cta a:hover {
  background: linear-gradient(135deg, #ffd000, #ffb700) !important;
  transform: translateY(-2px) !important;
}

.site-footer {
  padding: 48px 0 28px;
  background: var(--red-950);
  color: rgba(255, 255, 255, .86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .95fr .8fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  gap: 14px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.footer-mark {
  flex: 0 0 auto;
}

.footer-mark img {
  height: 38px;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 18px;
  border-bottom: 2px solid #ffb700;
  display: inline-block;
  padding-bottom: 4px;

}

.site-footer a {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-weight: 800;
}

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

.footer-note {
  margin-top: 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 14px;
}

.sticky-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  gap: 10px;
}

.sticky-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(11, 25, 46, .22);
}

.sticky-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(11, 25, 46, .3);
}

.sticky-actions a:active {
  transform: translateY(0);
}

.sticky-call {
  background: linear-gradient(145deg, var(--red-700), var(--red-600));
  color: #0b192e !important;
}

.sticky-zalo {
  background: var(--blue);
  color: #fff !important;
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .hotline {
    margin-left: auto;
  }

  .hero-grid,
  .split,
  .reverse,
  .quick-grid,
  .transparency-grid,
  .cta-box,
  .footer-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid {
    padding: 18px 0;
  }

  .quick-phone {
    font-size: 26px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 24px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand-mark img {
    height: 38px;
  }

  .hotline {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .hero,
  .page-hero,
  .section {
    padding: 32px 0;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 21px;
  }

  .lead {
    font-size: 17px;
  }

  .btn,
  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
    white-space: normal;
  }

  .price-card,
  .about-card,
  .route-card,
  .cta-box {
    padding: 20px;
  }

  .sticky-actions {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .sticky-actions a {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
    font-size: 14px;
  }
}
