/* v6.25 — revisão final das molduras, tipografia, alinhamento e movimento. */

:root {
  --frame-gold: rgba(194, 137, 39, .86);
  --frame-gold-soft: rgba(225, 190, 121, .78);
  --frame-paper: rgba(255, 252, 246, .94);
  --frame-radius: 18px;
}

.invitation-card {
  width: min(calc(100% - 36px), 630px);
}

.event-panel {
  gap: 14px;
  margin-top: 14px;
}

.ornate-frame,
.hero-copy {
  border: 1.25px solid var(--frame-gold);
  border-radius: var(--frame-radius);
  background: linear-gradient(180deg, rgba(255, 253, 248, .96), rgba(250, 241, 224, .88));
  box-shadow:
    inset 0 0 0 4px var(--frame-paper),
    inset 0 0 0 5px var(--frame-gold-soft),
    0 6px 18px rgba(91, 70, 53, .075);
}

.venue-block {
  border-radius: var(--frame-radius);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, .58),
    inset 0 0 0 5px rgba(120, 168, 198, .32),
    0 6px 18px rgba(36, 120, 181, .07);
}

.frame-corners {
  inset: 0;
  opacity: .94;
}

.frame-corner {
  width: 48px;
  height: 48px;
  color: var(--frame-gold);
}

.corner-tl { top: 4px; left: 4px; }
.corner-tr { top: 4px; right: 4px; }
.corner-bl { bottom: 4px; left: 4px; }
.corner-br { right: 4px; bottom: 4px; }

.frame-dashed {
  inset: 9px;
  border: 1px dashed rgba(194, 137, 39, .62);
  border-radius: 12px;
}

.hero-copy .frame-dashed,
.venue-block .frame-dashed {
  inset: 9px;
  border-radius: 12px;
}

.frame-emblem {
  top: 4px;
  width: 26px;
  height: 26px;
  border-color: var(--frame-gold);
}

.ornate-frame > :not(.frame-corners),
.hero-copy > :not(.frame-corners),
.venue-block > :not(.frame-corners) {
  position: relative;
  z-index: 2;
}

.event-fact-unified {
  min-height: 116px;
  padding: 37px 14px 12px;
}

.event-fact-header {
  width: min(100%, 230px);
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  column-gap: 6px;
}

.event-fact-header small {
  font-size: 10px;
  letter-spacing: .13em;
  text-align: center;
}

.event-fact-unified > strong {
  margin-top: 2px;
  font-size: clamp(28px, 7.7vw, 33px);
  line-height: 1;
  text-align: center;
}

.event-fact-meta {
  margin-top: 5px;
  font-size: clamp(14px, 4vw, 16px);
  line-height: 1.1;
  text-align: center;
}

.countdown {
  min-height: 124px;
  padding: 38px 10px 12px;
}

.section-kicker {
  margin-bottom: 12px;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-align: center;
}

.countdown-value {
  font-size: clamp(31px, 8.6vw, 38px);
  line-height: .82;
}

.countdown-unit span {
  margin-top: 9px;
  font-size: 8.5px;
  letter-spacing: .055em;
}

.gift-block {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 126px;
  padding: 38px 8px 13px;
}

.gift-block::after {
  width: 44px;
}

.gift-block > i {
  font-size: 31px !important;
}

.gift-content {
  display: grid;
  min-width: 0;
  justify-items: center;
}

.gift-block small,
.pix-heading small,
.venue-copy small {
  font-size: 9.5px;
  letter-spacing: .13em;
  text-align: center;
}

.gift-block strong {
  margin-top: 2px;
  color: var(--rose-deep);
  font-size: clamp(23px, 6.35vw, 27px);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
}

.gift-reminder {
  width: min(100%, 290px);
  min-height: 31px;
  margin-top: 8px;
  padding: 5px 10px;
}

.gift-reminder .gift-note {
  font-size: clamp(8.5px, 2.35vw, 10px);
  line-height: 1.15;
  text-align: center;
}

.pix-block {
  min-height: 222px;
  padding: 38px 11px 13px;
}

.pix-heading {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 7px;
  margin: 0 auto 8px;
  text-align: center;
}

.pix-icon {
  position: static;
  display: grid;
  transform: none;
  place-items: center;
}

.pix-heading-copy {
  width: auto;
  margin: 0;
  text-align: center;
}

.pix-heading-balance {
  display: block;
  width: 38px;
  height: 1px;
}

.pix-heading small {
  margin-bottom: 4px;
}

.pix-heading strong {
  font-size: clamp(23px, 6.35vw, 27px);
  line-height: 1.04;
  text-align: center;
}

.pix-copy {
  max-width: 340px;
  margin-bottom: 9px;
  font-size: clamp(12px, 3.35vw, 13.5px);
  line-height: 1.28;
  text-align: center;
}

.pix-data {
  border-radius: 9px;
}

.pix-row {
  grid-template-columns: 84px minmax(0, 1fr);
  min-height: 34px;
}

.pix-row > span {
  justify-content: center;
  padding-inline: 7px;
  font-size: 9px;
  text-align: center;
}

.pix-row strong {
  padding: 7px 9px;
  font-size: clamp(10px, 2.8vw, 12px);
  line-height: 1.2;
  text-align: left;
}

.copy-pix,
.map-button {
  min-height: 44px;
  border-radius: 999px;
}

.venue-block {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  min-height: 150px;
  padding: 38px 12px 13px;
}

.venue-block .frame-corner {
  width: 44px;
  height: 44px;
}

.venue-icon {
  grid-column: 1;
  grid-row: 1;
}

.venue-icon i {
  font-size: 36px !important;
}

.venue-copy {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

.venue-copy strong {
  font-size: clamp(15px, 4.1vw, 17px);
  line-height: 1.12;
  text-wrap: balance;
}

.venue-copy > span {
  margin-top: 2px;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.12;
}

.map-button {
  grid-column: 1 / -1;
  width: calc(100% - 12px);
  justify-self: center;
  margin-top: 9px;
}

.rsvp-button {
  min-height: 76px;
  border-radius: 18px;
}

.rsvp-button strong {
  font-size: clamp(23px, 6.45vw, 31px);
  line-height: 1.08;
  text-align: center;
}

.rsvp-button small {
  margin-top: 5px;
  text-align: center;
}

.copy-pix:focus-visible,
.map-button:focus-visible,
.rsvp-button:focus-visible,
.modal-close:focus-visible,
.submit-button:focus-visible {
  outline: 3px solid rgba(36, 120, 181, .35);
  outline-offset: 3px;
}

@media (max-width: 699px) {
  .invitation-card {
    width: calc(100% - 36px);
  }

  .hero-copy {
    width: 100%;
    padding-inline: 25px;
    font-size: clamp(13.8px, 3.75vw, 15.5px);
    line-height: 1.28;
  }

  .name-plaque {
    width: 100%;
  }

  .event-panel {
    gap: 14px;
    margin-top: 14px;
  }

  .frame-corner {
    width: 44px;
    height: 44px;
  }

  .frame-dashed,
  .hero-copy .frame-dashed,
  .venue-block .frame-dashed {
    inset: 8px;
    border-radius: 11px;
  }

  .event-fact-unified {
    min-height: 116px;
    padding: 37px 10px 11px;
  }

  .gift-block {
    min-height: 126px;
    padding: 38px 6px 12px;
  }

  .pix-block {
    min-height: 222px;
    padding: 38px 8px 12px;
  }

  .venue-block {
    min-height: 150px;
    padding: 38px 9px 12px;
  }
}

@media (max-width: 359px) {
  .invitation-card {
    width: calc(100% - 28px);
  }

  .frame-corner {
    width: 39px;
    height: 39px;
  }

  .frame-emblem {
    width: 23px;
    height: 23px;
  }

  .event-fact-header {
    width: min(100%, 206px);
    grid-template-columns: 24px minmax(0, 1fr) 24px;
  }

  .gift-block {
    grid-template-columns: 35px minmax(0, 1fr) 35px;
  }

  .gift-block::after {
    width: 35px;
  }

  .gift-reminder {
    gap: 4px;
    padding-inline: 6px;
  }

  .pix-heading {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 4px;
  }

  .pix-heading-balance {
    width: 34px;
  }

  .pix-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .venue-block {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .copy-pix:hover i,
  .map-button:hover i {
    transform: translateX(2px) scale(1.05);
  }

  .copy-pix i,
  .map-button i {
    transition: transform .25s ease;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ornate-frame,
  .hero-copy,
  .venue-block {
    animation-name: none;
  }

  .frame-corners {
    animation: corners-glow 6.5s ease-in-out 2;
  }

  .frame-emblem {
    animation: emblem-glow 6.5s ease-in-out 2;
  }

  .gift-reminder > .ph {
    transform-origin: 50% 15%;
    animation: reminder-ring 4.6s ease-in-out 1.8s 2;
  }

  .pix-icon .ph-fill {
    animation: pix-heartbeat 4.4s ease-in-out 1.2s 2;
  }

  .rsvp-button > .ph {
    animation: envelope-float 4.2s ease-in-out 1.5s 2;
  }

  @keyframes reminder-ring {
    0%, 78%, 100% { transform: rotate(0); }
    82% { transform: rotate(-10deg); }
    86% { transform: rotate(10deg); }
    90% { transform: rotate(-6deg); }
    94% { transform: rotate(4deg); }
  }

  @keyframes pix-heartbeat {
    0%, 72%, 100% { transform: scale(1); }
    78% { transform: scale(1.1); }
    84% { transform: scale(.98); }
    90% { transform: scale(1.07); }
  }

  @keyframes envelope-float {
    0%, 72%, 100% { transform: translateY(0); }
    82% { transform: translateY(-3px); }
    90% { transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame-corners,
  .frame-emblem,
  .gift-reminder > .ph,
  .pix-icon .ph-fill,
  .rsvp-button > .ph {
    animation: none !important;
  }
}
