/* 
   base.css - Biến thiết kế (màu, cỡ chữ, khoảng cách, hiệu ứng), nền tảng, kiểu chữ, bố cục chung.
   Dùng cho: TẤT CẢ các trang.
    */

:root {
  
  --ink: #151918;
  --dark: #101514;
  --lime: #d7ff45;
  --paper: #f4f1ea;
  --white: #ffffff;
  --muted: #5f6663;
  --line: rgba(21, 25, 24, 0.14);
  --danger: #b3261e;
  --ok: #1d7a46;

  
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  
  --fs-xs: 0.75rem; 
  --fs-sm: 0.875rem; 
  --fs-md: 1rem; 
  --fs-lg: 1.25rem; 
  --fs-xl: 1.75rem; 
  --fs-2xl: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); 
  --fs-hero: clamp(2.5rem, 1rem + 5.6vw, 5.25rem); 

  --lh-body: 1.6;
  --lh-heading: 1.12;

  
  --ls-display: -0.02em;
  --ls-label: 0.14em;

  
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 80px;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header-h: 72px;

  
  --transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  --lift-sm: translateY(-2px); 
  --lift-md: translateY(-4px); 
  --shadow-hover: 0 18px 40px rgba(16, 21, 20, 0.14);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-display);
}

h1 {
  font-size: var(--fs-hero);
  text-transform: uppercase;
}

h2 {
  font-size: var(--fs-2xl);
  text-transform: uppercase;
}

h3 {
  font-size: var(--fs-lg);
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.section {
  padding-block: var(--sp-8);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-bottom: var(--sp-6);
}

.eyebrow,
.label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  max-width: 560px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

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

.page-head {
  padding-block: var(--sp-7) var(--sp-5);
}

.page-head h1 {
  font-size: var(--fs-2xl);
  margin-top: var(--sp-2);
}

@media (max-width: 860px) {
  :root {
      --sp-8: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
