/* ── Smooth Scroll ─────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Body / Background ─────────────────────────────── */
body {
  min-height: 100vh;
  font-family: "Cinzel", serif;
  color: #e8dcc8;
  background: url("img/background.png") no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

/* Dark overlay so content is readable */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 0;
}

/* ── Header ────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px 30px;
}

.site-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d4af37;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.site-subtitle {
  margin-top: 8px;
  font-family: "EB Garamond", serif;
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232, 220, 200, 0.7);
}

.site-logo {
  display: block;
  margin: 0 auto 20px;
  width: clamp(100px, 16vw, 180px);
  height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.9))
    drop-shadow(0 0 3px rgba(0, 0, 0, 0.7));
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.site-logo:hover {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4))
    drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
}

/* ── Navigation Grid ───────────────────────────────── */
.nav-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  max-width: 1200px;
  width: 90%;
  padding: 40px 0;
  flex: 1;
  align-content: center;
}

/* ── Card ───────────────────────────────────────────── */
button.nav-card {
  font-family: inherit;
  cursor: pointer;
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 16px;
  background: rgba(10, 8, 6, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  text-decoration: none;
  color: #e8dcc8;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(4px);
}

.nav-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #d4af37;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.35),
    0 8px 32px rgba(0, 0, 0, 0.6);
  background: rgba(20, 16, 12, 0.9);
}

/* Icon circle */
.card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.15) 0%,
    rgba(10, 8, 6, 0.8) 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.5);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-card:hover .card-icon {
  border-color: #d4af37;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.5);
}

.card-icon i {
  font-size: 1.8rem;
  color: #d4af37;
  transition: color 0.25s ease;
}

.nav-card:hover .card-icon i {
  color: #f5d576;
}

/* Label */
.card-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

/* ── Content Section ───────────────────────────────── */
.content-section {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 88%;
  margin: 0 auto;
  padding: 60px 56px 80px;
  text-align: center;
  background: rgba(8, 6, 4, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 80px;
}

.content-heading {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 48px;
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.5), 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.content-text {
  font-family: "EB Garamond", serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.9;
  color: rgba(232, 220, 200, 0.85);
}

.content-text p {
  margin-bottom: 28px;
}

.content-text .sub-heading {
  display: block;
  font-family: "Cinzel", serif;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 56px 0 20px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.content-text .sub-heading:first-child {
  margin-top: 0;
}

/* Divider between sections */
.content-divider {
  width: 60px;
  height: 1px;
  background: rgba(212, 175, 55, 0.4);
  margin: 48px auto;
  border: none;
}

/* ── Modal ─────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  position: relative;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  background: rgba(16, 12, 8, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(232, 220, 200, 0.5);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #d4af37;
}

/* Tabs */
.modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}

.modal-tab {
  flex: 1;
  padding: 16px 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 220, 200, 0.5);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.modal-tab:hover {
  color: rgba(232, 220, 200, 0.8);
}

.modal-tab.active {
  color: #d4af37;
  border-bottom-color: #d4af37;
}

/* Panels */
.modal-panel {
  display: none;
  padding: 32px 36px;
  overflow-y: auto;
  flex: 1;
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(232, 220, 200, 0.8);
}

.modal-panel.active {
  display: block;
}

.modal-panel h3 {
  font-family: "Cinzel", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.modal-date {
  font-size: 0.85rem;
  color: rgba(232, 220, 200, 0.45);
  margin-bottom: 28px;
}

.modal-panel h4 {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: 0.06em;
  margin: 28px 0 10px;
}

.modal-panel h5 {
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(212, 175, 55, 0.8);
  margin: 18px 0 6px;
}

.modal-panel p {
  margin-bottom: 14px;
}

.modal-panel ul {
  margin: 10px 0 16px 24px;
}

.modal-panel li {
  margin-bottom: 6px;
}

.modal-panel strong {
  color: rgba(232, 220, 200, 0.95);
}

/* Scrollbar styling */
.modal-panel::-webkit-scrollbar {
  width: 6px;
}

.modal-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.modal-panel::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 3px;
}

.modal-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.5);
}

/* ── Footer ────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding: 20px;
  font-family: "EB Garamond", serif;
  font-size: 0.85rem;
  color: rgba(232, 220, 200, 0.4);
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  margin-top: auto;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
  }

  .card-icon i {
    font-size: 1.4rem;
  }

  .card-label {
    font-size: 0.75rem;
  }

  .modal-box {
    width: 96%;
    max-height: 90vh;
  }

  .modal-tab {
    font-size: 0.65rem;
    padding: 12px 6px;
  }

  .modal-panel {
    padding: 20px 18px;
  }
}
