/* =========================================================
   Caramello Bolos Caseiros — página de espera
   Preto piano, tipografia editorial, muito espaço negativo.
   ========================================================= */

:root{
  --black:      #0B0B0B;
  --cream:      #F4F0E8;
  --muted:      #B8B1A7;
  --gold:       #B58A55;
  --gold-soft:  #C9A374;
  --gold-deep:  #9A6536;

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Manrope", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --pad-x: clamp(1.5rem, 6vw, 5.5rem);
  --pad-y: clamp(1.5rem, 4.2vh, 3.25rem);

  --screen: 100vh;                 /* fallback para navegadores sem svh */
}
@supports (height: 100svh){ :root{ --screen: 100svh; } }

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  background:var(--black);
  color:var(--cream);
  font-family:var(--sans);
  font-weight:300;
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

img{ display:block; max-width:100%; height:auto; }

/* ---------- estrutura: uma única tela ---------- */
.page{
  min-height:var(--screen);
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  gap:clamp(1.25rem, 3vh, 2.75rem);
  padding:var(--pad-y) var(--pad-x)
          calc(var(--pad-y) + env(safe-area-inset-bottom, 0px));
  max-width:1560px;
  margin-inline:auto;
}

/* ---------- 1. logo (elemento de destaque, sobre o texto) ---------- */
.copy__logo{
  width:min(27.5%, 11.1vh);
  height:auto;
  margin:0 0 clamp(.9rem, 2.2vh, 1.6rem);
  opacity:.96;
}
.copy > picture{ display:block; width:100%; }

/* ---------- palco: texto + produto ---------- */
.stage{
  display:grid;
  align-items:center;
  justify-items:center;
  gap:clamp(1.5rem, 4vh, 3rem);
  min-height:0;
}

/* ---------- 2–5. bloco de texto ---------- */
.copy{
  max-width:34rem;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.copy__headline{
  margin:0;
  font-family:var(--serif);
  font-weight:300;
  font-size:clamp(2.35rem, 6.2vw, 4.25rem);
  line-height:1.06;
  letter-spacing:-0.005em;
  color:var(--cream);
  text-wrap:balance;
}
.copy__headline em{
  font-style:italic;
  font-weight:400;
  color:var(--gold-soft);
}

.copy__support{
  margin:clamp(1.1rem, 2.6vh, 1.9rem) 0 0;
  max-width:38ch;
  color:var(--muted);
  text-wrap:pretty;
  font-size:clamp(.9rem, 1.05vw, 1rem);
  line-height:1.75;
}
.copy__support p{ margin:0; }
.copy__support p + p{ margin-top:.85em; }

.copy__soon{
  margin:clamp(1.4rem, 3.2vh, 2.3rem) 0 0;
  font-size:.66rem;
  font-weight:400;
  letter-spacing:.42em;
  text-transform:uppercase;
  color:var(--gold);
  opacity:.85;
}

.copy__action{ margin:clamp(.9rem, 2.2vh, 1.4rem) 0 0; }

/* ---------- CTA único ---------- */
.cta{
  display:inline-block;
  padding:.95em 2.4em;
  border:1px solid rgba(181,138,85,.55);
  border-radius:999px;
  color:var(--cream);
  font-size:.7rem;
  font-weight:500;
  letter-spacing:.24em;
  text-transform:uppercase;
  text-decoration:none;
  background:transparent;
  transition:background-color .5s ease, border-color .5s ease, color .5s ease;
}
.cta:hover,
.cta:focus-visible{
  background:var(--gold);
  border-color:var(--gold);
  color:#14100C;
}
.cta:focus-visible{ outline:1px solid var(--gold-soft); outline-offset:4px; }

/* ---------- 6. fotografia do produto ---------- */
.product{
  position:relative;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:0;
}
.product::before{                       /* brilho caramelo discreto, sem caixa */
  content:"";
  position:absolute;
  inset:auto 0 4%;
  height:70%;
  background:radial-gradient(ellipse at 50% 60%,
              rgba(181,138,85,.17) 0%, rgba(154,101,54,.07) 42%, transparent 70%);
  filter:blur(8px);
  pointer-events:none;
}
.product__photo{
  position:relative;
  width:auto;
  max-width:100%;
  max-height:min(52svh, 560px);
  object-fit:contain;                   /* o produto nunca é cortado */
  object-position:center;
  will-change:transform;
  transform:translate3d(var(--dx,0px), var(--dy,0px), 0);
  transition:transform 1.4s cubic-bezier(.22,.61,.36,1);
}

/* ---------- 7. slogan ---------- */
.sign{ display:flex; justify-content:center; }
.copy__slogan{
  height:clamp(30px, 4.2vh, 46px);
  width:auto;
  margin:clamp(1.3rem, 3vh, 2.2rem) auto 0;   /* centralizado sob o texto */
  opacity:.62;
}
/* identificação legal da empresa — discreta, mas legível e selecionável */
.sign__legal a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid rgba(184,177,167,.35);
  padding-bottom:1px;
  transition:border-color .3s ease;
}
.sign__legal a:hover{ border-bottom-color:var(--muted); }

/* identificação legal: itens em fila, separados por ponto.
   Em tela larga vira uma linha só; quando não cabe, quebra sozinho. */
.sign__legal{
  margin:0;
  font-style:normal;              /* <address> vem em italico por padrao */
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:baseline;
  gap:.15rem 0;
  max-width:100%;
  text-align:center;
  font-size:clamp(.62rem, .72vw, .7rem);
  line-height:1.6;
  color:var(--muted);
  opacity:.72;
}
.sign__legal span{ white-space:nowrap; }
.sign__legal span:not(:last-child)::after{
  content:"·";
  margin:0 .5em;
  opacity:.45;
}

/* =========================================================
   Desktop — composição equilibrada entre texto e bolo
   ========================================================= */
@media (min-width:900px){
  .stage{
    grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
    gap:clamp(2.5rem, 6vw, 6rem);
    justify-items:stretch;
  }
  .copy{ text-align:left; align-items:flex-start; max-width:31rem; }
  .copy__logo{
    width:min(52.2%, 26vh);
    margin-inline:auto;                      /* centralizada sobre o bloco de texto */
    margin-bottom:clamp(.9rem, 2.3vh, 1.8rem);
  }
  .copy__support{                    /* justificado: a coluna larga evita rios */
    max-width:100%;
    text-align:justify;
    text-justify:inter-word;
    text-wrap:wrap;
    hyphens:auto;
  }
  .product__photo{ max-height:min(57svh, 580px); }
}

/* desktop de altura média (ex.: 1366x768): headline um passo menor */
@media (min-width:900px) and (min-height:761px) and (max-height:840px){
  .copy__headline{ font-size:clamp(2.1rem, 3.6vw, 3.25rem); }
}

@media (min-width:900px) and (max-height:760px){
  .copy__headline{ font-size:clamp(2.1rem, 3.4vw, 3rem); }
  .copy__support{ font-size:.875rem; line-height:1.7; }
  .product__photo{ max-height:52svh; }
}

/* ---------- mobile: coluna com respiro ---------- */
@media (max-width:899px){
  .page{ gap:clamp(.7rem, 1.7vh, 1.4rem); }
  .stage{ align-content:center; gap:clamp(.8rem, 1.9vh, 1.6rem); }
  .product__photo{ max-height:min(24svh, 290px); }
  .sign__legal{ font-size:.66rem; line-height:1.55; }
  .copy__support{ margin-top:clamp(.85rem, 1.7vh, 1.3rem); }
  .copy__soon{ margin-top:clamp(1rem, 2vh, 1.6rem); }
  .copy__action{ margin-top:clamp(.7rem, 1.4vh, 1.1rem); }
}

@media (max-width:480px){
  .copy__headline{ font-size:clamp(2.1rem, 9.4vw, 2.75rem); }
  .copy__support{ max-width:33ch; font-size:.85rem; line-height:1.65; }
  .cta{ padding:1em 2.1em; }
}

/* aparelhos pequenos: mesma composição, respiro proporcional */
@media (max-width:899px) and (max-height:700px){
  .page{ gap:.7rem; padding-top:1.1rem; }
  .copy__logo{ width:min(24.3%, 74px); margin-bottom:.6rem; }
  .copy__headline{ font-size:1.95rem; }
  .copy__support{ margin-top:.8rem; font-size:.82rem; line-height:1.6; }
  .copy__soon{ margin-top:1rem; }
  .copy__action{ margin-top:.7rem; }
  .cta{ padding:.85em 1.9em; }
  .product__photo{ max-height:min(26svh, 170px); }
  .copy__slogan{ height:26px; margin-top:1rem; }
  .sign__legal{ font-size:.6rem; }
}

/* telas muito baixas: deixa rolar em vez de espremer */
@media (max-height:560px){
  .page{ min-height:auto; }
}

/* =========================================================
   Animação — apenas fade-in suave
   ========================================================= */
.reveal{
  opacity:0;
  transform:translate3d(0, 14px, 0);
}
.is-ready .reveal{
  opacity:1;
  transform:none;
  transition:opacity 1.1s cubic-bezier(.22,.61,.36,1) var(--d,0ms),
             transform 1.1s cubic-bezier(.22,.61,.36,1) var(--d,0ms);
}
.reveal--slow{ transform:translate3d(0, 22px, 0) scale(1.012); }
.is-ready .reveal--slow{
  transform:none;
  transition:opacity 1.6s cubic-bezier(.22,.61,.36,1) var(--d,0ms),
             transform 1.6s cubic-bezier(.22,.61,.36,1) var(--d,0ms);
}

@media (prefers-reduced-motion: reduce){
  .reveal,.is-ready .reveal,.reveal--slow,.is-ready .reveal--slow{
    opacity:1; transform:none; transition:none;
  }
  .product__photo{ transition:none; transform:none; }
}
