/**
 * Nền tảng: reset, chữ, bố cục, breakpoint.
 * Breakpoint: 900px (lưới 3 → 2 cột), 580px (→ 1 cột), 768px (thanh CTA dính đáy).
 */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--gold-300);
  text-decoration: none;
}

a:hover {
  color: var(--gold-200);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

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

h1,
h2,
h3 {
  margin: 0 0 var(--space-4);
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 56px);
}

h3 {
  font-size: 22px;
  font-weight: 700;
}

p {
  margin: 0 0 var(--space-4);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section {
  padding: 120px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-1);
}

.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section-head p {
  color: var(--text-2);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

@media (max-width: 580px) {
  body {
    font-size: 16px;
  }

  section {
    padding: 72px 0;
  }

  .container {
    padding: 0 var(--space-5);
  }

  .section-head {
    margin-bottom: var(--space-8);
  }
}

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

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