/* ============================================================
   RUMO — base.css
   Tokens, reset, tipografia, botões e componentes compartilhados
   ============================================================ */

:root {
  /* Cores da marca */
  --black: #0A0A0A;
  --ink: #0D0D0D;
  --dark: #111111;
  --dark-2: #16140F;
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --gold-dim: #8B6320;
  --green-900: #0E1C14;
  --green-800: #152A1E;
  --green-700: #1C3728;
  --green-600: #254A36;
  --green-500: #2E5C43;
  --green-400: #3D7A59;
  --green-300: #559974;
  --green-text: #EAF6EF;
  --cream: #F5F0E8;
  --gray: #888780;
  --gray-light: #C9C5BC;
  --wpp: #25D366;
  --red: #E74C3C;
  --amber: #E67E22;

  /* Tipografia */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;

  /* Movimento */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --nav-h: 76px;

  /* Superfícies escuras (placeholders de foto) */
  --dark-surface: #1A1812;
  --dark-surface-deep: #0E0D0A;

  /* Utilitários de componente */
  --scrollbar-thumb: #2A2820;
  --wpp-text: #062B14;
  --footer-bg: #080808;
}

/* Z-INDEX SCALE
   0    — backgrounds, pseudo-elementos
   1    — conteúdo relativo, overlays locais
   2    — frames e bordas absolutas
   100  — app-bar sticky (direcao)
   1000 — navbar principal
   1100 — mobile menu overlay
   1102 — hambúrguer (acima do menu)
   2000 — skip link (acessibilidade)
   9000 — grain texture (topo fixo)
*/

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--cream);
}

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

/* Scrollbar discreta */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dim);
}

/* ── Grain / textura ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Layout ── */
.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.container--narrow {
  width: min(840px, 100% - 48px);
  margin-inline: auto;
}

/* ── Tipografia utilitária ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.eyebrow--center::after {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--gold));
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--cream);
}

.display em {
  font-style: italic;
  color: var(--gold);
}

.lead {
  font-size: 17px;
  color: var(--gray-light);
  line-height: 1.8;
}

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 36px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), background 0.4s, border-color 0.4s, color 0.4s;
  white-space: nowrap;
}

.btn .arrow {
  transition: transform 0.45s var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dim) 130%);
  color: var(--black);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.18);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(201, 168, 76, 0.3);
}

.btn--outline {
  border: 1px solid rgba(201, 168, 76, 0.5);
  color: var(--gold);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.07);
  transform: translateY(-2px);
}

.btn--wpp {
  background: var(--wpp);
  color: var(--wpp-text);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.16);
}

.btn--wpp:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.26);
}

.btn--wpp-outline {
  border: 1px solid rgba(37, 211, 102, 0.55);
  color: var(--wpp);
  background: transparent;
}

.btn--wpp-outline:hover {
  border-color: var(--wpp);
  background: rgba(37, 211, 102, 0.07);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 20px 48px;
  font-size: 14px;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, height 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(201, 168, 76, 0.12);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-light);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav__links a:hover {
  color: var(--cream);
}

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  padding: 13px 26px;
  font-size: 12px;
}

/* Hambúrguer */
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  z-index: 1102;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(8, 8, 8, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--cream);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), color 0.3s;
}

.mobile-menu a:not(.btn):hover {
  color: var(--gold);
}

.mobile-menu.open a:not(.btn) {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu .btn {
  margin-top: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease-out) 0.25s, transform 0.45s var(--ease-out) 0.25s;
}

.mobile-menu.open .btn {
  opacity: 1;
  transform: translateY(0);
}

/* ── Rosa dos ventos (animações utilitárias) ── */
@keyframes compass-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes compass-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ── Reveal no scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  filter: blur(8px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-spring), filter 0.8s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ── Footer ── */
.footer {
  position: relative;
  background: var(--footer-bg);
  padding: 72px 0 0;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.5), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 56px;
}

.footer__brand .brand-lockup {
  margin-bottom: 18px;
}

.footer__tagline {
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  max-width: 320px;
}

.footer__title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--gray-light);
  transition: color 0.3s, padding-left 0.3s;
}

.footer__links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer__contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-light);
}

.footer__contact svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  flex-shrink: 0;
}

.footer__contact a {
  transition: color 0.3s;
}

.footer__contact a:hover {
  color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.5px;
}

/* ── Acessibilidade ── */
.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;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 2000;
  background: var(--gold);
  color: var(--black);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0 0 4px 4px;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* ── Cookie Banner (LGPD) ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 13.5px;
  color: var(--gray-light);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 20px;
    gap: 16px;
  }
  .cookie-banner .btn {
    width: 100%;
  }
}

/* ── Responsivo ── */
@media (max-width: 920px) {
  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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