/* ============================================================
   CONVITE 15 ANOS – ANA LUISA
   Estilo: Clean, Elegante e Minimalista
   Paleta: Branco, Rosa envelhecido, Ouro rosa
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600&display=block');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* cores */
  --bg-primary: #FFFFFF;
  --bg-card: #FEFEFE;
  --rose-light: #F8D7DA;
  --rose-mid: #D4A0A7;
  --rose-dark: #B76E79;
  --rose-gold: #C6907A;
  --gold-shimmer: #D4AF87;
  --text-primary: #2D2226;
  --text-secondary: #6B5058;
  --text-light: #9A7F86;
  --white: #FFFFFF;
  --overlay: rgba(45, 34, 38, 0.55);

  /* fontes */
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Outfit', sans-serif;

  /* espaçamentos */
  --section-py: 2rem;
  --section-px: 1.25rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── SCROLL PROGRESS BAR ──────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rose-light), var(--rose-gold), var(--rose-dark));
  border-radius: 0 2px 2px 0;
}

html {
  font-size: 18px;
}

@media (max-width: 480px) {
  html {
    font-size: 17px;
  }
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* ── Utility ──────────────────────────────────────────────── */
.section-wrapper {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--section-py) var(--section-px);
  position: relative;
}

/* Igualando o espaçamento para exatamente 3rem (48px) entre todos os blocos */
.opening .section-wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

.opening {
  margin-top: 0;
  margin-bottom: 3rem;
}

.details .section-wrapper {
  padding-top: 0;
  padding-bottom: 3rem;
}

.actions .section-wrapper {
  padding-top: 0;
}

.text-center {
  text-align: center;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 1rem;
}

/* ── Floral Corners (decoração fixa/absoluta) ──────────────────────── */
.floral-corner {
  position: absolute;
  width: clamp(150px, 35vw, 280px);
  /* Bem maiores */
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

.floral-tl {
  top: 0;
  left: 0;
  transform: rotate(180deg);
}

.floral-br {
  bottom: 0;
  right: 0;
}

@media (max-width: 480px) {
  .floral-corner {
    opacity: .4;
    width: 140px;
  }

  /* Maiores também no mobile */
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15vh var(--section-px) 3rem;
  position: relative;
  z-index: 1;
}

.hero__portrait-wrapper {
  position: relative;
  width: clamp(180px, 50vw, 280px);
  aspect-ratio: 3/4;
  border-radius: 10rem 10rem 1.5rem 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(183, 110, 121, 0.15);
  margin-bottom: 1.25rem;
}

.hero__portrait-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__name {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.5rem, 13vw, 5.5rem);
  color: var(--rose-dark);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: .25rem;
}

.hero__age {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  letter-spacing: .2em;
  color: var(--rose-gold);
  margin-bottom: .15rem;
}

.hero__date {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  letter-spacing: .1em;
}

.scroll-indicator {
  position: fixed;
  bottom: 0.5rem;
  left: 50%;
  margin-left: -20px;
  /* metade da largura total (40px) */
  color: var(--rose-gold);
  animation: fadeInIndicator 1s ease 1.2s backwards, bounce 2s infinite;
  z-index: 50;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: block;
  cursor: pointer;
  padding: .5rem;
  /* Aumenta a área de toque no celular */
}

.scroll-indicator.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

.scroll-indicator-inline {
  color: var(--rose-gold);
  animation: bounce 2s infinite;
  display: inline-block;
  cursor: pointer;
  padding: 0.5rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-indicator-inline.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-indicator-inline svg {
  width: 24px;
  height: 24px;
  display: block;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-8px);
  }

  60% {
    transform: translateY(-4px);
  }
}

@keyframes fadeInIndicator {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* ── FRASE DE ABERTURA ────────────────────────────────────── */
.opening {
  text-align: center;
  position: relative;
  z-index: 1;
}

.opening__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  padding: 0 .75rem;
}

.opening__quote::before,
.opening__quote::after {
  font-family: var(--font-script);
  font-size: 2.5rem;
  color: var(--rose-light);
  position: absolute;
  line-height: 1;
}

.opening__quote::before {
  content: '\201C';
  top: -.5rem;
  left: -.25rem;
}

.opening__quote::after {
  content: '\201D';
  bottom: -1rem;
  right: -.25rem;
}

/* ── CONTADOR REGRESSIVO ──────────────────────────────────── */

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4rem;
  max-width: 320px;
}

.countdown__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: .6rem .2rem;
  box-shadow: 0 2px 10px rgba(183, 110, 121, .08);
  border: 1px solid var(--rose-light);
  text-align: center;
}

.countdown__number {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  color: var(--rose-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: .2rem;
}

/* ── DETALHES DO EVENTO ───────────────────────────────────── */
.details {
  text-align: center;
  position: relative;
  z-index: 1;
}

.details__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 24px rgba(183, 110, 121, .08);
  border: 1px solid var(--rose-light);
  position: relative;
  overflow: hidden;
}

.details__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose-gold), var(--rose-dark), var(--rose-gold));
}

.details__row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(212, 160, 167, .12);
}

.details__row:last-child {
  border-bottom: none;
}

.details__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF5F7;
  border-radius: 50%;
  color: var(--rose-dark);
}

.details__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.details__text {
  text-align: left;
  flex: 1;
}

.details__value {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.details__address {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: .85rem;
  color: var(--text-light);
  margin-top: .2rem;
  line-height: 1.5;
}

/* ── BOTÕES ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  min-height: 48px;
  min-width: 48px;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .06em;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  -webkit-tap-highlight-color: transparent;
}

/* Tap/click animation for all buttons */
.btn:active {
  transform: scale(.95) !important;
  transition-duration: .1s;
}

.btn--map {
  background: linear-gradient(135deg, var(--rose-gold), var(--rose-dark));
  color: var(--white);
  margin-top: .6rem;
  box-shadow: 0 3px 14px rgba(183, 110, 121, .25);
}

.btn--map svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

#btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
}

#btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
  animation: shimmer 3s ease-in-out infinite;
}


/* ── SUGESTÕES DE PRESENTES (na página /presentes) ────────── */
.gifts {
  text-align: center;
  position: relative;
  z-index: 1;
}

.gifts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  max-width: 420px;
  margin: 0 auto;
}

.gifts__item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem .75rem .85rem;
  border: 1px solid var(--rose-light);
  box-shadow: 0 2px 10px rgba(183, 110, 121, .05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: all .25s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.gifts__hold-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--rose-gold);
  opacity: 0.15;
  transition: height 0.2s ease-out;
  z-index: 0;
}

.gifts__item.is-holding .gifts__hold-overlay {
  height: 100%;
  transition: height 0.52s linear;
}

.gifts__item:active {
  transform: scale(.96);
  border-color: var(--rose-gold);
}

.gifts__item-logo {
  max-width: 95%;
  height: 75px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.gifts__item-logo.loaded {
  opacity: 1;
}

.gifts__item-name {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .8rem;
  color: var(--text-secondary);
  letter-spacing: .05em;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* ── GALERIA ──────────────────────────────────────────────── */
.gallery {
  text-align: center;
  position: relative;
  z-index: 1;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  max-width: 440px;
  margin: 0 auto;
}

.gallery__item {
  aspect-ratio: 1;
  border-radius: .6rem;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF5F7, rgba(212, 160, 167, .2));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rose-light);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  color: var(--rose-mid);
  opacity: .5;
}

.gallery__placeholder svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

.gallery__placeholder span {
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── RSVP ─────────────────────────────────────────────────── */
.rsvp {
  text-align: center;
  position: relative;
  z-index: 1;
  padding-bottom: 1rem;
}

.rsvp__deadline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.btn--rsvp {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose-gold));
  color: var(--white);
  font-size: .95rem;
  padding: .9rem 2.5rem;
  box-shadow: 0 4px 20px rgba(183, 110, 121, .3);
  position: relative;
  overflow: hidden;
}

.btn--rsvp::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.btn--rsvp:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 2px 10px rgba(183, 110, 121, .15) !important;
}

/* ── MODAL RSVP ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem 1.75rem 1.75rem;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  text-align: center;
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 16px 48px rgba(45, 34, 38, .2);
}

.modal::-webkit-scrollbar {
  display: none;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-light);
  transition: background .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}

.modal__close:active {
  background: #FFF5F7;
  color: var(--rose-dark);
}

.modal__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.modal__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--rose-dark);
  margin-bottom: 1rem;
}

.modal__info {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: .35rem;
}

.modal__info strong {
  color: var(--text-primary);
  font-weight: 500;
}

.modal__divider {
  width: 50px;
  height: 1px;
  background: var(--rose-light);
  margin: 1rem auto;
}

.btn--confirm {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose-gold));
  color: var(--white);
  font-size: .95rem;
  padding: .9rem 2rem;
  box-shadow: 0 4px 20px rgba(183, 110, 121, .3);
  margin-top: .5rem;
  position: relative;
  overflow: hidden;
}

.btn--confirm:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 0 2px 10px rgba(183, 110, 121, .15) !important;
}

/* ── SUCCESS TOAST ────────────────────────────────────────── */
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 32px rgba(45, 34, 38, .18);
  border: 1px solid var(--rose-light);
  display: flex;
  align-items: center;
  gap: .6rem;
  z-index: 2000;
  opacity: 0;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rose-dark);
  border-radius: 50%;
  flex-shrink: 0;
}

.toast__icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
}

.toast__text {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: .9rem;
  color: var(--text-primary);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 1.5rem var(--section-px) 2.5rem;
  position: relative;
  z-index: 1;
}

.footer__text {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: .8rem;
  color: var(--text-light);
  letter-spacing: .05em;
}

.footer__heart {
  color: var(--rose-dark);
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.25);
  }
}

/* ── SCROLL / ENTRANCE ANIMATIONS ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance for children */
.reveal.visible .countdown__item,
.reveal.visible .gifts__item,
.reveal.visible .gallery__item,
.reveal.visible .details__row {
  animation: fadeInUp .5s ease both;
}

.reveal.visible .countdown__item:nth-child(1),
.reveal.visible .details__row:nth-child(1) {
  animation-delay: .1s;
}

.reveal.visible .countdown__item:nth-child(2),
.reveal.visible .details__row:nth-child(2) {
  animation-delay: .2s;
}

.reveal.visible .countdown__item:nth-child(3) {
  animation-delay: .3s;
}

.reveal.visible .countdown__item:nth-child(4) {
  animation-delay: .4s;
}

.reveal.visible .gifts__item:nth-child(1) {
  animation-delay: .05s;
}

.reveal.visible .gifts__item:nth-child(2) {
  animation-delay: .1s;
}

.reveal.visible .gifts__item:nth-child(3) {
  animation-delay: .15s;
}

.reveal.visible .gifts__item:nth-child(4) {
  animation-delay: .2s;
}

.reveal.visible .gifts__item:nth-child(5) {
  animation-delay: .25s;
}

.reveal.visible .gifts__item:nth-child(6) {
  animation-delay: .3s;
}

.reveal.visible .gifts__item:nth-child(7) {
  animation-delay: .35s;
}

.reveal.visible .gifts__item:nth-child(8) {
  animation-delay: .4s;
}

.reveal.visible .gallery__item:nth-child(1) {
  animation-delay: .05s;
}

.reveal.visible .gallery__item:nth-child(2) {
  animation-delay: .1s;
}

.reveal.visible .gallery__item:nth-child(3) {
  animation-delay: .15s;
}

.reveal.visible .gallery__item:nth-child(4) {
  animation-delay: .2s;
}

.reveal.visible .gallery__item:nth-child(5) {
  animation-delay: .25s;
}

.reveal.visible .gallery__item:nth-child(6) {
  animation-delay: .3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (min-width: 768px) {
  :root {
    --section-py: 3rem;
    --section-px: 2rem;
  }

  .gifts__grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 520px;
  }

  .gallery__grid {
    gap: .6rem;
  }
}

@media (max-width: 360px) {
  .countdown__grid {
    gap: .4rem;
  }

  .countdown__number {
    font-size: 1.4rem;
  }

  .btn--rsvp {
    padding: .8rem 1.8rem;
    font-size: .85rem;
  }
}