:root {
  --gold: #c9a050;
  --gold-dim: rgba(201, 160, 80, 0.45);
  --dark: #000;
  --text: #f0ebe4;
  --muted: #9e9490;
  --border: rgba(201, 160, 80, 0.2);
  --radius: 6px;
  --nav-h: 64px;
  --serif: 'Playfair Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #000;
}

body {
  font-family: system-ui, sans-serif;
  color: var(--text);
  min-height: 100vh;
}

/* ---- Nav ---- */

#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(5, 2, 5, 0.94);
  border-bottom: 1px solid var(--gold-dim);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 16px;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: rgba(240, 235, 228, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--gold);
  background: rgba(201, 160, 80, 0.1);
}

.nav-link.active {
  color: var(--gold);
  font-weight: 600;
  background: rgba(201, 160, 80, 0.12);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ---- Sections ---- */

.page-section {
  min-height: calc(100vh - var(--nav-h));
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.hero-bg {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.18;
  display: block;
}

/* ---- Hero left: text ---- */

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 60px 24px;
}

.hero-ornament {
  color: var(--gold);
  letter-spacing: 0.6em;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.hero-pretext {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.hero-of {
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 6px;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  color: #fff;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: rgba(240, 235, 228, 0.7);
  margin-bottom: 40px;
}

.sep {
  margin: 0 14px;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Hero contact & directions ---- */

.hero-contact {
  margin-top: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: rgba(240, 235, 228, 0.7);
  font-size: 0.88rem;
  transition: color 0.15s;
}

.contact-item:hover { color: var(--gold); }

.contact-whatsapp svg { flex-shrink: 0; }

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  margin-top: 12px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  background: rgba(201, 160, 80, 0.06);
  transition: background 0.15s, border-color 0.15s;
}

.directions-link:hover {
  background: rgba(201, 160, 80, 0.14);
  border-color: var(--gold);
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--gold);
  color: #0a0305;
  border: 2px solid var(--gold);
}

.btn-primary:hover {
  background: #dab865;
  border-color: #dab865;
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: #0a0305;
}

/* ---- Section layout ---- */

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-inner.narrow {
  max-width: 520px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.ornament {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.section-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ---- Video ---- */

.video-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.6);
}

.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Carousel ---- */

.carousel {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.carousel-track-wrap {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-track img {
  min-width: 100%;
  height: auto;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2;
}

.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }
.carousel-btn:hover { background: rgba(201, 160, 80, 0.2); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(201, 160, 80, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active { background: var(--gold); }

@media (max-width: 520px) {
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-btn { background: rgba(0, 0, 0, 0.8); }
}

/* ---- Gallery carousel ---- */

#gallery-carousel .carousel-track img {
  height: 70vh;
  object-fit: contain;
  background: #000;
}

/* ---- Coming soon ---- */

.coming-soon {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
  padding: 80px 0;
}

/* ---- Program Brochures ---- */

.brochure-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
}

.brochure-img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

/* ---- RSVP form ---- */

#rsvp-form,
#rsvp-success {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}

.field {
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

label, legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(240, 235, 228, 0.85);
}

.req { color: var(--gold); }
.optional { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  transition: border-color 0.15s;
}

select option { background: #1a0e18; color: var(--text); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 160, 80, 0.12);
}

select { cursor: pointer; }
textarea { resize: vertical; }

.radio-group {
  display: flex;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.15s;
}

.radio-label input[type="radio"] { display: none; }

.radio-label:has(input:checked) {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0305;
  font-weight: 600;
}

.radio-label:hover:not(:has(input:checked)) {
  border-color: var(--gold);
  background: rgba(201, 160, 80, 0.1);
}

.required-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
}

button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: #0a0305;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.15s;
}

button[type="submit"]:hover { background: #dab865; }
button[type="submit"]:disabled { opacity: 0.65; cursor: not-allowed; }

.form-error {
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 10px;
  text-align: center;
}

#rsvp-success {
  text-align: center;
  padding: 52px 32px;
}

#rsvp-success h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin: 12px 0 10px;
}

#rsvp-success p {
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Tablet: stack hero ---- */

/* ---- Mobile ---- */

@media (max-width: 700px) {

  #site-nav {
    padding: 0 20px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--nav-h);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 8px;
    order: 3;
  }

  .nav-links.open { display: flex; }

  .hero-meta {
    flex-direction: column;
    gap: 6px;
  }

  .sep { display: none; }
}
