/*
 * TobyCon — Home Page (index.html)
 * Hero, event cards, about section, footer.
 * ─────────────────────────────────────────
 */

/* ── Nav overrides: fixed + frosted glass on the homepage ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(30, 34, 24, 0.85);
  backdrop-filter: blur(8px);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand-dark);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-links .btn-nav {
  background: var(--sage);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  transition: background 0.2s;
}

.nav-links .btn-nav:hover { background: var(--sage-dark); }

/* ── Buttons ── */

.btn {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--sage);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--sand-dark);
  color: var(--sand);
}

.btn-outline:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ── Hero ── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
}

.hero-img img { object-position: center 40%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 34, 24, 0.15) 0%,
    rgba(30, 34, 24, 0.00) 40%,
    rgba(30, 34, 24, 0.70) 75%,
    rgba(30, 34, 24, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 3rem 4rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-title span { color: var(--sage-light); }

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--sand);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Section wrapper ── */

section { padding: 5rem 2rem; }

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

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--ink-light);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Events section ── */

#events { background: var(--mist); }

.events-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.events-intro .section-title { display: block; }

.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

/* ── Event card ── */

.event-card {
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-card-photo {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.event-card-photo img { transition: transform 0.6s ease; }
.event-card:hover .event-card-photo img { transform: scale(1.04); }

.event-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--sage);
  color: var(--white);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}

.event-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--sage-dark);
  letter-spacing: 0.02em;
}

.event-meta-item svg { flex-shrink: 0; opacity: 0.7; }

.event-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.event-card-subtitle {
  font-size: 0.9rem;
  color: var(--earth);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.event-card-desc {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.highlight-list {
  list-style: none;
  margin-bottom: 1.75rem;
  flex: 1;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-light);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--sand);
}

.highlight-list li:last-child { border-bottom: none; }

.highlight-list li::before {
  content: '—';
  color: var(--sage);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.runway-info {
  background: var(--sand-light);
  border-left: 3px solid var(--sage-light);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.5;
}

.runway-info strong { color: var(--ink); font-weight: 600; }

.event-card-footer { margin-top: auto; }

.btn-card {
  width: 100%;
  text-align: center;
  background: var(--ink);
  color: var(--white);
  padding: 0.8rem;
  display: block;
}

.btn-card:hover { background: var(--sage-dark); }

/* ── About section ── */

#about { background: var(--ink); }
#about .section-label { color: var(--sage-light); }
#about .section-title { color: var(--white); }
#about .section-sub { color: var(--sand-dark); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.about-photos .photo-tall { grid-row: span 2; }

.about-photo {
  overflow: hidden;
  border-radius: 2px;
}

.about-photo img { height: 200px; }
.about-photo.photo-tall img { height: 406px; }

.perks-list {
  list-style: none;
  margin-top: 2rem;
}

.perks-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.perks-list li:last-child { border-bottom: none; }

.perk-icon {
  width: 36px;
  height: 36px;
  background: var(--sage-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.perk-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.15rem;
}

.perk-text span {
  font-size: 0.83rem;
  color: var(--sand-dark);
  line-height: 1.5;
}

/* ── Photo strip ── */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  height: 220px;
}

.photo-strip div { overflow: hidden; }
.photo-strip div img { height: 220px; transition: transform 0.5s; }
.photo-strip div:hover img { transform: scale(1.06); }

/* ── Register CTA ── */

#register-cta {
  background: var(--sage-dark);
  text-align: center;
  padding: 4rem 2rem;
}

#register-cta .section-label { color: var(--sage-light); }
#register-cta .section-title { color: var(--white); }

#register-cta p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin: 0.75rem auto 2rem;
  font-size: 0.95rem;
}

.btn-register {
  background: var(--white);
  color: var(--sage-dark);
  font-size: 1.1rem;
  padding: 0.85rem 2.5rem;
}

.btn-register:hover { background: var(--sand); }

/* ── Footer ── */

footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

footer a { color: rgba(255, 255, 255, 0.5); }
footer a:hover { color: var(--sand-dark); }

/* ── Responsive ── */

@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links a:not(.btn-nav) { display: none; }
  .hero-content { padding: 2rem 1.5rem 3rem; }
  .events-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photos { grid-template-columns: 1fr 1fr; }
  .about-photo.photo-tall img { height: 200px; }
  .photo-strip { grid-template-columns: 1fr 1fr; height: auto; }
  .photo-strip div img { height: 160px; }
}
