/* ==========================================================================
   BASE — reset, typography, global utilities
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

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

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
  overflow-x: hidden;
}

/* While the mobile off-canvas menu is open, the page underneath
   shouldn't scroll along with it. */
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-0);
  line-height: 1.1;
  margin: 0 0 var(--sp-3);
  font-weight: 600;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-3); }

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

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

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

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

/* Visible keyboard focus everywhere — accessibility floor */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--accent); color: var(--accent-contrast); }

/* ---- Layout utilities ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

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

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

.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-6);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.section-head p {
  color: var(--text-1);
  font-size: var(--fs-md);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn--primary:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 0 30px var(--accent-soft), 0 0 60px var(--accent-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-0);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--fs-xs); }

.btn--whatsapp {
  background: #25d366;
  color: #06170a;
  border-color: #25d366;
}
.btn--whatsapp:hover {
  background: #1fbd5a;
  border-color: #1fbd5a;
  color: #06170a;
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px #25d366, 0 0 24px rgba(37, 211, 102, 0.35);
}

/* ---- Bezel divider: a signature motif — tick marks like a watch bezel,
   used between sections instead of a plain <hr> ---- */
.bezel-divider {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-block: var(--sp-5);
}
.bezel-divider span {
  width: 2px;
  height: 12px;
  background: var(--line);
}
.bezel-divider span:nth-child(3n) { height: 18px; background: var(--accent); opacity: 0.6; }

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-center { text-align: center; margin-inline: auto; }

.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;
}
