/* ==========================================================================
   style.css — Reset, base elements, typography, global layout
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@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;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--c-gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-gold);
  color: var(--c-black);
  padding: var(--sp-3) var(--sp-5);
  font-weight: 700;
  z-index: 999;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.5rem, 6vw, var(--fs-5xl)); }
h2 { font-size: clamp(1.9rem, 4.2vw, var(--fs-3xl)); }
h3 { font-size: clamp(1.25rem, 2.4vw, var(--fs-xl)); }
h4 { font-size: var(--fs-md); }

p { color: var(--c-text-dim); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--f-mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--c-gold);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-8);
}
.section-head h2 { margin-top: var(--sp-3); }
.section-head p { margin-top: var(--sp-4); font-size: var(--fs-md); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }

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

.section {
  padding-block: var(--sp-9);
  position: relative;
}
.section--alt { background: var(--c-bg-alt); }
.section--tight { padding-block: var(--sp-8); }

main { display: block; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.95rem 1.75rem;
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn--gold {
  background: linear-gradient(180deg, var(--c-gold-bright), var(--c-gold));
  color: var(--c-black);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { box-shadow: 0 12px 34px rgba(var(--c-gold-rgb), 0.4); }

.btn--outline {
  border-color: var(--c-line);
  color: var(--c-text);
  background: rgba(245, 245, 243, 0.03);
}
.btn--outline:hover { border-color: var(--c-gold); color: var(--c-gold); }

.btn--whatsapp {
  background: var(--c-whatsapp);
  color: #fff;
}
.btn--whatsapp:hover { background: var(--c-whatsapp-dark); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35); }

.btn--block { width: 100%; }
.btn--lg { padding: 1.15rem 2.25rem; font-size: var(--fs-base); }

/* ---- Links / misc ---- */
.text-link {
  color: var(--c-gold);
  border-bottom: 1px solid rgba(var(--c-gold-rgb), 0.4);
  transition: border-color var(--dur-fast);
}
.text-link:hover { border-color: var(--c-gold); }

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