/* ===== STILL STANDING FEST - Custom Styles ===== */
/* No external dependencies - all fonts self-hosted */
/* Design tokens sampled from the live site (stillstandingfest.com) */

/* --- Self-Hosted Fonts --- */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/anton-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/archivo-black-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-regular-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-semibold-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-bold-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-bold-italic-latin.woff2') format('woff2');
}

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

:root {
  --color-bg: #fbf0cb;          /* cream page background */
  --color-bg-alt: #f6e6b4;      /* slightly deeper cream for panels */
  --color-heading: #383838;     /* headings */
  --color-text: #000;           /* body copy */
  --color-accent: #f7ad6b;      /* orange button fill */
  --color-accent-hover: #f59a4c;
  --color-line: #000;
  --font-heading: 'Anton', sans-serif;
  --font-body: 'Archivo Black', sans-serif;
  --font-ui: 'Poppins', sans-serif;
  --max-width: 1280px;
  --gutter: 51px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-heading);
}

h1 { font-size: clamp(3rem, 9.72vw, 8rem);   line-height: 0.874; }
h2 { font-size: clamp(2.1rem, 6.24vw, 5rem); line-height: 1.013; }
h3 { font-size: clamp(1.4rem, 3vw, 2.4rem);  line-height: 1.142; }
h4 { font-size: 1.145rem;                    line-height: 1.2; }

p {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text);
}

p + p { margin-top: 1.5rem; }
em { font-style: italic; }
strong { font-weight: 400; }

/* --- Navigation --- */
.nav {
  position: relative;
  z-index: 100;
  background: var(--color-bg);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px var(--gutter);
}

.nav-logo img { width: 130px; height: auto; }

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--color-text);
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.6; }

.nav-links a.active {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.nav-toggle span {
  width: 25px; height: 3px;
  background: #000;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* --- Buttons --- */
.btn,
.btn-nav {
  display: inline-block;
  padding: 24px 40px;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  color: #000;
  background: var(--color-accent);
  border: 4px solid #000;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover,
.btn-nav:hover {
  background: var(--color-accent-hover);
  opacity: 1;
  transform: translateY(-2px);
}

.btn-primary { background: var(--color-accent); }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--color-accent); }

.btn-center {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero --- */
.hero { padding: 2px 0 0; }

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 740px;
  margin-bottom: 70px;
}

.hero-split {
  display: grid;
  grid-template-columns: 490px minmax(0, 1fr);
  align-items: start;
}

/* 440, not the 490 column width: .hero-art below is pulled 44px back over this
   column, so copy wider than ~446px collides with the artwork instead of
   wrapping. Keeping the text box inside the clear area means longer copy wraps
   — ugly at worst — rather than running underneath the mountains. */
.hero-copy { max-width: 440px; }
.hero-copy h3 { margin-bottom: 28px; }
.hero-copy p { margin-bottom: 0; }
.hero-copy p + p { margin-top: 16px; }
.hero-copy .btn { margin-top: 52px; }

.hero-art {
  margin-left: -44px;
  margin-top: -30px;
}

.hero-art img { width: 732px; max-width: 100%; }

/* --- Shout line (the AUSTIN, WE'RE DOING IT AGAIN band) --- */
.shout {
  padding: 81px 0;
  margin: 24px 0;
  background: var(--color-accent);
  overflow: hidden;
}

.shout h2 {
  text-align: center;
  color: #000;
  font-size: 6.24vw;
  line-height: 1.013;
  white-space: nowrap;
}

/* --- Sections --- */
.section { padding: 44px 0 55px; }
.section-title { margin-bottom: 40px; }
.section-content p a { text-decoration: underline; }

/* Two column: copy left, illustration right */
.split {
  display: grid;
  grid-template-columns: 490px minmax(0, 1fr);
  gap: 156px;
  align-items: start;
}

.split-copy { max-width: 490px; }
.split-copy h2 { margin-bottom: 40px; }
.split-art { margin-top: 20px; }
.split-art img { width: 482px; max-width: 100%; }

.section-cta { margin-top: 20px; text-align: center; }

/* --- Full bleed banner with an overlaid button --- */
.banner { position: relative; }
.banner > img { width: 100%; }

.banner .btn {
  position: absolute;
  left: 76.25%;
  top: 68%;
}

/* --- Overlap block (DON'T MISS OUT) --- */
.overlap { position: relative; min-height: 720px; }
.overlap h4 { margin-bottom: 11px; }

.overlap h2 {
  position: relative;
  z-index: 1;
  max-width: 692px;
}

.overlap-art {
  position: absolute;
  right: 0;
  top: 220px;
  z-index: 0;
}

.overlap-art img { width: 500px; max-width: 100%; }

/* --- Lineup Grid --- */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 8px 0 0;
}

.lineup-card { transition: transform 0.3s; }
.lineup-card:hover { transform: translateY(-5px); }
.lineup-card img { width: 100%; }

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-item {
  cursor: pointer;
  border: 4px solid #000;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, opacity 0.3s;
}

.gallery-item:hover { transform: scale(1.03); opacity: 0.9; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* --- Homepage crowd strip: one featured shot + four supporting --- */
.crowd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.crowd-grid .gallery-item img { display: block; height: 100%; }

.crowd-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.crowd-grid .gallery-item:first-child img { aspect-ratio: auto; }

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

.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 15px;
  border-radius: 4px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }

/* --- FAQ Accordion --- */
.accordion { max-width: 800px; }
.accordion-item { border-bottom: 2px solid #000; }

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  transition: opacity 0.2s;
}

.accordion-header:hover { opacity: 0.6; }

.accordion-icon {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 15px;
}

.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

.accordion-body-content {
  padding: 0 0 20px 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
}

.accordion-body-content ul, .accordion-body-content ol { padding-left: 20px; margin: 10px 0; }
.accordion-body-content ul { list-style: disc; }
.accordion-body-content ol { list-style: decimal; }
.accordion-body-content li { margin-bottom: 5px; }

/* --- Forms --- */
.form-section {
  max-width: 600px;
  padding: 40px;
  background: var(--color-bg-alt);
  border: 4px solid #000;
  border-radius: 8px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1.145rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 6px;
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option { background: #fff; color: #000; }
.form-submit { width: 100%; margin-top: 10px; }
.form-success { display: none; padding: 40px 0; }
.form-success h3 { margin-bottom: 10px; }

/* --- Sponsorship Tiers --- */
.tiers { display: grid; gap: 30px; margin-top: 40px; }

.tier-card {
  padding: 30px;
  background: var(--color-bg-alt);
  border: 4px solid #000;
  border-radius: 8px;
}

.tier-card h3 { margin-bottom: 10px; }

.tier-card .tier-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #000;
  border: 3px solid #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.tier-card p { font-size: 1rem; }

/* --- Footer --- */
.footer {
  background: var(--color-bg);
  color: #000;
  border-top: 4px solid #000;
  padding: 56px 0 48px;
}

.footer h3, .footer h4 { color: #000; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.footer-brand h3 { margin-bottom: 20px; }

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  column-gap: 32px;
  row-gap: 14px;
  max-width: 420px;
}

.footer-links ul li { margin: 0; }

.footer-links ul li a {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: underline;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-links ul li a:hover { opacity: 0.6; }

.footer-contact h4 { margin-bottom: 12px; }

.footer-contact p {
  font-family: var(--font-heading);
  font-size: 1.145rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.footer-contact a { text-decoration: underline; }

/* --- Social Links --- */
.social-links { display: flex; gap: 14px; margin-top: 24px; }
.social-links a { display: flex; align-items: center; justify-content: center; }
.social-links svg { width: 24px; height: 24px; fill: #000; }
.social-links a:hover svg { fill: var(--color-accent-hover); }

/* --- Page Header --- */
.page-header { padding: 40px 0 30px; }
.page-header h1 { margin-bottom: 20px; }
.page-header p { max-width: 690px; }

.venue-ref { margin-top: 12px; }
.venue-ref a { text-decoration: underline; }
.venue-ref a:hover { opacity: 0.6; }

/* --- Responsive --- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: none;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 4px solid #000;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--gutter);
    gap: 16px;
  }

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

  .hero-split, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { margin-left: 0; margin-top: 0; }
  .hero-art img, .split-art img { width: 100%; }
  .hero-copy .btn { margin-top: 32px; }

  .overlap { min-height: 0; }
  .overlap-art { position: static; margin-top: 32px; }
  .overlap-art img { width: 100%; }

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

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .nav-links a { font-size: 1rem; }

  .btn, .btn-nav { padding: 14px 22px; font-size: 0.95rem; }

  p, .nav-links a { font-size: 1rem; }
  .hero { padding-top: 16px; }
  .shout { padding: 50px 0; }
  .section { padding: 30px 0 36px; }

  .banner .btn { position: static; display: block; width: fit-content; margin: 20px auto 0; }

  .lineup-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

  .crowd-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .crowd-grid .gallery-item:first-child { grid-column: span 2; grid-row: auto; }
  .crowd-grid .gallery-item:first-child img { aspect-ratio: 16/9; }
  .footer { padding: 40px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-links ul { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .footer-links ul li { margin-bottom: 14px; }
  .form-section { padding: 24px; }
}

/* --- Smooth cross-document page transitions (progressive enhancement) --- */
@view-transition {
  navigation: auto;
}

/* --- Bird scene: the two birds cut out of the hero art, flown back in ---
   The birds are parked at their landing spots, so the flight animates an
   offset that ends at translate(0,0) and "landed" needs no second position.
   .bird-scene--fly animates on scroll-in; a plain .bird-scene is static. */
.bird-scene { position: relative; display: block; min-width: 0; }
.bird-scene > .bird-scene-bg { display: block; width: 100%; height: auto; }
/* width:100% + max-width, not width:Npx — a fixed width expands the grid
   column on narrow screens and pushes the copy off the viewport. */
.hero-art .bird-scene { width: 100%; max-width: 732px; }
.overlap-art .bird-scene { width: 100%; max-width: 500px; }

.bird-scene .bird { position: absolute; width: 21.6%; will-change: transform; }
.bird-scene .bird img { display: block; width: 100%; height: auto; }
.bird-scene .bird--a { left: 24%; top: 10.5%; }
.bird-scene .bird--b { left: 62%; top: 31.5%; }
.bird-scene .bird--c { left: 44%; top: 3%; width: 16%; }

/* Hidden until the flight starts, so the birds never flash in already perched.
   Gated on .is-armed, which JS adds: no JS, no hiding, and the art keeps its
   birds instead of losing them silently. */
.bird-scene--fly.is-armed .bird { opacity: 0; }
.bird-scene--fly.is-flying .bird { opacity: 1; }
.bird-scene--fly.is-flying .bird--a { animation: birdFlyA 5.2s cubic-bezier(.33,.02,.29,1) forwards; }
.bird-scene--fly.is-flying .bird--b { animation: birdFlyB 5.8s cubic-bezier(.33,.02,.29,1) forwards; }
.bird-scene--fly.is-flying .bird--c { animation: birdFlyC 6.4s cubic-bezier(.33,.02,.29,1) forwards; }

/* Only one pose exists per bird, so the flap is a vertical squash. It stops
   once perched, where a slow bob takes over. */
.bird-scene--fly.is-flying .bird-flap { animation: birdFlap .28s ease-in-out infinite alternate; transform-origin: 50% 70%; }
.bird-scene--fly.is-landed .bird-flap { animation: birdBob 2.6s ease-in-out infinite alternate; }

@keyframes birdFlyA {
  0%   { transform: translate(-160%, 260%) rotate(-8deg) scale(.75); }
  30%  { transform: translate(60%, -40%)   rotate(6deg)  scale(.95); }
  60%  { transform: translate(220%, 120%)  rotate(-4deg) scale(1.05); }
  85%  { transform: translate(40%, -30%)   rotate(3deg)  scale(1); }
  100% { transform: translate(0,0) rotate(0) scale(1); }
}
@keyframes birdFlyB {
  0%   { transform: translate(280%, 220%)  rotate(8deg)  scale(.7) scaleX(-1); }
  35%  { transform: translate(-120%, -60%) rotate(-6deg) scale(.95) scaleX(-1); }
  65%  { transform: translate(90%, 90%)    rotate(4deg)  scale(1.05); }
  88%  { transform: translate(-30%, -25%)  rotate(-2deg) scale(1); }
  100% { transform: translate(0,0) rotate(0) scale(1); }
}
@keyframes birdFlyC {
  0%   { transform: translate(-220%, -180%) rotate(10deg) scale(.6); }
  40%  { transform: translate(180%, 60%)    rotate(-6deg) scale(.8); }
  75%  { transform: translate(-60%, 40%)    rotate(4deg)  scale(.95); }
  100% { transform: translate(0,0) rotate(0) scale(1); }
}
@keyframes birdFlap { from { transform: scaleY(1); } to { transform: scaleY(.86); } }
@keyframes birdBob  { from { transform: translateY(0); } to { transform: translateY(-4%); } }

/* Reduced motion: the birds are simply already where they land. */
@media (prefers-reduced-motion: reduce) {
  .bird-scene--fly .bird,
  .bird-scene--fly.is-armed .bird { opacity: 1; }
  .bird-scene--fly.is-flying .bird--a,
  .bird-scene--fly.is-flying .bird--b,
  .bird-scene--fly.is-flying .bird--c,
  .bird-scene--fly.is-flying .bird-flap,
  .bird-scene--fly.is-landed .bird-flap { animation: none; }
}
