/* ============================================================
   Xuân Phong Travel — style.css
   HTML thuần, mobile-first, không framework
   Đổi màu toàn site: sửa biến :root bên dưới
   ============================================================ */

:root {
  /* Bảng màu theo logo: đỏ, nâu gỗ, trắng be — tông tươi */
  --primary: #b42b4b;        /* đỏ tươi từ đỏ đô logo */
  --primary-dark: #8e2339;
  --primary-light: #fdeef0;  /* hồng be sáng */
  --accent: #e09b42;         /* nâu gỗ sáng / hổ phách */
  --accent-dark: #c27d2a;
  --bg-soft: #fdf9f1;        /* trắng be sáng */
  --text: #3b2a22;           /* nâu đậm */
  --text-muted: #8a7669;
  --white: #ffffff;
  --border: #f0e3d0;
  --shadow: 0 4px 20px rgba(142, 35, 57, 0.10);
  --radius: 12px;
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #2e1c08; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: .85rem;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--white); }
.topbar-contacts { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}
.logo .logo-mark { width: 40px; height: 40px; flex: none; }
.logo .logo-text {
  display: flex;
  flex-direction: column;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: .01em;
}
.logo .logo-text small {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-dark);
  margin-top: 3px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--primary-dark);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-menu a {
  color: var(--text);
  font-weight: 500;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu .btn { padding: 10px 22px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(224,155,66,.28), transparent 40%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #cf4063 100%);
  color: var(--white);
  padding: 64px 0 72px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: #f6c178; }
.hero p { font-size: 1.05rem; opacity: .92; margin-bottom: 26px; }
.hero-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges li {
  background: rgba(255,255,255,.14);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: .88rem;
}

/* Hero actions */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Card liên hệ (thay form) */
.contact-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--primary-dark); }
.contact-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 18px; }
.contact-card .btn { width: 100%; margin-top: 12px; }
.contact-card form { text-align: left; }
.contact-card label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin: 12px 0 4px;
}
.contact-card input, .contact-card select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg-soft);
}
.contact-card input:focus, .contact-card select:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: .82rem;
  margin-top: 20px;
}
.form-divider::before, .form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-zalo { background: #0068ff; color: var(--white); }
.btn-zalo:hover { background: #0052cc; }
.btn-fb { background: #1877f2; color: var(--white); }
.btn-fb:hover { background: #135fc4; }

/* ---------- Sections chung ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-head h2 { font-size: 1.7rem; line-height: 1.3; }
.section-head p { color: var(--text-muted); margin-top: 10px; }

/* ---------- About + Stats ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.about-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-grid h2 { font-size: 1.7rem; line-height: 1.3; margin: 10px 0 12px; }
.about-grid .lead { color: var(--text-muted); margin-bottom: 26px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 800;
}
.stat span { color: var(--text-muted); font-size: .9rem; }

/* ---------- Cards (dịch vụ / lý do) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--primary-light);
  border-radius: 12px;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .93rem; }

/* ---------- Countries ---------- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.country-card {
  position: relative;
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px 22px;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.country-card .thumb {
  width: calc(100% + 36px);
  max-width: none;
  height: auto;
  margin: 0 -18px 14px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.country-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.country-card .flag { font-size: 1.6rem; line-height: 1; }
.country-card h3 { font-size: 1.05rem; margin: 6px 0 4px; }
.country-card .price { color: var(--primary-dark); font-weight: 700; font-size: .9rem; }
.country-card.soon { pointer-events: none; }
.country-card.soon .thumb { filter: grayscale(.45) opacity(.75); }
.country-card.soon h3, .country-card.soon .price { opacity: .6; }
.country-card.soon::after {
  content: "Sắp ra mắt";
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: #4a3000;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
}

/* ---------- Testimonials (scroll-snap, không carousel JS) ---------- */
.testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.testi-track::-webkit-scrollbar { height: 6px; }
.testi-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.testi {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.testi .stars { color: var(--accent-dark); margin-bottom: 10px; letter-spacing: 2px; }
.testi blockquote { font-size: .95rem; color: var(--text-muted); margin-bottom: 16px; }
.testi figcaption strong { display: block; font-size: .95rem; }
.testi figcaption span { font-size: .82rem; color: var(--text-muted); }

/* ---------- Kết quả thực tế ---------- */
.result-grid {
  columns: 2;
  column-gap: 16px;
}
.result-item {
  break-inside: avoid;
  margin: 0 0 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.result-item a { display: block; }
.result-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .2s ease;
}
.result-item a:hover img { transform: scale(1.02); }
.result-item figcaption {
  padding: 10px 14px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-band p { opacity: .9; margin-bottom: 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.contact-info li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.contact-info .icon { flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: #33201a;   /* nâu gỗ */
  color: #e3d3c4;
  padding: 56px 0 0;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 16px; }
.site-footer .logo { color: #f3e6d6; margin-bottom: 12px; }
.site-footer .logo-mark { background: var(--white); border-radius: 10px; padding: 3px; }
.site-footer .logo .logo-text small { color: var(--accent); }
.site-footer a { color: #e3d3c4; }
.site-footer a:hover { color: var(--accent); }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  text-align: center;
  font-size: .82rem;
}

/* ============================================================
   Trang nước (country page)
   ============================================================ */
.breadcrumb {
  background: var(--bg-soft);
  padding: 12px 0;
  font-size: .85rem;
}
.breadcrumb ol { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--text-muted); }
.breadcrumb [aria-current] { color: var(--text-muted); }

.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 48px 0;
}
.page-hero .flag { font-size: 3rem; line-height: 1; margin-bottom: 12px; }
.page-hero h1 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 10px; }
.page-hero p { max-width: 640px; opacity: .92; }

/* Bảng thông tin visa */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.info-table th, .info-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.info-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  white-space: nowrap;
  width: 200px;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }

/* Các bước (text SEO chính bên cạnh video) */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 22px 70px;
  position: relative;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: .93rem; }

/* Hồ sơ checklist */
.doc-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .doc-grid.cols-2 { grid-template-columns: repeat(2, 1fr); align-items: start; } }
.doc-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.doc-block > h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.doc-block h4 {
  font-size: .95rem;
  margin: 18px 0 8px;
  color: var(--text);
}
.doc-block h4:first-of-type { margin-top: 0; }
.doc-list { display: grid; gap: 9px; }
.doc-list li {
  position: relative;
  padding-left: 28px;
  font-size: .93rem;
  color: var(--text);
  line-height: 1.5;
}
.doc-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.doc-list li small { display: block; color: var(--text-muted); font-size: .85rem; }
.doc-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--primary-light);
  border-radius: 8px;
  font-size: .88rem;
  color: var(--primary-dark);
  line-height: 1.5;
}

/* TikTok */
.tiktok-wrap { max-width: 340px; margin: 0 auto; }
.tiktok-placeholder {
  aspect-ratio: 9 / 16;
  max-height: 560px;
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  background: var(--primary-light);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--primary-dark);
}
.tiktok-placeholder .play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
}
.video-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

/* FAQ — dùng details/summary thuần HTML */
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--primary);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 16px; color: var(--text-muted); font-size: .94rem; }

/* ============================================================
   Floating contact (Zalo / Facebook / Phone)
   ============================================================ */
.float-contact {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.float-btn .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  font-size: .78rem;
  flex: none;
}
.float-btn.zalo .ico { background: #0068ff; }
.float-btn.fb .ico { background: #1877f2; }
.float-btn.fb .ico svg { width: 11px; height: auto; }
.float-btn.phone {
  background: linear-gradient(135deg, #ff8a1e, #f04438);
  color: var(--white);
  padding-right: 16px;
  animation: pulse 2s infinite;
}
.float-btn.phone .ico { background: rgba(0, 0, 0, .18); }
.float-btn.phone .ico svg { width: 18px; height: auto; }
.float-btn.phone .num { font-weight: 700; font-size: .95rem; white-space: nowrap; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(240,68,56,.55); }
  70%  { box-shadow: 0 0 0 14px rgba(240,68,56,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,68,56,0); }
}

@media (prefers-reduced-motion: reduce) {
  .float-btn.phone { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 480px) {
  /* Topbar gọn: chỉ giữ hotline + email */
  .topbar > .container > span { display: none; }
  .topbar .container { justify-content: center; }

  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 1.65rem; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 1.45rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .cta-band h2 { font-size: 1.35rem; }

  .hero-actions .btn, .cta-actions .btn { width: 100%; text-align: center; }

  /* Bảng thông tin: xếp dọc, hết cramped */
  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { border-bottom: none; padding-bottom: 4px; }
  .info-table td { padding-top: 0; }

  /* Chừa chỗ cho floating buttons */
  .site-footer { padding-bottom: 76px; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 22px;
    gap: 16px;
    box-shadow: 0 12px 20px rgba(0,0,0,.08);
  }
  .nav-menu.open { display: flex; }
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .country-grid { grid-template-columns: repeat(3, 1fr); }
  .result-grid { columns: 3; }
  .testi-track { grid-auto-columns: 46%; }
}

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.2fr .8fr; }
  .hero h1 { font-size: 2.6rem; }
  .about-grid { grid-template-columns: 1.05fr 1fr; }
  .about-grid h2 { font-size: 2rem; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .country-grid { grid-template-columns: repeat(4, 1fr); }
  .result-grid { columns: 4; }
  .testi-track { grid-auto-columns: 32%; }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .video-layout { grid-template-columns: 340px 1fr; }
  .section-head h2 { font-size: 2rem; }
}
