/*
Theme Name: Xe Ghep Quang Ninh
Theme URI: https://xeghepquangninh.com/
Author: Codex
Description: Theme WordPress landing page cho dich vu xe ghep, xe tien chuyen Ha Noi - Hai Phong - Quang Ninh.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: xeghep-quangninh
*/

:root {
  --ink: #14213d;
  --muted: #5f6b7a;
  --line: #d9e2ec;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --brand: #0077b6;
  --brand-dark: #034b74;
  --accent: #f2a900;
  --accent-dark: #c47c00;
  --green: #0f8b63;
  --shadow: 0 22px 60px rgba(20, 33, 61, 0.18);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 226, 236, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--green));
  box-shadow: 0 10px 25px rgba(0, 119, 182, 0.28);
}

.brand strong,
.brand small {
  display: block;
}

.brand .custom-logo {
  width: auto;
  max-height: 54px;
}

.brand-logo {
  width: auto;
  max-width: 170px;
  max-height: 54px;
  object-fit: contain;
}

.brand strong {
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.main-nav li,
.mobile-nav li {
  list-style: none;
}

.main-nav a,
.mobile-nav a {
  border-radius: 999px;
  color: #2d3b4e;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
}

.main-nav a:hover,
.mobile-nav a:hover {
  background: #edf5fb;
  color: var(--brand-dark);
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: var(--accent-dark);
  box-shadow: 0 14px 26px rgba(196, 124, 0, 0.22);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #edf5fb;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.mobile-nav {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 45;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 18px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
}

.hero {
  position: relative;
  min-height: 840px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #102a43;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(13, 35, 62, 0.88), rgba(13, 35, 62, 0.35)),
    url("https://xeghepquangninh.com/wp-content/uploads/2022/01/xe-ghep-quang-ninh.jpg") center / cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 15% 20%, rgba(242, 169, 0, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(16, 42, 67, 0.1), rgba(16, 42, 67, 0.62));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
}

.hero-copy {
  color: #fff;
  max-width: 740px;
}

.eyebrow,
.form-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.cta-section h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 78px);
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button,
.booking-card button,
.cta-section > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
}

.primary-button,
.booking-card button,
.cta-section > a {
  color: #1f2933;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(242, 169, 0, 0.28);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

.booking-card {
  display: grid;
  gap: 15px;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.booking-card h2 {
  margin: 0;
  font-size: 24px;
}

.booking-card label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.booking-card input,
.booking-card select,
.booking-card textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.booking-card textarea {
  resize: vertical;
}

.booking-card input:focus,
.booking-card select:focus,
.booking-card textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-card button {
  border: 0;
  cursor: pointer;
}

.booking-card button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.trust-strip {
  width: min(1180px, calc(100% - 36px));
  margin: -48px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--line);
  box-shadow: 0 18px 40px rgba(20, 33, 61, 0.12);
}

.trust-strip div {
  padding: 24px;
  background: #fff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--brand-dark);
  font-size: 26px;
  line-height: 1.15;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

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

.section-heading h2,
.service-copy h2,
.cta-section h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-heading p:not(.eyebrow),
.service-copy > p,
.cta-section p {
  color: var(--muted);
  margin: 14px 0 0;
}

.routes-grid,
.fleet-grid,
.testimonial-grid {
  display: grid;
  gap: 18px;
}

.routes-grid {
  grid-template-columns: repeat(3, 1fr);
}

.route-card,
.fleet-grid article,
.testimonial-grid figure {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 33, 61, 0.07);
}

.route-card {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.route-card.featured {
  border-color: rgba(242, 169, 0, 0.55);
  box-shadow: 0 16px 36px rgba(242, 169, 0, 0.16);
}

.route-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.route-card h3 {
  margin: 4px 0 0;
  color: var(--brand-dark);
  font-size: 30px;
}

.route-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #3f4d5f;
  font-size: 14px;
}

.route-card li + li {
  margin-top: 8px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.image-panel {
  overflow: hidden;
  min-height: 520px;
  border-radius: 28px;
  background: #dbe8f2;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.service-list article {
  padding: 22px;
  border-left: 4px solid var(--brand);
  border-radius: 16px;
  background: #fff;
}

.service-list span {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.service-list h3,
.fleet-grid h3 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.service-list p,
.fleet-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.fleet-grid {
  grid-template-columns: repeat(3, 1fr);
}

.fleet-grid article {
  overflow: hidden;
}

.fleet-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fleet-grid h3,
.fleet-grid p {
  padding-left: 20px;
  padding-right: 20px;
}

.fleet-grid h3 {
  padding-top: 18px;
}

.fleet-grid p {
  padding-bottom: 22px;
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-grid figure {
  margin: 0;
  padding: 24px;
}

.testimonial-grid blockquote {
  margin: 0;
  color: #2d3b4e;
  font-size: 15px;
}

.testimonial-grid figcaption {
  margin-top: 16px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.cta-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(3, 75, 116, 0.96), rgba(15, 139, 99, 0.92)),
    url("https://xeghepquangninh.com/wp-content/uploads/2022/01/bai-chay-quang-ninh.jpg") center / cover;
}

.cta-section .eyebrow {
  color: #ffe08a;
}

.cta-section p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-section > a {
  flex: 0 0 auto;
  min-width: 190px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  padding: 36px clamp(18px, 4vw, 56px) 96px;
  color: #d7e2ea;
  background: #102a43;
}

.site-footer p {
  max-width: 520px;
  margin: 8px 0 0;
  color: rgba(215, 226, 234, 0.72);
}

.site-footer span {
  display: block;
  color: rgba(215, 226, 234, 0.68);
  font-size: 13px;
}

.site-footer a {
  display: inline-block;
  margin-top: 6px;
  font-weight: 800;
}

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

.floating-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(20, 33, 61, 0.24);
}

.floating-actions a:first-child {
  background: var(--accent-dark);
}

@media (max-width: 980px) {
  .main-nav,
  .header-call {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }

  .booking-card {
    max-width: 560px;
  }

  .trust-strip,
  .routes-grid,
  .fleet-grid,
  .testimonial-grid,
  .split-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section {
    align-items: start;
  }

  .image-panel,
  .image-panel img {
    min-height: 420px;
  }

  .cta-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .cta-section {
    display: grid;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 70px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .mobile-nav {
    top: 70px;
  }

  .hero-content {
    width: calc(100% - 28px);
    padding: 106px 0 42px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary-button,
  .secondary-button {
    padding: 0 12px;
  }

  .booking-card {
    padding: 20px;
    border-radius: 18px;
  }

  .form-grid,
  .trust-strip,
  .routes-grid,
  .service-list,
  .fleet-grid,
  .testimonial-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
  }

  .trust-strip div {
    padding: 20px 18px;
  }

  .section {
    width: calc(100% - 28px);
    padding: 58px 0;
  }

  .image-panel,
  .image-panel img {
    min-height: 320px;
  }

  .cta-section {
    width: calc(100% - 28px);
    margin-bottom: 58px;
    border-radius: 20px;
  }

  .cta-section > a {
    width: 100%;
  }

  .site-footer {
    gap: 18px;
    padding-bottom: 116px;
  }

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

  .floating-actions a {
    flex: 1;
  }
}
