@import "variables.css";

/* ============================================================
   Project SPARK — Global Styles
   Layout: fixed left sidebar + content panel (no hero banner)
   Design tokens live in variables.css
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3, h4, .nav, .btn, .brand {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: 0.2px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: var(--ink);
  color: #e8e4f0;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  z-index: 50;
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 32px;
}
.sidebar .brand .flame {
  width: 30px; height: 30px;
  display: inline-grid; place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.95rem;
}
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-links a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: #c9c4d6;
  text-decoration: none;
}
.nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.nav-links a.active { background: rgba(255,255,255,0.10); color: var(--secondary); }

.side-foot {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 0.85rem;
}
.side-foot a { color: var(--secondary); display: inline-block; margin-bottom: 10px; }
.side-foot .copy { color: #8f8aa3; margin-top: 12px; }

/* ---------- Content panel ---------- */
.content { margin-left: 260px; min-height: 100vh; }

/* Page intro (replaces the hero banner) */
.page-head {
  padding: 64px 0 40px;
  border-bottom: 2px solid var(--line);
}
.page-head h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.page-head .slogan {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.page-head .lead {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.page-head + .section { padding-top: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--surface); }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800; color: var(--ink);
  margin-bottom: 10px;
}
.section-sub {
  color: var(--ink-soft); max-width: 620px;
  margin-bottom: 38px;
}

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { color: var(--ink); margin-bottom: 8px; font-size: 1.2rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Team ---------- */
.team-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.member h3 { font-size: 1.15rem; color: var(--ink); }
.member .role {
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 10px;
}
.member p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Events ---------- */
.event {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.event .date {
  flex: 0 0 78px; text-align: center;
  font-family: var(--font-head);
}
.event .date .day { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.event .date .mo { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); }
.event h3 { color: var(--ink); margin-bottom: 4px; }
.event p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; gap: 30px;
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
}
.contact { max-width: 640px; }
.contact-info { list-style: none; margin-top: 12px; }
.contact-info li { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-info li:first-child { border-top: none; padding-top: 4px; }
.contact-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.contact-info a { font-size: 1.15rem; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
}
.social:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.social .handle {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  margin-left: 0;
  vertical-align: middle;
  transition: max-width 0.25s ease, opacity 0.25s ease, margin 0.25s ease;
}
.social:hover .handle { max-width: 200px; opacity: 1; margin-left: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 18px;
  }
  .sidebar .brand { margin-bottom: 0; margin-right: auto; }
  .nav-links { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .nav-links a { padding: 8px 12px; }
  .side-foot { display: none; }
  .content { margin-left: 0; }
  .page-head { padding-top: 40px; }
}
