/* =====================================================================
   ILUMIÔ · PÁGINA "CATÁLOGO EM BREVE"
   Desktop: a arte (celular + "Em breve") ocupa o fundo; textos e botão à
   esquerda, sobre o vinho. Celular: textos em cima e a arte recortada no
   aparelho logo abaixo, dissolvendo no vinho.
   ===================================================================== */
:root {
  --vinho: #722624;
  --dourado: #C58A25;
  --champagne: #F6F0E8;
  --marrom: #241513;
  --gold-hi: #ecc77c;
  --gold-lo: #8a5e14;
  --wine-deep: #4a1817;
  --art-dark: #3a0405;     /* vinho escuro da arte (lado esquerdo) */

  --f-display: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100%;
  background: var(--art-dark);
  color: var(--champagne);
  font-family: var(--f-body); font-weight: 300; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1.5px solid var(--gold-hi); outline-offset: 4px; border-radius: 10px; }

.page {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(90% 45% at 50% 18%, #6a1717 0%, rgba(106, 23, 23, 0) 72%),
    linear-gradient(180deg, #4a0708 0%, var(--art-dark) 60%, #2f0303 100%);
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}

/* ---------- Fundo ---------- */
.fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fx__dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx__bokeh span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 199, 124, .22), transparent 70%);
  filter: blur(8px);
  animation: drift 14s ease-in-out infinite alternate;
}
.fx__bokeh span:nth-child(1) { width: 170px; height: 170px; top: 6%; left: -3%; }
.fx__bokeh span:nth-child(2) { width: 90px; height: 90px; top: 20%; right: 10%; animation-delay: -4s; }
.fx__bokeh span:nth-child(3) { width: 220px; height: 220px; top: 55%; left: 30%; animation-delay: -8s; opacity: .6; }
.fx__bokeh span:nth-child(4) { width: 70px; height: 70px; top: 76%; left: 6%; animation-delay: -2s; }
.fx__bokeh span:nth-child(5) { width: 120px; height: 120px; top: 84%; right: 4%; animation-delay: -6s; }

/* ---------- Voltar ---------- */
.back {
  position: absolute; z-index: 5;
  top: calc(16px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px));
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 12px; border-radius: 99px;
  font-size: 13px; letter-spacing: .04em;
  color: var(--champagne);
  background: rgba(246, 240, 232, .08);
  border: 1px solid rgba(236, 199, 124, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .3s, border-color .3s;
}
.back svg { width: 18px; height: 18px; }
.back:hover { background: rgba(246, 240, 232, .16); border-color: var(--gold-hi); }

/* ---------- Conteúdo ---------- */
.stage {
  max-width: 1180px; margin: 0 auto;
  padding-block: calc(76px + env(safe-area-inset-top, 0px)) calc(48px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 44px; justify-items: center;
}
.copy { display: grid; justify-items: center; text-align: center; gap: 18px; max-width: 520px; }

/* Logo original (sem alteração) sobre uma placa champagne, para ficar legível no vinho */
.brand {
  display: inline-grid; place-items: center;
  padding: 14px 22px; border-radius: 18px;
  background: linear-gradient(180deg, #fffaf3 0%, var(--champagne) 100%);
  box-shadow: 0 0 0 1px var(--dourado), 0 0 0 5px rgba(246, 240, 232, .12), 0 18px 34px -18px rgba(0, 0, 0, .6);
}
.brand__logo { width: 190px; height: auto; }

.title {
  margin: 0;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(58px, 17vw, 116px); line-height: .95; letter-spacing: -.015em;
  display: grid;
}
.title span {
  background: linear-gradient(180deg, #f6dc9e 0%, var(--gold-hi) 30%, var(--dourado) 70%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.title em { font-style: normal; font-weight: 400; color: var(--champagne); font-size: .8em; }

.lead {
  margin: 4px 0 0; max-width: 30ch;
  font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.75;
  color: var(--champagne);
}
.rule { width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--dourado), transparent); }
.note { margin: 0; max-width: 36ch; font-size: 15px; color: rgba(246, 240, 232, .8); text-wrap: pretty; }

.actions { margin-top: 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 58px; padding: 0 22px 0 6px; border-radius: 99px;
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn--gold {
  color: var(--champagne);
  background: linear-gradient(100deg, #a8711c 0%, var(--dourado) 40%, #b17a22 100%);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn__ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 246, 220, .55);
}
.btn__ico svg { width: 24px; height: 24px; }
.btn__arrow { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Arte ----------
   Celular/tablet: arte vertical como fundo; a escrita fica no vinho de cima
   e o celular da arte aparece inteiro embaixo.
   --art-w = largura da arte; o celular começa em ~44% da altura dela. */
.page {
  --art-w: min(100vw, 620px);
  --art-h: calc(var(--art-w) * 1672 / 941);
  display: flex; flex-direction: column;
  min-height: 100svh;
  background: #7a2b28;                       /* mesma cor do topo da arte */
}
.art {
  position: absolute; z-index: -2; bottom: 0; left: 50%; translate: -50% 0;
  width: var(--art-w); margin: 0;
}
.art img {
  width: 100%; height: auto;
  /* dissolve as laterais quando a tela é mais larga que a arte (tablet) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
@media (max-width: 620px) { .art img { -webkit-mask-image: none; mask-image: none; } }
.art::before {                     /* emenda do topo da arte com o fundo, sem linha */
  content: ""; position: absolute; inset: 0 0 auto; height: 16%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, #7a2b28 0%, rgba(122, 43, 40, .85) 25%, rgba(122, 43, 40, .45) 55%, rgba(122, 43, 40, .12) 80%, rgba(122, 43, 40, 0) 100%);
}
.fx { z-index: -1; bottom: auto; height: calc(100% - var(--art-h) * .56); }
.stage {
  /* reserva embaixo a parte da arte com o celular (56% da altura dela) */
  padding-bottom: calc(var(--art-h) * .56 + 12px) !important;
  padding-top: calc(28px + env(safe-area-inset-top, 0px)) !important;
  gap: 0;
}
.copy { gap: 14px; }
.brand { padding: 10px 18px; }
.brand__logo { width: 150px; }
.title { font-size: clamp(50px, 14.5vw, 88px); }
.lead { font-size: 12px; }
.note { font-size: 14px; }

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
  .page { min-height: 100vh; display: grid; align-items: center; background: var(--art-dark); }
  .art { position: absolute; inset: 0; margin: 0; z-index: -2; width: auto; translate: none; left: 0; }
  .art img { height: 100%; }
  .art::before { content: none; }
  .fx { height: auto; bottom: 0; }
  .stage { padding-bottom: 80px !important; padding-top: 80px !important; }
  .copy { gap: 18px; }
  .brand { padding: 14px 22px; }
  .lead { font-size: 13px; }
  .note { font-size: 15px; }
  .title { font-size: clamp(58px, 7vw, 116px); }
  .art { overflow: hidden; }
  .art img {
    width: 100%; height: 100%; object-fit: cover; object-position: 100% 100%;   /* preserva o selo e a base do celular */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 14%);
  }
  .art::after {                 /* reforça o escuro atrás do texto */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(52, 3, 3, .55) 0%, rgba(52, 3, 3, .2) 34%, transparent 50%);
  }
  .fx { z-index: -1; right: 50%; }
  .stage {
    width: 100%; max-width: none; margin: 0;
    padding-block: 80px; padding-left: clamp(40px, 6vw, 120px);
    display: block; justify-items: start;
  }
  .copy { justify-items: start; text-align: left; max-width: min(500px, 40vw); }
  .brand__logo { width: 220px; }
  .title { margin-top: 14px; }
  .rule { background: linear-gradient(90deg, var(--dourado), transparent); }
  .actions { justify-content: flex-start; }
}

/* Desktop estreito: arte deslocada para a direita para abrir espaço ao texto */
@media (min-width: 1100px) and (max-width: 1359px) {
  .art img { transform: translateX(12%); }
  .copy { max-width: 400px; }
}

/* ---------- Animações ---------- */
.js.is-loading .copy > *, .js.is-loading .art { opacity: 0; }
.is-ready .copy > * { animation: rise 1s var(--ease) both; }
.is-ready .copy > :nth-child(2) { animation-delay: .1s; }
.is-ready .copy > :nth-child(3) { animation-delay: .2s; }
.is-ready .copy > :nth-child(4) { animation-delay: .3s; }
.is-ready .copy > :nth-child(n+5) { animation-delay: .4s; }
.is-ready .art { animation: art-in 1.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes art-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translate(18px, -22px) scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
