/* ============================================================
   FAIS — First Americans Imagination Summit
   Festival site design system (SXSW-inspired)
   NOTE: All copy and imagery are placeholders to be replaced.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #1c1b22;
  --ink-2: #272534;
  --white: #ffffff;
  --cream: #f3e7c8;
  --cream-2: #ece0bd;
  --paper: #ffffff;

  /* accent pops pulled from the festival artwork */
  --rust: #c0511f;
  --gold: #caa23a;
  --navy: #2c3a63;
  --magenta: #9c2748;

  --accent: var(--rust);

  --maxw: 1280px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 14px;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;

  --shadow: 0 18px 40px -18px rgba(14, 11, 22, 0.45);
}

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

* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
#events, #schedule { scroll-margin-top: 5.5rem; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.02rem;
  overflow-x: hidden;
}

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

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

ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.002em;
  text-transform: uppercase;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: var(--ink);
  padding-block: 0.7rem;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.5);
}
.site-header.is-scrolled .brand,
.site-header.is-scrolled .menu-toggle { color: var(--white); }
.site-header.on-dark .brand,
.site-header.on-dark .menu-toggle { color: var(--white); }

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}
.brand .dot { color: var(--accent); }
.brand img { width: 34px; height: 34px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle .bars { display: inline-grid; gap: 4px; }
.menu-toggle .bars span {
  width: 26px; height: 3px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ---------- Overlay nav ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-100%);
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-overlay.is-open { transform: translateY(0); }

.nav-overlay__top {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  flex: none;
}
.nav-overlay__top .brand { color: var(--white); }
.nav-close {
  background: none; border: none; color: var(--white); cursor: pointer;
  font-family: var(--font-display); font-weight: 400; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.05em;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.nav-close::before { content: "✕"; font-size: 1.2rem; }

.nav-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.1rem 3rem;
  align-content: center;
  padding: 1rem var(--gutter) 3rem;
  max-width: 1100px;
  margin-inline: auto;
  width: 100%;
}
.nav-list a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  letter-spacing: -0.01em;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: color 0.2s ease, padding-left 0.2s ease;
  color: var(--white);
}
.nav-list a .idx {
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.nav-list a:hover { color: var(--accent); padding-left: 0.6rem; }
.nav-list a.is-active { color: var(--gold); }

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 90vh, 900px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14,11,22,0.55) 0%, rgba(14,11,22,0.15) 35%, rgba(14,11,22,0.85) 100%);
}
.hero__inner { padding-block: 3rem 3.5rem; width: 100%; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  background: var(--accent);
  color: var(--ink);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 7rem);
  max-width: 14ch;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero__lead {
  margin-top: 1.2rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
}
.hero__actions { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* page hero (interior) */
.page-hero {
  min-height: clamp(420px, 62vh, 620px);
}
.page-hero h1 { font-size: clamp(2.4rem, 7.5vw, 5.5rem); }

/* ---------- Info bar ---------- */
.infobar {
  background: var(--ink);
  color: var(--white);
}
.infobar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.16);
}
.infobar__item {
  background: var(--ink);
  padding: 1.5rem var(--gutter);
}
.infobar__item .label {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.infobar__item .value {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 1.15rem; margin-top: 0.35rem;
}

/* ---------- Sections ---------- */
section { position: relative; overflow: hidden; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--ink { background: var(--ink); color: var(--white); }
.section--cream2 { background: var(--cream-2); }

.section-head { max-width: 760px; margin-bottom: 2.6rem; }
.section-head .kicker {
  display: inline-block;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 0.78rem;
  color: var(--accent); margin-bottom: 0.8rem;
}
.section-head h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
.section-head p { margin-top: 1rem; font-size: 1.08rem; color: inherit; opacity: 0.9; }

/* prose */
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.2rem; font-size: 1.08rem; }
.prose h3 { font-size: 1.5rem; margin: 2rem 0 0.8rem; }

/* split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split--reverse .split__media { order: -1; }

/* slideshow */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.slideshow--portrait { aspect-ratio: 2 / 3; max-width: 420px; margin-inline: auto; }
.slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slideshow__slide.is-active { opacity: 1; }
.slideshow__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.slideshow__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.slideshow__dot.is-active { background: #fff; }
.slideshow__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.slideshow__arrow:hover { background: rgba(0, 0, 0, 0.55); }
.slideshow__arrow--prev { left: 0.8rem; }
.slideshow__arrow--next { right: 0.8rem; }

/* ---------- Event cards grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16/11; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 0.68rem; letter-spacing: 0.1em;
  background: var(--gold); color: var(--ink);
  padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.8rem;
}
.card h3 { font-size: 1.35rem; line-height: 1.02; }
.card p { margin-top: 0.55rem; font-size: 0.95rem; color: #4a4a4a; flex: 1; }
.card__more {
  margin-top: 1rem;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: 0.82rem; letter-spacing: 0.05em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.card:hover .card__more { color: var(--accent); }
.card__more::after { content: "→"; transition: transform 0.2s ease; }
.card:hover .card__more::after { transform: translateX(4px); }

/* color variants for card tags — limited pops drawn from the artwork palette */
.tag--orange { background: var(--rust); color: var(--white); }
.tag--turquoise { background: var(--navy); color: var(--white); }
.tag--crimson { background: var(--magenta); color: var(--white); }
.tag--plum { background: var(--ink); color: var(--white); }
.tag--sky { background: var(--gold); color: var(--ink); }
.tag--gold { background: var(--gold); color: var(--ink); }

/* ---------- Stat band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat .num { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); color: var(--accent); line-height: 1; }
.stat .cap { margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}
.gallery img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; }
.gallery__item {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.gallery__item:hover { transform: scale(1.03); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 2rem;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox__arrow:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox__arrow--prev { left: 1.2rem; }
.lightbox__arrow--next { right: 1.2rem; }

/* ---------- Schedule list ---------- */
.schedule { display: grid; gap: 0.2rem; }
.schedule__row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(14,11,22,0.14);
}
.section--ink .schedule__row { border-color: rgba(255,255,255,0.18); }
.schedule__time { font-family: var(--font-display); font-weight: 400; color: var(--accent); }
.schedule__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.15rem; }
.schedule__meta { font-size: 0.85rem; opacity: 0.7; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  border-block: 4px solid var(--ink);
}
.cta h2 { font-size: clamp(2rem, 6vw, 4rem); max-width: 18ch; margin-inline: auto; }
.cta p { margin: 1rem auto 1.8rem; max-width: 50ch; font-weight: 500; }
.cta .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  padding-block: 3.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.footer-brand .brand { color: var(--white); font-size: 1.6rem; }
.footer-brand p { margin-top: 1rem; max-width: 36ch; opacity: 0.8; font-size: 0.95rem; }
.footer-col h4 { font-size: 0.85rem; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 1rem; }
.footer-col a { display: block; padding: 0.3rem 0; opacity: 0.85; font-size: 0.95rem; }
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; opacity: 0.7;
}

/* ---------- Swirl ornament (linework motif from the festival artwork) ---------- */
.swirl-ornament {
  position: absolute;
  top: -10%;
  right: -6%;
  width: clamp(140px, 22vw, 280px);
  height: auto;
  filter: invert(1);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.swirl-ornament--ink { filter: none; opacity: 0.16; }
.swirl-ornament--corner-bl { top: auto; right: auto; bottom: -10%; left: -6%; }
.site-footer .swirl-ornament { top: 14%; filter: none; }
section > .container,
section > .infobar__grid,
.cta > .container { position: relative; z-index: 1; }

/* ---------- Stripe bar (woven accent rule from the festival artwork) ---------- */
.stripe-bar {
  display: flex;
  height: 8px;
  width: 100%;
}
.stripe-bar span { flex: 1; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-list { grid-template-columns: 1fr; align-content: start; padding-top: 1.5rem; }
  .schedule__row { grid-template-columns: 90px 1fr; }
  .schedule__meta { grid-column: 2; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .menu-toggle .label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
