/* Maison Mantovani: conceito digital
   Paleta: Pérola (fundo), Noite (seções escuras), Ameixa (ação), Champanhe (detalhe da marca d'água), Grafite (texto).
   Assinatura: o véu que se levanta sobre a noiva, dentro de uma moldura em arco de espelho de prova. */

:root {
  --perola: #F4F3F6;
  --perola-2: #EAE7EC;
  --noite: #151216;
  --noite-2: #221D24;
  --ameixa: #5B1F3A;
  --ameixa-2: #74294B;
  --champanhe: #B89A6A;
  --champanhe-claro: #D8C39E;
  --grafite: #3A363C;
  --nevoa: #6F6973;

  --display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
  --arch: 999px 999px 4px 4px / 620px 620px 4px 4px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--perola);
  color: var(--grafite);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--noite); margin: 0; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; color: var(--ameixa); }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--champanhe); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--noite); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--champanhe);
  margin-bottom: 18px;
}

/* ---------- botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ameixa); color: #fff;
  font-family: var(--body); font-size: 15px; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 17px 30px; border-radius: 999px;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--ameixa-2); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn--small { padding: 11px 20px; font-size: 13px; }
.btn--wide { width: 100%; padding: 19px 24px; font-size: 16px; }

.link {
  display: inline-block;
  font-size: 14px; font-weight: 600; letter-spacing: .06em;
  color: var(--ameixa); text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
  transition: color .3s var(--ease);
}
.link:hover { color: var(--champanhe); }
.link--light { color: var(--champanhe-claro); }

/* ---------- marca ---------- */
.mark { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; color: var(--noite); }
.mark__a { font-family: var(--body); font-size: 9px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; margin-right: -.5em; }
.mark__b { font-family: var(--display); font-size: 22px; letter-spacing: .16em; text-transform: uppercase; margin: 5px -.16em 4px 0; }
.mark__c { font-family: var(--display); font-style: italic; font-size: 11px; color: var(--champanhe); }

/* ---------- cabeçalho ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.top--solid { background: rgba(244, 243, 246, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(21, 18, 22, .06); padding-block: 10px; }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-decoration: none; color: var(--grafite); position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--champanhe); transition: right .35s var(--ease); }
.nav a:hover::after { right: 0; }

/* ---------- hero: o véu ---------- */
.hero {
  min-height: 100svh;
  max-width: var(--maxw); margin: 0 auto;
  padding: 130px var(--gutter) 70px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: center;
}
.hero h1 { font-size: clamp(48px, 7.4vw, 104px); line-height: .98; letter-spacing: -.025em; }
.hero h1 em { display: block; }
.hero__lede { margin-top: 28px; max-width: 30em; font-size: 18px; color: var(--grafite); }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; }

.hero__photo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 540px; }
.hero__photo img, .hero__photo .veil { border-radius: var(--arch); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5.2; object-fit: cover; object-position: 50% 30%; }
.hero__photo::before {
  content: ''; position: absolute; inset: -14px; border: 1px solid var(--champanhe);
  border-radius: var(--arch); opacity: .55; pointer-events: none;
}
.hero__photo figcaption {
  position: absolute; left: -54px; bottom: 40px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--display); font-style: italic; font-size: 14px; color: var(--nevoa); letter-spacing: .06em;
}

/* o véu: tule translúcido que cobre a noiva e se levanta ao abrir a página */
.veil {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .55) 1px, transparent 1.4px) 0 0 / 5px 5px,
    linear-gradient(180deg, rgba(248, 247, 250, .92) 0%, rgba(248, 247, 250, .78) 70%, rgba(248, 247, 250, .55) 100%);
  backdrop-filter: blur(16px) saturate(.85);
  -webkit-backdrop-filter: blur(16px) saturate(.85);
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
  animation: lift 2.6s var(--ease) .5s forwards;
}
@keyframes lift {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { opacity: .9; }
  100% { transform: translateY(-112%); opacity: 0; }
}
.hero__copy > * { opacity: 0; transform: translateY(14px); animation: appear 1.1s var(--ease) forwards; }
.hero__copy > :nth-child(1) { animation-delay: 1.2s; }
.hero__copy > :nth-child(2) { animation-delay: 1.4s; }
.hero__copy > :nth-child(3) { animation-delay: 1.65s; }
.hero__copy > :nth-child(4) { animation-delay: 1.9s; }
@keyframes appear { to { opacity: 1; transform: none; } }

/* ---------- faixa ---------- */
.ribbon { background: var(--noite); color: var(--champanhe-claro); overflow: hidden; padding: 18px 0; }
.ribbon__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: ribbon 46s linear infinite; }
.ribbon span { font-family: var(--display); font-style: italic; font-size: 22px; white-space: nowrap; }
.ribbon i { width: 6px; height: 6px; transform: rotate(45deg); background: var(--champanhe); opacity: .7; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- cabeçalhos de seção ---------- */
.sec-head { max-width: 760px; }
.sec-head h2 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.04; }
.sec-head__lede { margin-top: 22px; font-size: 18px; max-width: 36em; }
.sec-head--light h2 { color: var(--perola); }
.sec-head--light h2 em { color: var(--champanhe-claro); }
.sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.sec-head--row p { color: var(--nevoa); font-size: 15px; }

/* ---------- vestidos ---------- */
.dresses { max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 12vw, 150px) var(--gutter); }
.dresses__grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.dress--lift { margin-top: 80px; }
.dress__img { overflow: hidden; border-radius: 4px; }
.dress__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.dress:hover .dress__img img { transform: scale(1.04); }
.dress h3 { font-size: 32px; margin-top: 26px; }
.dress p { margin: 10px 0 18px; font-size: 16px; }

/* ---------- casamento inteiro ---------- */
.whole { background: var(--noite); padding: clamp(90px, 12vw, 150px) var(--gutter); }
.whole .sec-head, .whole__grid { max-width: var(--maxw); margin-inline: auto; }
.whole__grid {
  margin-top: 56px;
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: repeat(2, minmax(280px, 34vw));
  gap: 14px;
}
.tile { position: relative; overflow: hidden; border-radius: 4px; text-decoration: none; color: #fff; display: block; background: var(--noite-2); }
.tile--tall { grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile--wide img { object-position: 50% 30%; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s var(--ease); opacity: .86; }
.tile:hover img { transform: scale(1.05); opacity: 1; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(21, 18, 22, .82)); pointer-events: none; }
.tile__label { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.tile__label b { font-family: var(--display); font-weight: 400; font-size: 30px; }
.tile__label small { font-size: 14px; color: var(--champanhe-claro); line-height: 1.4; }
.tile--solid { background: var(--ameixa); display: flex; }
.tile--solid::after { display: none; }
.tile--solid::before {
  content: ''; position: absolute; inset: 18px; border: 1px solid rgba(216, 195, 158, .45); border-radius: var(--arch);
}

/* ---------- a prova ---------- */
.fitting {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(90px, 12vw, 150px) var(--gutter);
  display: grid; grid-template-columns: .9fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center;
}
.fitting__img img { border-radius: var(--arch); width: 100%; aspect-ratio: 4 / 5.3; object-fit: cover; }
.fitting h2 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 40px 0 44px; }
.steps li {
  counter-increment: s; position: relative;
  padding: 20px 0 20px 64px; border-top: 1px solid var(--perola-2);
  display: flex; flex-direction: column; gap: 4px;
}
.steps li:last-child { border-bottom: 1px solid var(--perola-2); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 12px;
  font-family: var(--display); font-style: italic; font-size: 40px; line-height: 1; color: var(--champanhe);
}
.steps b { font-weight: 600; color: var(--noite); font-size: 17px; }
.steps span { font-size: 16px; color: var(--grafite); }

/* ---------- galeria ---------- */
.gallery { padding: 0 0 clamp(90px, 12vw, 150px); }
.gallery .sec-head { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.gallery h2 { font-size: clamp(36px, 4.8vw, 64px); }
.gallery__rail {
  margin-top: 40px; display: flex; gap: 14px; overflow-x: auto;
  padding: 0 var(--gutter) 20px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--champanhe) transparent;
}
.gallery__rail figure { margin: 0; flex: 0 0 clamp(240px, 26vw, 360px); scroll-snap-align: start; }
.gallery__rail figure:nth-child(odd) { margin-top: 36px; }
.gallery__rail img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }

/* ---------- deise ---------- */
.deise {
  background: var(--ameixa); color: var(--perola);
  display: grid; grid-template-columns: minmax(0, .8fr) 1fr; align-items: stretch;
}
.deise__img { margin: 0; overflow: hidden; }
.deise__img img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: 50% 20%; }
.deise__copy { padding: clamp(60px, 8vw, 120px) var(--gutter); align-self: center; max-width: 640px; }
.deise h2 { color: #fff; font-size: clamp(44px, 5.6vw, 76px); line-height: 1; }
.deise h2 em { color: var(--champanhe-claro); }
.deise__role { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--champanhe-claro); }
.deise blockquote { margin: 38px 0 26px; padding-left: 24px; border-left: 1px solid var(--champanhe); }
.deise blockquote p { font-family: var(--display); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; color: #fff; }
.deise__copy > p:not(.eyebrow):not(.deise__role) { font-size: 17px; color: rgba(244, 243, 246, .86); margin-bottom: 30px; }

/* ---------- agendar ---------- */
.book { position: relative; background: var(--noite); overflow: hidden; }
.book__bg { position: absolute; inset: 0; }
.book__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: grayscale(.3); }
.book__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21, 18, 22, .92) 30%, rgba(21, 18, 22, .55)); }
.book__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(90px, 12vw, 150px) var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.book h2 { color: var(--perola); font-size: clamp(38px, 4.8vw, 64px); line-height: 1.04; }
.book h2 em { color: var(--champanhe-claro); }
.book__copy > p:last-child { margin-top: 22px; color: rgba(244, 243, 246, .78); font-size: 18px; max-width: 26em; }

.book__form { background: var(--perola); border-radius: 6px; padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.book__form > label, .book__form fieldset { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.book__form > label > span, .book__form legend { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--nevoa); padding: 0; margin-bottom: 8px; }
.book__form input[name="nome"], .book__form input[type="month"] {
  font: inherit; font-size: 17px; color: var(--noite); background: #fff;
  border: 1px solid var(--perola-2); border-radius: 4px; padding: 14px 16px; width: 100%;
}
.book__form input:focus { outline: none; border-color: var(--champanhe); box-shadow: 0 0 0 3px rgba(184, 154, 106, .2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--perola-2); background: #fff; color: var(--grafite);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chips input:checked + span { background: var(--ameixa); border-color: var(--ameixa); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--champanhe); outline-offset: 2px; }
.book__error { color: var(--ameixa); font-size: 14px; font-weight: 600; }
.book__note { font-size: 13px; color: var(--nevoa); text-align: center; }

/* ---------- rodapé ---------- */
.foot { background: var(--perola); padding: 70px var(--gutter) 110px; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.mark--foot .mark__b { font-size: 30px; }
.foot__links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.foot__links a { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-decoration: none; color: var(--ameixa); }
.foot__small { font-size: 12px; color: var(--nevoa); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ameixa); color: #fff; text-decoration: none;
  padding: 14px 22px 14px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  box-shadow: 0 12px 30px rgba(91, 31, 58, .35);
  transform: translateY(140%); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), background .3s var(--ease);
}
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }
.wa-float:hover { background: var(--ameixa-2); }
.wa-float--on { transform: none; opacity: 1; }

/* ---------- revelação ---------- */
.rise { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rise--in { opacity: 1; transform: none; }
.dresses__grid .rise:nth-child(2), .whole__grid .rise:nth-child(2), .steps .rise:nth-child(2) { transition-delay: .12s; }
.dresses__grid .rise:nth-child(3), .whole__grid .rise:nth-child(3), .steps .rise:nth-child(3) { transition-delay: .24s; }
.whole__grid .rise:nth-child(4), .steps .rise:nth-child(4) { transition-delay: .36s; }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 44px; min-height: 0; }
  .hero__photo { justify-self: center; max-width: 480px; }
  .hero__photo figcaption { display: none; }
  .dresses__grid { grid-template-columns: 1fr 1fr; }
  .dress--lift { margin-top: 0; }
  .whole__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 320px; }
  .tile--tall { grid-row: span 2; }
  .tile--wide { grid-column: span 2; }
  .fitting { grid-template-columns: 1fr; }
  .fitting__img { max-width: 460px; }
  .deise { grid-template-columns: 1fr; }
  .deise__img img { min-height: 0; aspect-ratio: 4 / 4.2; }
  .book__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { padding: 12px 16px; }
  .top--solid { padding-block: 8px; }
  .mark__b { font-size: 18px; }
  .btn--small { padding: 10px 16px; font-size: 12px; }
  .hero { padding: 96px 16px 56px; }
  .hero__lede { font-size: 17px; }
  .hero__cta .btn { width: 100%; }
  .hero__photo::before { inset: -8px; }
  .dresses, .fitting { padding-inline: 16px; }
  .dresses__grid { grid-template-columns: 1fr; gap: 56px; }
  .whole { padding-inline: 16px; }
  .whole__grid { grid-template-columns: 1fr; grid-auto-rows: 360px; }
  .tile--tall { grid-row: span 1; }
  .tile--wide { grid-column: span 1; }
  .gallery .sec-head, .gallery__rail { padding-inline: 16px; }
  .gallery__rail { scroll-padding-inline: 16px; }
  .gallery__rail figure { flex-basis: 74vw; }
  .deise__copy, .book__inner { padding-inline: 16px; }
  .steps li { padding-left: 52px; }
  .foot { padding-bottom: 120px; }
  .wa-float { left: 16px; right: 16px; bottom: 14px; justify-content: center; padding: 16px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .veil { animation: none; opacity: 0; }
  .hero__copy > * { animation: none; opacity: 1; transform: none; }
  .ribbon__track { animation: none; }
  .dress__img img, .tile img { transition: none; }
}
