/* ==========================================================================
   Avory Travel — Về Avory (About us)
   Brand identity kế thừa từ styles.css của trang chủ:
   xanh #0d5148, cam #f37857 (trang này: vàng #f8c37f → #bd8450, xem token),
   nền kem #faf7f2, font Inter, bo góc 16px,
   nút dạng viên thuốc, container 1280px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
/* Hệ số cỡ chữ (trang tour Châu Âu, 2026-10-05): MỌI font-size px (và
   line-height px) ở base.css / visa.css / chau-au.css viết dạng
   calc(Npx * var(--fs)). Chữ to ×1,10 chỉ ở desktop (≥1025px) — khách thử
   ×1,25 trước, thấy to quá, tràn chữ; tablet / điện thoại giữ nguyên cỡ cũ
   (--fs: 1). Thêm cỡ chữ mới thì viết cùng dạng. File này từ đây KHÁC bản
   base.css của dich-vu-visa. */
:root { --fs: 1; }
@media (min-width: 1025px) {
  :root { --fs: 1.1; }
}
:root {
  /* Màu thương hiệu — giống hệt trang chủ */
  --primary:      #173633;
  --green:        #0d5148;
  --green-deep:   #0a3b34;
  --green-bright: #00a791;
  /* Vàng ánh kim (2026-10-06) — khách: thay MỌI chỗ cam (#f37857 / #e05f3d)
     bằng dải #f8c37f → #bd8450. Chỗ vẽ được gradient dùng --gold-grad: nền,
     chữ (background-clip: text), icon SVG (stroke/fill url(#gold-grad) — khai
     báo <linearGradient> ẩn đầu <body> trong index.html, toạ độ theo lưới icon
     24×24). Chỗ chỉ nhận MỘT màu (viền mảnh, outline, checkbox, bóng toả) dùng
     --gold (điểm giữa dải) hoặc --gold-dark. Chú thích cũ trong 3 file CSS còn
     gọi màu nhấn là "cam" — từ ngày này đọc là vàng. */
  --gold-light:     #f8c37f;
  --gold-dark:      #bd8450;
  --gold:           #dba468;
  --gold-grad:      linear-gradient(135deg, #f8c37f, #bd8450);
  --gold-grad-deep: linear-gradient(135deg, #ebb46e, #a87240);  /* nút khi rê chuột */
  --gold-line:      linear-gradient(90deg, #f8c37f, #bd8450);   /* gạch chân / vạch mảnh */
  --blue:         #0b448b;
  --yellow:       #f4ae00;
  --ink:          #1a2b26;
  --page-bg:      #faf7f2;
  --mint:         #eef3f0;   /* nền phụ, pha từ --green */
  --mint-deep:    #e4ece8;
  --border-color: #e2e8f0;
  --card-border:  #e6ded2;
  --text-medium:  #475569;
  --muted:        #7b7b7b;
  --white:        #fff;
  --white-80:     rgba(255, 255, 255, .8);
  --white-70:     rgba(255, 255, 255, .7);
  --white-60:     rgba(255, 255, 255, .6);
  --white-20:     rgba(255, 255, 255, .2);
  --white-10:     rgba(255, 255, 255, .1);
  --white-12:     rgba(255, 255, 255, .12);

  /* Hình khối */
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Bố cục */
  --container: 1280px;
  --gutter: 16px;
  --section-gap: 170px;

  /* Nhịp chuyển động */
  --ease-out:  cubic-bezier(.22, .61, .36, 1);    /* giảm tốc mượt   */
  --ease-back: cubic-bezier(.34, 1.46, .64, 1);   /* nảy nhẹ khi vào */

  /* Đổ bóng */
  --shadow-card:  0 1px 2px rgba(0, 0, 0, .05);
  --shadow-soft:  0 12px 30px -18px rgba(13, 81, 72, .35);
  --shadow-lift:  0 24px 48px -28px rgba(13, 81, 72, .45);
  --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--primary);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: calc(16px * var(--fs));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

svg { display: block; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-md) 0;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Thành phần dùng chung
   -------------------------------------------------------------------------- */

/* ---- Tiêu đề mục ---- */
.h2 {
  margin-top: 20px;
  font-size: calc(40px * var(--fs));
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--green);
}
.h2--light { color: var(--white); }
.h2--center { text-align: center; }
/* tên thương hiệu tô vàng (gradient theo chữ) trong tiêu đề — không nghiêng
   như .story__copy .h2 em. clone: mỗi dòng (khi .brand xuống dòng) có trọn dải.
   padding-block: chữ gradient chỉ được tô TRONG hộp nền của phần tử; dấu chồng
   trên chữ HOA ("LỄ", "HỘI" — mũ + ngã) cao hơn hộp chữ của Inter nên bị cắt
   mất, "LỄ" thành "LÊ" (2026-10-06). Nới hộp nền lên/xuống — phần tử inline
   nên padding dọc không đổi chiều cao dòng. */
.brand {
  padding-block: .3em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.lead {
  margin-top: 20px;
  font-size: calc(16.5px * var(--fs));
  line-height: 1.75;
  color: var(--text-medium);
}

/* ---- Nút ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 22px;
  border-radius: var(--radius-full);
  font-size: calc(14.5px * var(--fs));
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--white);
}
.btn__dot svg {
  width: 15px; height: 15px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--accent { background: var(--gold-grad); color: var(--white); }
.btn--accent:hover { background: var(--gold-grad-deep); }
.btn--accent .btn__dot svg { stroke: url(#gold-grad) var(--gold); }

.btn--lg { padding: 13px 13px 13px 26px; font-size: calc(15.5px * var(--fs)); }
.btn--lg .btn__dot { width: 32px; height: 32px; }

/* --------------------------------------------------------------------------
   4. Thanh điều hướng — đồng bộ với trang chủ (styles.css)
   -------------------------------------------------------------------------- */
.nav {
  background: var(--white);
}
.nav__inner {
  display: flex;
  align-items: center;
  min-height: 75px;
  padding-block: 7.5px;
}
.nav__brand { flex: none; }
/* Logo AVORY chữ V vàng (2026-10-07, logo-avory-chau-au.svg 900×369, 2,44:1 —
   chỉ chữ AVORY, không dòng phụ) — cao cố định, rộng theo tỉ lệ: 44px → rộng
   107px, đúng bề ngang logo nav ban đầu (105px). Trước đó (2026-10-06) là logo
   "AVORY · TOUR CHÂU ÂU" cao 58px. */
.nav__logo { width: auto; height: 44px; }

/* <nav> mới là flex item — margin auto ở đây và ở .nav__actions chia đều
   chỗ trống hai bên menu, thay cho margin-left: 294.6px cứng của bản Figma */
.nav__inner > nav { margin-left: auto; }
.nav__menu { display: flex; gap: 28px; flex: none; }
.nav__menu a {
  display: flex;
  align-items: center;
  height: 41px;
  padding-block: 8px;
  white-space: nowrap;
  font-size: calc(15px * var(--fs));
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: calc(24px * var(--fs));
  color: var(--green);
  border-bottom: 1px solid transparent;
}
.nav__menu a[aria-current="page"] { border-image: var(--gold-line) 1; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   10. Footer — đồng bộ với trang chủ (styles.css)
   -------------------------------------------------------------------------- */
.footer {
  margin-top: var(--section-gap);   /* nhịp mục của trang Về Avory */
  background: var(--green);
  color: var(--white);
}
.footer__top { padding-top: 25px; }
.footer__logo { width: 176px; height: 87px; object-fit: contain; }

.footer__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding: 30px 0 45px;
}
.footer h3 {
  font-size: calc(16px * var(--fs));
  font-weight: 700;
  line-height: calc(19.2px * var(--fs));
  text-transform: uppercase;
  color: var(--white);
}

.footer__address {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  font-size: calc(14.4px * var(--fs));
  line-height: calc(21.6px * var(--fs));
  color: var(--white-80);
}
.footer__address img { width: 16px; height: 16px; margin-top: 2.4px; flex: none; }

.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  font-size: calc(14.4px * var(--fs));
  line-height: calc(21.6px * var(--fs));
  color: var(--white-80);
}
.footer__social ul { display: flex; gap: 8px; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--white-20);
  border-radius: 16px;
}
.footer__social img { width: 18px; height: 18px; }

.footer__hotline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 9.6px 24px;
  border-radius: var(--radius-full);
  background: var(--gold-grad);
}
.footer__hotline img { width: 24px; height: 24px; }
.footer__hotline b {
  display: block;
  font-size: calc(26px * var(--fs));
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: calc(28.6px * var(--fs));
  color: var(--white);
}
.footer__hotline small {
  display: block;
  font-size: calc(12px * var(--fs));
  font-weight: 500;
  line-height: calc(14.4px * var(--fs));
  color: var(--white);
}

.footer__links { margin-top: 24px; display: grid; gap: 13.6px; }
.footer__links a {
  font-size: calc(14.4px * var(--fs));
  line-height: calc(21.6px * var(--fs));
  color: var(--white-80);
}
.footer__links a:hover { color: var(--white); }

.footer__badges { margin-top: 24px; display: grid; gap: 12px; }
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  padding: 8px 12px;
  border: 1px solid var(--white-20);
  border-radius: 6px;
  background: var(--white);
}
.badge img { flex: none; }
.badge--bct img { width: 28px; height: 28px; }
.badge--bct span {
  font-size: calc(12px * var(--fs));
  font-weight: 700;
  line-height: calc(18px * var(--fs));
  text-transform: uppercase;
  color: var(--primary);
}
.badge--dmca img { width: 24px; height: 24px; }
.badge--dmca span {
  font-size: calc(12.8px * var(--fs));
  font-weight: 800;
  line-height: calc(19.2px * var(--fs));
  color: #22c55e;
}

.footer__pay-title { margin-top: 32px; }
.footer__pay {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 15.99px;
}
.pay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 4px 8px;
  border: 1px solid var(--white-20);
  border-radius: 6px;
  background: var(--white);
  font-size: calc(14.4px * var(--fs));
  font-weight: 800;
  letter-spacing: -0.5px;
}
/* Logo chuẩn của từng hãng (2026-10-06, thay chữ/khối CSS tự vẽ) — ảnh trong
   assets/pay-*.svg, nguồn ghi ở README. Cao riêng từng logo cho cân thị giác
   (chữ dẹt cao ít, biểu tượng vuông cao nhiều), không vượt ô 28px. */
.pay img { display: block; width: auto; max-width: 100%; height: 16px; }
.pay--visa img  { height: 15px; }
.pay--mc img    { height: 24px; }
.pay--jcb img   { height: 26px; }
.pay--vnpay img { height: 19px; }
.pay--zalo img  { height: 17px; }
.pay--momo img  { height: 26px; }

.footer__legal {
  padding: 32px 0;
  border-top: 1px solid var(--white-10);
  text-align: center;
  font-size: calc(13.6px * var(--fs));
  line-height: calc(20.4px * var(--fs));
  color: var(--white-60);
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */

/* ---- laptop nhỏ ---- */
@media (max-width: 1200px) {
  :root { --section-gap: 136px; }

  .nav__menu { gap: 20px; }

  .h2 { font-size: calc(34px * var(--fs)); }

}

/* ---- tablet ---- */
@media (max-width: 1024px) {
  /* 5 mục + nhóm icon không đủ chỗ ở dải 761–900px: siết chữ, ẩn nhóm icon */
  .nav__menu { gap: 14px; }
  .nav__menu a { font-size: calc(14px * var(--fs)); }
  .nav__actions { display: none; }

  /* Lưới về 1 cột. Khung cũ (cao cố định 380px, rộng cả cột → tỉ lệ 2.5) vốn
     dựng cho ảnh ngang; ảnh dọc 0.667 rơi vào đó bị cắt mất 73% chiều cao,
     chỉ còn thấy chân. Nay giữ khung vuông và chặn bề ngang để ảnh dọc còn
     nguyên dáng, nhóm người nằm giữa khung. */

  /* 3 trụ cột: xuống 1 cột để giữ mức hiển thị ngang nhau */

  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---- mobile ---- */
@media (max-width: 760px) {
  :root { --section-gap: 102px; }

  /* nav: giống trang chủ — ẩn menu và nhóm icon */
  .nav__menu, .nav__actions { display: none; }
  .nav__inner { justify-content: space-between; }

  .h2 { font-size: calc(27px * var(--fs)); margin-top: 16px; }

  .story__inset { order: -1; }              /* ảnh phụ lên trên khối chữ */

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

@media (max-width: 480px) {
  .footer__pay { gap: 8px; }
}

/* ---- người dùng tắt hiệu ứng chuyển động ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
  .btn:hover, .milestone:hover, .pillar:hover { transform: none; }

  /* giữ đổi màu khi hover, bỏ mọi chuyển động của 3 thẻ trụ cột */
  .pillar:hover::before { transform: scaleX(1); }
  .pillar:hover::after  { transform: scale(1); }
  .pillar:hover .pillar__ico { transform: none; }
  .pillar:hover h3 { transform: none; }

  /* tương tự cho thẻ cột mốc */
  .milestone:hover .milestone__frame img { transform: none; }
  .milestone:hover .milestone__year { transform: translateX(-50%); }
}

/* ---- in ấn ---- */
@media print {
  .nav, .footer { display: none; }
}
