/* Viva Bachata LA — base styles */

:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --bg-3: #14141a;
  --ink: #f5f5f7;
  --ink-2: #c8c8cc;
  --ink-3: #8a8a92;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --red: #e11d2d;
  --red-2: #ff2e3f;
  --red-glow: 0 0 40px rgba(225, 29, 45, 0.45);
  --red-glow-sm: 0 0 18px rgba(225, 29, 45, 0.5);
  --silver-1: #f3f3f5;
  --silver-2: #b8b8c0;
  --silver-3: #6c6c74;

  --maxw: 1200px;
  --pad: 24px;

  --font-display: "Anton", "Oswald", "Impact", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }

/* ── Halftone background (subtle global texture) ───────────── */
.halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(225, 29, 45, 0.18) 1px, transparent 1.4px);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* ── Brush stroke red accent ────────────────────────────────── */
.brush {
  position: absolute;
  height: 8px;
  background: var(--red);
  filter: blur(0.5px);
  clip-path: polygon(
    0% 40%, 2% 20%, 6% 70%, 12% 30%, 18% 85%, 24% 40%, 30% 75%, 38% 25%, 46% 80%,
    54% 35%, 62% 70%, 70% 30%, 78% 75%, 84% 35%, 90% 80%, 96% 40%, 100% 60%,
    98% 100%, 92% 60%, 86% 100%, 78% 55%, 72% 100%, 64% 60%, 56% 100%, 48% 55%,
    40% 100%, 32% 60%, 24% 100%, 16% 55%, 10% 100%, 4% 65%, 0% 100%
  );
}
.brush.thin { height: 4px; opacity: 0.85; }
.brush.thick { height: 14px; opacity: 0.9; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 120ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--red-glow-sm);
}
.btn-primary:hover {
  background: var(--red-2);
  box-shadow: var(--red-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red-2);
}
.btn-sm { height: 38px; padding: 0 18px; font-size: 11px; }
.btn-lg { height: 58px; padding: 0 34px; font-size: 14px; }

/* ── Section frame ────────────────────────────────────────── */
.section { position: relative; padding: 96px var(--pad); }
.section-inner { max-width: var(--maxw); margin: 0 auto; position: relative; }

@media (max-width: 640px) {
  .section { padding: 56px 18px; }
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 12px 0 0;
}
.section-title em {
  font-style: normal;
  color: var(--red);
}

/* ── Image slot styling ──────────────────────────────────────── */
image-slot {
  background: linear-gradient(180deg, #1a1a20 0%, #0f0f14 100%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
image-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
}

/* ── Reveal-on-scroll ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Card base ──────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, #121218 0%, #0a0a0d 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 200ms ease, transform 160ms ease;
}
.card:hover {
  border-color: rgba(225, 29, 45, 0.5);
  box-shadow: 0 8px 32px rgba(225, 29, 45, 0.15);
}

/* ── Utility ────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--line);
}
.text-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a30; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
