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

:root {
  --green:        #55684a;
  --green-dark:   #36422f;
  --green-light:  #8da07e;
  --beige:        #f5efe4;
  --beige-mid:    #ede4d3;
  --cream:        #fdfaf5;
  --gold:         #c8924a;
  --gold-light:   #ddb070;
  --gold-dark:    #a57338;
  --text-dark:    #2a3625;
  --text-mid:     #4a5a40;
  --text-soft:    #7a8a70;
  --glass:        rgba(253, 250, 245, 0.92);
  --radius-card:  22px;
  --radius-pill:  999px;
  --shadow-soft:  0 8px 32px rgba(42, 54, 37, 0.10);
  --shadow-mid:   0 18px 50px rgba(42, 54, 37, 0.15);
  --shadow-deep:  0 28px 70px rgba(42, 54, 37, 0.22);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Libre Baskerville', Georgia, serif;
  background: var(--beige);
  color: var(--text-dark);
}

/* ── Shared Divider ──────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px auto;
}
.divider .line {
  height: 1px;
  width: 52px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.divider .line:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}
.divider .ornament {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.85;
}

/* ── Landing Screen ──────────────────────────────────── */
.landing {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--beige);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: url('assets/background.png') center / cover no-repeat;
  opacity: 0.28;
}
.bg-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 239, 228, 0.05) 0%,
    rgba(245, 239, 228, 0.55) 100%
  );
}

/* ── Title Box ───────────────────────────────────────── */
.title-box {
  position: absolute;
  top: 6%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  padding: 0 22px;
  animation: titleIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes titleIn {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.label-top {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.95rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.title-box h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 5.2rem;
  font-weight: 400;
  color: var(--green-dark);
  line-height: 1.0;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.95);
  margin: 4px 0 2px;
}

.tagline {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.55;
  margin-top: 6px;
}

.hint {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-top: 12px;
}

/* ── Envelope ────────────────────────────────────────── */
.envelope-area {
  position: absolute;
  left: 50%;
  bottom: 28%;
  transform: translateX(-50%);
  width: min(80vw, 400px);
  height: min(52vw, 265px);
  border: none;
  background: none;
  cursor: pointer;
  perspective: 1200px;
  animation: envFloat 3.8s ease-in-out infinite;
}

@keyframes envFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-14px); }
}

.envelope {
  position: absolute;
  inset: 0;
  filter:
    drop-shadow(0 28px 50px rgba(28, 36, 18, 0.26))
    drop-shadow(0 6px 14px rgba(28, 36, 18, 0.12));
  transition: filter 0.4s ease;
}

.envelope-area:hover .envelope {
  filter:
    drop-shadow(0 38px 68px rgba(28, 36, 18, 0.34))
    drop-shadow(0 8px 20px rgba(28, 36, 18, 0.16));
}

/* Envelope body */
.front {
  position: absolute;
  inset: 0;

   background: linear-gradient(
    180deg,
    #bcc7b0 0%,
    #9faf95 50%,
    #7f9174 100%
  );


  border-radius: 18px;
  overflow: hidden;
}

/* Diamond-fold lines from top corners converging toward the centre */
.front::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom right,
      rgba(145, 108, 55, 0.10) 49.8%, transparent 50.2%),
    linear-gradient(to bottom left,
      rgba(145, 108, 55, 0.10) 49.8%, transparent 50.2%);
  border-radius: 18px;
}

/* Bottom-V fold crease */
.front::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 58%;
  background: rgba(138, 103, 50, 0.07);
  clip-path: polygon(0 100%, 50% 1%, 100% 100%);
}

/* Envelope flap */
.flap {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 60%;
    background: linear-gradient(
    180deg,
    #bcc7b0 0%,
    #9faf95 50%,
    #7f9174 100%
  );
  clip-path: polygon(0 0, 50% 82%, 100% 0);
  transform-origin: top;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 5;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
/* ── Girassol ────────────────────────────────────────── */

.sunflower-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 124px;
  height: 124px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-choice{
  display:none;
  margin-top:20px;
  animation:fadeIn .3s ease;
}

.whatsapp-choice h4{
  text-align:center;
  margin-bottom:15px;
  color:#556b4f;
  font-size:18px;
}

.choice-btn{
  width:100%;
  border:none;
  cursor:pointer;
  margin-bottom:12px;
  padding:16px;
  border-radius:999px;
  background:linear-gradient(90deg,#5d744f,#2d3c24);
  color:#fff;
  font-size:16px;
  font-weight:600;
  transition:.2s;
}

.choice-btn:hover{
  transform:translateY(-2px);
}

@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
/* cada pétala */
.sunflower-seal span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 58px;
  border-radius: 50% 50% 46% 46%;
  transform-origin: 50% 88%;

  background: linear-gradient(
    180deg,
    #ffe27a 0%,
    #ffc93c 45%,
    #e9a11f 100%
  );

  box-shadow:
    inset 4px 5px 6px rgba(255,255,255,0.40),
    inset -3px -5px 6px rgba(185,115,0,0.20),
    0 5px 8px rgba(0,0,0,0.16);
}
/* vinco suave no centro de cada pétala */
.sunflower-seal span::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 12%;
  width: 2px;
  height: 62%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(188, 122, 0, 0.16);
}

/* posição das pétalas */
.sunflower-seal span:nth-child(1)  { transform: translate(-50%, -88%) rotate(0deg); }
.sunflower-seal span:nth-child(2)  { transform: translate(-50%, -88%) rotate(30deg); }
.sunflower-seal span:nth-child(3)  { transform: translate(-50%, -88%) rotate(60deg); }
.sunflower-seal span:nth-child(4)  { transform: translate(-50%, -88%) rotate(90deg); }
.sunflower-seal span:nth-child(5)  { transform: translate(-50%, -88%) rotate(120deg); }
.sunflower-seal span:nth-child(6)  { transform: translate(-50%, -88%) rotate(150deg); }
.sunflower-seal span:nth-child(7)  { transform: translate(-50%, -88%) rotate(180deg); }
.sunflower-seal span:nth-child(8)  { transform: translate(-50%, -88%) rotate(210deg); }
.sunflower-seal span:nth-child(9)  { transform: translate(-50%, -88%) rotate(240deg); }
.sunflower-seal span:nth-child(10) { transform: translate(-50%, -88%) rotate(270deg); }
.sunflower-seal span:nth-child(11) { transform: translate(-50%, -88%) rotate(300deg); }
.sunflower-seal span:nth-child(12) { transform: translate(-50%, -88%) rotate(330deg); }

/* centro castanho */
.sunflower-center {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  z-index: 3;

  background:
    radial-gradient(circle at 34% 30%,
      #9a6338 0%,
      #7a4726 38%,
      #4c2815 75%,
      #34180c 100%
    );

  box-shadow:
    inset 4px 5px 6px rgba(255,255,255,0.12),
    inset -5px -6px 9px rgba(0,0,0,0.35),
    0 5px 10px rgba(0,0,0,0.25);
}

/* textura do centro */
.sunflower-center::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;

  background-image:
    radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.5px);

  background-size: 6px 6px;
  opacity: 0.55;
}

.scroll-hint{
  text-align:center;
  margin:18px 0 22px;
  color:#8a6b5c;
  animation:bounce 2s infinite;
}

.scroll-hint .arrow{
  display:block;
  font-size:2rem;
  line-height:1;
}

.scroll-hint p{
  margin:4px 0 0;
  font-size:0.9rem;
  letter-spacing:.3px;
}

.guest-field{
  margin-bottom:20px;
}

.prato-label{
  margin-top:10px;
  display:block;
}

.guest-field select{
  width:100%;
  padding:12px;
  border:1px solid #ddd;
  border-radius:12px;
  font-size:15px;
}

@keyframes bounce{
  0%,20%,50%,80%,100%{
    transform:translateY(0);
  }
  40%{
    transform:translateY(6px);
  }
  60%{
    transform:translateY(3px);
  }
}

/* mobile */
@media (max-width: 480px) {
  .sunflower-seal {
    width: 96px;
    height: 96px;
  }

  .sunflower-seal span {
    width: 25px;
    height: 46px;
  }

  .sunflower-center {
    width: 44px;
    height: 44px;
  }
}
/* Wax seal */
.seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #f2c96a 0%, #c98c1e 44%, #9e6c18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  box-shadow:
    0 7px 26px rgba(0, 0, 0, 0.28),
    0 2px 7px rgba(0, 0, 0, 0.14),
    inset 0 2px 0 rgba(255, 250, 215, 0.42),
    inset 0 -3px 8px rgba(0, 0, 0, 0.22);
  outline: 2.5px solid rgba(172, 122, 34, 0.40);
  outline-offset: 5px;
  transition: transform 0.3s ease, outline-color 0.3s ease;
}

.envelope-area:hover .seal {
  transform: translate(-50%, -50%) scale(1.08);
  outline-color: rgba(210, 158, 50, 0.62);
}

/* Monogram text on the wax seal */
.seal-mono {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 248, 220, 0.96);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.40);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.seal-mono em {
  font-style: italic;
  font-size: 0.64rem;
  opacity: 0.80;
  margin: 0 1px;
}

.landing.open .flap {
  transform: rotateX(180deg);
}
.landing.fade {
  opacity: 0;
  transition: opacity 0.9s ease;
}

/* ── Invite Screen ───────────────────────────────────── */
.invite-screen {
  display: none;
  height: 100svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 16px 44px;
  background:
    linear-gradient(rgba(245, 240, 231, 0.93), rgba(245, 240, 231, 0.96)),
    url('assets/background.png') center / cover no-repeat;
}

.invite-card {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  animation: cardIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card Header ─────────────────────────────────────── */
.card-header {
  text-align: center;
  margin-bottom: 18px;
}

.card-eyebrow {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.82rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 2px;
}

.card-names {
  font-family: 'Great Vibes', cursive;
  font-size: 3.6rem;
  font-weight: 400;
  color: var(--green-dark);
  line-height: 1;
  margin: 22px 0 2px;
}

.field select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #93a084;
  border-radius: 18px;
  background: rgba(255,255,255,0.35);
  color: #56624f;
  font-size: 1rem;
  font-family: Libre Baskerville;
  outline: none;
  transition: all 0.25s ease;
  margin-top: 6px;
}

.field select:focus {
  border-color: #5f7352;
  box-shadow: 0 0 0 3px rgba(95, 115, 82, 0.12);
}

.field label {
  display: block;
  margin-bottom: 8px;
}

[id^="pratoContainer"] {
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}
.continue-hint{
  position: sticky;
  bottom: 15px;

  width: fit-content;
  margin: 30px auto 20px;
  padding: 6px 14px;

  background: rgba(122, 86, 44, 0.55);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9999px;

  color: rgba(255,255,255,.95);

  font-size: 1.8rem;
  line-height: 1;

  box-shadow: 0 4px 12px rgba(0,0,0,.08);

  animation: bounce 1.5s infinite;
  z-index: 10;

  transition: opacity .3s ease;
}

@keyframes bounce{
  0%,100%{
    transform: translateY(0);
  }
  50%{
    transform: translateY(6px);
  }
}
@keyframes bounce{
  0%,100%{
    transform:translateY(0);
  }
  50%{
    transform:translateY(8px);
  }
}

/* ── Invitation Image ────────────────────────────────── */
.invite-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-deep);
}

/* ── Locations Panel ─────────────────────────────────── */
.locations-panel {
  margin-top: 16px;
  background: var(--glass);
  border-radius: var(--radius-card);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.panel-label {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  text-align: center;
  margin-bottom: 12px;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.loc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 10px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(42, 54, 37, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.loc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(42, 54, 37, 0.30);
}



/* ── RSVP Panel ──────────────────────────────────────── */
.rsvp-panel {
  margin-top: 14px;
  background: var(--glass);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.rsvp-header {
  text-align: center;
  padding: 22px 22px 0;
}
.rsvp-header h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--green-dark);
}
.rsvp-header p {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.88rem;
  font-style: normal;
  color: var(--text-soft);
  margin-top: 4px;
}

form {
  padding: 18px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

form input {
  width: 100%;

  padding: 18px 20px;

  border: 1px solid #d8d0c2;
  border-radius: 18px;

  background: #fdfaf5;

  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  color: var(--text-dark);

  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.guest-block{
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.guest-block:last-child{
  border-bottom: none;
  margin-bottom: 0;
}

.guest-block label{
  display:block;
  margin:12px 0 8px;
}

.guest-block select{
  margin-bottom: 0;
}

form{
  padding: 18px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.field{
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 0;
}

#nomesContainer{
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.field label {
  font-family: 'Libre Baskerville', serif;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

form input {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--beige-mid);
  background: var(--cream);
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
form input:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(85, 104, 74, 0.13);
}

form button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  margin-top: 2px;
}
form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(18, 140, 126, 0.38);
}

/* ── Desktop ─────────────────────────────────────────── */
@media (min-width: 760px) {
  .title-box h1 {
    font-size: 7.5rem;
  }
  .label-top {
    font-size: 1.05rem;
  }
  .tagline {
    font-size: 1.1rem;
  }
  .envelope-area {
    width: 62vw;
    max-width: 620px;
    height: auto;
    bottom: 6%;
  }
  .seal {
    width: 96px;
    height: 96px;
  }
  .seal-mono {
    font-size: 0.88rem;
  }
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .title-box {
    top: 5%;
  }
  .title-box h1 {
    font-size: 4rem;
  }
  .envelope-area {
    width: 84vw;
    bottom: 22%;
  }
  .seal {
    width: 62px;
    height: 62px;
  }
  .seal-mono {
    font-size: 0.68rem;
  }
  .card-names {
    font-size: 3rem;
  }
}


#pessoas{
  width:100%;
  padding:18px 20px;
  border:1px solid #a7b398;
  border-radius:18px;
  background:#f8f7f3;
  color:#5c6755;
  font-size:16px;
  outline:none;
  cursor:pointer;

  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%235c6755' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 15px center;
  padding-right:50px;
}

#pessoas:focus{
  border-color:#7c8f73;
}