@charset "utf-8";
/* ==========================================================================
   Yenventure — dựng theo hướng Travelic
   Nền kem, tiêu đề serif, nhấn vàng đồng, thẻ tour có khối chữ đè lên ảnh,
   thanh tìm chuyến nằm trong hero.

   LƯU Ý CHỮ TIẾNG VIỆT: dấu chồng (Ồ, Ữ, Ệ) cao tới 1.15em ở chữ thường và
   1.24em ở chữ hoa. Mọi line-height tiêu đề tối thiểu 1.24 — đừng hạ xuống.
   Nhãn dùng chữ thường giãn nhẹ, không IN HOA: hoa tiếng Việt cao hơn 47%.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */

:root {
  --cream:     #FBF8F3;
  --sand:      #F4EADA;
  --sand-2:    #EADFC6;
  --line:      #E2DACB;
  --ink:       #2B2A20;
  --ink-2:     #5F5D4C;
  --ink-3:     #6B6957;   /* trên thẻ trắng 5.55 — #7C7A68 cũ chỉ đạt 4.34 */
  --gold:      #8E672D;   /* nền nút: chữ trắng đạt 5.09 — vàng sáng hơn chỉ 3.2 */
  --gold-deep: #7E5B26;   /* chữ vàng trên nền kem, và trạng thái hover */
  --on-gold:   #FFFFFF;
  --forest:    #34452C;
  --topbar:    #2C3826;
  --foot:      #454330;
  --card:      #FFFFFF;
  --shadow:    0 18px 40px rgba(43, 42, 32, .09);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s--1: .875rem;
  --s-0:  1rem;
  --s-1:  1.125rem;
  --s-2:  clamp(1.3rem, 1.1rem + .7vw, 1.6rem);
  --s-3:  clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem);
  --s-4:  clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  --s-5:  clamp(2.4rem, 1.4rem + 3.9vw, 4.4rem);

  --gutter: clamp(1.25rem, .5rem + 3vw, 4rem);
  --band:   clamp(3.5rem, 2rem + 5vw, 7rem);
  --maxw:   1280px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream:  #17170F;
    --sand:   #1F1E14;
    --sand-2: #262418;
    --line:   #3A3828;
    --ink:    #F0EDE3;
    --ink-2:  #BCB8A5;
    --ink-3:  #9C9884;
    --gold:   #D2A662;
    --gold-deep: #E0BA82;
    --on-gold: #17170F;
    --forest: #7FA36C;
    --topbar: #101007;
    --foot:   #101007;
    --card:   #222116;
    --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
}

:root[data-theme="dark"] {
  --cream:  #17170F;  --sand: #1F1E14;  --sand-2: #262418;  --line: #3A3828;
  --ink:    #F0EDE3;  --ink-2: #BCB8A5; --ink-3: #9C9884;
  --gold:   #D2A662;  --gold-deep: #E0BA82; --on-gold: #17170F;
  --forest: #7FA36C;  --topbar: #101007; --foot: #101007;
  --card:   #222116;  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
:root[data-theme="light"] {
  --cream:  #FBF8F3;  --sand: #F4EADA;  --sand-2: #EADFC6;  --line: #E2DACB;
  --ink:    #2B2A20;  --ink-2: #5F5D4C; --ink-3: #6B6957;
  --gold:   #8E672D;  --gold-deep: #7E5B26; --on-gold: #FFFFFF;
  --forest: #34452C;  --topbar: #2C3826; --foot: #454330;
  --card:   #FFFFFF;  --shadow: 0 18px 40px rgba(43, 42, 32, .09);
}

/* ----------------------------------------------------------------- 2. BASE */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s-0);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }

/* Đo thực tế: tiêu đề Playfair tiếng Việt cao tới 1.28em (dấu của Playfair
   vươn cao hơn Archivo). 1.26 vẫn chạm dòng trên. 1.34 là ngưỡng an toàn. */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -.005em;
  text-wrap: balance;
  margin: 0;
}

:where(a, button, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
::selection { background: var(--gold); color: var(--on-gold); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--on-gold);
  font-size: .875rem; padding: .8em 1.2em;
}
.skip:focus { left: 0; }

/* nhãn nhỏ trên mỗi tiêu đề — chữ thường, giãn nhẹ */
.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--gold-deep);
  margin: 0 0 .6rem;
}

/* --------------------------------------------------------------- 3. NÚT */

.btn {
  font-family: var(--sans);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.7em;
  border: 1px solid transparent;
  background: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* nút tròn "xem tất cả" ở góc phải mỗi section */
.round {
  flex: 0 0 auto;
  width: 6rem; height: 6rem; border-radius: 50%;
  background: var(--gold); color: var(--on-gold);
  display: grid; place-content: center; justify-items: center; gap: .15rem;
  text-decoration: none;
  font-size: .8125rem; font-weight: 500; line-height: 1.3;
  transition: background-color .2s, transform .2s;
}
.round:hover { background: var(--gold-deep); transform: scale(1.04); }
.round svg { width: 1.1rem; height: 1.1rem; }

.linkmore {
  font-size: .875rem; font-weight: 500; text-decoration: none;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: .45em;
}
.linkmore svg { width: .95rem; height: .95rem; transition: transform .2s; }
.linkmore:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------ 4. ĐẦU TRANG */

.topbar {
  background: var(--topbar);
  color: rgba(255,255,255,.8);
  font-size: .8125rem;
}
.topbar-in {
  max-width: var(--maxw); margin-inline: auto;
  padding: .6rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.topbar-right a { color: rgba(255,255,255,.72); }

.theme-btn {
  font: inherit; background: none;
  border: 1px solid rgba(255,255,255,.34);
  color: rgba(255,255,255,.85);
  padding: .1em .7em; cursor: pointer;
}
.theme-btn:hover { border-color: #fff; color: #fff; }

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-in {
  max-width: var(--maxw); margin-inline: auto;
  padding: .9rem var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.nav { display: flex; gap: clamp(.9rem, 2vw, 2rem); }
.nav a {
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  color: var(--ink-2); padding: .3em 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }

.logo { text-decoration: none; text-align: center; display: grid; gap: .1rem; justify-items: center; }
.logo b { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: .01em; }
.logo small { font-size: .625rem; letter-spacing: .2em; color: var(--ink-3); line-height: 1.4; }

.masthead-cta { display: flex; justify-content: flex-end; }

@media (max-width: 1000px) {
  .masthead-in { grid-template-columns: auto 1fr; }
  .nav { display: none; }
  .logo { justify-self: start; text-align: left; justify-items: start; }
}

/* --------------------------------------------------------------- 5. HERO */

.hero {
  position: relative;
  min-height: min(78vh, 660px);
  display: grid; align-items: center;
  isolation: isolate; overflow: hidden;
  background: var(--forest);
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("https://images.unsplash.com/photo-1712432142102-660663b65fce?auto=format&fit=crop&w=2400&q=80");
  background-size: cover; background-position: 50% 45%;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(24,34,18,.42) 0%, rgba(24,34,18,.22) 42%, rgba(24,34,18,.62) 100%);
}
.hero-in {
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  padding: clamp(4.5rem, 12vh, 7rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  text-align: center; color: #fff;
}
.hero h1 {
  font-size: var(--s-5);
  font-weight: 500;
  line-height: 1.32;
  max-width: 18ch;
  margin-inline: auto;
}
.hero-sub {
  margin: 1.1rem auto 0;
  max-width: 46ch;
  font-size: var(--s-1);
  color: rgba(255,255,255,.92);
}

/* thanh tìm chuyến */
.search {
  margin-top: clamp(2rem, 5vh, 3.25rem);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.28);
  padding: .75rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: .5rem;
  text-align: left;
}
.search-field { padding: .7rem 1rem; display: grid; gap: .2rem; border-right: 1px solid rgba(255,255,255,.24); }
.search-field:nth-child(4) { border-right: 0; }
.search-field label { font-size: .75rem; letter-spacing: .06em; color: rgba(255,255,255,.78); }
.search-field select, .search-field input {
  font-family: var(--sans); font-size: .9375rem; font-weight: 500;
  color: #fff; background: none; border: 0; padding: 0; width: 100%;
}
.search-field select option { color: #111; }
.search-field input::placeholder { color: rgba(255,255,255,.7); }
.search .btn-gold { justify-content: center; }
@media (max-width: 900px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search-field { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.24); }
  .search .btn-gold { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .search { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- 6. KHUNG SECTION */

.band { padding-block: var(--band); }
.band-sand { background: var(--sand); }
.band-sand2 { background: var(--sand-2); }

.sechead {
  display: flex; align-items: flex-end; gap: 1.5rem;
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.sechead h2 { font-size: var(--s-4); max-width: 20ch; }
.sechead .round { margin-left: auto; }
@media (max-width: 640px) {
  .sechead { flex-wrap: wrap; }
  .sechead .round { margin-left: 0; width: 5rem; height: 5rem; }
}

.pills { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: 1.75rem; }
.pill {
  font-family: var(--sans); font-size: .875rem; font-weight: 500;
  padding: .5em 1.4em; border: 1px solid var(--line);
  background: none; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* ------------------------------------------------------------- 7. THẺ TOUR */

.tours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.tour { text-decoration: none; display: block; }
/* các con của .tour là <span>; phải blockify nếu không aspect-ratio bị bỏ qua */
.tour-photo {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--sand-2);
  background-size: cover; background-position: center;
}
/* khối chữ kem đè lên mép dưới của ảnh — đặc trưng của mẫu Travelic */
.tour-info {
  position: relative; z-index: 1;
  margin: -3.75rem 1.1rem 0;
  background: var(--card);
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  display: grid; gap: .5rem;
  transition: transform .22s;
}
.tour:hover .tour-info { transform: translateY(-4px); }
.tour-rate {
  display: flex; align-items: center; gap: .45rem;
  font-size: .8125rem; color: var(--ink-3);
}
.stars { color: var(--gold); letter-spacing: .1em; font-size: .8125rem; }
.tour-info h3 { font-size: var(--s-2); line-height: 1.34; }
.tour-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem;
  font-size: .8125rem; color: var(--ink-3);
}
.tour-meta svg { width: .85rem; height: .85rem; flex: 0 0 auto; color: var(--gold); }
.tour-meta span { display: inline-flex; align-items: center; gap: .35em; }
.tour-foot {
  margin-top: .35rem; padding-top: .8rem; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.tour-price { font-family: var(--serif); font-size: 1.375rem; font-weight: 600; color: var(--gold-deep); }
.tour-price small { font-family: var(--sans); font-size: .75rem; font-weight: 400; color: var(--ink-3); }

/* ---------------------------------------------------------- 8. ĐIỂM ĐẾN */

.dests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
.dest {
  position: relative; display: block; text-decoration: none;
  aspect-ratio: 4 / 5;
  background: var(--sand-2);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.dest::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,28,14,.78) 0%, rgba(20,28,14,.1) 52%, rgba(20,28,14,0) 78%);
}
.dest-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.4rem 1.5rem; color: #fff;
  display: grid; gap: .15rem;
}
.dest-label b { font-family: var(--serif); font-weight: 500; font-size: var(--s-2); line-height: 1.34; }
.dest-label span { font-size: .8125rem; color: rgba(255,255,255,.85); }
.dest img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------- 9. GIỚI THIỆU */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about h2 { font-size: var(--s-4); }
.about p { color: var(--ink-2); margin-top: 1.1rem; max-width: 48ch; }
.about-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.about-media { position: relative; }
.about-media img { aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.badge {
  position: absolute; top: -1.5rem; left: -1.5rem;
  width: 8.5rem; height: 8.5rem; border-radius: 50%;
  background: var(--gold); color: var(--on-gold);
  display: grid; place-content: center; justify-items: center; text-align: center;
  padding: .5rem;
}
.badge b { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1.1; }
.badge span { font-size: .6875rem; line-height: 1.35; letter-spacing: .04em; }
@media (max-width: 520px) { .badge { top: -1rem; left: -.5rem; width: 7rem; height: 7rem; } }

/* --------------------------------------------------------------- 10. BLOG */

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}
.post { text-decoration: none; display: grid; gap: .85rem; align-content: start; }
.post-photo { aspect-ratio: 3 / 2; background: var(--sand-2); background-size: cover; background-position: center; }
.post-date { font-size: .8125rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: .4em; }
.post-date svg { width: .85rem; height: .85rem; color: var(--gold); }
.post h3 { font-size: var(--s-1); line-height: 1.35; }
.post p { color: var(--ink-2); font-size: var(--s--1); }

/* ---------------------------------------------------------- 11. LỜI KHÁCH */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}
.quote {
  background: var(--card);
  padding: 1.75rem 1.75rem 1.5rem;
  display: grid; gap: .9rem; align-content: start;
  box-shadow: var(--shadow);
}
.quote-mark { font-family: var(--serif); font-size: 2.6rem; line-height: .8; color: var(--gold); }
.quote p { color: var(--ink-2); }
.quote footer { display: flex; align-items: center; gap: .8rem; margin-top: .35rem; }
.avatar {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; flex: 0 0 auto;
  background: var(--sand-2); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 1rem;
}
.quote footer b { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.4; }
/* dùng class, không dùng "footer span": selector đó đè mất màu chữ của .avatar */
.quote footer .q-meta { font-size: .8125rem; color: var(--ink-3); }

/* -------------------------------------------------------- 12. CHÂN TRANG */

.foot { background: var(--foot); color: rgba(255,255,255,.76); }
.foot-top {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(3rem, 5vw, 4.5rem) var(--gutter) 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.foot h4 {
  font-family: var(--sans); font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em; color: #fff; margin-bottom: 1rem; line-height: 1.5;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot a { text-decoration: none; font-size: .9375rem; color: rgba(255,255,255,.78); }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.foot-brand { display: grid; gap: 1rem; align-content: start; }
.foot-brand .logo { text-align: left; justify-items: start; }
.foot-brand .logo b { color: #fff; }
.foot-brand .logo small { color: rgba(255,255,255,.6); }
.foot-brand p { font-size: var(--s--1); max-width: 34ch; }

.news { display: flex; gap: .5rem; margin-top: .4rem; }
.news input {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--sans); font-size: .875rem; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.26);
  padding: .7em .9em;
}
.news input::placeholder { color: rgba(255,255,255,.55); }
.news button { flex: 0 0 auto; }

.foot-legal { border-top: 1px solid rgba(255,255,255,.16); }
.foot-legal-in {
  max-width: var(--maxw); margin-inline: auto;
  padding: 1.4rem var(--gutter) 2.25rem;
  display: flex; flex-wrap: wrap; gap: .7rem 1.75rem; align-items: center;
  font-size: .8125rem; color: rgba(255,255,255,.62);
}
.socials { display: flex; gap: 1rem; margin-left: auto; }
.socials a { color: rgba(255,255,255,.7); }
@media (max-width: 720px) { .socials { margin-left: 0; } }

/* --------------------------------------------------------- 13. CHÚ THÍCH */

.note {
  margin-top: 1.5rem;
  font-size: .8125rem;
  color: var(--gold-deep);
}

/* ----------------------------------------------------------- 14. CHUYỂN ĐỘNG */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal-in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
