/*
  ─────────────────────────────────────────────────────────────────
  UNIVERSO VEDAÇÕES — Minimal custom styles
  ─────────────────────────────────────────────────────────────────
  All layout and component styles are handled by Tailwind CDN.
  This file only contains what Tailwind utilities cannot replicate.
  ─────────────────────────────────────────────────────────────────
*/

/* ── Selection ──────────────────────────────────────────────── */
::selection {
  background: #C2410C;
  color: #fff;
}

/* ── Focus visible ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #C2410C;
  outline-offset: 2px;
}

/* ── Base ───────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-tap-highlight-color: transparent;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile menu ────────────────────────────────────────────── */
#mobile-menu {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

#mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Nav underline hover ────────────────────────────────────── */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: #C2410C;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              left 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after {
  width: 40%;
  left: 30%;
}

/* ── Header scrolled state ──────────────────────────────────── */
#site-header {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#site-header.scrolled {
  background: rgba(245, 240, 235, 0.96) !important;
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.06);
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-link::after {
    transition: none;
  }

  #mobile-menu {
    transition: none;
  }

  #site-header {
    transition: none;
  }
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F5F0EB;
}

::-webkit-scrollbar-thumb {
  background: #A8A29E;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #C2410C;
}
