/* 
  CONVITE DIGITAL — LEO & ANA
  Editável: cores, fontes, textos, espaçamentos e imagens.
  Paleta pensada para champagne, nude, marfim, dourado acetinado e café.
*/

:root {
  --ivory: #f7f1e8;
  --paper: #fbf7ef;
  --champagne: #e7d2b3;
  --nude: #c8ad93;
  --rose: #b9857f;
  --gold: #b99563;
  --gold-soft: #d7bd8a;
  --espresso: #34281f;
  --graphite: #51463d;
  --shadow: rgba(52, 40, 31, 0.16);

  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, Avenir, Montserrat, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(231,210,179,.55), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(185,149,99,.18), transparent 28%),
    linear-gradient(145deg, var(--ivory), #efe4d5);
  color: var(--espresso);
  font-family: var(--sans);
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    repeating-radial-gradient(circle at 0 0, rgba(52,40,31,.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
  z-index: 1;
}

.site {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  padding: 32px 20px;
  display: grid;
  place-items: center;
}

.hero-card {
  width: min(440px, 100%);
  min-height: 78vh;
  padding: 46px 26px;
  border: 1px solid rgba(185,149,99,.34);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(251,247,239,.90), rgba(247,241,232,.76)),
    url("assets/paper-texture.png");
  box-shadow: 0 30px 80px var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-card::before { top: 34px; }
.hero-card::after { bottom: 34px; }

.seal-wrap {
  width: 182px;
  height: 182px;
  margin: 0 auto 30px;
  position: relative;
  display: grid;
  place-items: center;
}

.monogram {
  width: 170px;
  max-height: 170px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 10px 18px rgba(185,149,99,.22));
}

.seal-glow {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,189,138,.38), transparent 68%);
  animation: pulse 3.5s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
}

h1, h2, h3, .full-name {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(42px, 11vw, 66px);
  line-height: .92;
  margin: 0;
}

.date {
  margin: 22px 0 34px;
  color: var(--graphite);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

.open-btn, .primary-btn, .secondary-btn, .link-btn {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 24px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.open-btn, .primary-btn {
  background: var(--espresso);
  color: var(--paper);
  box-shadow: 0 14px 34px rgba(52,40,31,.22);
}

.secondary-btn, .link-btn {
  background: transparent;
  color: var(--espresso);
  border: 1px solid rgba(185,149,99,.52);
}

.open-btn:hover, .primary-btn:hover, .secondary-btn:hover, .link-btn:hover {
  transform: translateY(-2px);
}

.content {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 22px 20px 70px;
}

.panel, .date-block, .rsvp, .names, .info-card {
  background: rgba(251,247,239,.70);
  border: 1px solid rgba(185,149,99,.25);
  border-radius: 28px;
  padding: 34px 24px;
  box-shadow: 0 18px 44px rgba(52,40,31,.08);
  backdrop-filter: blur(8px);
}

.panel, .date-block, .rsvp, .names {
  margin: 22px 0;
  text-align: center;
}

.panel h2, .date-block h2, .rsvp h2 {
  font-size: clamp(34px, 8vw, 62px);
  line-height: .95;
  margin: 0 0 18px;
}

.panel p, .rsvp p, .info-card p {
  color: var(--graphite);
  line-height: 1.7;
}

.names {
  padding: 50px 20px;
}

.full-name {
  font-size: clamp(33px, 7vw, 58px);
  line-height: .95;
  margin: 0;
}

.names span {
  display: block;
  margin: 20px 0;
  font-family: var(--serif);
  font-size: 34px;
  color: var(--gold);
}

.countdown {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown div {
  border: 1px solid rgba(185,149,99,.25);
  border-radius: 18px;
  padding: 14px 6px;
  background: rgba(255,255,255,.30);
}

.countdown strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}

.countdown span {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 22px 0;
}

.info-card h3 {
  font-size: 34px;
  line-height: 1;
  margin: 0 0 14px;
}

.info-card .link-btn {
  margin-top: 14px;
}

.rsvp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

footer {
  padding: 44px 0 20px;
  text-align: center;
  color: var(--graphite);
}

.footer-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  opacity: .88;
}

.music-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(185,149,99,.34);
  background: rgba(251,247,239,.88);
  color: var(--espresso);
  box-shadow: 0 12px 30px rgba(52,40,31,.14);
}

.hidden { display: none !important; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
}

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

body.opened .hero {
  min-height: auto;
  padding-bottom: 0;
}

body.opened .hero-card {
  min-height: 54vh;
  animation: lift .8s ease both;
}

@keyframes pulse {
  0%, 100% { transform: scale(.96); opacity: .55; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes lift {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-12px); opacity: .96; }
}

@media (max-width: 740px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    border-radius: 30px;
  }

  .countdown strong {
    font-size: 24px;
  }
}
