/* ============================================================
   YOUR GRAPHICS DESIGNER — design system
   ============================================================ */

@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/ArchivoBlack-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.woff2') format('woff2-variations'), url('../fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core palette */
  --ink: #0B0B0D;
  --ink-soft: #17171B;
  --ink-line: #2A2A30;
  --paper: #F7F5F0;
  --paper-dim: #EDEAE2;
  --paper-line: #DCD8CC;
  --white: #FFFFFF;
  --muted: #8C8B92;
  --muted-on-paper: #6E6C64;

  /* Signature rainbow, sampled from the YGD mark */
  --c-cyan: #1EA9E8;
  --c-violet: #8A3FD1;
  --c-magenta: #E0219E;
  --c-orange: #FF7A29;
  --c-gold: #FFC22E;

  --rainbow: linear-gradient(100deg, var(--c-cyan) 0%, var(--c-violet) 32%, var(--c-magenta) 55%, var(--c-orange) 78%, var(--c-gold) 100%);

  /* Type */
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 6px;
  --radius-md: 10px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.on-paper {
  background: var(--paper);
  color: var(--ink);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection {
  background: var(--c-magenta);
  color: white;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.01em;
}

.on-paper h1, .on-paper h2, .on-paper h3, .on-paper h4 { color: var(--ink); }

p { margin: 0; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.on-paper .lede { color: var(--muted-on-paper); }

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--c-orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--rainbow);
  border-radius: 2px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,13,0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body.on-paper .site-header {
  background: rgba(247,245,240,0.86);
  border-bottom: 1px solid var(--paper-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand img { height: 38px; width: auto; }
.brand span { display: none; }
@media (min-width: 640px) {
  .brand span { display: inline; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.92rem;
  font-weight: 500;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--paper);
  opacity: 0.78;
  transition: opacity 0.2s var(--ease);
}
body.on-paper .nav-links a { color: var(--ink); }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--rainbow);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
body.on-paper .nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.menu-btn {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
body.on-paper .menu-btn {
  color: var(--ink);
  border-color: rgba(0,0,0,0.14);
}
@media (min-width: 900px) {
  .menu-btn { display: none; }
}

.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--ink);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 32px var(--gutter);
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
body.on-paper .mobile-nav { background: var(--paper); }
.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav a {
  font-family: var(--display);
  font-size: 2rem;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.on-paper .mobile-nav a { border-bottom-color: var(--paper-line); }
.mobile-nav .mobile-cta {
  margin-top: 24px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 24px;
  background: var(--rainbow);
  color: var(--ink) !important;
  border-radius: 999px;
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  font-family: var(--body);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--rainbow);
  color: var(--ink);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(224,33,158,0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(255,255,255,0.22);
}
body.on-paper .btn-ghost {
  color: var(--ink);
  border-color: rgba(0,0,0,0.18);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
}
body.on-paper .btn-ghost:hover { border-color: rgba(0,0,0,0.4); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.3); }

.btn-whatsapp {
  background: #25D366;
  color: #06210F;
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37,211,102,0.3); }

.btn-block { width: 100%; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 56px 0 32px;
  margin-top: 120px;
}
body.on-paper .site-footer { border-top-color: var(--paper-line); }

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.3fr 1fr 1fr;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.footer-brand img { height: 32px; }

.footer-col h5 {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.92rem;
  color: var(--paper);
  opacity: 0.75;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}
body.on-paper .footer-col a, body.on-paper .footer-col p { color: var(--ink); }
.footer-col a:hover { opacity: 1; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
body.on-paper .footer-bottom { border-top-color: var(--paper-line); }

/* ---------- Utility ---------- */

.section { padding: 96px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.section-tight { padding: 56px 0; }

.center { text-align: center; margin-left: auto; margin-right: auto; }

.grad-text {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-gold);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }
