/* ==========================================================================
   Encantos Home&Decor — variáveis de marca
   Paleta baseada no logo (terracota + creme). Trocar aqui quando a
   identidade visual final estiver fechada.
   ========================================================================== */
:root {
  /* --- cores extraídas do logo --- */
  --color-terracotta: #a8462c;
  --color-terracotta-dark: #7a3a24;
  --color-terracotta-light: #c17451;

  /* --- neutros aconchegantes --- */
  --color-cream: #f7f1e6;
  --color-cream-soft: #efe4d3;
  --color-ink: #34281f;
  --color-ink-soft: #6d5c4c;

  /* --- accent provisório (sálvia suave / dourado) --- */
  --color-sage: #7c8c70;
  --color-gold: #a9803f;

  --color-white: #fffdf9;
  --color-line: rgba(52, 40, 31, 0.14);

  /* --- tipografia --- */
  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* --- espaçamento / forma --- */
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-soft: 0 10px 30px rgba(52, 40, 31, 0.08);
  --shadow-card: 0 18px 48px rgba(52, 40, 31, 0.1);
  --max-width-narrow: 640px;
}

/* ==========================================================================
   Reset básico
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-sans);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
}

/* textura de papel muito sutil — evita a sensação "plástica" de fundo liso */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.2  0 0 0 0 0.16  0 0 0 0 0.12  0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
  z-index: 1;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

.center { text-align: center; }

/* ==========================================================================
   Cursor customizado — discreto
   ========================================================================== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none;
  border-radius: 50%; z-index: 999; opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor-dot { width: 4px; height: 4px; background: var(--color-ink); transform: translate(-50%, -50%); }
.cursor-ring {
  width: 28px; height: 28px;
  border: 1px solid rgba(52, 40, 31, 0.35);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
.cursor-ring.is-active { width: 42px; height: 42px; border-color: var(--color-gold); }

/* ==========================================================================
   Barra de progresso
   ========================================================================== */
.progress-bar { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 60; background: rgba(52, 40, 31, 0.06); }
.progress-bar span { display: block; height: 100%; width: 0%; background: var(--color-terracotta); transition: width 0.1s linear; }

/* ==========================================================================
   Fade-in on scroll
   ========================================================================== */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Intro (topo da página, sem cabeçalho fixo)
   ========================================================================== */
.intro-section { padding: 40px 0 8px; }
.brand-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--color-ink);
}
.brand-mark span {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.6rem;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-top: 2px;
}
.hero-tagline {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-terracotta);
}

/* ==========================================================================
   Links principais
   ========================================================================== */
.links-section { padding: 28px 0 8px; }

.link-stack { display: flex; flex-direction: column; }
.link-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 4px;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink);
  transition: padding-left 0.3s ease, color 0.3s ease;
  will-change: transform;
}
.link-stack .link-row:last-child { border-bottom: 1px solid var(--color-line); }
.link-row:hover { padding-left: 8px; color: var(--color-terracotta); }
.link-icon {
  position: relative;
  flex: 0 0 auto; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-terracotta);
}
.link-icon-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--color-terracotta);
  opacity: 0;
  animation: icon-push 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes icon-push {
  0% { transform: scale(0.6); opacity: 0.35; }
  70% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.link-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.link-text strong { font-family: var(--font-serif); font-size: 1.02rem; font-weight: 500; color: inherit; }
.link-text em { font-style: normal; font-size: 0.75rem; color: var(--color-ink-soft); }
.link-arrow {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink-soft);
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.link-row:hover .link-arrow { opacity: 1; transform: translateX(2px); color: var(--color-terracotta); }
.link-vip {
  background: linear-gradient(90deg, rgba(168,70,44,0.07), transparent 70%);
  padding-left: 10px;
  overflow: hidden;
}
.link-vip:hover { padding-left: 14px; }
.link-vip .link-text strong::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  vertical-align: middle;
}

/* ==========================================================================
   Vídeo
   ========================================================================== */
.hero-video-section { padding: 28px 0 56px; }
.video-hook {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-ink);
  margin-bottom: 18px;
}

.video-wrap {
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
  background: var(--color-ink);
}
.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-ink);
}

/* variante retrato — vídeo vertical (Reels/Stories) */
.video-wrap--vertical {
  max-width: 380px;
  max-height: 78vh;
}
.video-wrap--vertical .hero-video {
  aspect-ratio: 9 / 16;
  max-height: 78vh;
  object-fit: contain;
}

/* ==========================================================================
   Dúvidas frequentes
   ========================================================================== */
.faq-section { padding: 8px 0 56px; }
.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.5rem, 4vw, 1.9rem); font-style: italic; }

.faq-list { margin-top: 26px; }
.faq-item { border-top: 1px solid var(--color-line); }
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--color-line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--color-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-terracotta);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p {
  padding: 0 4px 18px;
  color: var(--color-ink-soft);
  font-size: 0.9rem;
  animation: faq-in 0.3s ease;
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Fechamento
   ========================================================================== */
.closing-section { padding-bottom: 64px; }
.closing-band {
  background: var(--color-ink);
  color: var(--color-cream-soft);
  border-radius: var(--radius-xl);
  padding: 48px 26px;
  text-align: center;
}
.closing-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  color: var(--color-white);
}
.closing-sub { margin-top: 10px; font-size: 0.86rem; color: rgba(247, 241, 230, 0.75); }
.closing-sub strong { color: var(--color-gold); font-weight: 500; }
.footer-socials { display: flex; justify-content: center; gap: 16px; margin-top: 24px; }
.footer-socials a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(247, 241, 230, 0.25);
  color: rgba(247, 241, 230, 0.8);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-socials a:hover { color: var(--color-gold); border-color: var(--color-gold); }
.closing-signature { margin-top: 32px; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--color-white); }
.closing-copy { margin-top: 6px; font-size: 0.68rem; color: rgba(247, 241, 230, 0.45); }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (min-width: 720px) {
  .intro-section { padding-top: 56px; }
  .link-row { padding: 19px 6px; }
}

/* ==========================================================================
   Reduced motion / dispositivos de toque
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { transition: none; }
  .link-icon-pulse { animation: none; opacity: 0; }
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}
