/* ============================================
   FALAVENDEDOR — SHARED DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --yellow:      #FFC400;
  --yellow-dark: #E6B000;
  --black:       #080808;
  --graphite:    #1A1A1A;
  --text:        #1E1E1E;
  --muted:       #717171;
  --border:      #E5E5E2;
  --off-white:   #F5F5F2;
  --white:       #FFFFFF;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --nav-h: 72px;
  --max-w: 1200px;
  --max-w-wide: 1400px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
p { text-wrap: pretty; line-height: 1.65; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}
.container--wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 48px;
}
.section { padding: 128px 0; }
.section--sm { padding: 80px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s var(--ease), background 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--yellow {
  background: var(--yellow);
  color: var(--black);
}
.btn--yellow:hover { background: var(--yellow-dark); }

.btn--dark {
  background: var(--graphite);
  color: var(--white);
}
.btn--dark:hover { background: #2e2e2e; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { border-color: var(--text); }

.btn--ghost-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn--ghost-white:hover { border-color: rgba(255,255,255,0.6); }

/* ── Label ── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
}
.label--white { color: rgba(255,255,255,0.5); }
.label--white::before { background: var(--yellow); }

/* ── Arrow icon ── */
.arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
a:hover .arrow, .btn:hover .arrow { transform: translateX(3px); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s;
}
.nav.is-dark {
  color: var(--white);
  background: transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  color: var(--text);
}
.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 48px;
  gap: 0;
}
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}
.nav__logo-img {
  height: 34px;
  width: auto;
  display: block;
  transition: filter 0.35s var(--ease);
}
.nav.is-dark .nav__logo-img {
  filter: brightness(0) invert(1);
}
.nav.is-scrolled .nav__logo-img {
  filter: none;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  margin-right: 36px;
}
.nav__links a {
  opacity: 0.65;
  transition: opacity 0.18s;
  padding: 4px 0;
}
.nav__links a:hover,
.nav__links a.active { opacity: 1; }

.nav__cta { flex-shrink: 0; }

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: all 0.25s var(--ease);
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 0 24px;
  color: var(--text);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.nav__mobile a:hover { opacity: 1; }
.nav__mobile .btn { margin: 12px 24px 0; align-self: flex-start; }

/* ── FOOTER ── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer__brand-logo {
  margin-bottom: 16px;
}
.footer__logo-img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer__tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  max-width: 220px;
  margin-bottom: 28px;
}
.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--yellow); }
.footer__col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

/* ── Fade-in scroll animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav__links,
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { padding: 0 24px; }

  .container, .container--wide { padding: 0 24px; }
  .section { padding: 80px 0; }
  .section--sm { padding: 56px 0; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
