/* ════════════════════════════════════════════════
   DESIGN TOKENS — Cream Beige · Xanh Lơ · Xanh Bơ · Đỏ Vintage
   ════════════════════════════════════════════════ */
:root {
  --cream:         #F5EFE4;
  --cream-dark:    #EDE4D3;
  --cream-light:   #FAF6EF;
  --beige:         #D9CABA;
  --beige-mid:     #C8B89A;

  --sky:           #8BBFCE;
  --sky-light:     #B8D8E4;
  --sky-muted:     #6FA8B8;

  --avocado:       #8D9E6B;
  --avocado-light: #B3C092;
  --avocado-dark:  #6B7A52;

  --red:           #A63E35;
  --red-light:     #C4685F;
  --red-dark:      #7A2E27;

  --ink:           #2C2317;
  --ink-soft:      #4A3F32;
  --ink-light:     #7A6D5D;

  /* Dark Hero palette */
  --hero-bg:       #0E0B08;
  --hero-gold:     #D4A853;
  --hero-gold-lt:  #F8E3C4;

  --font-display:   'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:      'Be Vietnam Pro', sans-serif;
  --font-serif:     'Lora', 'EB Garamond', Georgia, serif;
  --font-condensed: 'Barlow Condensed', sans-serif;

  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   28px;
  --shadow-soft: 0 4px 24px rgba(44, 35, 23, 0.10);
  --shadow-card: 0 2px 16px rgba(44, 35, 23, 0.08);
}

/* ════════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--cream-light);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ════════════════════════════════════════════════
   TOP NAVBAR
   ════════════════════════════════════════════════ */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 55%, #8C332B 100%);
  border-bottom: 1px solid rgba(250, 246, 239, 0.22);
  box-shadow: 0 4px 20px rgba(122, 46, 39, 0.28);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cream-light);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-logo:hover { opacity: 0.95; transform: scale(1.02); }

.nav-logo__sparkle {
  color: #F8E3C4;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-block;
  animation: magicPulse 2.8s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(248, 227, 196, 0.6);
}

.nav-logo__text {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF6EF 70%, #E8D3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  color: var(--cream-light);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.22s ease;
  cursor: pointer;
  user-select: none;
}
.nav-link:hover {
  background: rgba(250, 246, 239, 0.15);
  color: #FFFFFF;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.dropdown-arrow {
  font-size: 0.72rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
}
.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-link--violet {
  background: rgba(250, 246, 239, 0.12);
  border: 1px solid rgba(250, 246, 239, 0.25);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
}
.nav-link--violet:hover {
  background: var(--cream-light);
  color: var(--red-dark);
  border-color: var(--cream-light);
  box-shadow: 0 0 16px rgba(250, 246, 239, 0.4);
}
.violet-sparkle {
  color: #F8E3C4;
  font-size: 0.85rem;
  animation: magicPulse 2s ease-in-out infinite;
}
.nav-link--violet:hover .violet-sparkle { color: var(--red); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 310px;
  background: var(--cream-light);
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 16px 40px rgba(44, 35, 23, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  margin-top: 4px;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
  color: var(--ink);
}
.dropdown-item:hover:not(.disabled) {
  background: rgba(166, 62, 53, 0.07);
  transform: translateX(4px);
}
.dropdown-item.active {
  background: var(--cream-dark);
  border-left: 3px solid var(--red);
}
.dropdown-item.disabled { opacity: 0.55; cursor: default; }

.dropdown-item__badge {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2px;
}
.dropdown-item__badge--hot { color: var(--avocado-dark); }
.dropdown-item__title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.dropdown-item__sub {
  font-size: 0.75rem;
  color: var(--ink-light);
  margin-top: 2px;
}
.dropdown-divider {
  height: 1px;
  background: var(--beige-mid);
  opacity: 0.4;
  margin: 8px 0;
}
.dropdown-header {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding: 4px 12px 2px;
  display: block;
}

@keyframes magicPulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.85;
    text-shadow: 0 0 6px rgba(248, 227, 196, 0.5);
  }
  50% {
    transform: scale(1.25) rotate(15deg);
    opacity: 1;
    text-shadow: 0 0 14px rgba(248, 227, 196, 0.9), 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

@media (max-width: 860px) {
  .nav-container { padding: 0 16px; }
  .mobile-menu-toggle {
    display: block;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 55%, #8C332B 100%);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    border-top: 1px solid rgba(250, 246, 239, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }
  .nav-menu.nav-menu--open { display: flex; }
  .nav-link { padding: 10px 0; font-size: 1.1rem; width: 100%; white-space: normal; }
  .nav-link--violet { padding: 12px 24px; justify-content: center; margin-top: 8px; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: var(--cream-light);
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    width: 100%;
    display: none;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:active .dropdown-menu { display: flex; }
}


/* ════════════════════════════════════════════════
   HERO — Dark Typographic
   ════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 64px);
  min-height: 520px;
  max-height: 860px;
  background: #1A2B1A;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Background image layer with subtle ambient breathing */
.hero::before {
  content: '';
  position: absolute;
  inset: -15px;
  background-image: url('hero.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
  animation: heroBgBreathing 28s ease-in-out infinite alternate;
}

@keyframes heroBgBreathing {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.06) translate(-10px, -6px); }
  100% { transform: scale(1.03) translate(8px, 6px); }
}

/* Dark overlay for legibility (softened to let hero photo pop) */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 22, 10, 0.42) 0%,
    rgba(15, 20, 10, 0.28) 50%,
    rgba(8, 18, 8, 0.45) 100%
  );
  z-index: 1;
}

/* Decorative floating letterforms & typography glyphs */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.deco-char {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  user-select: none;
  animation: decoFloat 14s ease-in-out infinite;
}
.deco-char:nth-child(1) {
  font-size: clamp(130px, 22vw, 240px);
  top: -8%; left: -4%;
  animation: decoFloat 16s ease-in-out infinite;
}
.deco-char:nth-child(2) {
  font-size: clamp(80px, 13vw, 140px);
  top: 52%; right: -2%;
  animation: decoFloat2 13s ease-in-out infinite -3s;
  font-family: var(--font-condensed);
  color: rgba(212, 168, 83, 0.045);
}
.deco-char:nth-child(3) {
  font-size: clamp(110px, 18vw, 200px);
  bottom: -6%; left: 18%;
  animation: decoFloat 19s ease-in-out infinite -7s;
}
.deco-char:nth-child(4) {
  font-size: clamp(55px, 9vw, 95px);
  top: 45%; left: 3%;
  animation: decoFloat2 11s ease-in-out infinite -2s;
  font-style: italic;
  color: rgba(212, 168, 83, 0.065);
}
.deco-char:nth-child(5) {
  font-size: clamp(95px, 16vw, 170px);
  top: 2%; right: 16%;
  animation: decoFloat 15s ease-in-out infinite -5s;
  font-family: var(--font-condensed);
  color: rgba(212, 168, 83, 0.04);
}
.deco-char:nth-child(6) {
  font-size: clamp(70px, 11vw, 120px);
  top: 15%; left: 22%;
  animation: decoFloat2 17s ease-in-out infinite -9s;
  font-family: var(--font-serif);
  color: rgba(240, 216, 138, 0.035);
}
.deco-char:nth-child(7) {
  font-size: clamp(60px, 10vw, 110px);
  bottom: 12%; right: 22%;
  animation: decoFloat 14s ease-in-out infinite -4s;
  color: rgba(255, 255, 255, 0.03);
}
.deco-char:nth-child(8) {
  font-size: clamp(24px, 4vw, 45px);
  top: 32%; right: 35%;
  animation: magicPulse 3.5s ease-in-out infinite;
  color: rgba(240, 216, 138, 0.25);
}

@keyframes decoFloat {
  0%, 100% { transform: translateY(0px) rotate(-2deg) scale(1); }
  33%       { transform: translateY(-24px) rotate(2deg) scale(1.05); }
  66%       { transform: translateY(14px) rotate(-1deg) scale(0.97); }
}
@keyframes decoFloat2 {
  0%, 100% { transform: translateY(0px) rotate(3deg) scale(1); }
  50%       { transform: translateY(20px) rotate(-2.5deg) scale(1.04); }
}

/* Main hero content */
.hero-content {
  position: relative;
  z-index: 10;
  padding: 24px 32px;
  max-width: 860px;
  width: 100%;
}

.hero__eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(220, 210, 190, 0.82);
  margin-bottom: 18px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  animation: heroFadeUp 1s ease 0.2s both;
}
.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '—';
  margin: 0 12px;
  opacity: 0.45;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: normal;
  margin-bottom: 22px;
  animation: heroFadeUp 1s ease 0.4s both;
}

.hero__title--serif {
  display: inline-block;
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.3rem, 3.2vw, 2.6rem);
  font-weight: 400;
  font-style: normal;
  color: rgba(255, 248, 230, 0.88);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding: 0.1em 0.25em 0.15em 0.25em;
  line-height: 1.25;
  overflow: visible;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.hero__title--main {
  display: inline-block;
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  background: linear-gradient(
    120deg,
    #EDD28A 0%,
    #FFF6DC 22%,
    #E8C060 45%,
    #FFFFFF 60%,
    #EDD28A 75%,
    #D4A853 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.38;
  padding: 0.1em 0.45em 0.55em 0.35em;
  overflow: visible;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.5));
  animation: goldShimmer 7s ease-in-out infinite alternate;
}

@keyframes goldShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero__title--sub {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.8rem);
  font-weight: 300;
  color: rgba(240, 235, 220, 0.78);
  letter-spacing: 0.03em;
  margin-top: 6px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero__title--sub em {
  font-style: italic;
  font-weight: 500;
  color: #F0D88A;
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  animation: goldGlowPulse 3s ease-in-out infinite alternate;
}

@keyframes goldGlowPulse {
  0%   { text-shadow: 0 1px 8px rgba(0,0,0,0.5), 0 0 6px rgba(240, 216, 138, 0.3); color: #F0D88A; }
  100% { text-shadow: 0 1px 14px rgba(0,0,0,0.5), 0 0 18px rgba(240, 216, 138, 0.85); color: #FFF2C4; }
}

.hero__desc {
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(0.88rem, 1.3vw, 1.05rem);
  color: rgba(220, 215, 200, 0.72);
  font-style: normal;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 18px;
  animation: heroFadeUp 1s ease 0.6s both;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero__desc em {
  font-style: italic;
  font-weight: 400;
  color: #F0D88A;
}

.hero__deco-line {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 216, 138, 0.8), transparent);
  margin: 0 auto 18px;
  animation: lineExpand 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

@keyframes lineExpand {
  from { width: 0; opacity: 0; }
  to   { width: 72px; opacity: 1; }
}

.hero-tags-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 26px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  font-family: 'Open Sans', sans-serif;
  font-size: clamp(0.6rem, 0.82vw, 0.7rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(220, 215, 195, 0.85);
  animation: heroFadeUp 1s ease 0.85s both;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-tags-strip:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(240, 216, 138, 0.45);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(240, 216, 138, 0.2);
}
.hero-tags-strip .dot {
  color: rgba(240, 216, 138, 0.6);
  font-size: 0.5rem;
}



@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero-content { padding: 16px 20px; }
  .hero__eyebrow::before, .hero__eyebrow::after { display: none; }
}
@media (max-width: 480px) {
  .hero { min-height: 460px; }
  .hero__title--main { font-size: 3.2rem; }
}


/* ════════════════════════════════════════════════
   SECTION SWITCHER — Sticky Tab Bar
   ════════════════════════════════════════════════ */
.section-switcher {
  position: sticky;
  top: 64px;
  z-index: 200;
  background: var(--cream-light);
  border-bottom: 2px solid var(--beige);
  box-shadow: 0 4px 24px rgba(44, 35, 23, 0.09);
}

.switcher-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}

.switcher-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.25s ease;
  text-align: left;
  position: relative;
}
.switcher-tab:hover {
  background: rgba(166, 62, 53, 0.04);
}
.switcher-tab--active {
  border-bottom-color: var(--red);
  background: rgba(166, 62, 53, 0.05);
}

.tab-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--beige);
  line-height: 1;
  transition: color 0.25s;
  flex-shrink: 0;
}
.switcher-tab--active .tab-num { color: var(--red-light); }
.switcher-tab:hover .tab-num { color: var(--beige-mid); }

.tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tab-label {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 600;
  color: var(--ink-light);
  transition: color 0.25s;
  line-height: 1.3;
}
.switcher-tab--active .tab-label { color: var(--ink); }
.switcher-tab:hover .tab-label { color: var(--ink-soft); }

.tab-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--ink-light);
  opacity: 0.65;
  font-style: italic;
}

.tab-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--beige);
  transition: transform 0.25s, color 0.25s;
  opacity: 0;
}
.switcher-tab:hover .tab-arrow,
.switcher-tab--active .tab-arrow {
  opacity: 1;
  color: var(--red);
}
.switcher-tab:hover .tab-arrow { transform: translateX(4px); }

.switcher-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--beige);
  font-size: 0.7rem;
  padding: 0 12px;
  border-bottom: 3px solid transparent;
  user-select: none;
}

@media (max-width: 640px) {
  .switcher-tab { padding: 14px 16px; gap: 10px; }
  .tab-num { font-size: 1.3rem; }
  .tab-arrow { display: none; }
  .tab-sub { display: none; }
  .switcher-divider { padding: 0 6px; }
}


/* ════════════════════════════════════════════════
   TAB SECTIONS
   ════════════════════════════════════════════════ */
.tab-section {
  display: none;
}
.tab-section--active {
  display: block;
  animation: tabFadeIn 0.35s ease both;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════════
   PAGE CONTENT WRAPPER
   ════════════════════════════════════════════════ */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}


/* ════════════════════════════════════════════════
   PAIRING INTRO
   ════════════════════════════════════════════════ */
.pairing-intro {
  padding: 36px 0 0;
  max-width: 680px;
}
.pairing-intro__text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.8;
}
.pairing-intro__text strong { color: var(--red); }


/* ════════════════════════════════════════════════
   CATEGORY FILTER
   ════════════════════════════════════════════════ */
.category-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0 20px;
  border-bottom: 1px solid rgba(217, 202, 186, 0.6);
  margin-bottom: 36px;
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  background: var(--cream);
  border: 1.5px solid var(--beige);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cat-btn:hover {
  border-color: var(--red-light);
  color: var(--red);
  background: rgba(166, 62, 53, 0.04);
  transform: translateY(-1px);
}
.cat-btn--active {
  background: var(--red);
  border-color: var(--red);
  color: var(--cream-light);
  box-shadow: 0 4px 14px rgba(166, 62, 53, 0.3);
}
.cat-btn--active:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--cream-light);
  transform: translateY(-1px);
}

.cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(44, 35, 23, 0.12);
}
.cat-btn--active .cat-count { background: rgba(255, 255, 255, 0.25); }


/* ════════════════════════════════════════════════
   PAIRING GRID & CARDS
   ════════════════════════════════════════════════ */
.pairing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 60px;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pairing-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  animation: cardFadeIn 0.4s ease both;
}
.pairing-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 44px rgba(44, 35, 23, 0.16);
}

.pairing-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream-dark);
}
.pairing-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}
.pairing-card:hover .pairing-card__img-wrap img { transform: scale(1.06); }

/* Category badge */
.pairing-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  z-index: 2;
  white-space: nowrap;
}
.pairing-card__badge--tech     { background: rgba(22, 60, 80, 0.82); color: #B8D8E4; }
.pairing-card__badge--business { background: rgba(58, 44, 28, 0.82); color: #D9CABA; }
.pairing-card__badge--personal { background: rgba(42, 58, 26, 0.82); color: #B3C092; }
.pairing-card__badge--luxury   { background: rgba(122, 46, 39, 0.88); color: #F5EFE4; }
.pairing-card__badge--lifestyle{ background: rgba(20, 32, 14, 0.78); color: #B3C092; }

/* Card info */
.pairing-card__info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pairing-card__fonts {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.pairing-card__font1 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  font-style: italic;
}
.pairing-card__plus {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--beige-mid);
  font-weight: 300;
}
.pairing-card__font2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 400;
}
.pairing-card__tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--ink-light);
  font-style: italic;
  line-height: 1.5;
}

@media (max-width: 900px) { .pairing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pairing-grid { grid-template-columns: 1fr; } }


/* ════════════════════════════════════════════════
   SECTION TYPOGRAPHY (Mục 2)
   ════════════════════════════════════════════════ */
.block {
  padding: 72px 0;
  border-bottom: 1px solid var(--beige);
  position: relative;
}
.block:last-child { border-bottom: none; }

.section-number {
  position: absolute;
  top: 64px;
  right: 0;
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  color: var(--cream-dark);
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.section-header-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--ink-light);
}
.section-subtitle em { color: var(--red); font-style: italic; }


/* ════════════════════════════════════════════════
   CHAPTER DIVIDER
   ════════════════════════════════════════════════ */
.chapter-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 48px 0 0;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
}
.chapter-divider__rule {
  flex: 1;
  height: 1px;
  background: var(--beige);
}


/* ════════════════════════════════════════════════
   ITEM BLOCK SYSTEM
   ════════════════════════════════════════════════ */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  position: relative;
  z-index: 1;
}
.items-grid--2col { grid-template-columns: repeat(2, 1fr); }
.items-grid--3col { grid-template-columns: repeat(3, 1fr); }

.item-block {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}
.item-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.item-block--accent       { background: rgba(166, 62, 53, 0.05); }
.item-block--accent-green { background: rgba(141, 158, 107, 0.06); }
.item-block--wrong        { background: rgba(166, 62, 53, 0.05); border-top: 3px solid var(--red-light); }
.item-block--right        { background: rgba(141, 158, 107, 0.07); border-top: 3px solid var(--avocado-light); }
.item-block--mistake      { background: rgba(166, 62, 53, 0.04); border-top: 3px solid var(--red-light); }

/* Image slots (kept for compatibility) */
.item-block__imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  position: relative;
}
.item-block__imgs::after {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: var(--cream-light);
  pointer-events: none;
}

/* Typography demo wrapper (Mục 2 replaces item-block__imgs) */
.item-block__demo {
  width: 100%;
}
.typo-demo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-bottom: 1.5px solid var(--beige-mid);
  cursor: zoom-in;
}

/* Text area */
.item-block__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 18px 20px 4px;
}
.item-block__label--wrong { color: var(--red); }
.item-block__label--right { color: var(--avocado-dark); }

.item-block__mistake-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-light);
  line-height: 1;
  margin: 18px 20px 2px;
}

.item-block__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 18px 20px 2px;
  width: fit-content;
}
.item-block__badge--sky   { background: var(--sky-light);    color: var(--sky-muted); }
.item-block__badge--green { background: var(--avocado-light); color: var(--avocado-dark); }

.item-block__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 20px 8px;
}

.item-block__text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.72;
  color: var(--ink-soft);
  margin: 0 20px 22px;
  flex: 1;
}
.item-block__text strong { color: var(--ink); }

@media (max-width: 640px) {
  .items-grid,
  .items-grid--2col,
  .items-grid--3col { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════
   TYPOGRAPHY DEMO BOXES
   ════════════════════════════════════════════════ */
.typo-demo-box {
  padding: 20px 22px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.typo-demo-box--bad {
  background: rgba(166, 62, 53, 0.04);
  border-bottom: 2px solid rgba(166, 62, 53, 0.12);
}
.typo-demo-box--good {
  background: rgba(141, 158, 107, 0.06);
  border-bottom: 2px solid rgba(141, 158, 107, 0.2);
}
.typo-demo-box--neutral {
  background: var(--cream-dark);
  border-bottom: 2px solid var(--beige);
}
.typo-demo-box--tall {
  min-height: 175px;
}

/* Annotation label inside demo box */
.tdb-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 4px;
}
.tdb-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Hierarchy demo container */
.hierarchy-demo {
  display: flex;
  flex-direction: column;
  gap: 5px;
}


/* ════════════════════════════════════════════════
   PRO TIP CALLOUT
   ════════════════════════════════════════════════ */
.pro-tip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(141, 158, 107, 0.08);
  border-left: 4px solid var(--avocado);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}
.pro-tip__icon {
  font-size: 1.1rem;
  color: var(--avocado);
  flex-shrink: 0;
  margin-top: 2px;
}
.pro-tip__title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--avocado-dark);
  margin-right: 6px;
}
.pro-tip__text {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.pro-tip__text strong { color: var(--ink); }


/* ════════════════════════════════════════════════
   PULL QUOTE
   ════════════════════════════════════════════════ */
.solo-hero-text {
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  border-left: 4px solid var(--red);
  padding-left: 28px;
  max-width: 640px;
}
.pull-quote strong { font-style: normal; color: var(--red); }


/* ════════════════════════════════════════════════
   SECTION MISTAKES background
   ════════════════════════════════════════════════ */
.section-mistakes {
  background: linear-gradient(135deg, rgba(166,62,53,0.04) 0%, transparent 60%);
  border-radius: var(--radius-lg);
  padding-left: 40px;
  padding-right: 40px;
}


/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
.site-footer {
  background-color: var(--ink);
  color: var(--cream-light);
  margin-top: 0;
}

.footer-cta-strip {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
  padding: 72px 48px 68px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FAF6EF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.footer-cta-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.7);
  margin-bottom: 20px;
  position: relative;
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream-light);
  margin-bottom: 18px;
  position: relative;
}
.footer-cta-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(250, 246, 239, 0.85);
}

.footer-cta-sub {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(250, 246, 239, 0.75);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.footer-cta-btn {
  display: inline-block;
  background-color: var(--cream-light);
  color: var(--red-dark);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 40px;
  border-radius: 50px;
  position: relative;
  transition: background-color 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.footer-cta-btn:hover {
  background-color: var(--ink);
  color: var(--cream-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.footer-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 48px 56px;
  border-bottom: 1px solid rgba(250, 246, 239, 0.1);
}

.footer-col-label {
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 14px;
}

.footer-brand-mark {
  font-size: 2rem;
  color: var(--avocado-light);
  margin-bottom: 14px;
  line-height: 1;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cream-light);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.footer-brand-role {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-light);
  margin-bottom: 16px;
}
.footer-brand-bio {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(250, 246, 239, 0.6);
}
.footer-brand-bio strong { color: rgba(250, 246, 239, 0.85); font-weight: 500; }

.footer-col-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream-light);
  line-height: 1.25;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(250, 246, 239, 0.55);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
  padding-left: 0;
}
.footer-links a:hover { color: var(--cream-light); padding-left: 6px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 48px;
  flex-wrap: wrap;
}
.footer-bottom-left,
.footer-bottom-right {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(250, 246, 239, 0.35);
  letter-spacing: 0.04em;
}
.footer-bottom-right { font-style: italic; }
.footer-bottom-center { font-size: 0.8rem; color: var(--avocado); }


/* ════════════════════════════════════════════════
   RESPONSIVE — Footer & Page
   ════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .footer-body { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-col--brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 20px;
  }
  .footer-brand-mark { grid-row: 1 / 4; align-self: start; }
  .section-mistakes { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 600px) {
  .footer-cta-strip { padding: 52px 24px 48px; }
  .footer-body { grid-template-columns: 1fr; padding: 48px 24px 40px; gap: 36px; }
  .footer-col--brand { grid-template-columns: 1fr; }
  .footer-brand-mark { margin-bottom: 10px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 18px 24px; gap: 6px; }
  .footer-bottom-center { display: none; }
  .page-content { padding: 0 16px 50px; }
  .chapter-divider { flex-direction: column; gap: 8px; text-align: center; }
  .chapter-divider__rule { width: 60px; height: 1px; flex: none; }
  .section-number { font-size: 4rem; top: 36px; right: 12px; opacity: 0.08; }
  .pull-quote { padding-left: 14px; font-size: 1rem; }

  /* Smooth horizontal scrolling category filter strip on mobile */
  .category-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 4px 14px 0;
    margin-bottom: 24px;
    gap: 8px;
    scrollbar-width: none;
  }
  .category-filter::-webkit-scrollbar { display: none; }
  .cat-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.78rem;
  }

  /* Compact section switcher sticky tabs */
  .switcher-tab { padding: 12px 10px; gap: 8px; }
  .tab-num { font-size: 1.15rem; }
  .tab-label { font-size: 0.85rem; }

  /* Hero section mobile typography */
  .hero-content { padding: 16px 14px; }
  .hero__title--main {
    font-size: clamp(1.5rem, 7.5vw, 2.5rem);
    padding: 0.08em 0.25em 0.5em 0.2em;
    line-height: 1.35;
    letter-spacing: 0.01em;
  }
  .hero__title--serif {
    font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  }
  .hero-tags-strip {
    padding: 7px 14px;
    gap: 6px;
    font-size: 0.55rem;
  }
  .deco-char {
    opacity: 0.025;
  }

  /* Item blocks and pro-tips */
  .item-block__label { margin: 14px 14px 4px; }
  .item-block__title { margin: 0 14px 8px; font-size: 1.05rem; }
  .item-block__text { margin: 0 14px 16px; font-size: 0.85rem; }
  .pro-tip { padding: 16px 18px; gap: 12px; }

  /* Lightbox modal touch optimizations */
  .lightbox-modal { padding: 12px; }
  .lightbox-modal__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  .lightbox-modal__content img {
    max-height: 72vh;
    border-radius: 8px;
  }
  .lightbox-modal__caption {
    font-size: 0.78rem;
    margin-top: 10px;
  }
}


/* ════════════════════════════════════════════════
   LIGHTBOX MODAL
   ════════════════════════════════════════════════ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 12, 8, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.3s;
  padding: 24px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-modal__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--cream-light);
  font-size: 2.2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10000;
}
.lightbox-modal__close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.1);
  color: #FFFFFF;
}

.lightbox-modal__content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-modal__content {
  transform: scale(1);
}

.lightbox-modal__content img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 2px rgba(255, 255, 255, 0.2);
}

.lightbox-modal__caption {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(250, 246, 239, 0.82);
  margin-top: 14px;
  text-align: center;
  letter-spacing: 0.03em;
  max-width: 600px;
}
