/* ============================================================
   VITA ETERNA — styles.css
   CSS global compartilhado por todas as páginas.
   Criado em Março/2026 como parte da revisão v2.0.
   ============================================================ */


/* ── RESET & VARIÁVEIS ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --creme: #FAF7F2;
  --off: #F2EDE4;
  --verde: #2D4A3E;
  --verde-m: #3D6356;
  --dourado: #B8975A;
  --dourado-l: #D4AF72;
  --carvao: #1C1C1C;
  --cinza: #6B6B6B;
  --branco: #FFFFFF;
  --font-title: 'Cinzel', serif;
  --font-body: 'Lato', sans-serif;
  --wa-number: '5554999713218';

  /* Layout */
  --header-h: 86px;
  --banner-h: 0px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--carvao);
  background: var(--creme);
  overflow-x: hidden;
  padding-top: var(--header-h);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── PREVIEW BANNER (removido) ── */
.preview-banner {
  display: none;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--header-h);
  background: rgba(20, 20, 20, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184, 151, 90, .15);
  transition: box-shadow .3s;
}

header.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, .25);
}

/* ── LOGO ── */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* fallback text (escondido quando há imagem) */
.logo-eyebrow,
.logo-name {
  display: none;
}

/* ── NAV DESKTOP ── */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color .25s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--dourado-l);
  transition: width .3s;
}

nav a:hover,
nav a.active {
  color: var(--dourado-l);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.btn-loja {
  background: var(--dourado) !important;
  color: var(--branco) !important;
  padding: 9px 20px !important;
  border-radius: 2px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  transition: background .25s !important;
}

.btn-loja::after {
  display: none !important;
}

.btn-loja:hover {
  background: var(--dourado-l) !important;
  color: var(--branco) !important;
}

/* ── HAMBURGER BUTTON ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 3px;
  padding: 6px;
  transition: border-color .25s;
}

.hamburger:hover {
  border-color: var(--dourado-l);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, .85);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Hamburger → X quando aberto */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MENU MOBILE (DRAWER) ── */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: calc(var(--banner-h) + var(--header-h));
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, .98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99;
  padding: 16px 0 24px;
  border-bottom: 1px solid rgba(184, 151, 90, .2);
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

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

.nav-mobile a {
  display: block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: color .2s, background .2s;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--dourado-l);
  background: rgba(184, 151, 90, .06);
}

.nav-mobile .btn-loja-mobile {
  display: block;
  margin: 16px 32px 0;
  text-align: center;
  background: var(--dourado);
  color: white;
  padding: 13px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s;
}

.nav-mobile .btn-loja-mobile:hover {
  background: var(--dourado-l);
}

/* ── SEÇÃO GENÉRICA ── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dourado);
  margin-bottom: 16px;
  font-weight: 700;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--cinza);
  max-width: 520px;
}

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

/* ── BOTÕES GLOBAIS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dourado);
  color: var(--branco);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 700;
  transition: background .25s, transform .2s;
}

.btn-primary:hover {
  background: var(--dourado-l);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .5);
  color: rgba(255, 255, 255, .9);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 400;
  transition: border-color .25s, color .25s, transform .2s;
}

.btn-ghost:hover {
  border-color: var(--dourado-l);
  color: var(--dourado-l);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--verde);
  color: var(--verde);
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 700;
  transition: all .25s;
}

.btn-secondary:hover {
  background: var(--verde);
  color: white;
  transform: translateY(-1px);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--off);
  padding: 14px 48px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--cinza);
}

.breadcrumb a {
  color: var(--dourado);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ── PAGE HERO (sub-páginas) ── */
.page-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(10,25,18,.72) 0%, rgba(10,25,18,.35) 100%),
    radial-gradient(ellipse at 30% 60%, rgba(184, 151, 90, .1) 0%, transparent 55%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(36px, 5vw, 64px);
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .75);
  max-width: 560px;
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  text-decoration: none;
  transition: transform .25s, box-shadow .25s;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, .55);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ── FOOTER ── */
footer {
  background: var(--carvao);
  padding: 64px 48px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo-img {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 20px;
  opacity: .9;
}

.footer-brand .logo-name {
  display: none;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
  max-width: 260px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  transition: border-color .25s, color .25s;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-social a:hover {
  border-color: var(--dourado);
  color: var(--dourado);
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 13px;
  color: white;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .25s;
}

.footer-col a:hover {
  color: var(--dourado-l);
}

.footer-bottom {
  background: var(--carvao);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  letter-spacing: 1px;
}

/* ── BACK TO TOP ── */
.back-top {
  position: fixed;
  bottom: 32px;
  /* fica à esquerda do botão WhatsApp */
  right: 100px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(28, 28, 28, .85);
  border: 1px solid rgba(184, 151, 90, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--dourado-l);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .25s;
  pointer-events: none;
}

.back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-top:hover {
  background: var(--dourado);
  border-color: var(--dourado);
  color: white;
}

.back-top svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── ANIMAÇÕES DE ENTRADA ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4, 0, .2, 1), transform .65s cubic-bezier(.4, 0, .2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

.reveal-delay-5 {
  transition-delay: .5s;
}

/* ── RESPONSIVO — 900px ── */
@media (max-width: 900px) {
  header {
    padding: 0 24px;
  }

  nav {
    display: none;
    /* menu desktop oculto */
  }

  .hamburger {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }

  footer {
    grid-template-columns: 1fr 1fr;
    padding: 48px 24px 24px;
  }

  .footer-bottom {
    padding: 16px 24px;
    justify-content: center;
    text-align: center;
  }

  .breadcrumb {
    padding: 14px 24px;
  }

  .page-hero {
    padding: 60px 24px;
  }

  .back-top {
    right: 90px;
    bottom: 28px;
    width: 38px;
    height: 38px;
  }

  .wa-float {
    bottom: 24px;
    right: 24px;
  }
}

@media (max-width: 540px) {
  footer {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}