/* ==========================================================================
   SERENE TRAVEL - Stylesheet
   Mobile-first: viết cho điện thoại trước, rồi mở rộng cho máy tính bảng và máy tính.
   ========================================================================== */

/* ---------- Biến màu & typography ---------- */
:root {
  --teal: #4a9ba6;
  --teal-dark: #2d7a84;
  --teal-light: #7ec8d1;
  --cream: #f7f4ef;
  --warm-white: #fefcf8;
  --text-dark: #1a2e32;
  --text-mid: #4a6068;
  --gold: #c9a96e;
  --sand: #e8ddc8;
  --line: rgba(74, 155, 166, 0.2);

  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --radius: 2px;
  --shadow-soft: 0 12px 32px rgba(45, 122, 132, 0.12);
  --header-h: 72px;
}

/* ---------- Reset cơ bản ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 1000;
  background: var(--teal-dark); color: #fff; padding: 8px 14px;
}
.skip-link:focus { top: 8px; }

/* ---------- Bố cục chung ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header .section-title { max-width: 560px; margin: 0 auto; }

.section-label {
  font-size: 11px; font-weight: 400; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 300; line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.section-body { font-size: 15px; line-height: 1.8; color: var(--text-mid); margin-bottom: 16px; }
.italic { font-style: italic; color: var(--teal); }

/* ---------- Nút bấm ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-family: var(--font-body);
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
  min-height: 46px;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal); color: #fff; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--warm-white);;
  border-bottom: 1px solid rgba(74, 155, 166, 0.15);
  height: var(--header-h);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); }

.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 44px; height: 44px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-text .brand {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--teal-dark); letter-spacing: 0.04em;
}
.nav-logo-text .tagline {
  font-size: 9px; font-weight: 300; color: var(--text-mid);
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 3px;
}

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-social { display: flex; align-items: center; gap: 4px; }
.nav-social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); transition: color 0.2s, background 0.2s;
}
.nav-social a:hover { color: var(--teal); background: rgba(74, 155, 166, 0.1); }
.nav-social svg { width: 18px; height: 18px; }
.nav-cta { padding: 10px 18px; min-height: 0; font-size: 13px; white-space: nowrap; }
.nav-mobile-extra { display: none; }

/* Nút hamburger (điện thoại & máy tính bảng) */
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--teal-dark);
  transition: transform 0.25s, opacity 0.25s;
}
.site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  list-style: none; display: flex; align-items: center; gap: 4px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 8px 10px;
  color: var(--text-mid); text-decoration: none;
  font-size: 13px; letter-spacing: 0.02em; white-space: nowrap;
  transition: color 0.2s;
}
.nav-links > li > a:hover { color: var(--teal); }
.nav-arrow { font-size: 10px; display: inline-block; transition: transform 0.2s; margin-left: 2px; }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 240px; list-style: none;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  padding: 6px 0;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .nav-arrow,
.nav-dropdown.open .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-menu a {
  display: block; padding: 10px 18px;
  color: var(--text-dark); text-decoration: none; font-size: 14px;
  white-space: normal; line-height: 1.4;
}
.nav-dropdown-menu a:hover { background: rgba(74, 155, 166, 0.08); color: var(--teal-dark); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-top: var(--header-h); background: var(--warm-white); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding-top: 32px; padding-bottom: 40px; }
.hero-left { position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 9vw, 72px);
  font-weight: 300; line-height: 1.1; color: var(--text-dark);
  margin-bottom: 12px;
}
.hero-title .italic { font-style: italic; color: var(--teal); }
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 300; color: var(--text-mid); margin-bottom: 20px;
}
.hero-desc { font-size: 15px; line-height: 1.75; color: var(--text-mid); max-width: 460px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-right {
  position: relative; overflow: hidden;
  height: 340px;
  background: #7ec8d1;
}
.hero-slideshow { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.slide.active { opacity: 1; }
.slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(45, 122, 132, 0.25) 0%, rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}
.hero-stats {
  position: absolute; z-index: 2;
  left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line); overflow: hidden; white-space: nowrap;
  backdrop-filter: blur(8px);
}
.stat-item { padding: 12px 14px; text-align: center; border-right: 1px solid rgba(74, 155, 166, 0.15); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--teal-dark); line-height: 1; }
.stat-num span { font-size: 14px; }
.stat-label { font-size: 9px; color: var(--text-mid); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid; gap: 4px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 170px;
}
.g-item {
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  margin: 0; transition: transform 0.35s ease;
}
.g-item:hover { transform: scale(1.02); z-index: 2; }
.g-tall { grid-row: span 2; }
.g-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: #fff; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.3s;
}
.g-item:hover .g-label, .g-item:focus-within .g-label { opacity: 1; }
/* Trên cảm ứng không có hover, luôn hiện nhãn */
@media (hover: none) { .g-label { opacity: 1; } }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.founder-photo-wrap { position: relative; margin: 0 0 20px; }
.founder-photo { width: 100%; height: 380px; object-fit: cover; object-position: top center; }
.founder-badge {
  position: absolute; left: 16px; bottom: 16px;
  background: #fff; padding: 12px 18px; border-left: 3px solid var(--teal);
  display: flex; flex-direction: column;
}
.founder-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-dark); }
.founder-role { font-size: 11px; color: var(--text-mid); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.about-card-small { background: #fff; border-left: 3px solid var(--teal); padding: 20px 24px; }
.about-quote {
  font-family: var(--font-display); font-size: 18px; font-style: italic;
  color: var(--text-dark); line-height: 1.6;
}
.stats-inline { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.stats-num { font-family: var(--font-display); font-size: 40px; font-weight: 300; color: var(--teal); line-height: 1.1; }
.stats-label { font-size: 13px; color: var(--text-mid); letter-spacing: 0.04em; }

/* ==========================================================================
   SERVICES (trang chủ)
   ========================================================================== */
.services { background: var(--warm-white); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.service-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--cream); padding: 32px 26px;
  position: relative; overflow: hidden;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.service-card::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { font-size: 34px; margin-bottom: 18px; display: block; }
.service-name { font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--text-dark); margin-bottom: 12px; }
.service-desc { font-size: 14px; line-height: 1.7; color: var(--text-mid); margin-bottom: 18px; }
.service-features { list-style: none; }
.service-features li {
  font-size: 13px; color: var(--text-mid); padding: 6px 0;
  border-bottom: 1px solid rgba(74, 155, 166, 0.12);
  display: flex; gap: 10px; align-items: flex-start;
}
.service-features li::before { content: '—'; color: var(--teal); }

/* ==========================================================================
   WHY
   ========================================================================== */
.why { background: var(--teal-dark); color: #fff; position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.why .section-label { color: var(--teal-light); }
.why-title { font-family: var(--font-display); font-size: clamp(36px, 7vw, 58px); font-weight: 300; line-height: 1.2; }
.why-title .italic { color: var(--teal-light); }
.why-items { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.why-item { display: flex; gap: 20px; align-items: flex-start; }
.why-num {
  font-family: var(--font-display); font-size: 40px; font-weight: 300;
  color: rgba(126, 200, 209, 0.45); line-height: 1; min-width: 48px;
}
.why-item h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; letter-spacing: 0.02em; }
.why-item p { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.72); }

/* ==========================================================================
   MOMENTS
   ========================================================================== */
.moments { background: var(--warm-white); }
.moments-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 180px;
}
.m-item { background-size: cover; background-position: center; transition: transform 0.35s; }
.m-item:hover { transform: scale(1.02); }
.m-wide { grid-column: span 2; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.contact-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-mid); margin-bottom: 2px; }
.contact-value { font-size: 15px; color: var(--text-dark); }
.contact-value a { color: var(--teal); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

.contact-form-wrap { background: #fff; border: 1px solid var(--line); padding: 28px 22px; }
.form-title { font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--text-dark); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mid); margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; min-height: 46px;
  border: 1px solid rgba(74, 155, 166, 0.3); background: var(--warm-white);
  font: inherit; font-size: 15px; color: var(--text-dark);
  border-radius: var(--radius); -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s;
}
.form-group select {
  background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--teal); outline: none; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input.invalid { border-color: #c0392b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit {
  width: 100%; min-height: 50px;
  background: var(--teal); color: #fff; border: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--teal-dark); }
.form-submit:disabled { opacity: 0.7; cursor: wait; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 1.4em; color: var(--text-mid); }
.form-status.ok { color: var(--teal-dark); }
.form-status.error { color: #b03a2e; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--text-dark); color: rgba(255, 255, 255, 0.65); padding: 56px 0 32px; }
.footer-top { display: flex; flex-direction: column; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 24px; }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 26px; color: #fff; margin-bottom: 6px; }
.footer-brand .slogan { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-light); }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; font-size: 14px; }
.footer-col a { color: rgba(255, 255, 255, 0.6); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; font-size: 13px; text-align: center; }
.footer-bottom a { color: var(--teal-light); text-decoration: none; }

/* ==========================================================================
   NÚT NỔI (Zalo, gọi điện)
   ========================================================================== */
.float-buttons {
  position: fixed; right: 16px; bottom: 20px; z-index: 999;
  display: flex; flex-direction: column; gap: 12px;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-btn:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25); }
.float-btn-zalo { background: #0068ff; color: #fff; font-weight: 600; font-size: 12px; letter-spacing: 0.02em; }
.float-btn-call { background: linear-gradient(135deg, #ff6b6b, #ee5a24); }
.float-btn-call svg { width: 24px; height: 24px; fill: #fff; }
.float-btn-tooltip {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.75); color: #fff; font-size: 12px;
  padding: 5px 10px; border-radius: 4px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.float-btn:hover .float-btn-tooltip, .float-btn:focus-visible .float-btn-tooltip { opacity: 1; }
/* Trên điện thoại ẩn tooltip cho gọn */
@media (hover: none) { .float-btn-tooltip { display: none; } }

/* ==========================================================================
   TRANG NỘI DUNG (dịch vụ, cẩm nang, chính sách, danh mục)
   ========================================================================== */
.page-hero { padding: calc(var(--header-h) + 48px) 0 40px; background: var(--cream); }
.page-hero .section-label { margin-bottom: 12px; }
.page-title {
  font-family: var(--font-display); font-size: clamp(32px, 6vw, 52px);
  font-weight: 300; line-height: 1.2; color: var(--text-dark); margin-bottom: 14px;
}
.page-lead { font-size: 16px; color: var(--text-mid); max-width: 680px; line-height: 1.7; }

.prose { max-width: 760px; font-size: 16px; line-height: 1.8; color: var(--text-dark); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin-top: 1.6em; }
.prose h3 { font-family: var(--font-display); font-size: 20px; font-weight: 400; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--teal-dark); }
.prose img { border-radius: var(--radius); margin: 1.2em auto; }
.prose blockquote { border-left: 3px solid var(--teal); padding-left: 16px; color: var(--text-mid); font-style: italic; }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  padding: 26px 24px; text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card-img { width: 100%; height: 180px; object-fit: cover; margin: -26px -24px 18px; width: calc(100% + 48px); max-width: none; }
.card-meta { font-size: 12px; color: var(--text-mid); letter-spacing: 0.06em; margin-bottom: 8px; }
.card-title { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--text-dark); margin-bottom: 10px; line-height: 1.3; }
.card-desc { font-size: 14px; line-height: 1.7; color: var(--text-mid); margin-bottom: 16px; }
.card-link { margin-top: auto; font-size: 13px; color: var(--teal); letter-spacing: 0.04em; }

.article { padding-top: calc(var(--header-h) + 40px); }
.article-inner { max-width: 820px; }
.article-meta { font-size: 13px; color: var(--text-mid); margin-bottom: 12px; }
.article-meta a { color: var(--teal); text-decoration: none; }
.article-cover { width: 100%; height: auto; margin: 24px 0; }

.empty-state { font-size: 15px; color: var(--text-mid); padding: 24px 0; }

.cta-band { background: var(--teal-dark); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.cta-band h2 { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.8); font-size: 15px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: #fff; color: var(--teal-dark); }
.cta-band .btn-primary:hover { background: var(--cream); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.cta-band .btn-ghost:hover { background: #fff; color: var(--teal-dark); }

/* ==========================================================================
   HIỆU ỨNG CUỘN
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Máy tính bảng và nhỏ hơn: chuyển sang menu hamburger */
@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .nav-right { margin-left: 0; }
  .nav-right .nav-cta { display: none; }
  .nav-right .nav-social { display: none; }

  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--warm-white);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding: 12px 20px 40px;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
  }
  .site-header.menu-open .primary-nav { transform: translateX(0); visibility: visible; }
  .site-header.menu-open { background: var(--warm-white); }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links > li { border-bottom: 1px solid rgba(74, 155, 166, 0.12); }
  .nav-links > li > a { padding: 16px 4px; font-size: 16px; white-space: normal; }

  /* Dropdown trên màn hình cảm ứng: mở/đóng bằng chạm */
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    min-width: 0; box-shadow: none; border: none; border-left: 2px solid var(--teal);
    margin: 0 0 12px 8px; padding: 0; display: none;
    background: transparent;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open:hover .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 10px 12px; font-size: 15px; }

  .nav-mobile-extra {
    display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
    margin-top: 24px;
  }
  .nav-mobile-extra .btn { width: 100%; }
  .nav-mobile-extra .nav-social { display: flex; }
  .nav-mobile-extra .nav-social a { width: 40px; height: 40px; }
  .nav-mobile-extra .nav-social svg { width: 20px; height: 20px; }
}

/* Máy tính bảng dọc (≥ 600px) */
@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .moments-grid { grid-auto-rows: 220px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .stat-item { padding: 14px 20px; }
  .hero-right { height: 400px; }
  .contact-form-wrap { padding: 40px 36px; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Máy tính bảng ngang & laptop (≥ 900px) */
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; min-height: calc(100vh - var(--header-h)); padding-top: 40px; padding-bottom: 48px; }
  .hero-right { height: auto; min-height: 460px; border-radius: 0; }
  .hero-left { padding-left: 4px; }
  .hero-stats { white-space: nowrap; }
  .stat-item { padding: 16px 24px; }
  .section { padding: 96px 0; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .founder-photo { height: 460px; }
  .why-grid { grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
  .moments-grid { grid-template-columns: 1.4fr 1fr; grid-auto-rows: 280px; }
  .m-wide { grid-column: auto; }
  .m-item:nth-child(1), .m-item:nth-child(4) { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-links { grid-template-columns: repeat(2, auto); gap: 60px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .page-hero { padding-top: calc(var(--header-h) + 64px); }
}

/* Laptop rộng & màn hình lớn (≥ 1181px): menu ngang đầy đủ */
@media (min-width: 1181px) {
  .nav-links { gap: 2px; }
  .nav-links > li > a { font-size: 13px; padding: 8px 9px; }
  .nav-cta { display: inline-flex; }
  .nav-social { display: flex; }
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; display: flex; align-items: center; flex: 1; justify-content: center;
    transform: none; visibility: visible; padding: 0; background: none; overflow: visible;
  }
  .nav-mobile-extra { display: none; }
  .nav-logo-text .brand { font-size: 20px; }
  .nav-logo-text .tagline { font-size: 9px; }
  .nav-right .nav-cta { display: inline-flex; }
  .nav-right .nav-social { display: flex; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Màn hình rất nhỏ */
@media (max-width: 380px) {
  .nav-logo-text .tagline { display: none; }
  .stat-num { font-size: 18px; }
  .stat-label { font-size: 8px; }
  .hero-stats { left: 8px; right: 8px; transform: none; }
  .stat-item { padding: 10px 6px; }
}
