/* ===== Paleta extraída da logo (Império + Lupo) ===== */
:root {
  --cream: #F4EFE6;
  --cream-deep: #E7E1D5;
  --ink: #1D1B18;
  --ink-deep: #262220;
  --ink-soft: #4A453D;
  --rose: #C2858C;
  --rose-soft: #DDB4B9;
  --cream-soft: rgba(244, 239, 230, 0.75);
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  /* position:relative faz o body virar o "containing block" dos elementos
     position:absolute soltos nele (.heart-deco) — sem isso, em alguns
     navegadores mobile o overflow-x:hidden abaixo não contém esses
     elementos de verdade, e a página cria scroll horizontal mesmo assim. */
  position: relative;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  margin: 0;
  color: var(--ink);
}

em {
  font-style: italic;
  color: var(--rose);
}

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

/* ===== Textura sutil de grão ===== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Corações decorativos flutuantes ===== */
.heart-deco {
  position: absolute;
  color: var(--rose);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.heart-deco svg { width: 100%; height: 100%; display: block; }
.heart-deco--1 { width: 140px; top: 8%; left: -40px; opacity: 0.18; }
.heart-deco--1 svg { transform: rotate(-12deg); }
.heart-deco--2 { width: 90px; top: 55%; right: -20px; }
.heart-deco--2 svg { transform: rotate(18deg); }
.heart-deco--3 { width: 70px; bottom: 6%; left: 8%; opacity: 0.09; }
.heart-deco--3 svg { transform: rotate(-6deg); }

@media (max-width: 720px) {
  .heart-deco--1 { width: 90px; }
  .heart-deco--2 { width: 60px; }
  .heart-deco--3 { width: 50px; }
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-fluid), transform 1.1s var(--ease-fluid);
  transition-delay: var(--d, 0ms);
}
.reveal--scale {
  transform: translateY(0) scale(0.9);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Hero =====
   Escura (aprovada) é a ativa. Versão clara original fica comentada como
   referência caso queiram revisitar — pra reativar, comenta o background
   escuro abaixo e descomenta o claro (ajustar junto .logo, .btn--primary/
   .btn--ghost, .scroll-cue e .heart-deco--1, que têm a mesma marcação). */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;

  /* --- Clara original ---
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--cream-deep) 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream) 100%);
  --- fim clara --- */

  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(194, 133, 140, 0.16) 0%, transparent 60%),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--ink) 100%);

  overflow: hidden;
}

.hero .headline { color: var(--cream); }
.hero .sub { color: var(--cream-soft); }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  /* Clara original: 0 20px 45px -18px rgba(29, 27, 24, 0.3), 0 0 40px -16px rgba(194, 133, 140, 0.4); */
  box-shadow: 0 25px 55px -18px rgba(0, 0, 0, 0.55), 0 0 50px -14px rgba(194, 133, 140, 0.35);
  margin-bottom: 1.75rem;
}

.kicker {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 1.1rem;
  font-weight: 500;
}

.headline {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

.sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 0 2.4rem;
}

.actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: transform 0.5s var(--ease-fluid), box-shadow 0.5s var(--ease-fluid), background 0.4s ease;
}

/* Clara original: .btn--primary{background:var(--ink);color:var(--cream)}
.btn--primary:hover{box-shadow:0 16px 30px -12px rgba(29,27,24,.45)}
.btn--ghost{color:var(--ink);border:1px solid rgba(29,27,24,.25)} */
.btn--primary {
  background: var(--cream);
  color: var(--ink);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 239, 230, 0.3);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--rose);
  color: var(--rose);
}

.scroll-cue {
  width: 26px;
  height: 42px;
  /* Clara original: border-color: rgba(29, 27, 24, 0.3); */
  border: 1.5px solid rgba(244, 239, 230, 0.3);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--rose);
  animation: scrollCue 1.8s var(--ease-fluid) infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== Sections shared ===== */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
  margin: 0 0 2rem;
}

/* ===== Categories ===== */
.categories {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cat-card {
  background: #fff;
  border: 1px solid rgba(29, 27, 24, 0.08);
  border-radius: 20px;
  padding: 3.2rem 2.2rem;
  transition: transform 0.6s var(--ease-fluid), box-shadow 0.6s var(--ease-fluid);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -20px rgba(29, 27, 24, 0.2);
}

.cat-card__num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  color: var(--rose-soft);
  margin-bottom: 1.2rem;
}

.cat-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.cat-card p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 780px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ===== Info ===== */
.info {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--cream);
  padding: 4.5rem 0;
}

.info__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.info__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-soft);
  margin-bottom: 0.9rem;
  font-weight: 500;
}

.info__text {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
  font-weight: 300;
  color: rgba(244, 239, 230, 0.88);
}
.info__text strong {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--cream);
}

@media (max-width: 780px) {
  .info__grid { grid-template-columns: 1fr; gap: 2.2rem; text-align: center; }
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3.2rem 1.5rem 2.6rem;
}

.footer__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer__copy {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: rgba(29, 27, 24, 0.45);
}

/* ===== Menu lateral =====
   Texto sempre visível em vez de dot+tooltip. Usa a mesma cor rosa do kicker
   (hero escuro) e do eyebrow (seções claras) — já comprovada legível nos
   dois fundos desta página — reforçada por uma sombra escura sutil.
   (mix-blend-mode:difference foi testado antes, mas é bugado em elementos
   position:fixed no Safari — o label sumia ao rolar pro fundo claro.) */
.side-nav {
  position: fixed;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.4rem;
}

.side-nav__link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  opacity: 0.65;
  transition: opacity 0.35s var(--ease-fluid), color 0.35s var(--ease-fluid);
}
.side-nav__link::after {
  content: '';
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease-fluid);
}
.side-nav__link:hover,
.side-nav__link.active {
  opacity: 1;
}
.side-nav__link.active::after {
  width: 28px;
}

@media (max-width: 900px) {
  /* Removido por enquanto no mobile — não ficou legal nessa largura. */
  .side-nav { display: none; }
}

/* ===== Voltar ao topo ===== */
.back-to-top {
  position: fixed;
  right: 1.6rem;
  bottom: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(194, 133, 140, 0.4);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 300;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-fluid), transform 0.4s var(--ease-fluid), border-color 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.back-to-top:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: translateY(-3px) scale(1.05);
}

/* Mesmo "mousezinho" do scroll-cue da home, mas a bolinha simula um clique
   (encolhe + solta um anel que expande e some) em vez do swipe pra baixo. */
.back-to-top__mouse {
  position: relative;
  width: 20px;
  height: 32px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.back-to-top__dot {
  position: relative;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  animation: mouseClickDot 2s var(--ease-fluid) infinite;
}
.back-to-top__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0;
  animation: mouseClickRing 2s var(--ease-fluid) infinite;
}
@keyframes mouseClickDot {
  0%, 15%, 100% { transform: scale(1); }
  8% { transform: scale(0.5); }
}
@keyframes mouseClickRing {
  0%, 12% { transform: scale(0.6); opacity: 0; }
  30% { transform: scale(2.2); opacity: 0.55; }
  60%, 100% { transform: scale(3); opacity: 0; }
}

@media (max-width: 900px) {
  .back-to-top { right: 1rem; bottom: 1.25rem; width: 42px; height: 42px; }
}

/* ===== Fold 2: categorias + info + footer cabem numa única tela no desktop =====
   Precisa vir por último no arquivo: mesma especificidade das regras base
   acima, então só ganha a cascata (e passa a valer em telas >=900px) por
   estar depois delas. min-height garante o piso de 1 viewport; os paddings
   em clamp(...,vh,...) encolhem sozinhos em telas baixas para o conteúdo
   nunca estourar o fold, e crescem até o teto em telas altas. */
@media (min-width: 900px) {
  .fold-two {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .fold-two > * { flex: 0 0 auto; }

  .categories { padding: clamp(2rem, 5vh, 4.5rem) 0; }
  .eyebrow { margin-bottom: clamp(1.25rem, 3vh, 2rem); }
  .cat-card { padding: clamp(1.5rem, 4vh, 3.2rem) clamp(1.25rem, 2.5vw, 2.2rem); }
  .info { padding: clamp(2rem, 5vh, 4.5rem) 0; }
  .footer { padding: clamp(1.5rem, 4vh, 3.2rem) 1.5rem clamp(1.25rem, 3vh, 2.6rem); }
  .footer__logo { margin-bottom: clamp(0.6rem, 1.5vh, 1rem); }
}
