/* ==========================================================================
   GDGSMUN — Maiden Edition
   Plain CSS, no frameworks.
   ========================================================================== */

@font-face {
  font-family: 'Dream Avenue';
  src: url('../assets/fonts/dream-avenue.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-kenao:     'Josefin Sans', sans-serif;
  --font-cormorant: 'Cormorant Garamond', Georgia, serif;
  --font-higuen:    'IM Fell English SC', Georgia, serif;
  --font-display:   'Dream Avenue', 'Cormorant Garamond', Georgia, serif;
  --gold:           #d4af37;
  --cream:          #f1e8cf;
  --ink:            #ddd1ad;
  --nav-height:     62px;
}

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

/* The hidden attribute must win over display rules like .reg-options{display:flex} */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-cormorant);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background artwork.
   NOTE: current source is a 1179x630 screenshot — replace
   assets/background.webp (and background.jpg for social previews)
   with a higher-resolution original when available. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../assets/background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

h1, h2, h3 {
  font-family: var(--font-kenao);
  text-shadow: 2px 2px 4px rgba(22, 10, 1, 0.3);
  letter-spacing: 0.04em;
}

p, li, input, textarea, label {
  font-family: var(--font-cormorant);
}

a {
  text-decoration: none;
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Navigation
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 12px 26px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.site-nav .brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  color: var(--cream);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  list-style: none;
}

.site-nav ul a {
  font-family: var(--font-kenao);
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.25s ease;
}

.site-nav ul a:hover {
  color: var(--gold);
}

/* Hero
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: calc(var(--nav-height) + 24px) 20px 70px;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: #bbb298;
  letter-spacing: 0.06em;
}

.hero .motto {
  font-family: var(--font-higuen);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  letter-spacing: 0.18em;
  color: #ab944d;
}

.hero .event-meta {
  font-family: var(--font-kenao);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-top: 6px;
}

.hero .btn {
  margin-top: 14px;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 26px;
  margin-top: 10px;
}

.countdown .unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
}

.countdown .value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
  line-height: 1.1;
}

.countdown .label {
  font-family: var(--font-kenao);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.countdown .live {
  font-family: var(--font-higuen);
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* Sections
   ========================================================================== */
section {
  padding: 60px 20px;
  margin: 40px 0;
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 32px;
  background: rgba(0, 0, 0, 0.48);
  border-radius: 12px;
}

section h2 {
  font-family: var(--font-display);
  text-align: center;
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: normal;
}

section h2::after {
  content: '';
  width: 50px;
  height: 2px;
  background: var(--gold);
  display: block;
  margin: 10px auto 0;
}

/* Grids & cards
   ========================================================================== */
.committees-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1100px;
  margin: auto;
}

.committee-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  text-align: center;
  transition: all 0.35s ease;
}

.committee-card h3 {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  color: var(--gold);
}

.committee-card p {
  font-size: 1.1rem;
  text-align: left;
  line-height: 1.7;
}

.committee-card p em {
  display: block;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 8px;
}

.committee-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.35);
}

/* Committee documents (background guides, portfolio matrices) */
.doc-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.doc-btn {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  font-family: var(--font-kenao);
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  transition: all 0.3s ease;
}

.doc-btn:hover {
  background: var(--gold);
  color: #3a2000;
}

/* Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  background: var(--gold);
  color: #3a2000;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-kenao);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.35s ease;
}

.btn:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* Registration
   ========================================================================== */
.reg-intro {
  text-align: center;
  margin-bottom: 20px;
}

.reg-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
}

.reg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 1.15rem;
}

.reg-row .reg-label {
  font-family: var(--font-kenao);
  letter-spacing: 0.06em;
}

.reg-row .btn {
  margin: 0;
}

.reg-closed {
  text-align: center;
  margin-top: 10px;
}

.reg-closed p {
  font-size: 1.25rem;
  color: var(--cream);
  margin-bottom: 14px;
}

/* Resources */
#resources .container {
  text-align: center;
}

.resources-note {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--ink);
  font-style: italic;
}

/* Contact
   ========================================================================== */
.contact-info {
  text-align: center;
  margin-top: 40px;
}

.contact-info p {
  margin: 20px 0;
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--cream);
}

.contact-info strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1em;
}

.contact-links {
  margin-top: 24px;
  text-align: center;
  font-size: 1.1rem;
}

/* Footer
   ========================================================================== */
footer {
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  padding: 24px;
  font-family: var(--font-kenao);
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

/* Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hero h1      { animation: fadeDown 1.2s ease forwards; }
.hero h2      { animation: fadeUp 1.4s ease forwards; }
.hero .motto  { animation: fadeUp 1.6s ease forwards; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero h1,
  .hero h2,
  .hero .motto,
  .scroll-down {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .committee-card,
  .btn,
  .site-nav ul a {
    transition: none;
  }
}

/* Mobile
   ========================================================================== */
@media (max-width: 768px) {
  .site-nav {
    justify-content: center;
    padding: 10px 14px;
  }

  section {
    padding: 40px 14px;
    margin: 24px 0;
    scroll-margin-top: 110px;
  }

  .container {
    padding: 24px 18px;
  }

  section h2 {
    font-size: 1.9rem;
  }

  .countdown {
    gap: 18px;
  }

  .contact-info p {
    font-size: 1.15rem;
  }
}
