/* ===========================================================
   Valley Concert Band — Design Tokens
   Palette: navy, brass gold, uniform burgundy, paper cream
   Type: Fraunces (display) / Inter (body) / IBM Plex Mono (ticket details)
=========================================================== */
:root{
  --navy: #1B2A4A;
  --navy-dark: #121E38;
  --brass: #C9A227;
  --brass-light: #E3C567;
  --burgundy: #7A2E2E;
  --paper: #F3ECDD;
  --paper-dark: #E8DFC9;
  --ink: #2A241C;
  --ink-soft: #57503F;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --wrap: 1120px;
  --radius: 4px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 14px;
}
.eyebrow-dark{ color: var(--burgundy); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-brass{
  background: var(--brass);
  color: var(--navy-dark);
}
.btn-brass:hover{ background: var(--brass-light); }
.btn-ghost{
  border-color: rgba(243,236,221,0.4);
  color: var(--paper);
}
.btn-ghost:hover{ border-color: var(--paper); background: rgba(243,236,221,0.08); }

/* ===================== HEADER ===================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid rgba(42,36,28,0.1);
  height: 135px;
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark{ color: var(--navy); display: flex; }
.brand-mark img{ display: block; object-fit: contain; }
.brand-text{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}
.main-nav{
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a{
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.main-nav a:hover{ opacity: 1; }
.nav-cta{
  background: var(--brass);
  color: var(--navy-dark) !important;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 1 !important;
  font-weight: 600;
}
.nav-cta:hover{ background: var(--brass-light); }
.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  width: 22px; height: 2px; background: var(--ink); display: block;
}

/* ===================== HERO ===================== */
.hero{
  background: radial-gradient(ellipse at top right, #24365C 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: var(--paper);
  padding: 88px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 90px;
}
.hero-copy,
.concert-flyer{
  min-width: 0;
}
.hero h1{
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  color: var(--paper);
}
.hero-lede{
  margin: 22px 0 32px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(243,236,221,0.82);
  max-width: 46ch;
}
.hero-actions{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.concert-flyer{
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  position: relative;
  width: 30em;
  max-width: 100%;
}
.concert-flyer img{
  width: 100%;
  height: auto;
  display: block;
}

.staff-divider{
  display: block;
  width: 100%;
  height: 60px;
}
.staff-lines line{
  stroke: var(--brass);
  stroke-width: 1;
  opacity: 0.35;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 1.6s ease forwards;
}
.staff-lines line:nth-child(1){ animation-delay: 0.05s; }
.staff-lines line:nth-child(2){ animation-delay: 0.15s; }
.staff-lines line:nth-child(3){ animation-delay: 0.25s; }
.staff-lines line:nth-child(4){ animation-delay: 0.35s; }
.staff-lines line:nth-child(5){ animation-delay: 0.45s; }
@keyframes draw{ to{ stroke-dashoffset: 0; } }

/* ===================== ABOUT ===================== */
.about{
  padding: 100px 0 90px;
  background: var(--paper);
}
.about-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.about-heading h2{
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--ink);
}
.about-body p{
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.est-note{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--burgundy);
  letter-spacing: 0.06em;
}
.est-note span{ font-weight: 600; color: var(--ink); }

/* ===================== MISSIONS ===================== */
.missions{
  background: var(--paper-dark);
  padding: 90px 0;
}
.missions-heading{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 26ch;
  margin: 0 0 48px;
  color: var(--ink);
}
.mission-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mission-card{
  background: var(--paper);
  border: 1px solid rgba(42,36,28,0.08);
  border-radius: 8px;
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mission-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(42,36,28,0.35);
}
.mission-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-light);
  margin-bottom: 18px;
}
.mission-card h3{
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.mission-card p{
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.98rem;
}
.mission-more{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  color: var(--burgundy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  transition: gap 0.18s ease;
}
.mission-more:hover{ gap: 10px; }

/* ===================== CTA BAND ===================== */
.cta-band{
  background: var(--burgundy);
  color: var(--paper);
  padding: 64px 0;
}
.cta-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-inner h2{
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  max-width: 20ch;
  color: var(--paper);
}
.cta-inner .eyebrow{ color: var(--brass-light); }

/* ===================== FOOTER ===================== */
.site-footer{
  background: var(--navy-dark);
  color: rgba(243,236,221,0.75);
  padding: 44px 0;
}
.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
}
.footer-brand .brand-mark{ color: var(--brass); }
.footer-nav{ display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a{ text-decoration: none; font-size: 0.9rem; color: inherit; }
.footer-nav a:hover{ color: var(--paper); }
.footer-copy{
  width: 100%;
  font-size: 0.8rem;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(243,236,221,0.1);
  color: rgba(243,236,221,0.45);
}

/* ===================== MISSION PAGE ===================== */
.page-hero{
  background: radial-gradient(ellipse at top right, #24365C 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: var(--paper);
  padding: 90px 0 100px;
  text-align: center;
}
.page-hero .eyebrow{ color: var(--brass-light); }
.page-hero h1{
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  color: var(--paper);
  max-width: 20ch;
  margin: 0 auto;
}
.page-hero-lede{
  margin: 22px auto 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(243,236,221,0.82);
  max-width: 56ch;
}

.mission-detail{
  padding: 90px 0;
  background: var(--paper);
}
.mission-detail:nth-of-type(even){ background: var(--paper-dark); }
.mission-row{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.mission-row--reverse .mission-badge-wrap{ order: 2; }
.mission-row--reverse .mission-copy{ order: 1; }

.mission-badge-wrap{ display: flex; justify-content: center; }
.mission-badge{
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--paper);
  color: var(--navy);
}
.mission-badge::before{
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(27,42,74,0.35);
}
.mission-badge svg{ width: 104px; height: 104px; position: relative; z-index: 1; }

.mission-badge-photo{
  overflow: hidden;
  border-color: var(--brass);
}
.mission-badge-photo::before{
  inset: 8px;
  border-color: rgba(201,162,39,0.55);
  z-index: 2;
}
.mission-badge-photo img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.mission-badge-photo .mission-badge-number{ z-index: 3; }
.mission-badge-number{
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--burgundy);
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(42,36,28,0.12);
}

.mission-copy h2{
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--ink);
  margin-bottom: 18px;
}
.mission-copy p{
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 1.03rem;
  margin: 0 0 16px;
}
.mission-copy ul{
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.mission-copy li{ margin-bottom: 8px; }

@media (max-width: 860px){
  .mission-row{ grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .mission-row--reverse .mission-badge-wrap{ order: 1; }
  .mission-row--reverse .mission-copy{ order: 2; }
  .mission-copy{ text-align: left; }
}
@media (max-width: 860px){
  .hero-inner{ grid-template-columns: 1fr; padding-bottom: 60px; }
  .about-grid{ grid-template-columns: 1fr; gap: 30px; }
  .mission-cards{ grid-template-columns: 1fr; }
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .site-header.open .main-nav{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 135px; left: 0; right: 0;
    background: var(--paper);
    padding: 20px 28px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(42,36,28,0.1);
  }
  .concert-flyer{ 
    transform: rotate(0deg); 
    width: 100%;            /* Forces the flyer to scale down dynamically on iPhone screens */
    max-width: 440px;       /* Keeps layout balanced on intermediate tablet dimensions */
    margin: 32px auto 0;    /* Adds separation beneath content and centers the container */
  }
  .cta-inner{ flex-direction: column; align-items: flex-start; }
}

/* ===================== SLIDESHOW CAROUSEL ===================== */
.carousel-section {
  padding: 60px 0;
  background: radial-gradient(ellipse at top right, #24365C 0%, var(--navy) 45%, var(--navy-dark) 100%);
}
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}
.carousel-slider {
  position: relative;
  height: 450px;
  background: var(--navy-dark);
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(27, 42, 74, 0.8);
  color: var(--paper);
  border: none;
  font-size: 1.5rem;
  padding: 14px 18px;
  cursor: pointer;
  z-index: 10;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.carousel-btn:hover {
  background: var(--brass);
  color: var(--navy-dark);
}
.prev-btn { left: 15px; }
.next-btn { right: 15px; }

@media (max-width: 600px) {
  .carousel-slider { height: 280px; }
  .carousel-btn { padding: 8px 12px; font-size: 1rem; }
}

/* ===================== GALLERY TILES GRID ===================== */
.gallery-section {
  padding: 80px 0;
  background: var(--paper);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 240px;
  gap: 20px;
  grid-auto-flow: dense;
}
.gallery-tile {
  background: var(--paper-dark);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(42,36,28,0.05);
  transition: transform 0.25s ease;
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-tile:hover {
  transform: translateY(-4px);
}
.gallery-tile:hover img {
  transform: scale(1.03);
}

@media (min-width: 768px) {
  .tile-wide { grid-column: span 2; }
  .tile-tall { grid-row: span 2; }
}

/* ===================== CTA BAND FORM FIXES ===================== */
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-text-column {
  min-width: 0;
}
.cta-form-column {
  position: relative;
  width: 100%;
  height: 250px; /* Provides a solid structural height for the absolutely positioned content */
  background: rgba(253, 252, 250, 0.05);
  border-radius: var(--radius);
  overflow: auto;
}
.cta-form-column iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 860px) {
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta-form-column {
    height: 250px; /* Gives extra clearance on narrow viewports */
  }
}