/* ===========================
   Weissman Lab 30th Anniversary
   =========================== */

:root {
  --gold: #A8DADC;
  --burgundy: #457B9D;
  --cream: #F1FAEE;
  --charcoal: #1D3557;
  --gold-light: #c8eaec;
  --burgundy-dark: #345d77;
  --gray-light: #E8F4F0;
  --teal: #1D3557;
  --coral: #457B9D;
  --sunset: #A8DADC;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.3;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--coral);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

section:nth-child(even) {
  background: var(--gray-light);
}

h2 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  color: var(--coral);
  text-align: center;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 40px;
  border-radius: 2px;
}

.section-note {
  text-align: center;
  color: #888;
  font-style: italic;
  margin-bottom: 30px;
}

/* ---- Navigation ---- */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(29, 53, 87, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--gold-light) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

#hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(213deg, #1D3557 0%, #457B9D 35%, #A8DADC 70%, #06D6A0 100%);
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(247, 201, 72, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(42, 157, 143, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

#hero h1 {
  font-size: 4.7rem;
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #FFFDE7;
  font-weight: 300;
  margin-bottom: 8px;
}

.hero-date {
  font-size: 1.15rem;
  color: rgba(255, 248, 240, 0.8);
  margin-bottom: 36px;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: white;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn:hover {
  background: var(--gold-light);
  color: var(--charcoal);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ---- About ---- */

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo img {
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  width: 220px;
}

.figure-caption {
  font-style: italic;
  font-size: 0.85rem;
  color: #777;
  margin-top: 10px;
  line-height: 1.4;
  max-width: 220px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-text h3 {
  font-size: 1.4rem;
  color: var(--coral);
  margin: 28px 0 12px;
}

.about-centered {
  display: flex;
  justify-content: center;
  gap: 48px;
  align-items: start;
}

.milestones-heading {
  text-align: left;
  font-size: 1.4rem;
  color: var(--coral);
  margin-bottom: 16px;
  text-align: center;
}

.milestones {
  list-style: none;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  max-width: 500px;
}

.milestones li {
  margin-bottom: 10px;
  position: relative;
}

.milestones li::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 10px;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---- Schedule ---- */

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.schedule-day h3 {
  font-size: 1.5rem;
  color: var(--coral);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.schedule-event {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.event-time {
  flex-shrink: 0;
  width: 140px;
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  padding-top: 2px;
}

.event-details strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.event-details p {
  color: #555;
  font-size: 0.95rem;
}

/* ---- Speakers ---- */

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.speaker-card {
  background: white;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.speaker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.speaker-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gray-light), #ddd);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speaker-card h4 {
  font-size: 1.15rem;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.speaker-affiliation {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.speaker-talk {
  color: #888;
  font-size: 0.88rem;
  font-style: italic;
}

.placeholder-card {
  opacity: 0.6;
  border: 2px dashed #ccc;
  box-shadow: none;
}

/* ---- Venue ---- */

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.venue-info h3 {
  font-size: 1.3rem;
  color: var(--coral);
  margin: 24px 0 8px;
}

.venue-info h3:first-child {
  margin-top: 0;
}

.venue-address {
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 10px;
}

.hotel-list {
  list-style: none;
  padding: 0;
}

.hotel-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.venue-map iframe {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* ---- Travel ---- */

#travel h3 {
  font-size: 1.3rem;
  color: var(--coral);
  margin: 24px 0 8px;
}

#travel h3:first-of-type {
  margin-top: 0;
}

#travel .hotel-list {
  max-width: 700px;
  margin: 0 auto;
}

#travel .hotel-list li {
  padding: 10px 0;
}

#travel .section-note {
  margin-top: 24px;
}

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

.gallery-cta {
  text-align: center;
  margin-top: 32px;
}

.btn-gallery {
  font-size: 1.1rem;
  padding: 16px 44px;
}

/* ---- Lightbox ---- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--gold);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--gold);
}

/* ---- Contact ---- */

.organizers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.organizer-card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.organizer-card h4 {
  color: var(--coral);
  margin-bottom: 6px;
}

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

.contact-email a {
  font-weight: 600;
}

.draft-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
}

/* ---- Footer ---- */

footer {
  background: var(--charcoal);
  color: rgba(255, 248, 240, 0.6);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.9rem;
}

.footer-credit {
  margin-top: 8px;
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-credit a {
  color: rgba(255, 248, 240, 0.8);
}

.footer-credit a:hover {
  color: var(--gold-light);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo {
    display: flex;
    justify-content: center;
  }

  .about-photo img {
    max-width: 220px;
  }

  .milestones {
    text-align: left;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .speakers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .venue-grid {
    grid-template-columns: 1fr;
  }

  .venue-map {
    order: -1;
  }
}

@media (max-width: 650px) {
  #hero h1 {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 56px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(29, 53, 87, 0.98);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

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

  .nav-links a {
    display: block;
    padding: 14px 24px;
    border-bottom: none;
  }

  .speakers-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-event {
    flex-direction: column;
    gap: 4px;
  }

  .event-time {
    width: auto;
  }
}
