/* === Variables === */
:root {
  --dark:       #1a1d1e;
  --dark-glass: rgba(22, 25, 26, 0.90);
  --gold:       #eaae48;
  --gold-light: #f5d080;
  --off-white:  #f3efe8;
  --shadow:     0 4px 28px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--off-white);
  background: #0d0f0f;
}

/* === Background — fixed so it never leaves whitespace === */
.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #0d0f0f url("assets/1929.jpg") no-repeat center center;
  background-size: cover;
  opacity: 0.55;
}

/* === Navigation === */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 23, 24, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold);
  z-index: 100;
}

.menu-list {
  list-style: none;
  display: flex;
  width: 100%;
}

.menu-item {
  appearance: none;
  border: 0;
  background: transparent;
  display: block;
  text-align: center;
  color: var(--gold);
  width: 100%;
  padding: 16px 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease, background 0.2s ease;
  border-right: 1px solid rgba(234, 174, 72, 0.15);
}

.menu-list li {
  width: 25%;
}

.menu-item:last-child {
  border-right: none;
}

.menu-item:hover {
  color: var(--dark);
  background: var(--gold);
}

.menu-item:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: -2px;
}

.menu-item-active {
  color: var(--gold-light);
  box-shadow: inset 0 -3px 0 var(--gold);
}

/* === Page container === */
.page {
  width: 100%;
  max-width: 900px;
  padding: 96px 28px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* === Home / Placeholder === */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  min-height: 78vh;
  text-align: center;
  padding: 24px;
}

.placeholder img {
  width: clamp(140px, 30vw, 260px);
  height: auto;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.7));
}

.placeholder p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  font-weight: 500;
  color: var(--off-white);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
  max-width: 600px;
  line-height: 1.65;
}

/* === History === */
.history {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding-bottom: 32px;
}

.history section {
  background: var(--dark-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 32px 36px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

.history h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.history p {
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  line-height: 1.95;
  color: var(--off-white);
}

/* === Calendar / Contact === */
.calendar,
.contact {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
}

.calendar h1,
.contact h1 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.calendar-card {
  width: min(100%, 760px);
  background: var(--dark-glass);
  border: 1px solid rgba(234, 174, 72, 0.35);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.calendar-subtitle {
  margin-top: 10px;
  color: rgba(243, 239, 232, 0.88);
  font-size: 0.98rem;
  line-height: 1.6;
}

.calendar-filters {
  margin-top: 18px;
  display: inline-flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(234, 174, 72, 0.2);
}

.calendar-filter-btn {
  border: 0;
  background: transparent;
  color: rgba(243, 239, 232, 0.82);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.calendar-filter-btn:hover {
  color: var(--off-white);
}

.calendar-filter-btn-active {
  background: var(--gold);
  color: var(--dark);
}

.events-list {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.event-item {
  background: rgba(13, 15, 15, 0.78);
  border: 1px solid rgba(234, 174, 72, 0.3);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  padding: 18px;
}

.event-item-past {
  opacity: 0.74;
  border-left-color: rgba(243, 239, 232, 0.65);
}

.event-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.event-item h2 {
  color: var(--off-white);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.35;
}

.event-status {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-status-upcoming {
  background: rgba(98, 179, 118, 0.2);
  color: #9eeab1;
  border: 1px solid rgba(158, 234, 177, 0.35);
}

.event-status-past {
  background: rgba(180, 180, 180, 0.17);
  color: #dfdfdf;
  border: 1px solid rgba(223, 223, 223, 0.35);
}

.event-meta {
  margin-top: 10px;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.event-location {
  margin-top: 6px;
  color: rgba(243, 239, 232, 0.92);
  font-size: 0.95rem;
}

.event-actions {
  margin-top: 14px;
}

.event-link {
  display: inline-block;
  color: var(--dark);
  background: var(--gold);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.event-link:hover {
  background: var(--gold-light);
}

.event-info-pending {
  color: rgba(243, 239, 232, 0.78);
  font-size: 0.9rem;
  font-style: italic;
}

.calendar-empty {
  color: rgba(243, 239, 232, 0.9);
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(234, 174, 72, 0.35);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

/* === Contact === */
.contact-card {
  width: min(100%, 760px);
  background: var(--dark-glass);
  border: 1px solid rgba(234, 174, 72, 0.35);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.contact-subtitle {
  color: rgba(243, 239, 232, 0.88);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--dark);
  background: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.contact-link:hover {
  background: var(--gold-light);
}

.contact-link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.contact-link-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contact-address {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(234, 174, 72, 0.25);
}

.contact-address h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.contact-address p {
  color: rgba(243, 239, 232, 0.95);
  line-height: 1.6;
}

.map-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(234, 174, 72, 0.25);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 360px;
}

/* === Utility === */
.goldAndBold {
  color: var(--gold);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

/* === Mobile === */
@media (max-width: 520px) {
  .menu-item {
    padding: 13px 4px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .page {
    padding-top: 80px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .history section {
    padding: 20px 18px;
  }

  .calendar-card {
    padding: 20px 16px;
  }

  .contact-card {
    padding: 20px 16px;
  }

  .map-wrapper iframe {
    min-height: 300px;
  }

  .event-item {
    padding: 14px;
  }

  .calendar-filters {
    width: 100%;
    justify-content: center;
  }
}