/* ============================================================
   BASE — reset, typography, layout primitives, buttons
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: var(--text-xl); }

p { color: var(--text-dark-secondary); }

a { color: var(--primary); text-decoration: none; transition: color var(--duration-fast) var(--ease-smooth); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

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

.section { padding-block: var(--section-y); }
.section-light { background: var(--bg-light); }
.section-gray  { background: var(--bg-gray); }
.section-dark  { background: var(--gradient-hero); color: var(--text-primary); }
.section-dark h2, .section-dark h3 { color: var(--text-primary); }
.section-dark p { color: var(--text-secondary); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
}
.section-head p { font-size: var(--text-lg); margin-top: var(--space-md); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-50);
  border: 1px solid var(--gold-100);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.section-dark .eyebrow {
  color: var(--gold-light);
  background: rgba(212, 160, 23, 0.12);
  border-color: rgba(212, 160, 23, 0.3);
}
.section-dark .eyebrow::before { background: var(--gold-light); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-smooth),
              background var(--duration-normal) var(--ease-smooth),
              color var(--duration-normal) var(--ease-smooth);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-gold);
  color: var(--primary-darker);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { color: var(--primary-darker); box-shadow: 0 8px 22px rgba(212, 160, 23, 0.45); }

.btn-navy {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-navy);
}
.btn-navy:hover { color: #fff; box-shadow: 0 8px 22px rgba(28, 63, 124, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-color);
}
.btn-outline:hover { background: var(--primary-50); border-color: var(--primary-200); color: var(--primary); }

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32); }
.btn-whatsapp:hover { color: #fff; }

.btn-sm    { padding: 10px 18px; font-size: var(--text-sm); }
.btn-lg    { padding: 17px 34px; font-size: var(--text-lg); }
.btn-block { width: 100%; }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-gray);
  color: var(--text-dark-secondary);
  border: 1px solid var(--border-light);
}
.chip-gold    { background: var(--gold-50);    color: var(--gold-dark);  border-color: var(--gold-100); }
.chip-navy    { background: var(--primary-50); color: var(--primary);    border-color: var(--primary-100); }
.chip-success { background: var(--success-50); color: var(--success);    border-color: #bbf7d0; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-200);
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

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