/* ===========================================================
   WINE & TRAVEL — SISTEMA DE DESIGN GLOBAL
   Paleta: Vinho escuro #3F0018, Vinho médio #910030,
           Dourado #FF991F, Branco #FFFFFF
   Tipografia: Cormorant Garamond (display serif), Inter (sans),
               Mantey (marca, títulos de apoio)
   =========================================================== */

/* ---------- Fontes locais (Mantey como marca secundária) ---------- */
@font-face {
  font-family: 'Mantey';
  src: url('../fonts/Mantey-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mantey';
  src: url('../fonts/Mantey-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Mantey';
  src: url('../fonts/Mantey-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Mantey';
  src: url('../fonts/Mantey-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Mantey';
  src: url('../fonts/Mantey-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Mantey';
  src: url('../fonts/Mantey-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Cores */
  --wine-deep: #3F0018;
  --wine-deep-2: #2a0010;
  --wine-mid: #910030;
  --wine-mid-soft: #a8193f;
  --gold: #FF991F;
  --gold-soft: #ffb055;
  --gold-deep: #c67615;
  --cream: #faf5ee;
  --cream-2: #f1e9dc;
  --ink: #1a0a10;
  --white: #ffffff;
  --muted: rgba(255,255,255,0.65);
  --muted-on-light: rgba(26,10,16,0.62);
  --line-on-dark: rgba(255,255,255,0.18);
  --line-on-light: rgba(63,0,24,0.18);

  /* Tipografia */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mark: 'Mantey', var(--font-display);

  /* Escala */
  --step--1: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --step-1: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  --step-2: clamp(1.3rem, 1.15rem + 0.8vw, 1.6rem);
  --step-3: clamp(1.8rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.8rem + 3vw, 3.8rem);
  --step-5: clamp(3.2rem, 2.2rem + 4.5vw, 5.6rem);
  --step-6: clamp(4rem, 2.5rem + 7vw, 7.8rem);

  /* Espaços */
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(80px, 10vh, 140px);
  --max-w: 1320px;
  --max-w-text: 680px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }

::selection { background: var(--gold); color: var(--wine-deep); }

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.container-narrow { max-width: 900px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ---------- Eyebrow (pequena assinatura acima dos títulos) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px; background: currentColor;
  opacity: 0.7;
}

/* ---------- Títulos de display ---------- */
.display-xl {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.display-xl em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}
.display-lg {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 400;
  line-height: 1.02;
}
.display-lg em { font-style: italic; color: var(--gold); font-weight: 300; }
.display-md {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1.08;
}
.display-md em { font-style: italic; color: var(--wine-mid); font-weight: 300; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .35s ease, backdrop-filter .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(63, 0, 24, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom-color: rgba(255,255,255,0.08);
}
/* Páginas com hero dark usam header transparente. Em páginas claras, tornamos o header sempre opaco. */
.site-header.invert {
  background: rgba(63, 0, 24, 0.94);
  backdrop-filter: blur(14px);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.site-header .brand-logo {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.4));
  transition: height .35s ease;
}
.site-header.scrolled .brand-logo { height: 38px; }
.site-header .brand-name em { font-style: italic; font-weight: 300; color: var(--gold); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header nav a {
  color: var(--white);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  position: relative;
  padding: 8px 2px;
  transition: color .2s ease;
}
.site-header nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.site-header nav a:hover::after,
.site-header nav a.active::after { transform: scaleX(1); }
.site-header nav a.active { color: var(--gold); }

.site-header nav a.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px !important;
  margin: 0 0 0 12px !important;
  background: var(--gold);
  color: var(--wine-deep) !important;
  border-radius: 999px !important;
  font-weight: 500;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em;
  transition: transform .2s ease, background .2s ease;
}
.header-cta::after { display: none !important; }
.header-cta:hover { background: var(--gold-soft); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--white);
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header { padding: 14px var(--pad-x); }
  .site-header nav.open {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--wine-deep);
    flex-direction: column; align-items: flex-start;
    padding: 24px var(--pad-x);
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--gold);
  color: var(--wine-deep);
  box-shadow: 0 10px 30px -10px rgba(255,153,31,0.55);
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-ghost:hover { background: var(--white); color: var(--wine-deep); }
.btn-outline {
  border: 1px solid var(--wine-deep);
  color: var(--wine-deep);
}
.btn-outline:hover { background: var(--wine-deep); color: var(--cream); }
.btn-link {
  padding: 0; color: var(--gold);
  font-weight: 500; letter-spacing: 0.06em; font-size: 0.85rem;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}

/* ---------- WhatsApp fab ---------- */
.wa-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 40px -10px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0,0,0,0.15);
  z-index: 90;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  animation: wa-pulse 2.8s ease-out infinite;
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 20px 40px -10px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.35); }
  50% { box-shadow: 0 20px 40px -10px rgba(37,211,102,.45), 0 0 0 18px rgba(37,211,102,0); }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section {
  padding: var(--section-y) 0;
}
.section-dark { background: var(--wine-deep); color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.78); }
.section-cream { background: var(--cream); color: var(--ink); }
.section-bordeaux { background: var(--wine-mid); color: var(--white); }

/* ---------- Imagem placeholder (marca explícita do que entra ali) ---------- */
.img-ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(63,0,24,0.08) 0 2px,
      transparent 2px 16px),
    linear-gradient(135deg, #f0e5d1, #e6d6ba);
  border: 1px solid rgba(63,0,24,0.18);
  overflow: hidden;
  color: var(--wine-deep);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  text-align: center;
}
.img-ph::after {
  content: attr(data-label);
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  max-width: 80%;
  color: rgba(63,0,24,0.65);
  line-height: 1.5;
}
.img-ph.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.06) 0 2px,
      transparent 2px 16px),
    linear-gradient(135deg, #4a0020, #2a0010);
  border-color: rgba(255,255,255,0.15);
}
.img-ph.dark::after { color: rgba(255,255,255,0.7); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.25,.8,.25,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Selo de cera animado ---------- */
.seal {
  display: inline-block;
  width: 120px; height: 120px;
  position: relative;
}
.seal img { width: 100%; height: 100%; object-fit: contain; }
.seal.rotate img { animation: seal-spin 22s linear infinite; }
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* Selo SVG gerado (assinatura recorrente) */
.wax-stamp {
  --size: 160px;
  width: var(--size); height: var(--size);
  position: relative;
  display: inline-block;
}
.wax-stamp .ring-text {
  position: absolute; inset: 0;
  animation: seal-spin 28s linear infinite;
}
.wax-stamp:hover .ring-text { animation-duration: 8s; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wine-deep-2);
  color: rgba(255,255,255,0.75);
  padding: 80px var(--pad-x) 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  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);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.75); transition: color .2s ease; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold); }
.footer-brand img { height: 64px; margin-bottom: 22px; width: auto; }
.footer-logo { filter: brightness(1) saturate(0.95); }
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 16px;
}
.footer-meta {
  max-width: var(--max-w);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
}

/* ---------- Page hero (interna, não-home) ---------- */
.page-hero {
  background: var(--wine-deep);
  color: var(--white);
  padding: 180px var(--pad-x) 120px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(255,153,31,0.12), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(145,0,48,0.35), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 400;
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: 24px;
}
.page-hero h1 em { font-style: italic; color: var(--gold); font-weight: 300; }
.page-hero .lede {
  max-width: 58ch;
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
}

/* Utilities */
.u-center { text-align: center; }
.u-gold { color: var(--gold); }
.u-wine { color: var(--wine-mid); }
.u-italic { font-style: italic; font-family: var(--font-display); }
.hr-gold {
  width: 60px; height: 1px; background: var(--gold);
  border: 0; margin: 22px 0;
}
.hr-gold.center { margin-left: auto; margin-right: auto; }

/* Divisor decorativo com taça */
.divider-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--gold);
  margin: 28px auto;
  max-width: 320px;
}
.divider-mark .line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.divider-mark .dot {
  width: 6px; height: 6px;
  background: currentColor;
  transform: rotate(45deg);
}
