:root {
  --gold: #d6aa45;
  --deep: #19120c;
  --wine: #5d1828;
  --cream: #fff7e8;
  --soft: #f5ead5;
  --text: #33281f;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(30, 16, 5, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
}

h1, h2, .brand, blockquote { font-family: 'Cinzel', serif; }

.hero {
  min-height: 100vh;
  color: var(--white);
  background:
    linear-gradient(rgba(20, 10, 5, 0.72), rgba(20, 10, 5, 0.76)),
    url('images/church.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '✠';
  position: absolute;
  right: 6%;
  bottom: -6rem;
  font-size: 24rem;
  color: rgba(214, 170, 69, 0.12);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  position: relative;
  z-index: 2;
  gap: 1rem;
}
.nav-links { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.brand { font-size: 1.25rem; font-weight: 700; color: var(--gold); }
.nav-btn, .secondary-btn {
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.hero-content {
  width: min(920px, 88%);
  margin: 10vh auto 0;
  text-align: center;
  position: relative;
  z-index: 2;
}
.eyebrow, .section-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.7rem);
  line-height: 1.03;
  margin: 1rem 0;
}
.subtitle { font-size: 1.18rem; line-height: 1.75; opacity: 0.95; }
.hero-actions { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.primary-btn {
  border: none;
  background: linear-gradient(135deg, var(--gold), #f1d78b);
  color: #21160c;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.primary-btn:hover, .secondary-btn:hover, .nav-btn:hover { transform: translateY(-1px); }

.countdown-card {
  margin: 2rem auto 0;
  max-width: 760px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 1.6rem;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}
.countdown-card p { margin: 0 0 1rem; color: #f8e4a8; font-weight: 700; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.countdown-grid div { background: rgba(0,0,0,0.24); border-radius: 1.2rem; padding: .9rem .6rem; }
.countdown-grid strong { display: block; font-size: clamp(1.8rem, 4vw, 3rem); font-family: 'Cinzel', serif; color: var(--gold); }
.countdown-grid span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.countdown-card small { display: block; margin-top: .75rem; opacity: .85; }

.section { padding: 6rem 8%; }
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: center; }
.section h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0.5rem 0 1rem; color: var(--deep); }
.section p { line-height: 1.9; font-size: 1.04rem; }
.image-card {
  min-height: 450px;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--wine), var(--deep));
  display: grid;
  place-items: center;
}
.image-card img { width: 100%; height: 100%; object-fit: cover; }
.fallback-cross::before { content: '✠'; font-size: 12rem; color: var(--gold); opacity: 0.85; }

.quote-band {
  background: var(--wine);
  color: var(--white);
  text-align: center;
  padding: 4rem 8%;
}
.quote-band blockquote { font-size: clamp(1.7rem, 4vw, 3rem); margin: 0 auto 1rem; max-width: 980px; transition: opacity .45s ease, transform .45s ease; }
.quote-band span { color: var(--gold); font-weight: 700; transition: opacity .45s ease, transform .45s ease; }
.fade-out { opacity: 0; transform: translateY(10px); }

.music-section { background: var(--deep); color: var(--white); }
.music-section h2 { color: var(--white); }
.music-card {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2rem;
  padding: 2rem;
}

.form-section { background: linear-gradient(180deg, var(--cream), var(--soft)); }
.message-bg { background: var(--cream); }
.form-intro { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.message-form {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.field-group { display: flex; flex-direction: column; gap: 0.45rem; }
.field-group.full, .full-btn, .status { grid-column: 1 / -1; }
label { font-weight: 700; color: var(--deep); }
input, textarea, select {
  width: 100%;
  border: 1px solid #decba4;
  border-radius: 1rem;
  padding: 1rem;
  font: inherit;
  background: #fffdf8;
}
textarea { resize: vertical; }
.status { margin: 0; font-weight: 700; }
.status.success { color: #146c2e; }
.status.error { color: #a31f1f; }

.map-section { background: var(--soft); }
.map-card {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 8px solid var(--white);
}
.map-card iframe { width: 100%; height: 460px; border: 0; display: block; }

.footer {
  background: var(--deep);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}
.footer a { color: var(--gold); font-weight: 700; }

.admin-body { background: var(--soft); }
.admin-wrap { padding: 3rem 6%; }
.admin-login, .messages-toolbar {
  background: var(--white);
  border-radius: 1.4rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.admin-login h1 { margin-top: 0; color: var(--wine); }
.admin-row { display: flex; gap: 1rem; }
.admin-row input { flex: 1; }
.messages-toolbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.messages-toolbar .secondary-btn { color: var(--deep); border-color: var(--gold); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.messages-list { display: grid; gap: 1rem; }
.message-card {
  background: var(--white);
  border-radius: 1.4rem;
  padding: 1.2rem;
  box-shadow: 0 12px 34px rgba(30, 16, 5, 0.1);
  border-left: 5px solid var(--gold);
}
.rsvp-card { border-left-color: var(--wine); }
.message-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.message-top h3 { margin: 0; color: var(--wine); }
.message-top p, .message-top span { margin: .25rem 0 0; font-size: .9rem; opacity: .8; }
.message-text { white-space: normal; }
.email { font-weight: 700; }
.delete-btn {
  border: 0;
  color: white;
  background: #9e1f2f;
  border-radius: 999px;
  padding: .65rem 1rem;
  cursor: pointer;
}

#rsvp,
#felicitation {
  text-align: center;
}

.rsvp-button {
  display: inline-block;
  margin: 20px auto;
  padding: 14px 30px;
  background-color: #d4af37;
  color: #1f130d;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
}
.empty { background: rgba(255,255,255,.65); padding: 1rem; border-radius: 1rem; }

@media (max-width: 820px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .hero-content { margin-top: 5vh; }
  .two-col, .admin-grid { grid-template-columns: 1fr; }
  .message-form { grid-template-columns: 1fr; padding: 1.25rem; }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .music-card { flex-direction: column; text-align: center; }
  .admin-row { flex-direction: column; }
  .section { padding: 4rem 6%; }
}

@media print {
  .admin-login, .delete-btn, .footer, .primary-btn, .secondary-btn { display: none !important; }
  .admin-grid { grid-template-columns: 1fr; }
  .message-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}
