:root {
  --navy: #2C3A5C;
  --blue-gray: #8A99AA;
  --pale-blue: #A7BBD0;
  --sand: #DABC9C;
  --offwhite: #FDF8F2;
  --ink: #243047;
  --muted: #6e7583;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(36, 48, 71, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  background: var(--offwhite);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1001;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 22px;
  box-shadow: var(--shadow);
}

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: rgba(44, 58, 92, .96);
  color: var(--white);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 22px;
  backdrop-filter: blur(12px);
}
.brand-mini {
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 32px;
  font-family: 'Great Vibes', cursive;
  font-size: 46px;
  background: rgba(255,255,255,.08);
}
.brand-mini small { font-size: 25px; color: var(--sand); }
.side-menu nav { display: flex; flex-direction: column; width: 100%; gap: 4px; }
.side-menu a {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  transition: .25s ease;
}
.side-menu a:hover,
.side-menu a.active { background: rgba(255,255,255,.12); color: var(--white); }

.page-content { margin-left: 260px; }
.section { position: relative; }
.section-full { min-height: 100vh; }
.padded { padding: 105px 7vw; }
.soft-bg {
  background:
    radial-gradient(circle at 10% 20%, rgba(167,187,208,.45), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(218,188,156,.24), transparent 26%),
    #f8f1e9;
}
.navy-bg {
  background:
    linear-gradient(135deg, rgba(44,58,92,.96), rgba(36,48,71,.98)),
    radial-gradient(circle at top right, rgba(167,187,208,.35), transparent 35%);
  color: var(--white);
}
.center { text-align: center; }

.hero {
    background-image: linear-gradient(
        rgba(44, 58, 92, 0.45),
        rgba(44, 58, 92, 0.45)
    ), url("../img/casal.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 46%, rgba(255,255,255,.10) 46% 47%, transparent 47% 100%),
    radial-gradient(circle at 12% 80%, rgba(253,248,242,.15), transparent 20%);
  opacity: .9;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 28px;
  color: var(--white);
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sand);
}
h1, h2, h3 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 600; }
h1 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(72px, 12vw, 150px);
  line-height: .85;
  text-shadow: 0 12px 45px rgba(0,0,0,.2);
}
h1 span { color: var(--sand); }
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 34px);
  margin: 28px auto;
  max-width: 760px;
}
.date-box {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 10px 22px;
  margin-bottom: 24px;
  background: rgba(255,255,255,.08);
}
.date-box span { font-size: 22px; font-weight: 700; }
.date-box small { text-transform: uppercase; letter-spacing: .18em; color: var(--offwhite); }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 30px;
}
.countdown div {
  padding: 16px 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
}
.countdown strong { display: block; font-size: clamp(28px, 4vw, 44px); }
.countdown span { font-size: 12px; text-transform: uppercase; letter-spacing: .13em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.primary { background: var(--sand); color: var(--navy); }
.secondary { background: var(--navy); color: var(--white); margin-top: 24px; }
.light-btn { background: var(--offwhite); color: var(--navy); }
.disabled { opacity: .6; pointer-events: none; }

.section-header { max-width: 780px; margin: 0 auto 54px; text-align: center; }
.section-header h2, .info-card h2, .gift-card h2, .final-card h2 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1;
  color: var(--navy);
}
.section-header p:not(.eyebrow), .info-card p, .gift-card p, .final-card p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.section-header.light h2, .section-header.light p:not(.eyebrow) { color: var(--white); }

.couple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.profile-card, .info-card, .gift-card, .final-card, .rsvp-form {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.profile-card { text-align: center; }
.photo-placeholder {
  height: 360px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(44,58,92,.2), rgba(218,188,156,.28)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.45) 0 8px, rgba(255,255,255,.2) 8px 16px);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 22px;
}
.profile-card h3 { font-size: 32px; color: var(--navy); }
.profile-card p { color: var(--muted); line-height: 1.8; }

.timeline {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.timeline-item {
  background: var(--white);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
  min-height: 260px;
}
.timeline-item span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--sand);
  font-weight: 700;
  margin-bottom: 22px;
}
.timeline-item h3 { font-size: 28px; color: var(--navy); }
.timeline-item p { color: var(--muted); line-height: 1.7; }

.info-card, .gift-card, .final-card { max-width: 920px; margin: 0 auto; text-align: center; }
.scripture { font-family: 'Cormorant Garamond', serif; font-size: 26px !important; color: var(--navy) !important; }
.scripture-ref { color: var(--sand) !important; font-weight: 700; }
.details-grid, .reception-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.details-grid div, .reception-box div {
  border-radius: 20px;
  padding: 22px;
  background: rgba(167,187,208,.18);
}
.details-grid strong, .reception-box strong { display: block; color: var(--navy); margin-bottom: 8px; }
.details-grid span, .reception-box span { color: var(--muted); line-height: 1.6; }
.reception-box { max-width: 920px; margin: 0 auto 30px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reception-box div { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); }
.reception-box strong, .reception-box span { color: var(--white); }

.people-grid, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
.person-placeholder, .gallery-item {
  min-height: 220px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(167,187,208,.35), rgba(218,188,156,.28));
  border: 1px solid rgba(255,255,255,.75);
  color: var(--navy);
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  box-shadow: var(--shadow);
}
.person-placeholder small { display: block; font-family: 'Montserrat', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; margin-top: 8px; }
.gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-item { min-height: 280px; }

.pix-box {
  display: grid;
  gap: 8px;
  max-width: 460px;
  margin: 28px auto;
  padding: 22px;
  border-radius: 24px;
  background: rgba(44,58,92,.06);
}
.pix-box span { color: var(--muted); }
.pix-box strong { color: var(--navy); font-size: 20px; }
.copy-btn {
  justify-self: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}

.rsvp-form { max-width: 860px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label { display: grid; gap: 9px; color: var(--navy); font-weight: 700; margin-bottom: 18px; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(44,58,92,.14);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(44,58,92,.08); }
.honeypot { display: none; }
.form-status { min-height: 24px; font-weight: 700; color: var(--navy); }
.signature { font-family: 'Great Vibes', cursive; font-size: 58px !important; color: var(--navy) !important; margin-bottom: 0; }
.site-footer { text-align: center; padding: 34px; background: var(--navy); color: rgba(255,255,255,.82); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(28px); transition: .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-grid, .reception-box { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .side-menu { transform: translateX(-100%); transition: transform .3s ease; }
  .side-menu.open { transform: translateX(0); }
  .page-content { margin-left: 0; }
  .padded { padding: 78px 22px; }
  .couple-grid, .form-row, .gallery-grid { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-placeholder { height: 280px; }
}
@media (max-width: 560px) {
  .hero-content { padding: 22px 16px; }
  .date-box { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  .timeline, .people-grid, .details-grid, .reception-box { grid-template-columns: 1fr; }
  .profile-card, .info-card, .gift-card, .final-card, .rsvp-form { padding: 24px; }
  .section-header h2, .info-card h2, .gift-card h2, .final-card h2 { font-size: 40px; }
}

/* Versão 1.1 - ajustes de organização, RSVP e acessibilidade */
.hidden-field { display: none; }
.hidden-field.show { display: block; }
.privacy-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.form-status.success { color: #276749; }
.form-status.error { color: #9b2c2c; }
.side-menu a.active {
  background: rgba(255,255,255,.16);
  color: var(--white);
}
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(218, 188, 156, .75);
  outline-offset: 3px;
}
@media print {
  .side-menu, .menu-toggle, .countdown, .btn, form { display: none !important; }
  .page-content { margin-left: 0 !important; }
  .section { min-height: auto !important; padding: 28px !important; }
}

/* Versão 1.2 - Área administrativa */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(167,187,208,.55), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(218,188,156,.35), transparent 28%),
    var(--offwhite);
}
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-card {
  width: min(100%, 460px);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-card h1,
.admin-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 72px);
  color: var(--navy);
  line-height: 1;
}
.admin-card p:not(.eyebrow),
.admin-header p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.admin-error {
  background: #fff5f5;
  color: #9b2c2c !important;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
}
.admin-panel { padding: 34px; }
.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.admin-stats div,
.admin-convites,
.admin-table-wrap {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.admin-stats div { padding: 22px; }
.admin-stats strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  line-height: 1;
  color: var(--navy);
}
.admin-stats span { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.admin-convites { padding: 22px; margin-bottom: 18px; }
.admin-convites h2 { font-size: 30px; color: var(--navy); margin-bottom: 14px; }
.admin-convites div { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-convites span {
  background: rgba(44,58,92,.07);
  color: var(--navy);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
}
.admin-table-wrap { overflow-x: auto; padding: 12px; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 13px;
}
.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(44,58,92,.10);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: var(--navy);
  background: rgba(44,58,92,.06);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
}
.status-pill.yes { background: #f0fff4; color: #276749; }
.status-pill.no { background: #fff5f5; color: #9b2c2c; }
.admin-empty { padding: 24px; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .admin-header { flex-direction: column; align-items: flex-start; }
  .admin-actions { justify-content: flex-start; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .admin-panel { padding: 18px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-card { padding: 24px; }
}


/* Versão 1.3 - Lista de presentes */
.gift-tools {
  max-width: 1060px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 1.2rem;
  align-items: center;
}

.gift-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
}

.gift-filter-btn {
  border: 1px solid rgba(44, 58, 92, .22);
  background: rgba(255,255,255,.74);
  color: var(--navy);
  border-radius: 999px;
  padding: .65rem 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: .25s ease;
}

.gift-filter-btn.active,
.gift-filter-btn:hover {
  background: var(--navy);
  color: var(--off-white);
}

.gift-list {
  max-width: 1120px;
  margin: 0 auto;
}

.gift-category {
  margin-bottom: 2.2rem;
}

.gift-category h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gift-item-card {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(44, 58, 92, .11);
  border-radius: 22px;
  padding: 1.1rem;
  box-shadow: 0 16px 45px rgba(44, 58, 92, .08);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-height: 172px;
}

.gift-item-card strong {
  color: var(--navy);
  line-height: 1.35;
}

.gift-status {
  width: fit-content;
  font-size: .75rem;
  font-weight: 700;
  padding: .32rem .68rem;
  border-radius: 999px;
}

.gift-status.disponível { background: rgba(167,187,208,.28); color: var(--navy); }
.gift-status.reservado { background: rgba(218,188,156,.35); color: #6f4d29; }
.gift-status.presenteado { background: rgba(44,58,92,.12); color: var(--navy); }

.gift-reserve-btn {
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  background: var(--sand);
  color: var(--navy);
  padding: .7rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: .25s ease;
}

.gift-reserve-btn:hover { transform: translateY(-2px); filter: brightness(.98); }
.gift-reserve-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.gift-loading,
.gift-empty {
  text-align: center;
  color: var(--navy);
  background: rgba(255,255,255,.72);
  border-radius: 22px;
  padding: 1.3rem;
}

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(21, 29, 48, .58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.gift-modal.open { display: flex; }

.gift-modal-content {
  width: min(560px, 100%);
  background: var(--off-white);
  border-radius: 28px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.22);
}

.gift-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(44,58,92,.09);
  color: var(--navy);
  font-size: 1.6rem;
  cursor: pointer;
}

.gift-modal-content h3 { color: var(--navy); margin-bottom: .35rem; }
.gift-modal-note { color: rgba(44,58,92,.72); margin-bottom: 1rem; }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.2rem 0;
}

.admin-tabs a {
  text-decoration: none;
  border-radius: 999px;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.75);
  color: var(--navy);
  font-weight: 700;
  border: 1px solid rgba(44,58,92,.12);
}

.admin-tabs a.active { background: var(--navy); color: var(--off-white); }

.admin-progress {
  margin: 1rem 0 1.5rem;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(44,58,92,.1);
  border-radius: 20px;
  padding: 1rem;
}
.admin-progress-bar {
  height: 14px;
  background: rgba(44,58,92,.13);
  border-radius: 999px;
  overflow: hidden;
}
.admin-progress-bar span {
  display: block;
  height: 100%;
  background: var(--sand);
  border-radius: 999px;
}
.admin-progress small { display: block; margin-top: .6rem; color: rgba(44,58,92,.74); }

.status-select {
  min-width: 140px;
  border: 1px solid rgba(44,58,92,.18);
  border-radius: 10px;
  padding: .5rem;
  background: #fff;
}

.admin-inline-form { display: flex; gap: .5rem; align-items: center; }
.admin-inline-form button { border: 0; border-radius: 10px; padding: .55rem .75rem; background: var(--navy); color: var(--off-white); font-weight: 700; cursor: pointer; }

@media (max-width: 980px) {
  .gift-tools { grid-template-columns: 1fr; }
  .gift-filter { justify-content: flex-start; }
  .gift-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .gift-grid { grid-template-columns: 1fr; }
  .gift-modal-content { padding: 1.5rem; }
}
