/* ==========================================================================
   100B Agency — Base: design tokens, reset, typography, animations, utilities
   ========================================================================== */

/* --- Design tokens -------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #06214f;
  --navy-800: #08234f;
  --navy-700: #082c86;
  --blue-900: #0b2a6b;
  --blue-800: #0b3fc4;
  --blue-700: #123ea8;
  --blue-600: #1466e0;
  --blue-500: #1e7bee;
  --blue-400: #2e86f0;
  --blue-300: #5aa6ff;
  --cyan-600: #12a6c4;
  --cyan-500: #22c3e0;
  --cyan-400: #28c6de;
  --gold-600: #96700a;
  --gold-500: #e0a100;
  --gold-400: #ffc63b;
  --gold-300: #ffde86;
  --teal-600: #0c8578;
  --teal-500: #0fb0a2;
  --teal-400: #12b39f;
  --purple-500: #6c5ce7;
  --red-500: #f0466e;
  --red-400: #e0533d;
  --red-300: #ff8a8a;

  /* Text */
  --ink: #0e2350;
  --ink-strong: #0b2a6b;
  --ink-body: #33436b;
  --ink-muted: #5e6e92;
  --ink-soft: #8894ac;
  --ink-faint: #9aa6bf;
  --ink-disabled: #c3ccdd;

  /* Surfaces */
  --surface-page: #eef4ff;
  --surface-card: #fff;
  --surface-soft: #f3f7ff;
  --surface-blue: #eaf2ff;
  --surface-teal: #e4f8f5;
  --surface-mint: #e7f7f3;
  --surface-gold: #fdf3d9;
  --surface-cream: #fff4dc;

  /* Lines */
  --line: #eef2fb;
  --line-blue: #dce7fb;
  --line-card: #e5ebf7;
  --border-blue: #c9dcfb;
  --border-teal: #b6ebe4;

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 34px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 20px 50px rgb(11 63 196 / 0.1);
  --shadow-card-hover: 0 36px 70px rgb(11 63 196 / 0.22);
  --shadow-soft: 0 14px 36px rgb(11 63 196 / 0.08);
  --shadow-panel: 0 26px 60px rgb(11 63 196 / 0.16);
  --shadow-dark: 0 34px 68px rgb(8 35 79 / 0.4);
  --shadow-gold: 0 16px 38px rgb(255 198 59 / 0.4);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.125rem, 4vw, 2.125rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --header-h: 74px;

  /* Type scale */
  --fs-display: clamp(2rem, 7.4vw, 5rem);
  --fs-h2: clamp(1.75rem, 5.2vw, 3.5rem);
  --fs-h2-lg: clamp(1.9rem, 6vw, 4rem);
  --fs-h3: clamp(1.15rem, 2.4vw, 1.44rem);
  --fs-lead: clamp(0.98rem, 1.6vw, 1.125rem);
  --fs-body: 0.94rem;
  --fs-sm: 0.83rem;
  --fs-xs: 0.72rem;
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

/* line-height rộng hơn mặc định: tiếng Việt viết hoa có dấu mũ + dấu thanh
   chồng lên nhau, dưới 1.2 là dấu bị cắt hoặc dính vào dòng kế. */
h1,
h2,
h3,
h4 {
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: var(--blue-500);
  text-decoration: none;
}

a:hover {
  color: #0a4fd6;
}

/* height:auto vô hiệu hoá thuộc tính height="" trong HTML (chỉ dùng để giữ
   tỉ lệ, chống layout shift) — nếu không ảnh sẽ bị kéo méo khi CSS đổi width. */
img,
picture,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

table {
  border-collapse: collapse;
}

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

/* --- Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--light {
  background: var(--surface-page);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--gold-400);
  color: var(--navy-900);
  font-weight: 800;
  border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

/* --- Shared type styles --------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow--glass {
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.25);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.eyebrow--gold {
  background: rgb(255 198 59 / 0.16);
  color: var(--gold-400);
}

.eyebrow--cream {
  background: rgb(255 255 255 / 0.14);
  color: var(--surface-cream);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-400);
  animation: badge-glow 2.4s ease-in-out infinite;
}

.section-kicker {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--blue-500);
  text-transform: uppercase;
}

.shine {
  background: linear-gradient(100deg, #fff 20%, #ffe9a8 40%, #ffc63b 50%, #ffe9a8 60%, #fff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 5s linear infinite;
}

/* --- Decorative layers ---------------------------------------------------- */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  mix-blend-mode: screen;
  animation: aurora-move 22s ease-in-out infinite;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, #000, transparent);
}

.grid-overlay--pan {
  animation: grid-pan 6s linear infinite;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at 32% 28%,
    rgb(255 255 255 / 0.9),
    rgb(255 255 255 / 0.35) 22%,
    rgb(120 180 255 / 0.28) 46%,
    rgb(30 110 240 / 0.14) 70%,
    rgb(30 110 240 / 0) 100%
  );
  box-shadow:
    inset -6px -8px 20px rgb(10 50 140 / 0.28),
    inset 8px 10px 22px rgb(255 255 255 / 0.5),
    0 12px 30px rgb(8 40 120 / 0.22);
  animation: bubble-float 14s ease-in-out infinite;
}

.bubble::after {
  content: "";
  position: absolute;
  top: 14%;
  left: 20%;
  width: 26%;
  height: 20%;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  filter: blur(2px);
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
}

/* --- Motion --------------------------------------------------------------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(24px);
  }
  60% {
    opacity: 1;
    transform: scale(1.01) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-22px);
  }
}

@keyframes bubble-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(14px, -38px) scale(1.05);
  }
  66% {
    transform: translate(-16px, -14px) scale(0.97);
  }
}

@keyframes aurora-move {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(6%, -4%) rotate(180deg) scale(1.15);
  }
}

@keyframes shimmer {
  from {
    background-position: -200% center;
  }
  to {
    background-position: 200% center;
  }
}

@keyframes grid-pan {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 54px 54px, 54px 54px;
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgb(255 198 59 / 0.5);
  }
  70% {
    box-shadow: 0 0 0 18px rgb(255 198 59 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(255 198 59 / 0);
  }
}

@keyframes badge-glow {
  0%,
  100% {
    box-shadow: 0 0 12px rgb(255 198 59 / 0.5);
  }
  50% {
    box-shadow: 0 0 22px rgb(255 198 59 / 0.9);
  }
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.75, 0.25, 1),
    transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lift {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s;
}

.lift:hover {
  transform: translateY(-10px);
}

.zoom-frame {
  overflow: hidden;
}

.zoom-frame img {
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.zoom-frame:hover img {
  transform: scale(1.08);
}

.anim-pop {
  animation: pop-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.anim-pop-2 {
  animation: pop-in 0.9s ease 0.12s both;
}

.anim-pop-3 {
  animation: pop-in 1s ease 0.24s both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print: mở toàn bộ panel để in báo giá */
@media print {
  .site-header,
  .ticker,
  .hero__decor,
  .aurora,
  .bubble,
  .grid-overlay {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .package-panel[hidden],
  .detail-panel[hidden] {
    display: block !important;
  }
}
