@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Source+Code+Pro:wght@500;600&display=swap');

:root {
  /* Canvas & Dark Theme Core */
  --background:        #1C1B18; /* Charcoal deep — fundo base */
  --foreground:        #F0E8C8; /* Parchment light — texto primário */
  --surface:           #242218; /* Charcoal levemente claro — superfície */
  --card:              #2A2820; /* Charcoal card */
  --muted:             #1F1E1A; /* Quase preto — fundos de seção */
  --muted-foreground:  #9A8E6E; /* Sand médio — labels e textos auxiliares */

  /* Cores Primárias e Secundárias */
  --primary:           #C9A84C; /* Burnished Gold — CTA principal */
  --primary-foreground:#1C1B18; /* Charcoal escuro */
  --secondary:         #2A2820; /* Charcoal médio */
  --secondary-foreground:#E8D9A0;
  --tertiary:          #8C7A3A; /* Gold apagado */
  --neutral:           #6B6555; /* Sand muted */

  /* Acentos & Bordas */
  --accent:            #C9A84C; /* Gold vivo */
  --accent-foreground: #1C1B18;
  --gold-glow:         rgba(201, 168, 76, 0.18);
  --border:            rgba(201, 168, 76, 0.15); /* Gold alpha */
  --border-hover:      rgba(201, 168, 76, 0.4);
  --ring:              #C9A84C;

  /* Semântica UI */
  --destructive:       #C0392B;
  --destructive-foreground: #F0E8C8;
  --success:           #5A8A3C;
  --warning:           #C9A84C;
  --info:              #6A8FAA;

  /* Radii */
  --radius-sm:         6px;
  --radius-md:         8px;
  --radius-lg:         12px;
  --radius-xl:         16px;
  --radius-full:       9999px;

  /* Motion */
  --duration-fast:     150ms;
  --duration-base:     300ms;
  --duration-gentle:   400ms;
  --ease-out:          cubic-bezier(0.25, 1, 0.5, 1);

  /* Typography */
  --font-sans:         'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:         'Source Code Pro', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* CRÍTICO: Lenis controla o smooth scroll. CSS smooth causa DUPLA SUAVIZAÇÃO e trava o mouse wheel */
  font-size: 16px;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden !important;
}

/* ══════════════════ 1. PRELOADER ══════════════════ */
#loader {
  position: fixed;
  inset: 0;
  background-color: var(--background);
  color: var(--foreground);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

#loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-core {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader-iris {
  width: 80px;
  height: 80px;
}

.li-track {
  stroke: rgba(201, 168, 76, 0.15);
}

.li-ring {
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.2s ease-out;
}

.li-blades path {
  fill: var(--primary);
  opacity: 0.7;
}

.loader-name {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.loader-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ══════════════════ 2. FILM GRAIN ══════════════════ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-vignette {
  display: none;
}

/* ══════════════════ 3. NAVBAR CENTRALIZADA COM LOGO DOURADO ══════════════════ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 980px;
  height: 54px;
  background: rgba(28, 27, 24, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0 24px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all var(--duration-base) var(--ease-out);
}

.nav-brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
}

.nav-logo-img {
  height: 26px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-cta-nav {
  background-color: var(--primary);
  color: var(--primary-foreground) !important;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2);
}

/* ══════════════════ 4. HERO SECTION (Rigobeli usa 700vh, aqui 500vh para equilíbrio) ══════════════════ */
.hero {
  position: relative;
  height: 500vh; /* Mais runway = cada wheel notch cobre menos frames = mais suavidade */
  width: 100%;
}

.hero-stick {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Hero Text Overlays — GSAP controla opacity/transform diretamente */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  z-index: 3;
  pointer-events: none;
}

.ho-intro {
  opacity: 0; /* GSAP anima para 1 na entrada cinematográfica */
}

.ho-1, .ho-2, .ho-3 {
  opacity: 0; /* GSAP timeline controla aparição via scroll */
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(28, 27, 24, 0.85);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--foreground);
  margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}

.hero-title em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--secondary-foreground);
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.ho-line {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.ho-line em {
  font-style: italic;
  color: var(--primary);
}

.ho-small {
  font-size: 1.1rem;
  color: var(--secondary-foreground);
  margin-top: 12px;
}

/* CAMERA HUD INDICATORS */
.hero-hud {
  position: absolute;
  bottom: 28px;
  right: 32px;
  z-index: 4;
  pointer-events: none;
  font-family: var(--font-mono);
}

.hud-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary-foreground);
}

.hud-line {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
  display: block;
}

/* ══════════════════ 5. SEÇÕES DE CONTEÚDO ══════════════════ */
.section {
  padding: 100px 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--foreground);
  margin-bottom: 16px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px var(--gold-glow);
}

.product-badge {
  align-self: flex-start;
  background-color: rgba(201, 168, 76, 0.12);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.product-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 12px;
}

.product-text {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-bottom: 24px;
  flex: 1;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #E8C468;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Footer */
.footer {
  background-color: #141311;
  color: var(--foreground);
  padding: 80px 40px 40px;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  background: rgba(42, 40, 32, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.cookie-text {
  font-size: 0.875rem;
  color: var(--foreground);
  margin-bottom: 16px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-btn-accept {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn-reject {
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

/* ══════════════════ 6. OTIMIZAÇÃO RESPONSIVA PARA MOBILE (iOS / Android) ══════════════════ */
@media (max-width: 768px) {
  /* Navbar Mobile Flutuante e Limpa */
  .nav {
    top: 12px;
    width: calc(100% - 24px);
    height: 50px;
    padding: 0 16px;
  }

  .nav-logo-img {
    height: 22px;
    max-width: 140px;
  }

  .nav-links {
    display: none; /* Em mobile o foco é nos CTAs principais */
  }

  .btn-cta-nav {
    padding: 6px 12px;
    font-size: 0.75rem !important;
  }

  /* Hero Section Mobile */
  .hero {
    height: 400vh;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .ho-line {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .ho-small {
    font-size: 0.95rem;
  }

  .eyebrow {
    font-size: 0.6875rem;
    padding: 4px 12px;
    margin-bottom: 12px;
  }

  .hero-hud {
    bottom: 20px;
    right: 20px;
  }

  /* Seções e Grids em Celulares */
  .section {
    padding: 60px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card {
    padding: 24px;
  }

  /* Grid Sobre Nós (Stacking) */
  .section#about > div {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Footer Stacking */
  .footer {
    padding: 60px 20px 30px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Cookie Banner Mobile */
  .cookie-banner {
    bottom: 12px;
    right: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 18px;
  }
}
