/* ==========================================================================
   Sabores à Fatia — Folha de estilos
   1. Variáveis e reset   2. Utilitários   3. Preloader e progresso
   4. Cabeçalho           5. Hero          6. Faixa animada
   7. Sobre               8. Mais pedidos  9. Magia / processo
   10. Contacto           11. Rodapé, toast, instalar   12. Responsivo
   ========================================================================== */

/* 1. Variáveis e reset ---------------------------------------------------- */
:root {
  --wine: #383136;
  --rosewood: #bd9b87;
  --rose-soft: #efb9b2;
  --vanilla-cream: #fff5e3;
  --cream-deep: #e6edc9;
  --gold: #98745f;
  --gold-soft: #ead5b2;
  --pink-primary: #fbd9e5;
  --blue-soft: #dce9f7;
  --sage: #dfe8bf;
  --text-dark: #302a2e;
  --text-muted: #625a60;
  --text-light: #ffffff;

  --font-title: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, sans-serif;

  --radius: 18px;
  --ease: cubic-bezier(.22, .9, .25, 1);
  --shadow-soft: 0 20px 50px -20px rgba(74, 28, 40, .25);
  --header-h: 84px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background-color: var(--vanilla-cream);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
/* "clip" corta o excesso horizontal sem transformar o body num contentor
   de scroll — "hidden" fazia a nav fixa desaparecer durante o scroll no telemóvel */
html, body { overflow-x: clip; }
html.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
em { font-style: italic; }

::selection { background: var(--pink-primary); color: var(--text-dark); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* 2. Utilitários ---------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.divider {
  display: block;
  width: 64px;
  height: 1px;
  margin: 22px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.divider::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: .04em;
  color: var(--wine);
}
.section-head.light h2 { color: var(--vanilla-cream); }
.magic-banner .section-head.light h2 { color: var(--text-dark); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 38px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), box-shadow .45s var(--ease), transform .3s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-light { background: var(--vanilla-cream); color: var(--wine); box-shadow: 0 14px 40px -12px rgba(0,0,0,.35); }
.btn-light::before { background: var(--gold); }
.btn-light:hover { color: #fff; }

.btn-dark { background: var(--pink-primary); color: var(--text-dark); }
.btn-dark::before { background: var(--rosewood); }

/* Revelação ao fazer scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal[data-reveal="left"]  { transform: translateX(-50px); }
.reveal[data-reveal="right"] { transform: translateX(50px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 3. Preloader e progresso ------------------------------------------------ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--pink-primary);
  transition: clip-path 1s var(--ease) .1s;
  clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader-mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.preloader-ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(48, 42, 46, .18);
  border-top-color: var(--rosewood);
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
}
.preloader-text { font-family: var(--font-title); font-size: 2rem; color: var(--text-dark); letter-spacing: .08em; }
.preloader-text em { color: var(--rosewood); margin: 0 2px; }

@keyframes spin { to { transform: rotate(360deg); } }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 200;
  background: linear-gradient(90deg, var(--rosewood), var(--rose-soft), var(--blue-soft));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* 4. Cabeçalho ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Nav 100% fixa: fundo sólido, sem transições nem efeitos ao fazer scroll */
  background: var(--pink-primary);
  box-shadow: 0 8px 24px -18px rgba(48, 42, 46, .35);
  transition: none !important;
  /* camada própria na GPU: evita que a nav pisque/desapareça durante o scroll */
  transform: translateZ(0) !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.logo {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: .14em;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
}
.logo em { color: var(--gold); font-weight: 500; letter-spacing: 0; margin: 0 .1em; text-transform: lowercase; }

.main-nav ul { display: flex; list-style: none; gap: 6px; }
.main-nav a {
  position: relative;
  display: inline-block;
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 18px;
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
  transition: opacity .3s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 2px;
  height: 1px;
  background: var(--rosewood);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid rgba(48,42,46,.3);
  border-radius: 50%;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1px;
  background: var(--text-dark);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child  { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { top: 21px; transform: rotate(-45deg); }

/* 5. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 140px 20px 120px;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: -10% 0;
  background: url('../img/img_14.jpeg') center / cover no-repeat;
  transform: scale(1.15);
  animation: heroZoom 2.6s var(--ease) forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(104, 75, 83, .5) 0%, rgba(52, 43, 49, .78) 60%, rgba(39, 34, 39, .9) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero .eyebrow { color: var(--gold-soft); }

.hero-title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(3.4rem, 10vw, 7.4rem);
  line-height: .92;
  letter-spacing: .06em;
}
.hero-title .line { display: block; overflow: hidden; padding: .04em 0; }
.hero-title .line > span { display: inline-block; }
.hero-title .script {
  font-style: italic;
  text-transform: lowercase;
  color: var(--gold-soft);
  letter-spacing: 0;
  margin-right: .12em;
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 44px;
  opacity: .92;
}

/* Animação de entrada do hero (disparada por JS) */
.hero-anim { opacity: 0; transform: translateY(40px); }
.hero-title .hero-anim { transform: translateY(105%); }
body.is-ready .hero-anim {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s);
}
body.is-ready .hero p.hero-anim { opacity: .92; }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: #fff;
  animation: cue 2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* 6. Faixa animada -------------------------------------------------------- */
.marquee {
  background: var(--blue-soft);
  color: var(--text-dark);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  animation: marquee 32s linear infinite;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: .04em;
}
.marquee-track i { font-style: normal; font-size: .7rem; color: var(--rosewood); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 7. Sobre ---------------------------------------------------------------- */
.about { padding: clamp(90px, 12vw, 150px) 20px; position: relative; }

.about-container {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.about-img { position: relative; }
.img-frame {
  position: relative;
  border-radius: 220px 220px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
}
.img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.about-img:hover .img-frame img { transform: scale(1.05); }
.img-deco {
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid var(--gold);
  border-radius: 220px 220px var(--radius) var(--radius);
  z-index: -1;
}

.about-text h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--wine);
  line-height: 1;
  letter-spacing: .03em;
  margin-bottom: 30px;
}
.about-text h2 em { font-weight: 500; color: var(--rosewood); letter-spacing: 0; text-transform: none; }

.about-text p { color: var(--text-muted); font-size: 1.02rem; font-weight: 300; margin-bottom: 14px; }
.about-text p.lead { font-family: var(--font-title); font-size: 1.6rem; font-style: italic; color: var(--text-dark); margin-bottom: 18px; }

.signature {
  display: block;
  margin-top: 26px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--gold);
}

/* 8. Mais pedidos --------------------------------------------------------- */
.best-sellers {
  background: var(--cream-deep);
  padding: clamp(90px, 11vw, 140px) 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--vanilla-cream);
  padding: 14px 14px 28px;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity 1s var(--ease);
}
.product-card.is-visible:hover { transform: translateY(-10px); box-shadow: var(--shadow-soft); }

.product-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  margin-bottom: 22px;
  transform-style: preserve-3d;
  transition: transform .3s ease-out;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.product-card:hover .product-img img { transform: scale(1.09); }
.product-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(46, 35, 34, .35));
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.product-card:hover .product-img::after { opacity: 1; }

.product-num {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1rem;
  color: var(--wine);
  background: rgba(249, 244, 236, .9);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: grid; place-items: center;
}

.product-badge {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: .06em;
  color: var(--wine);
  line-height: 1.2;
  margin-bottom: 10px;
  padding: 0 6px;
}
.product-card p { font-size: .9rem; font-weight: 300; color: var(--text-muted); line-height: 1.6; padding: 0 8px; flex: 1; }

.product-order {
  margin-top: 20px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gold);
  padding: 4px 2px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--wine);
  transition: color .3s, gap .3s;
}
.product-order span { display: inline-block; transition: transform .4s var(--ease); }
.product-order:hover { color: var(--gold); }
.product-order:hover span { transform: translateX(5px); }

/* 9. Magia / processo ----------------------------------------------------- */
.magic-banner {
  position: relative;
  background: var(--sage);
  color: var(--text-dark);
  padding: clamp(90px, 11vw, 140px) 20px;
  overflow: hidden;
}
.magic-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 154, 91, .22), transparent 65%);
  top: -250px; right: -200px;
  animation: float 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes float { to { transform: translate(-180px, 220px); } }

.banner-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  max-width: 1160px;
  margin: 0 auto;
}

.banner-card {
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(56, 49, 54, .12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .6s var(--ease), background .6s var(--ease), opacity 1s var(--ease), transform 1s var(--ease);
}
.banner-card:hover { border-color: rgba(56, 49, 54, .26); background: rgba(255, 255, 255, .82); }

.card-image { overflow: hidden; aspect-ratio: 16 / 11; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.banner-card:hover .card-image img { transform: scale(1.06); }

.banner-body { padding: 34px 36px 40px; text-align: left; }
.banner-num { font-family: var(--font-title); font-style: italic; font-size: 1.1rem; color: var(--gold); }
.banner-card h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 500;
  margin: 4px 0 12px;
  color: var(--text-dark);
}
.banner-card p { font-size: .95rem; font-weight: 300; line-height: 1.75; color: var(--text-muted); opacity: 1; }

/* 10. Contacto ------------------------------------------------------------ */
.contact-section { padding: clamp(90px, 11vw, 140px) 20px; }

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.contact-info h2 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--wine);
  line-height: 1;
  letter-spacing: .03em;
  margin-bottom: 22px;
}
.contact-info > p { color: var(--text-muted); font-weight: 300; font-size: 1.02rem; margin-bottom: 40px; max-width: 420px; }

.info-items { display: flex; flex-direction: column; gap: 22px; }
.info-item { display: flex; align-items: center; gap: 18px; }
.info-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  transition: background .4s var(--ease);
}
.info-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--wine); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.info-item:hover .info-icon { background: var(--pink-primary); }
.info-item:hover .info-icon svg { stroke: var(--text-dark); }

.info-item strong {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.info-item a, .info-item p { color: var(--text-dark); font-size: 1.05rem; text-decoration: none; }
.info-item a { background: linear-gradient(var(--wine), var(--wine)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.info-item a:hover { color: var(--wine); background-size: 100% 1px; }

.contact-form-wrapper {
  background: #fff;
  padding: clamp(30px, 5vw, 54px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 60px; height: 3px;
  transform: translateX(-50%);
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}

/* Campos com etiqueta flutuante */
.form-group { position: relative; margin-bottom: 30px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 22px 0 10px;
  border: none;
  border-bottom: 1px solid #e2d5d2;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  outline: none;
  resize: vertical;
  border-radius: 0;
}
.form-group textarea { min-height: 110px; }
.form-group label {
  position: absolute;
  left: 0; top: 22px;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .4s var(--ease), color .3s;
}
.form-group::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0; height: 0;
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-22px) scale(.74);
  color: var(--gold);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--wine); box-shadow: 0 1px 0 var(--wine); }

.hint { display: block; margin-top: 8px; font-size: .78rem; font-weight: 300; color: #a39391; }

.form-group.has-error input,
.form-group.has-error textarea { border-bottom-color: #c0392b; box-shadow: 0 1px 0 #c0392b; }
.field-error { display: block; min-height: 0; font-size: .76rem; color: #c0392b; margin-top: 6px; }
.form-group.has-error { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.btn-submit { width: 100%; margin-top: 6px; }
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn-submit.is-loading .btn-label { opacity: .6; }
.btn-submit.is-loading .btn-spinner { display: inline-block; }

/* 11. Rodapé, toast, instalar --------------------------------------------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.6);
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .08em;
  position: relative;
}
.site-footer .logo { color: var(--vanilla-cream); font-size: 1.3rem; }
.site-footer .logo em { color: var(--pink-primary); }
.to-top {
  position: absolute;
  right: clamp(20px, 5vw, 60px); top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 1px solid rgba(227, 207, 166, .4);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-soft);
  text-decoration: none;
  transition: background .4s, color .4s;
}
.to-top:hover { background: var(--gold); color: var(--text-dark); }

.toast {
  position: fixed;
  left: 50%; bottom: 30px;
  z-index: 300;
  max-width: calc(100% - 32px);
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--text-dark);
  color: #fff;
  font-size: .9rem;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,.4);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast.success { background: #2f5d46; }

.install-btn {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--gold);
  color: var(--text-dark);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.35);
  animation: popIn .6s var(--ease);
}
.install-btn[hidden] { display: none; }
.install-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@keyframes popIn { from { transform: translateY(30px) scale(.9); opacity: 0; } }

/* 12. Responsivo ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--pink-primary);
    display: grid;
    place-items: center;
    clip-path: circle(0% at calc(100% - 42px) 42px);
    transition: clip-path .8s var(--ease);
    z-index: 105;
  }
  .main-nav.is-open { clip-path: circle(150% at calc(100% - 42px) 42px); }
  .main-nav ul { flex-direction: column; align-items: center; gap: 14px; }
  .main-nav a {
    font-family: var(--font-title);
    font-size: 2.4rem;
    letter-spacing: .08em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .main-nav.is-open a { opacity: 1; transform: none; }
  .main-nav.is-open li:nth-child(1) a { transition-delay: .25s; }
  .main-nav.is-open li:nth-child(2) a { transition-delay: .32s; }
  .main-nav.is-open li:nth-child(3) a { transition-delay: .39s; }
  .main-nav.is-open li:nth-child(4) a { transition-delay: .46s; }
  .main-nav a::after { left: 18px; right: 18px; }

  .about-container,
  .contact-container { grid-template-columns: 1fr; }
  .about-img { max-width: 420px; margin: 0 auto; width: 100%; }
  .about-text { text-align: center; }

  .banner-grid { grid-template-columns: 1fr; max-width: 560px; }

  .to-top { position: static; transform: none; margin-top: 10px; }
}

@media (max-width: 520px) {
  .logo { font-size: 1.15rem; letter-spacing: .1em; }
  .products-grid { grid-template-columns: 1fr; max-width: 380px; }
  .img-deco { inset: 14px -12px -14px 12px; }
  .banner-body { padding: 26px 24px 30px; }
  .install-btn { left: 16px; right: 16px; justify-content: center; }
}

/* Modo standalone (app instalada) */
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
}

/* Acessibilidade: menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero-anim { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   13. Novas secções: Edição limitada, Bolos personalizados,
       Informações importantes, Cuidados e corte
   ========================================================================== */
.section-sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.02rem;
}
.section-head.light .section-sub { color: #f0dfe2; }

.flavor-list { list-style: none; }
.flavor-list li {
  position: relative;
  padding: 11px 0 11px 26px;
  border-bottom: 1px solid rgba(193, 154, 91, .25);
  font-weight: 300;
  color: var(--text-dark);
}
.flavor-list li:last-child { border-bottom: none; }
.flavor-list li::before {
  content: '';
  position: absolute;
  left: 4px; top: 50%;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.flavor-list small { color: var(--text-muted); font-size: .8em; }

/* ---- Edição limitada ---- */
.limited {
  position: relative;
  padding: clamp(90px, 11vw, 140px) 20px;
  background:
    radial-gradient(circle at 12% 18%, rgba(193, 154, 91, .14), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(162, 82, 99, .10), transparent 45%),
    var(--vanilla-cream);
}
.limited .eyebrow { color: #b0703e; }

.limited-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2.5vw, 28px);
  max-width: 1120px;
  margin: 0 auto;
}
.limited-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity 1s var(--ease);
}
.limited-card.is-visible:hover { transform: translateY(-8px); }
.limited-img {
  position: relative;
  height: clamp(112px, 18vw, 220px);
  min-height: 0;
  overflow: hidden;
  background: #f4eee6;
}
.limited-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}
.limited-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 35, 34, .78);
  backdrop-filter: blur(6px);
  color: var(--gold-soft);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.limited-body { padding: 34px 32px; }
.limited-body h3 {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--wine);
  margin-bottom: 12px;
}

/* ---- Bolos personalizados ---- */
.custom-cakes {
  background: var(--cream-deep);
  padding: clamp(90px, 11vw, 140px) 20px;
}
.custom-cakes > *:not(.section-head) { max-width: 1100px; margin-left: auto; margin-right: auto; }

.block-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--wine);
  margin-top: 70px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(193, 154, 91, .4);
}
.block-title span { font-style: italic; font-size: 1rem; color: var(--gold); }
.section-head + .block-title { margin-top: 0; }
.block-note { color: var(--text-muted); font-weight: 300; margin: -12px 0 24px; }

.sizes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.size-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 18px 26px;
  background: var(--vanilla-cream);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-dark);
  text-align: center;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease), background .4s, opacity 1s var(--ease);
}
.size-card.is-visible:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.size-card[aria-checked="true"] { border-color: var(--wine); background: #fff; box-shadow: var(--shadow-soft); }
.size-art { width: 110px; height: 110px; margin-bottom: 10px; }
.size-art .ring { fill: none; stroke: rgba(193, 154, 91, .45); stroke-width: .8; stroke-dasharray: 2 3; }
.size-art .cake { fill: var(--rose-soft); stroke: var(--wine); stroke-width: 1; transition: fill .4s; }
.size-card:hover .size-art .cake,
.size-card[aria-checked="true"] .size-art .cake { fill: var(--rosewood); }
.size-cm { font-family: var(--font-title); font-size: 2rem; font-weight: 600; color: var(--wine); line-height: 1.1; }
.size-info { font-size: .85rem; font-weight: 300; color: var(--text-muted); }
.size-price {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(193, 154, 91, .35);
  width: 100%;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-dark);
}
.size-price small { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.tiered-cake-note {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--rosewood);
  background: var(--pink-primary);
  color: var(--text-dark);
  font-size: .94rem;
}
.tiered-cake-note a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration-color: var(--rosewood);
  text-underline-offset: 3px;
}
.tiered-cake-note a:hover { color: var(--gold); }

.builder {
  display: grid;
  grid-template-columns: 1fr 2fr 0.8fr;
  gap: 36px;
  background: var(--vanilla-cream);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
}
.builder h4 {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #e0d1cc;
  background: #fff;
  color: var(--text-dark);
  font-size: .86rem;
  font-weight: 400;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chip:hover { border-color: var(--wine); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--pink-primary); border-color: var(--rosewood); color: var(--text-dark); }
.chip em {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--text-dark);
  font-style: normal;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.builder-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 24px 30px;
  border-radius: var(--radius);
  background: var(--pink-primary);
  color: var(--text-dark);
}
.summary-label { font-size: .66rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: #665047; }
.summary-text { font-family: var(--font-title); font-size: 1.35rem; line-height: 1.35; }
.summary-text strong { font-weight: 600; color: #665047; }
.builder-cta { flex-shrink: 0; }
.builder-cta:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.builder-cta:disabled::before { display: none; }

.decor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.decor-card { background: var(--vanilla-cream); border-radius: var(--radius); padding: 30px 34px; }
.decor-card h4 { font-family: var(--font-title); font-style: italic; font-weight: 600; font-size: 1.7rem; color: var(--wine); margin-bottom: 6px; }
.decor-note {
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* ---- Informações importantes ---- */
.info-section { padding: clamp(90px, 11vw, 140px) 20px; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1150px;
  margin: 0 auto;
}
.info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  border-top: 3px solid var(--gold);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity 1s var(--ease);
}
.info-card.is-visible:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.info-card-icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--cream-deep);
  margin-bottom: 20px;
}
.info-card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--wine); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.info-card h3 { font-family: var(--font-title); font-weight: 600; font-size: 1.75rem; color: var(--wine); margin-bottom: 14px; }
.info-card ul { list-style: none; }
.info-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: .94rem;
  font-weight: 300;
  color: var(--text-muted);
}
.info-card li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.info-card strong { font-weight: 500; color: var(--text-dark); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag-row span {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--cream-deep);
  font-size: .78rem;
  color: var(--text-dark);
}

.quote-banner {
  max-width: 1150px;
  margin: 40px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 40px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}
.quote-banner p { font-family: var(--font-title); font-size: 1.55rem; color: var(--text-dark); }
.quote-banner em { color: var(--wine); }

/* ---- Cuidados e corte ---- */
.care-section {
  position: relative;
  background: var(--text-dark);
  color: #fff;
  padding: clamp(90px, 11vw, 140px) 20px;
}
.care-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1150px;
  margin: 0 auto 70px;
}
.care-item {
  text-align: center;
  padding: 30px 22px;
  border: 1px solid rgba(227, 207, 166, .18);
  border-radius: var(--radius);
  transition: border-color .5s, background .5s, opacity 1s var(--ease), transform 1s var(--ease);
}
.care-item:hover { border-color: rgba(227, 207, 166, .5); background: rgba(255,255,255,.03); }
.care-icon {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(193, 154, 91, .14);
}
.care-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-soft); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.care-item p { font-size: .92rem; font-weight: 300; color: rgba(255,255,255,.82); line-height: 1.65; }

.cut-steps { max-width: 1150px; margin: 0 auto; }
.cut-warning {
  text-align: center;
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--gold-soft);
  margin-bottom: 34px;
}
.cut-steps ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cut-steps li {
  counter-increment: step;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  font-size: .9rem;
  font-weight: 300;
  color: rgba(255,255,255,.82);
}
.cut-steps li::before {
  content: counter(step);
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.1rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--text-dark);
}
.cut-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px; left: calc(50% + 28px); right: calc(-50% + 28px);
  border-top: 1px dashed rgba(227, 207, 166, .35);
}
.cut-steps svg { width: 96px; height: 72px; fill: none; stroke: var(--gold-soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Responsivo das novas secções ---- */
@media (max-width: 1024px) {
  .limited-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
  .sizes-grid { grid-template-columns: repeat(2, 1fr); }
  .builder { grid-template-columns: 1fr 1fr; }
  .builder-col-wide { grid-column: 1 / -1; grid-row: 2; }
  .info-grid { grid-template-columns: 1fr; max-width: 620px; }
  .quote-banner { max-width: 620px; }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .cut-steps ol { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .cut-steps li::after { display: none; }
}
@media (max-width: 640px) {
  .limited-grid { gap: 12px; }
  .limited-img { height: 132px; }
  .limited-body { padding: 18px 14px; }
  .limited-body h3 { font-size: 1.7rem; }
  .limited-body .flavor-list li { padding: 9px 0 9px 18px; font-size: .82rem; line-height: 1.4; }
  .sizes-grid { gap: 12px; }
  .size-card { padding: 22px 10px; }
  .size-art { width: 80px; height: 80px; }
  .size-cm { font-size: 1.6rem; }
  .size-info { font-size: .76rem; }
  .size-price { font-size: 1.3rem; }
  .builder { grid-template-columns: 1fr; gap: 28px; }
  .builder-col-wide { grid-row: auto; }
  .builder-summary, .quote-banner { flex-direction: column; align-items: stretch; text-align: center; padding: 26px 22px; }
  .decor-grid { grid-template-columns: 1fr; }
  .care-grid { grid-template-columns: 1fr; }
  .cut-steps ol { grid-template-columns: 1fr; }
}

/* ==========================================================================
   14. Galeria de bolos personalizados + menu com 6 itens
   ========================================================================== */
.custom-cakes-intro {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.02rem;
}
.custom-cakes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.wedding-cakes {
  max-width: 1100px;
  margin: clamp(72px, 9vw, 112px) auto 0;
  padding-top: clamp(38px, 6vw, 64px);
  border-top: 1px solid rgba(152, 116, 95, .35);
}
.wedding-cakes-head { margin-bottom: 28px; text-align: center; }
.wedding-cakes-head .eyebrow { margin-bottom: 10px; }
.wedding-cakes-head h3 {
  margin: 0;
  color: var(--wine);
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
}
.wedding-cakes-head p {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}
.wedding-cakes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}
.wedding-cake-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 8px;
  overflow: hidden;
  background: var(--vanilla-cream);
  border: 1px solid rgba(152, 116, 95, .48);
  box-shadow: 0 16px 36px -24px rgba(48, 42, 46, .55);
  cursor: zoom-in;
  transition: transform .65s var(--ease), box-shadow .65s var(--ease), border-color .4s ease;
}
.wedding-cake-photo:nth-child(2) { transform: translateY(18px); }
.wedding-cake-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), filter .6s ease;
}
.wedding-cake-photo:hover,
.wedding-cake-photo:focus-visible {
  z-index: 1;
  transform: translateY(-6px) rotate(-1deg);
  border-color: var(--rosewood);
  box-shadow: 0 24px 44px -24px rgba(48, 42, 46, .65);
}
.wedding-cake-photo:nth-child(2):hover,
.wedding-cake-photo:nth-child(2):focus-visible { transform: translateY(10px) rotate(1deg); }
.wedding-cake-photo:hover img,
.wedding-cake-photo:focus-visible img { transform: scale(1.045); filter: saturate(1.06); }
.wedding-cake-photo:focus-visible { outline-offset: 5px; }
.custom-cake-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px -18px rgba(74, 28, 40, .35);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity 1s var(--ease);
}
.custom-cake-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.custom-cake-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(122, 51, 68, .3));
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.custom-cake-photo.is-visible:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.custom-cake-photo:hover img { transform: scale(1.08); }
.custom-cake-photo:hover::after { opacity: 1; }
.custom-cakes-action { text-align: center; margin-top: 56px; }

/* Menu com 6 itens: mais compacto em ecrãs médios */
@media (max-width: 1180px) and (min-width: 821px) {
  .main-nav ul { gap: 0; }
  .main-nav a { padding: 8px 11px; letter-spacing: .14em; font-size: .72rem; }
  .main-nav a::after { left: 11px; right: 11px; }
  .logo { font-size: 1.25rem; letter-spacing: .1em; }
}

@media (max-width: 820px) {
  .custom-cakes-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wedding-cakes-grid { gap: 12px; }
  .wedding-cake-photo { padding: 5px; }
}

/* Acabamento de movimento e galeria ampliável */
.reveal {
  transform: translateY(24px);
  transition-duration: .72s;
}
.reveal[data-reveal="left"] { transform: translateX(-32px); }
.reveal[data-reveal="right"] { transform: translateX(32px); }

.custom-cake-photo { cursor: zoom-in; }
.custom-cake-photo:focus-visible { outline-offset: 5px; }
.custom-cake-photo img { transition: transform .85s var(--ease), filter .6s var(--ease); }
.custom-cake-photo:hover img { filter: saturate(1.08); }

.cake-lightbox {
  width: min(100vw, 1280px);
  max-width: none;
  max-height: 100svh;
  padding: clamp(14px, 3vw, 34px);
  border: 0;
  background: transparent;
  color: var(--vanilla-cream);
  overflow: visible;
}
.cake-lightbox[open] { display: grid; place-items: center; }
.cake-lightbox::backdrop {
  background: rgba(31, 19, 21, .94);
  backdrop-filter: blur(8px);
}
.lightbox-content {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  width: 100%;
  animation: lightbox-enter .38s var(--ease) both;
}
.lightbox-figure { grid-column: 2; min-width: 0; text-align: center; }
.lightbox-image {
  width: 100%;
  max-height: calc(100svh - 120px);
  object-fit: contain;
  margin: auto;
  border-radius: 4px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .3);
}
.lightbox-caption {
  margin-top: 14px;
  color: var(--gold-soft);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-style: italic;
}
.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: var(--pink-primary); border-color: var(--rosewood); color: var(--text-dark); }
.lightbox-nav { grid-row: 1; font-size: 1.35rem; }
.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }
.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 1;
  font-size: 1.8rem;
  line-height: 1;
}
@keyframes lightbox-enter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .wedding-cakes { margin-top: 56px; }
  .wedding-cakes-grid { gap: 8px; }
  .wedding-cake-photo { padding: 4px; }
  .wedding-cake-photo:nth-child(2) { transform: translateY(10px); }
  .lightbox-content { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 6px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-close { top: -14px; right: -6px; width: 42px; height: 42px; }
  .lightbox-image { max-height: calc(100svh - 150px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal[data-reveal="left"],
  .reveal[data-reveal="right"] { transform: none; }
  .lightbox-content { animation: none; }
  .wedding-cake-photo,
  .wedding-cake-photo:nth-child(2) { transform: none; }
}

@media (max-width: 820px) {
  .about-container,
  .contact-container { grid-template-columns: minmax(0, 1fr); }
  .img-deco { inset: 14px -12px -14px -12px; }
  .contact-form-wrapper { width: 100%; min-width: 0; }
  .reveal[data-reveal="left"],
  .reveal[data-reveal="right"] { transform: translateY(24px); }
  .reveal[data-reveal="left"].is-visible,
  .reveal[data-reveal="right"].is-visible { transform: none; }
}
