/* Escala: 1rem = 10px do Figma na largura de 1920px; encolhe proporcionalmente até 8px em telas menores. */
:root {
  font-size: clamp(8px, calc(100vw / 176), 10px);

  --bg: #f4edf0;
  --ink: #1a1530;
  --ink-soft: #4f446e;
  --muted: #7d7396;
  --pink: #d4237f;
  --lilac: #b894ed;
  --line: rgba(26, 21, 48, 0.1);
  --card: rgba(255, 255, 255, 0.72);
  --placeholder: linear-gradient(180deg, #f8f3f7, #ece3f1);
  --gutter: max(12rem, calc((100% - 168rem) / 2));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-size: 1.8rem;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
h1, h2, h3 { font-weight: 500; }
section[id] { scroll-margin-top: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* ---------- Botão / CTA ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 1.4rem;
  padding: 1rem 1rem 1rem 2.8rem;
  border-radius: 1.8rem;
  color: #fff; white-space: nowrap;
  background: linear-gradient(149.54deg, #c01b70, #d4237f 35%, #d4237f 65%, #c01b70);
  transition: transform 0.2s ease;
}
.cta:hover { transform: translateY(-1px); }
/* Sombra interna por cima do fundo em movimento. */
.cta::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; box-shadow: inset 0 -2px 0.6rem rgba(115, 0, 56, 0.3); pointer-events: none; }
.cta__icon { width: 2.4rem; height: 2.4rem; }
.cta__chip {
  display: grid; place-items: center; flex: none;
  width: 4.2rem; height: 4.2rem; border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.35s ease;
}
.cta__chip img { width: 1.8rem; height: 1.8rem; }
.cta:hover .cta__chip, .cta:focus-visible .cta__chip { transform: rotate(-15deg); }

/* ---------- Uma luz suave no fundo dos botões ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(120deg, rgba(229, 85, 156, 0) 30%, #e5559c 50%, rgba(229, 85, 156, 0) 70%);
  pointer-events: none;
  animation: light 5s ease-in-out infinite;
}
/* A luz entra pela esquerda, sai pela direita e faz uma pausa antes de voltar. */
@keyframes light {
  0% { transform: translateX(-100%); }
  75%, 100% { transform: translateX(100%); }
}

/* ---------- Header ---------- */
.header {
  position: fixed; z-index: 20; top: 3.4rem; left: 50%; transform: translateX(-50%);
  width: min(153rem, calc(100% - 4rem)); height: 8.8rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.2rem 1.2rem 3.2rem;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: top 0.25s ease, box-shadow 0.25s ease;
}
.header.is-scrolled { top: 1.6rem; box-shadow: 0 1rem 3rem rgba(26, 21, 48, 0.1); }
.header__logo img { width: 12.8rem; height: 5.5rem; object-fit: cover; }
.header__menu { display: flex; flex: 1; align-items: center; justify-content: space-between; margin-left: 16.4rem; }
.header__nav { display: flex; gap: 4.4rem; font-weight: 500; }
.header__nav a { padding: 0.8rem 0; transition: color 0.2s ease; }
.header__nav a:hover { color: var(--pink); }
.header__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 108rem; overflow: hidden; }
.hero__bg { position: absolute; left: 0; top: 36rem; width: 100%; height: 72rem; max-width: none; }
.hero__content {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2.4rem;
  padding: 28.4rem 2rem 0; text-align: center;
}
.badge {
  display: flex; align-items: center; gap: 1.6rem; height: 5.6rem;
  padding: 0 2.8rem 0 2.2rem; border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 0 0 1px #fff;
  color: var(--ink-soft);
}
.badge__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; background: rgba(212, 35, 127, 0.12); }
.badge__icon::after { content: ""; width: 1.4rem; height: 1.4rem; border-radius: 0.35rem; background: var(--pink); }
.hero h1 { font-size: 10.4rem; line-height: 10.8rem; letter-spacing: -0.04em; }
.hero h1 > span { display: block; }
.hero h1 .hero__line { display: flex; align-items: center; justify-content: center; gap: 0.6rem; height: 10.8rem; }
.hero__word {
  white-space: pre;
  background: linear-gradient(90deg, #c42480, #f45698);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.04em; margin-right: -0.04em;
}
.hero__cursor { width: 2px; height: 7.6rem; border-radius: 1px; background: var(--pink); }
.hero__cursor.is-blinking { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__subtitle { padding-bottom: 1.6rem; font-size: 2.4rem; color: rgba(26, 21, 48, 0.62); }

/* ---------- Sobreposição ao rolar: a seção de baixo passa por cima da de cima ---------- */
main > section { position: relative; background-color: var(--bg); }
/* "top" é calculado no script.js: a seção prende quando o fim dela chega ao fim da tela. */
main > section[data-stack] { position: sticky; top: var(--stack-top, -100%); }

/* ---------- Marcas ---------- */
.brands { display: flex; flex-direction: column; align-items: center; gap: 4.8rem; padding: 9.6rem var(--gutter); }
.brands h2 { font-size: 1.6rem; font-weight: 400; color: var(--muted); }
.brands ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8rem; width: 100%; }
.brands li { display: flex; align-items: center; justify-content: center; height: 8.8rem; }
.brand {
  position: relative; display: block;
  width: calc(var(--w) * 0.1rem); max-width: 100%; aspect-ratio: var(--w) / var(--h);
  background: #6e668a;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.brand::after { position: absolute; inset: 0; background-size: 100% 100%; background-position: bottom; mix-blend-mode: multiply; opacity: 0.55; }

/* ---------- Seções ---------- */
.section { display: flex; flex-direction: column; gap: 6.4rem; padding: 11.2rem var(--gutter) 12rem; }
.section__head { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; text-align: center; }
.section__head p { font-size: 1.9rem; color: var(--ink-soft); }
.section__head h2, .blog__head h2 { font-size: 5.6rem; line-height: 6.4rem; letter-spacing: -0.02em; }
.eyebrow { font-weight: 500; color: var(--pink); }
.placeholder { overflow: hidden; background: var(--placeholder); }
.placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Produtos ---------- */
.products { gap: 5.6rem; padding-bottom: 9.6rem; }
.products__grid, .events__grid, .blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.product {
  display: flex; flex-direction: column; gap: 2.8rem; height: 48rem;
  padding: 2.4rem 2.4rem 2.8rem; border-radius: 2.4rem; background: var(--card);
}
.product__photo { flex: 1; min-height: 0; border-radius: 1.6rem; }
.product__info { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.6rem; }
.product__info p { margin-bottom: 0.6rem; font-size: 1.5rem; color: var(--muted); }
.product__info h3 { font-size: 2.2rem; }
.product__more { display: grid; place-items: center; flex: none; width: 4.8rem; height: 4.8rem; border-radius: 1.4rem; background: var(--pink); transition: transform 0.35s ease; }
.product:hover .product__more, .product__more:focus-visible { transform: rotate(-15deg); }
.product__more img { width: 2.4rem; height: 2.4rem; }

/* ---------- Sobre ---------- */
.about { position: relative; display: flex; flex-direction: column; gap: 8rem; padding: 11.2rem var(--gutter) 12rem; isolation: isolate; }
.about__bg { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 94rem; overflow: hidden; background: var(--bg); }
.blob { position: absolute; }
.blob img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.blob > div { flex: none; position: relative; transform-origin: center; }
.blob:has(> div) { display: flex; align-items: center; justify-content: center; container-type: size; }
.blob--nevoa-lilas { inset: 14.48% 77.96% -9.63% -20.03%; }
.blob--rosa-quente { inset: 68.26% -19.19% -30.32% 67.11%; }
.blob--indigo { inset: 35.96% 49.83% -67.7% -36.91%; }
.blob--indigo > div { width: hypot(92.8844cqw, -28.8689cqh); height: hypot(7.11556cqw, 71.1311cqh); transform: rotate(-12.96deg) skewX(-5.27deg); }
.blob--violeta-ameixa { inset: 52.28% 18.21% -59.27% -18.45%; }
.blob--violeta-ameixa > div { width: hypot(97.6789cqw, -17.066cqh); height: hypot(2.32108cqw, 82.934cqh); transform: rotate(-5.22deg) skewX(-2.15deg); }
.blob--ameixa-magenta { inset: 66.18% -8.5% -64.86% 2.24%; }
.blob--ameixa-magenta > div { width: hypot(98.9046cqw, 9.91831cqh); height: hypot(-1.09543cqw, 90.0817cqh); transform: rotate(2.61deg) skewX(1.08deg); }
.blob--magenta { inset: 62.93% -23.7% -73.34% 34.63%; }
.blob--magenta > div { width: hypot(96.1766cqw, 21.7457cqh); height: hypot(-3.82335cqw, 78.2543cqh); transform: rotate(7.81deg) skewX(3.21deg); }
.blob--orquidea { inset: 54.33% -9.13% -69.35% -17.94%; }
.blob--orquidea > div { width: hypot(97.0319cqw, 50.4068cqh); height: hypot(-2.96814cqw, 49.5932cqh); transform: rotate(12.96deg) skewX(5.27deg); }
.blob--rosa-suave { inset: 43.07% -11.86% -32.12% -9.86%; }
.blob--rosa-suave > div { width: hypot(98.2014cqw, 37.6233cqh); height: hypot(-1.79856cqw, 62.3767cqh); transform: rotate(7.81deg) skewX(3.21deg); }
.blob--luz-branca { inset: 3.44% 0.81% -3.93% -8.2%; }
.blob--luz-branca > div { width: hypot(96.984cqw, 38.843cqh); height: hypot(-3.01605cqw, 61.157cqh); transform: rotate(10.4deg) skewX(4.25deg); }

.about__content { display: grid; grid-template-columns: minmax(0, 80fr) minmax(0, 80fr); gap: 8rem; align-items: center; }
.about__photo { position: relative; aspect-ratio: 800 / 660; }
.about__photo > div { position: absolute; left: 0; right: 0; top: 4.8485%; height: 90.303%; overflow: hidden; border-radius: 2.8rem; }
.about__photo img { position: absolute; width: 123.78%; height: 110.74%; left: -11.89%; top: -5.37%; max-width: none; }
.about__text { display: flex; flex-direction: column; align-items: flex-start; gap: 2.8rem; }
.about__text h2 { font-size: 5.2rem; line-height: 6rem; letter-spacing: -0.02em; }
.about__lead { font-size: 1.9rem; line-height: 3rem; color: var(--ink-soft); }
.about__list { display: flex; flex-direction: column; gap: 1.4rem; font-size: 1.9rem; font-weight: 500; }
.about__list li { display: flex; align-items: center; gap: 1.4rem; }
.about__list li::before { content: ""; flex: none; width: 0.8rem; height: 0.8rem; border-radius: 0.2rem; background: var(--pink); }
.about__values { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; width: 100%; padding-top: 2.8rem; border-top: 1px solid var(--line); }
.about__values h3 { margin-bottom: 0.8rem; font-size: 1.5rem; color: var(--pink); }
.about__values p { font-size: 1.7rem; line-height: 2.6rem; color: var(--ink-soft); }

@media (min-width: 1101px) and (max-width: 1800px) {
  .about__content { grid-template-columns: minmax(0, 72fr) minmax(0, 80fr); gap: 6.4rem; }
  .about__text h2 { font-size: 4.8rem; line-height: 5.6rem; }
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4.4rem 2.4rem; border-radius: 2.8rem; background: var(--card); }
.stats li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 0 1.6rem; text-align: center; }
.stats li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 7.2rem; transform: translateY(-50%); background: var(--line); }
.stats strong { font-size: 6rem; font-weight: 500; line-height: 6.4rem; letter-spacing: -0.03em; }
.stats span { color: var(--muted); }

/* ---------- Categorias ---------- */
.categories__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 5.6rem; }
.category { display: flex; flex-direction: column; align-items: center; text-align: center; }
.category__photo { position: relative; display: block; width: min(24rem, 86%); aspect-ratio: 1; margin-bottom: 2rem; transition: transform 0.25s ease; }
.category__photo img { position: absolute; left: -11.67%; top: -6.67%; width: 123.34%; height: 123.34%; max-width: none; }
.category:hover .category__photo { transform: translateY(-6px); }
.category h3 { margin-bottom: 0.6rem; font-size: 2rem; line-height: 2.5rem; }
.category p { font-size: 1.5rem; color: var(--muted); }

/* ---------- Eventos ---------- */
.event {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 61.2rem; padding: 2rem; border-radius: 2.8rem; background: var(--card);
}
.event > div { display: flex; flex-direction: column; gap: 1.4rem; }
.event__photo { height: 34rem; margin-bottom: 1.6rem; border-radius: 2rem; }
.event__place { font-size: 1.5rem; font-weight: 500; color: var(--pink); }
.event h3 { font-size: 2.6rem; line-height: 3.2rem; letter-spacing: -0.01em; }
.event__protocol { font-size: 1.7rem; line-height: 2.6rem; color: var(--ink-soft); }
.event__count { display: flex; align-items: flex-end; gap: 1.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.event__count strong { font-size: 4.4rem; font-weight: 500; line-height: 4.8rem; letter-spacing: -0.03em; }
.event__count span { font-size: 1.7rem; line-height: 3rem; color: var(--muted); }

/* ---------- Blog ---------- */
.blog { padding-bottom: 9.15rem; }
.blog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 3.2rem; }
.blog__head > div { display: flex; flex-direction: column; gap: 1.6rem; }
.blog__head h2 { max-width: 76.7rem; }
.post { display: flex; flex-direction: column; gap: 2.4rem; }
.post__photo { height: 36rem; border-radius: 2rem; transition: transform 0.25s ease; }
.post:hover .post__photo { transform: translateY(-4px); }
.post__body { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; padding: 0 0.4rem; }
.post__tag { padding: 0.6rem 1.2rem; border-radius: 0.8rem; background: rgba(26, 21, 48, 0.06); font-size: 1.4rem; font-weight: 500; color: var(--ink-soft); }
.post h3 { font-size: 2.8rem; letter-spacing: -0.015em; transition: color 0.2s ease; }
.post:hover h3 { color: var(--pink); }
.post p { line-height: 2.7rem; color: var(--muted); }

/* ---------- Rodapé ---------- */
.footer { display: flex; flex-direction: column; gap: 5.6rem; padding: 8.8rem var(--gutter) 4.3rem; background: linear-gradient(180deg, #1a1530, #261a57); color: #fff; }
.footer__call { display: flex; align-items: flex-start; justify-content: space-between; gap: 3.2rem; padding-bottom: 5.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer__call h2 { font-size: 7.2rem; line-height: 8rem; letter-spacing: -0.03em; }
.footer__columns { display: flex; align-items: flex-start; justify-content: space-between; gap: 4rem; padding-bottom: 5.6rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 2.4rem; width: 44rem; max-width: 100%; }
.footer__logo { width: 16rem; height: 6.9rem; background: #fff; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.footer__brand p { line-height: 2.8rem; color: rgba(255, 255, 255, 0.62); }
.footer__brand address { font-size: 1.6rem; line-height: 2.4rem; color: rgba(255, 255, 255, 0.45); }
.footer__links { display: flex; gap: 12rem; }
.footer__links > * { display: flex; flex-direction: column; align-items: flex-start; gap: 1.8rem; font-size: 2rem; color: rgba(255, 255, 255, 0.85); }
.footer__links h3 { margin-bottom: 2.2rem; font-size: 1.5rem; letter-spacing: 0.14em; color: var(--lilac); }
.footer__links a:hover { color: var(--lilac); }
.footer__top { flex: none; width: 7.2rem; transition: transform 0.2s ease; }
.footer__top img { width: 100%; height: auto; }
.footer__top:hover { transform: translateY(-4px); }
.footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.6rem; font-size: 1.6rem; color: rgba(255, 255, 255, 0.55); }
.footer__bottom p:last-child { text-align: right; }
.footer__bottom a { color: var(--lilac); }

/* ---------- Tablet e celular (não há desenho no Figma para estas larguras) ---------- */
@media (max-width: 1100px) {
  :root { font-size: 10px; --gutter: 3.2rem; }

  .header { top: 1.6rem; width: calc(100% - 3.2rem); height: 7.2rem; padding: 1rem 1.2rem 1rem 2rem; }
  .header__logo img { width: 10.7rem; height: 4.6rem; }
  .header__toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; width: 4.8rem; height: 4.8rem; border: 0; border-radius: 1.4rem; background: var(--pink); cursor: pointer; }
  .header__toggle span { width: 2rem; height: 2px; background: #fff; }
  .header__menu {
    position: absolute; top: calc(100% + 0.8rem); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 1.6rem;
    margin: 0; padding: 2rem; border-radius: 1.8rem; background: #fff; box-shadow: 0 1.6rem 4rem rgba(26, 21, 48, 0.14);
  }
  .header__menu.is-open { display: flex; }
  .header__nav { flex-direction: column; gap: 0.4rem; }
  .header__menu .cta { justify-content: space-between; }

  .hero { height: auto; min-height: 76rem; }
  .hero__bg { top: auto; bottom: 0; height: 42rem; }
  .hero__content { padding-top: 16rem; padding-bottom: 20rem; }
  .hero h1 { font-size: clamp(3.8rem, 10vw, 8rem); line-height: 1.08; }
  .hero h1 .hero__line { height: 1.1em; }
  .hero__cursor { height: 0.75em; }
  .hero__subtitle { font-size: 2rem; }

  .brands { padding-block: 6.4rem; }
  .brands ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem 2.4rem; }
  .brands .dup { display: none; }

  .section, .about { padding-block: 7.2rem; gap: 4rem; }
  .section__head h2, .blog__head h2, .about__text h2 { font-size: clamp(3.2rem, 6vw, 4.8rem); line-height: 1.15; }
  .products__grid, .events__grid, .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { height: 42rem; }
  .event { min-height: 0; gap: 2.4rem; }
  .event__photo { height: 26rem; }
  .post__photo { height: 26rem; }

  .about__content { grid-template-columns: 1fr; gap: 3.2rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3.2rem; padding: 3.2rem 1.6rem; }
  .stats li:nth-child(odd)::before { display: none; }
  .stats strong { font-size: 4.4rem; line-height: 4.8rem; }
  .stats span { font-size: 1.5rem; }

  .categories__grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 4rem 1.6rem; }
  .category h3 { font-size: 1.7rem; line-height: 2.2rem; overflow-wrap: anywhere; }

  .footer { padding-block: 6.4rem 3.2rem; gap: 4rem; }
  .footer__call { flex-direction: column; padding-bottom: 4rem; }
  .footer__call h2 { font-size: clamp(3.6rem, 8vw, 5.6rem); line-height: 1.12; }
  .footer__columns { flex-direction: column; padding-bottom: 4rem; }
  .footer__links { flex-wrap: wrap; gap: 4rem 6.4rem; }
}

@media (max-width: 640px) {
  :root { --gutter: 1.6rem; }
  .badge { gap: 1rem; height: 4.8rem; padding: 0 1.8rem 0 1.2rem; font-size: 1.5rem; }
  .hero__subtitle { font-size: 1.8rem; }
  .brands ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands li { height: 6.4rem; }
  .brand { width: calc(var(--w) * 0.072rem); }
  .products__grid, .events__grid, .blog__grid { grid-template-columns: 1fr; }
  .about__values { grid-template-columns: 1fr; gap: 2.4rem; }
  .categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog__head { flex-direction: column; align-items: flex-start; }
  .footer__bottom { grid-template-columns: 1fr; }
  .footer__bottom p:last-child { text-align: left; }
}

/* ---------- Aparecer ao rolar (as classes são aplicadas pelo script.js) ---------- */
.reveal { opacity: 0; }
.reveal.is-visible { animation: reveal 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms) both; }
@keyframes reveal {
  from { opacity: 0; translate: 0 3.2rem; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
