/* =========================================================
   Pháo Hoa Bộ Quốc Phòng – Z121
   Design system: nền trời đêm + vàng nghi lễ + đỏ son
   ========================================================= */

:root {
  --radius: 0.5rem;
  --background: oklch(0.16 0.035 265);
  --foreground: oklch(0.97 0.01 90);
  --surface: oklch(0.21 0.04 265);
  --surface-2: oklch(0.25 0.045 265);
  --primary: oklch(0.78 0.14 82);
  --primary-foreground: oklch(0.18 0.04 265);
  --secondary: oklch(0.25 0.045 265);
  --muted-foreground: oklch(0.72 0.02 265);
  --border: oklch(0.32 0.04 265);
  --gold: oklch(0.82 0.14 84);
  --gold-soft: oklch(0.9 0.09 88);
  --crimson: oklch(0.55 0.21 25);

  --gradient-night: radial-gradient(110% 80% at 50% 0%, color-mix(in oklab, var(--crimson) 22%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, oklch(0.19 0.045 268) 0%, oklch(0.14 0.03 265) 100%);
  --gradient-gold: linear-gradient(120deg, var(--gold) 0%, var(--gold-soft) 45%, var(--gold) 100%);
  --shadow-elevated: 0 24px 60px -24px oklch(0 0 0 / 0.75);
  --shadow-gold: 0 18px 44px -20px color-mix(in oklab, var(--gold) 55%, transparent);

  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --maxw: 80rem;
}

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

* { margin: 0; padding: 0; border: 0 solid var(--border); }

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

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.ico { width: 1rem; height: 1rem; flex: none; }
.ico-lg { width: 1.25rem; height: 1.25rem; flex: none; }
.muted { color: var(--muted-foreground); }
.gold { color: var(--primary); }

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}

.text-gold-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.875rem 1.75rem;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease, background-color 0.25s ease;
}
.btn-gold { background: var(--gradient-gold); color: var(--primary-foreground); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-outline {
  border: 1px solid color-mix(in oklab, var(--gold) 55%, transparent);
  color: var(--gold);
}
.btn-outline:hover { background: color-mix(in oklab, var(--gold) 12%, transparent); transform: translateY(-2px); }
.btn-sm { padding: 0.5rem 1.25rem; }

/* ---------- Card ---------- */
.card {
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--surface-2) 90%, transparent),
    color-mix(in oklab, var(--surface) 96%, transparent));
  border: 1px solid color-mix(in oklab, var(--gold) 14%, transparent);
  box-shadow: var(--shadow-elevated);
  border-radius: 1rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: color-mix(in oklab, var(--gold) 42%, transparent); transform: translateY(-4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(16px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.brand img { height: 2.75rem; width: auto; flex: none; }
.brand-name {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  display: block; font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--muted-foreground);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-right { display: flex; align-items: center; gap: 2rem; }
.main-nav { display: none; gap: 2rem; font-size: 0.875rem; color: var(--muted-foreground); }
.main-nav a { transition: color 0.2s ease; }
.main-nav a:hover { color: var(--primary); }
.call-full { display: none; }
.call-icon {
  display: grid; place-items: center; height: 2.5rem; width: 2.5rem;
  border-radius: 999px; background: var(--gradient-gold); color: var(--primary-foreground);
  box-shadow: var(--shadow-gold); flex: none;
}
@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .call-full { display: inline-flex; padding: 0.625rem 1.25rem; }
  .call-icon { display: none; }
  .brand-name { font-size: 1.125rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolate: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: 88svh;
}
.hero-media { position: absolute; inset: 0; z-index: -20; overflow: hidden; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% center;
  opacity: 0.8; animation: hero-zoom 18s ease-out forwards;
}
.hero-glow, .hero-glow-red {
  position: absolute; z-index: -10; border-radius: 999px; pointer-events: none;
  width: 26rem; height: 26rem;
}
.hero-glow {
  right: -4rem; top: 1rem;
  background: radial-gradient(circle at center, color-mix(in oklab, var(--gold) 45%, transparent), transparent 68%);
  filter: blur(60px); animation: glow-pulse 7s ease-in-out infinite;
}
.hero-glow-red {
  left: -6rem; bottom: 0;
  background: radial-gradient(circle at center, color-mix(in oklab, var(--crimson) 45%, transparent), transparent 70%);
  filter: blur(70px); animation: glow-pulse 9s ease-in-out infinite 1.5s;
}
.hero-veil, .hero-veil-2 { position: absolute; inset: 0; z-index: -10; }
.hero-veil {
  background: linear-gradient(180deg, color-mix(in oklab, var(--background) 85%, transparent),
    color-mix(in oklab, var(--background) 45%, transparent), var(--background));
}
.hero-veil-2 {
  background: linear-gradient(0deg, var(--background), transparent, color-mix(in oklab, var(--background) 60%, transparent));
}
.hero-body { position: relative; width: 100%; padding-block: 5rem; }
.hero-inner { max-width: 48rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem; max-width: 100%;
  border: 1px solid color-mix(in oklab, var(--primary) 35%, transparent);
  background: color-mix(in oklab, var(--secondary) 60%, transparent);
  color: var(--primary); border-radius: 999px;
  padding: 0.375rem 1rem; font-size: 0.6875rem; font-weight: 500; line-height: 1.4;
  backdrop-filter: blur(8px);
}
.hero h1 { margin-top: 1.5rem; font-size: 2.15rem; font-weight: 700; }
.hero p.lead { margin-top: 1.25rem; max-width: 36rem; color: var(--muted-foreground); font-size: 0.95rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }

.text-gold-sheen {
  background: linear-gradient(100deg, var(--gold) 0%,
    color-mix(in oklab, var(--gold) 55%, white) 18%, var(--gold) 36%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s linear infinite;
}

.hero-stats {
  margin-top: 3rem; max-width: 42rem;
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 1rem; overflow: hidden;
}
.hero-stats > div {
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  padding: 1rem 1.25rem; backdrop-filter: blur(8px);
}
.hero-stats .k { margin-top: 0.75rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.hero-stats .v { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

.reveal { opacity: 0; animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@media (min-width: 640px) {
  .hero-media img { object-position: center; }
  .hero-veil {
    background: linear-gradient(90deg, var(--background),
      color-mix(in oklab, var(--background) 75%, transparent), transparent);
  }
  .hero h1 { font-size: 3rem; margin-top: 1.75rem; }
  .hero p.lead { font-size: 1.125rem; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); margin-top: 3.5rem; }
  .hero-stats > div { padding: 1.25rem 1.5rem; }
  .hero-stats .k { font-size: 1.5rem; }
  .hero-glow { width: 34rem; height: 34rem; }
  .hero-glow-red { width: 30rem; height: 30rem; }
  .badge { font-size: 0.75rem; }
}
@media (min-width: 1024px) {
  .hero { min-height: 92svh; }
  .hero-body { padding-block: 8rem; }
  .hero h1 { font-size: 4.5rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 5rem; }
.section-head { max-width: 40rem; }
.section-head h2 { margin-top: 1rem; font-size: 1.875rem; font-weight: 700; }
.section-head p { margin-top: 1rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .section-head h2 { font-size: 3rem; } }

.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.cat-card { padding: 2rem; display: block; }
.cat-icon {
  display: grid; place-items: center; height: 3rem; width: 3rem; border-radius: 0.75rem;
  border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  background: var(--secondary); color: var(--primary);
}
.cat-card h3 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 700; }
.cat-card p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.cat-more { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.cat-card:hover .cat-more .ico { transform: translateX(4px); }
.cat-more .ico { transition: transform 0.25s ease; }

.callout {
  margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem; border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  background: color-mix(in oklab, var(--secondary) 50%, transparent);
  padding: 1.25rem 1.75rem; font-size: 0.875rem; color: var(--muted-foreground);
}
.callout a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--primary); }
.callout a:hover { text-decoration: underline; }

/* ---------- Products ---------- */
.grid-products { margin-top: 3rem; display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }

.product { overflow: hidden; }
.product-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--secondary); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product:hover .product-media img { transform: scale(1.05); }
.product-tag {
  position: absolute; left: 1rem; top: 1rem; border-radius: 999px;
  background: color-mix(in oklab, var(--background) 80%, transparent);
  color: var(--primary); backdrop-filter: blur(8px);
  padding: 0.25rem 0.75rem; font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.product-body { padding: 1.5rem; }
.product-body h3 { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.product-foot { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--primary); }

/* ---------- About / Reasons ---------- */
.night { background: var(--gradient-night); border-block: 1px solid var(--border); }
.reason { padding: 2rem; }
.reason h3 { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 700; }
.reason p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* ---------- Testimonials ---------- */
.quote { padding: 2rem; }
.stars { display: flex; gap: 0.25rem; color: var(--primary); }
.stars .ico { fill: currentColor; }
.quote p { margin-top: 1.25rem; font-size: 0.9375rem; color: color-mix(in oklab, var(--foreground) 85%, transparent); }
.quote .who { margin-top: 1.5rem; font-weight: 600; }
.quote .role { font-size: 0.8125rem; color: var(--muted-foreground); }

/* ---------- CTA ---------- */
.cta { text-align: center; padding-block: 6rem; }
.cta h2 { font-size: 1.875rem; font-weight: 700; }
.cta p { margin-top: 1.25rem; margin-inline: auto; max-width: 42rem; color: var(--muted-foreground); }
.cta-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
@media (min-width: 640px) { .cta h2 { font-size: 3rem; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 40%, transparent);
}
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid h3 {
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--primary);
}
.footer-list { margin-top: 1.25rem; display: grid; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-list li { display: flex; align-items: center; gap: 0.5rem; }
.footer-list a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-block: 1.5rem;
  font-size: 0.8125rem; color: var(--muted-foreground); text-align: center;
}

/* ---------- Nút gọi/Zalo nổi trên mobile ---------- */
.floating {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: flex; flex-direction: column; gap: 0.625rem;
}
.floating a {
  display: grid; place-items: center; height: 3rem; width: 3rem; border-radius: 999px;
  background: var(--gradient-gold); color: var(--primary-foreground); box-shadow: var(--shadow-gold);
}
.floating a .ico { width: 1.25rem; height: 1.25rem; }
@media (min-width: 1024px) { .floating { display: none; } }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1) translate3d(0, -1.5%, 0); } }
@keyframes glow-pulse { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.08); } }
@keyframes sheen { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; }
}
