/* ============================================
   Sidebar Talks — Main Stylesheet
   ============================================ */

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

:root {
  --navy: #171820;
  --burgundy: #BB0216;
  --gold: #C9A55C;
  --ivory: #F5F0E8;
  --silver: #9A9B9F;
  --blush: #D4A49A;

  --font-serif: 'DM Serif Display', Georgia, Cambria, serif;
  --font-sans: 'DM Sans', Calibri, 'Helvetica Neue', sans-serif;

  --max-width: 1120px;
  --section-pad: 100px 24px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--ivory);
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.btn--sm {
  padding: 10px 22px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn--primary {
  background: var(--burgundy);
  color: var(--ivory);
  border: 2px solid var(--burgundy);
}

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

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

.btn--outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Logo swap: show dark logo by default (light hero), light logo when scrolled */
.nav__logo-dark {
  display: block;
}

.nav__logo-light {
  display: none;
}

.nav--scrolled .nav__logo-dark {
  display: none;
}

.nav--scrolled .nav__logo-light {
  display: block;
}

.nav--scrolled {
  background: rgba(23, 24, 32, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s;
}

.nav--scrolled .nav__links a {
  color: var(--ivory);
}

.nav__links a:hover {
  color: var(--burgundy);
}

.nav--scrolled .nav__links a:hover {
  color: var(--gold);
}

.nav__links .btn--primary {
  color: var(--ivory);
}

.nav__links .btn--primary:hover {
  color: var(--ivory);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav--scrolled .nav__toggle span {
  background: var(--ivory);
}

.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 (Light) --- */
.hero {
  position: relative;
  background: var(--ivory);
  color: var(--navy);
  padding: 160px 24px 120px;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 24px;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 28px;
  max-width: 700px;
  color: var(--navy);
}

.hero__sub {
  font-size: 19px;
  line-height: 1.6;
  color: rgba(23, 24, 32, 0.9);
  max-width: 520px;
  margin-bottom: 40px;
}

/* Floating Icons in Hero */
.hero__icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.hero__icon {
  position: absolute;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.hero__icon--mic {
  top: 32%;
  right: 12%;
  animation: float 6s ease-in-out infinite;
  width: 88px;
  height: 88px;
  opacity: 0.6;
}

.hero__icon--idea {
  top: 40%;
  right: 22%;
  animation: float 7s ease-in-out 1s infinite;
  width: 74px;
  height: 74px;
  opacity: 0.5;
}

.hero__icon--conversation {
  bottom: 24%;
  right: 10%;
  animation: float 5.5s ease-in-out 0.5s infinite;
  width: 82px;
  height: 82px;
  opacity: 0.55;
}

.hero__icon--drinks {
  bottom: 34%;
  right: 26%;
  animation: float 8s ease-in-out 2s infinite;
  width: 70px;
  height: 70px;
  opacity: 0.45;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-12px) rotate(2deg); }
  50% { transform: translateY(-6px) rotate(-1deg); }
  75% { transform: translateY(-14px) rotate(1deg); }
}

/* --- Sections --- */
.section {
  padding: var(--section-pad);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section--ivory {
  background: var(--ivory);
  color: var(--navy);
}

.section--navy {
  background: var(--navy);
  color: var(--ivory);
}

.section--blush {
  background: var(--blush);
  color: var(--navy);
}

.section__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 12px;
}

.section__label--light {
  color: var(--gold);
}

.section__headline {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 32px;
  max-width: 600px;
}

.section__headline--light {
  color: var(--ivory);
}

.section__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
  max-width: 900px;
  margin-bottom: 16px;
}

.section--bordered {
  background-color: #ffffff;
}

/* --- About --- */
#about .section__headline,
#events .section__headline {
  max-width: 900px;
}

.about__content {
  max-width: 900px;
}

.about__content p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.7;
}

.about__content .about__highlight {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--burgundy);
  margin: 32px 0;
}

/* --- Timeline (How It Works) --- */
.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
  margin-top: 48px;
}

.timeline__item {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--gold);
}

.timeline__time {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--ivory);
}

.timeline__content p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--silver);
}

/* --- Event Cards --- */
.events__cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 56px 0 48px;
  position: relative;
  min-height: 300px;
}

.event-card {
  background: var(--navy);
  color: var(--ivory);
  border-radius: 12px;
  padding: 32px 28px;
  width: 260px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(23, 24, 32, 0.2);
  transition: transform 0.3s ease;
  position: relative;
}

.event-card--rotate-left {
  transform: rotate(-5deg) translateX(20px);
  z-index: 1;
}

.event-card--rotate-left:hover {
  transform: rotate(-2deg) translateX(20px) translateY(-4px);
}

.event-card--featured {
  z-index: 3;
  transform: scale(1.05);
  border: 2px solid var(--gold);
}

.event-card--featured:hover {
  transform: scale(1.08) translateY(-4px);
}

.event-card--rotate-right {
  transform: rotate(4deg) translateX(-20px);
  z-index: 1;
}

.event-card--rotate-right:hover {
  transform: rotate(1deg) translateX(-20px) translateY(-4px);
}

.event-card__date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.event-card__topic {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.event-card__detail {
  font-size: 15px;
  color: var(--silver);
  margin-bottom: 8px;
}

.event-card__location {
  font-size: 13px;
  color: var(--silver);
  letter-spacing: 0.05em;
}

/* --- FAQ --- */
.faq__layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}

.faq__header .section__headline {
  max-width: 320px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-bottom: 1px solid rgba(23, 24, 32, 0.15);
}

.faq__item:first-child {
  border-top: 1px solid rgba(23, 24, 32, 0.15);
}

.faq__question {
  padding: 22px 40px 22px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--burgundy);
  transition: transform 0.3s ease;
}

.faq__item[open] .faq__question::after {
  content: '−';
}

.faq__question:hover {
  color: var(--burgundy);
}

.faq__answer {
  padding: 0 40px 22px 0;
}

.faq__answer p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(23, 24, 32, 0.75);
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: var(--ivory);
  padding: 100px 24px 48px;
  text-align: center;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__headline {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 40px;
}

.footer__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 240, 232, 0.1);
}

.footer__logo {
  opacity: 1;
}

.footer__copy {
  font-size: 13px;
  color: var(--silver);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .events__cards {
    flex-direction: column;
    gap: 20px;
    min-height: auto;
  }

  .event-card--rotate-left,
  .event-card--rotate-right {
    transform: none;
  }

  .event-card--rotate-left:hover,
  .event-card--rotate-right:hover {
    transform: translateY(-4px);
  }

  .event-card--featured {
    transform: none;
  }

  .event-card--featured:hover {
    transform: translateY(-4px);
  }

  .event-card {
    width: 100%;
    max-width: 340px;
  }
}

@media (max-width: 700px) {
  :root {
    --section-pad: 72px 20px;
  }

  /* On mobile, nav always dark background for contrast with dropdown */
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(23, 24, 32, 0.98);
    padding: 24px;
    gap: 20px;
    align-items: flex-start;
  }

  .nav__links a {
    color: var(--ivory);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    padding: 140px 20px 80px;
    min-height: 80vh;
  }

  .hero__headline {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero__sub {
    font-size: 17px;
  }

  .hero__icons {
    display: none;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer__ctas {
    flex-direction: column;
    align-items: center;
  }

  .section__headline {
    font-size: clamp(26px, 7vw, 40px);
  }
}
