/* ============================================================
   Emily's Quinceañera RSVP — Theme
   Deep Navy & Gold / Starry Night
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Custom Properties ─────────────────────────────────── */
:root {
  --bg:        #04091e;
  --text:      #f4f6ff;
  --muted:     #8fa3cc;
  --gold:      #d7b24a;
  --gold2:     #f2d57a;
  --gold-dim:  rgba(215, 178, 74, 0.28);
  --gold-glow: rgba(215, 178, 74, 0.12);
  --danger:    #ffb4b4;
  --card-bg:   rgba(8, 22, 50, 0.88);
  --serif:     'Playfair Display', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background ────────────────────────────────────────── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 1300px 750px at 10% 5%,  #0d2655 0%, transparent 55%),
    radial-gradient(ellipse 700px  500px at 90% 88%, #091840 0%, transparent 50%),
    radial-gradient(ellipse 900px  600px at 50% 50%, #050d26 0%, var(--bg) 100%);
}

/* ── Animations ────────────────────────────────────────── */
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.4); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Page Wrapper ──────────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  padding: 13px 20px;
  border-bottom: 1px solid var(--gold-dim);
  background: rgba(4, 9, 30, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 200;
}
.brand-icon   { font-size: 20px; line-height: 1; }
.brand-title  { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--gold2); letter-spacing: 0.3px; margin: 0; }
.brand-sub    { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; margin: 0; }

/* ── Main ──────────────────────────────────────────────── */
.main-content {
  flex: 1;
  padding: 36px 16px 64px;
  animation: fade-in-up 0.4s ease both;
}

/* ── Cards ─────────────────────────────────────────────── */
.card-main {
  background: var(--card-bg);
  border: 1px solid var(--gold-dim);
  border-radius: 22px;
  padding: 28px 26px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(215,178,74,0.04);
}

/* ── Typography ────────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 0 0 6px;
}
.display-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--gold2);
  margin: 0 0 10px;
  line-height: 1.15;
}
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 20px 0 8px;
}
h3 { font-family: var(--serif); color: var(--gold2); font-size: 1.2rem; margin: 24px 0 12px; }
h4 { font-family: var(--serif); color: var(--gold2); font-size: 1rem; margin: 0 0 12px; }

/* ── Gold Divider ──────────────────────────────────────── */
.gold-divider { border: none; border-top: 1px solid var(--gold-dim); margin: 24px 0; }

/* ── Photos ────────────────────────────────────────────── */
.photo-frame {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 2px solid var(--gold-dim);
  box-shadow: 0 16px 48px rgba(0,0,0,0.65), 0 0 30px var(--gold-glow);
  object-fit: cover;
}
.photo-circle {
  display: block;
  border-radius: 50%;
  border: 3px solid var(--gold-dim);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 20px var(--gold-glow);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* ── Schedule ──────────────────────────────────────────── */
.schedule-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-time  { color: var(--gold); font-weight: 600; min-width: 120px; flex-shrink: 0; }
.schedule-event { color: var(--text); }

/* ── Padrinos ──────────────────────────────────────────── */
.padrinos-section {
  background: rgba(215,178,74,0.04);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 26px;
  margin-top: 28px;
}
.padrinos-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold2);
  text-align: center;
  margin: 0 0 5px;
}
.padrinos-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 20px;
  font-style: italic;
}
.padrino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}
.padrino-card {
  background: rgba(215,178,74,0.06);
  border: 1px solid rgba(215,178,74,0.18);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s, background 0.2s;
}
.padrino-card:hover { border-color: rgba(215,178,74,0.4); background: rgba(215,178,74,0.1); }
.padrino-cat  { font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gold); font-weight: 700; margin-bottom: 5px; }
.padrino-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }

/* ── Form Controls ─────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.22);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(215,178,74,0.5);
  box-shadow: 0 0 0 3px rgba(215,178,74,0.08);
}
select         { background: #04122b; border-color: rgba(215,178,74,0.35); color: #fff; }
select option  { background: #0b1e44; color: #fff; }
textarea       { resize: vertical; }
::placeholder  { color: rgba(255,255,255,0.28); }

/* ── Option Rows ───────────────────────────────────────── */
.option-group { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.15);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.option-row:hover { border-color: rgba(215,178,74,0.35); }
.option-row:has(input:checked) {
  border-color: rgba(215,178,74,0.55);
  background: rgba(215,178,74,0.1);
}
.option-row input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--gold); margin: 0; }
.option-row span  { font-size: 15px; line-height: 1.2; }

/* ── Attendee Block ────────────────────────────────────── */
.attendee-block {
  background: rgba(215,178,74,0.04);
  border: 1px solid rgba(215,178,74,0.15);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 12px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid rgba(215,178,74,0.6);
  background: linear-gradient(145deg, rgba(215,178,74,0.35), rgba(242,213,122,0.2));
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.12s, box-shadow 0.15s;
  letter-spacing: 0.3px;
}
.btn-gold:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(215,178,74,0.22);
  color: #fff;
  text-decoration: none;
}
.btn-gold:active { transform: translateY(0); }
.btn-gold-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-gold-sm:hover { border-color: var(--gold); color: var(--gold2); text-decoration: none; }

/* ── Alerts ────────────────────────────────────────────── */
.flash-area { margin-bottom: 18px; }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; font-size: 14px; }
.alert.error { background: rgba(255,100,100,0.1); border: 1px solid rgba(255,100,100,0.3); color: var(--danger); }
.alert.info  { background: rgba(215,178,74,0.1);  border: 1px solid var(--gold-dim);        color: var(--gold2); }
.warn  { color: var(--danger); }
.muted { color: var(--muted); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--gold-dim);
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  background: rgba(4,9,30,0.6);
  line-height: 1.9;
}

/* ── Language Toggle ───────────────────────────────────── */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--gold-dim);
  background: rgba(215,178,74,0.08);
  color: var(--gold2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.lang-toggle-btn:hover {
  border-color: var(--gold);
  background: rgba(215,178,74,0.16);
  color: var(--gold2);
  text-decoration: none;
}

/* ── Utility ───────────────────────────────────────────── */
.text-gold  { color: var(--gold2); }
.text-muted { color: var(--muted); }
