/* Dia das Mães — tema Alinne, Helena e Catarina */
:root {
  --rose-deep: #7c3d4a;
  --rose: #c56b7a;
  --blush: #e8b4bc;
  --cream: #fdf6f2;
  --ivory: #fff9f5;
  --leaf: #2d3a32;
  --gold: #c9a227;
  --shadow: rgba(45, 58, 50, 0.12);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --radius: 1.25rem;
  --stagger: 0.08s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.1rem);
  line-height: 1.65;
  color: var(--leaf);
  background: var(--ivory);
  background-image: linear-gradient(
    160deg,
    #fff5f0 0%,
    #fce8ec 35%,
    #f5f0e8 70%,
    #e8f0eb 100%
  );
  background-size: 200% 200%;
  animation: bgShift 18s ease-in-out infinite;
  overflow-x: hidden;
}

@keyframes bgShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Fundo com blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.45;
  animation: blobFloat 14s ease-in-out infinite;
}

.blob-a {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  background: radial-gradient(circle, var(--blush), transparent 70%);
  top: -8%;
  left: -5%;
  animation-delay: 0s;
}

.blob-b {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  background: radial-gradient(circle, #d4e8dd, transparent 70%);
  bottom: 5%;
  right: -8%;
  animation-delay: -4s;
}

.blob-c {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  background: radial-gradient(circle, #f0d4e0, transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -7s;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(3%, 4%) scale(1.05);
  }
  66% {
    transform: translate(-2%, 2%) scale(0.98);
  }
}

/* Corações e pétalas */
.hearts {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.heart {
  position: absolute;
  color: var(--blush);
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  opacity: 0.35;
  text-shadow: 0 0 20px rgba(197, 107, 122, 0.4);
  animation: heartDrift 12s ease-in-out infinite;
}

.h1 { top: 12%; left: 8%; animation-delay: 0s; }
.h2 { top: 25%; right: 12%; animation-delay: -2s; font-size: 1.2em; }
.h3 { top: 55%; left: 5%; animation-delay: -4s; }
.h4 { bottom: 28%; right: 8%; animation-delay: -1s; }
.h5 { top: 70%; right: 22%; animation-delay: -6s; font-size: 0.85em; }
.h6 { bottom: 15%; left: 18%; animation-delay: -3s; }

@keyframes heartDrift {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-18px) rotate(8deg);
    opacity: 0.55;
  }
}

.petal {
  position: absolute;
  width: 14px;
  height: 22px;
  background: linear-gradient(180deg, var(--rose), var(--blush));
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0.25;
  animation: petalFall 16s linear infinite;
}

.p1 { left: 15%; top: -5%; animation-delay: 0s; }
.p2 { left: 45%; top: -8%; animation-delay: -5s; transform: rotate(25deg); }
.p3 { left: 78%; top: -12%; animation-delay: -10s; transform: rotate(-15deg); }

@keyframes petalFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.35;
  }
  90% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  z-index: 2;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) 1.5rem 4rem;
}

.hero-eyebrow {
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--rose-deep);
  margin-bottom: 1.25rem;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

.hero-title .line1 {
  display: block;
  font-size: clamp(2.75rem, 10vw, 4.75rem);
  background: linear-gradient(
    110deg,
    var(--rose-deep) 0%,
    var(--rose) 40%,
    var(--gold) 85%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShine 6s ease-in-out infinite, line1In 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title .line2 {
  display: block;
  font-size: clamp(1.05rem, 3.8vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  color: var(--leaf);
  opacity: 0.92;
  margin-top: 0.35rem;
  animation: line2In 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes titleShine {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes line1In {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes line2In {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 0.92;
    transform: translateY(0);
  }
}

.hero-sub {
  max-width: 28em;
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--leaf);
  opacity: 0.88;
}

.break-desktop {
  display: none;
}

@media (min-width: 640px) {
  .break-desktop {
    display: inline;
  }
}

.scroll-hint {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
  animation: hintPulse 2.2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(var(--rose), transparent);
  border-radius: 2px;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes hintPulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0.4);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.4);
    opacity: 0.3;
  }
}

/* Seções */
main {
  position: relative;
  z-index: 2;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 2.5rem);
  max-width: 72rem;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  color: var(--rose-deep);
  text-align: center;
  margin: 0 0 2rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: underlineGlow 3s ease-in-out infinite;
}

@keyframes underlineGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Reveal no scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.message-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 20px 50px var(--shadow);
  border: 1px solid rgba(232, 180, 188, 0.35);
  max-width: 44rem;
  margin: 0 auto;
}

.message-card p {
  margin: 0 0 1.15rem;
}

.message-card p:last-of-type {
  margin-bottom: 1.5rem;
}

.pullquote {
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px dashed rgba(124, 61, 74, 0.25);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-style: italic;
  color: var(--rose-deep);
  line-height: 1.5;
}

.pullquote-by {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: normal;
  color: var(--leaf);
  opacity: 0.85;
}

/* Highlights */
.highlight-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .highlight-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.highlight-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(252, 232, 236, 0.5));
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  text-align: center;
  border: 1px solid rgba(232, 180, 188, 0.4);
  box-shadow: 0 12px 32px var(--shadow);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s;
}

.highlight-item:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 20px 44px rgba(124, 61, 74, 0.15);
}

.hl-icon {
  display: block;
  font-size: 1.5rem;
  color: var(--rose);
  margin-bottom: 0.5rem;
  animation: iconSpin 8s linear infinite;
}

@keyframes iconSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.highlight-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--rose-deep);
}

.highlight-item p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Seções de momentos (fotos por capítulo) */
.moment-story .section-title {
  margin-bottom: 1rem;
}

.moment-intro,
.moment-lead,
.videos-intro {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2rem;
  opacity: 0.9;
  font-size: clamp(1rem, 2.4vw, 1.08rem);
}

.moment-lead {
  margin-top: -0.35rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

@media (min-width: 720px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.photo-card {
  margin: 0;
  perspective: 900px;
}

.photo-frame {
  position: relative;
  border-radius: calc(var(--radius) - 0.15rem);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 16px 40px var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.85);
  transform: rotate(0deg);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s;
}

.photo-card:nth-child(odd) .photo-frame {
  transform: rotate(-1.2deg);
}

.photo-card:nth-child(even) .photo-frame {
  transform: rotate(1deg);
}

.photo-card:hover .photo-frame {
  transform: rotate(0deg) scale(1.03) translateY(-6px);
  box-shadow: 0 28px 56px rgba(124, 61, 74, 0.18);
  z-index: 3;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  animation: kenBurns 14s ease-in-out infinite alternate;
}

.photo-card:nth-child(3n) .photo-frame img {
  animation-duration: 18s;
}

.photo-card:nth-child(3n + 1) .photo-frame img {
  animation-duration: 12s;
}

@keyframes kenBurns {
  0% {
    transform: scale(1.06) translate(0%, 0%);
  }
  100% {
    transform: scale(1.14) translate(-2%, -1%);
  }
}

/* Memórias — fila automática de vídeos */
.memorias-theatre {
  max-width: 52rem;
  margin: 0 auto;
}

.memorias-reduced-hint {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.memorias-btn--start {
  display: block;
  margin: 0 auto 1.25rem;
}

.memorias-video-shell {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px var(--shadow);
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: #1a1412;
}

.memorias-video {
  width: 100%;
  height: auto;
  max-height: min(70vh, 720px);
  display: block;
  object-fit: contain;
}

.memorias-chrome {
  margin-top: 1.35rem;
  text-align: center;
}

.memorias-counter {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  color: var(--rose-deep);
  margin: 0 0 1rem;
}

.memorias-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.memorias-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--rose-deep);
  background: var(--rose-deep);
  color: var(--ivory);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.memorias-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 61, 74, 0.25);
}

.memorias-btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.memorias-btn--ghost {
  background: transparent;
  color: var(--rose-deep);
}

.memorias-hint {
  font-size: 0.88rem;
  opacity: 0.86;
  max-width: 34rem;
  margin: 0 auto;
  line-height: 1.55;
}

/* Vídeos */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(232, 180, 188, 0.35);
  box-shadow: 0 14px 36px var(--shadow);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s;
}

.video-card-text {
  padding: 1.15rem 1.35rem 0.85rem;
  text-align: center;
}

.video-card-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  color: var(--rose-deep);
  font-weight: 700;
}

.video-card-desc {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.88;
  line-height: 1.5;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(45, 58, 50, 0.14);
}

.video-card video {
  width: 100%;
  display: block;
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(3rem, 10vw, 5rem) 1.5rem 3rem;
  background: linear-gradient(180deg, transparent, rgba(232, 180, 188, 0.2));
}

.footer-heart {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  color: var(--rose);
  animation: footerHeart 2s ease-in-out infinite;
}

@keyframes footerHeart {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.25rem);
  color: var(--rose-deep);
  margin: 0 0 0.75rem;
}

.footer-sub {
  margin: 0 auto 1.75rem;
  max-width: 26rem;
  opacity: 0.88;
}

.footer-top {
  display: inline-block;
  font-weight: 700;
  color: var(--rose-deep);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 2px solid rgba(124, 61, 74, 0.35);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.footer-top:hover {
  background: var(--rose-deep);
  color: var(--ivory);
  transform: translateY(-2px);
}

.footer-top:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  .blob,
  .heart,
  .petal,
  .hero-title .line1,
  .scroll-hint,
  .scroll-line,
  .section-title::after,
  .hl-icon,
  .photo-frame img,
  .footer-heart {
    animation: none !important;
  }

  body {
    background-size: 100% 100%;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .highlight-item:hover,
  .photo-card:hover .photo-frame,
  .video-card:hover,
  .memorias-btn:hover {
    transform: none;
  }

  .photo-frame img {
    transform: scale(1.05);
  }
}
