/* UNLV Percussion — shared stylesheet
   Fonts: Poppins (headings/UI), Inter (body text) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --red: #e8432b;
  --red-dark: #cf3420;
  --gray-text: #4a4a4a;
  --gray-border: #e2e2e2;
  --card-bg: #1c1c1c;
  --max-width: 1200px;
  --header-height: 72px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

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

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-seal {
  height: 34px;
  width: auto;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 2px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.current {
  color: var(--red);
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: var(--card-bg);
  min-width: 220px;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 0.85rem;
}

.dropdown li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 16px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

/* ---------- Section blocks ---------- */

.block {
  padding: 96px 24px;
}

.block-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.block-dark {
  background: var(--black);
  color: var(--white);
}

.block-light {
  background: var(--white);
  color: var(--black);
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.85;
}

.block h1,
.block h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}

.block .subtext {
  font-size: 1.05rem;
  margin-bottom: 36px;
  opacity: 0.9;
}

.block-light .subtext {
  color: var(--gray-text);
}

.block .btn-wrap {
  margin-top: 8px;
}

.small-note {
  font-size: 0.95rem;
  margin: 24px 0 0;
}

.ghost-space {
  height: 2px;
}

/* ---------- Hero (page title) ---------- */

.hero {
  background: var(--black);
  color: var(--white);
  padding: 90px 24px 110px;
  text-align: center;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin-bottom: 18px;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 18px;
}

.hero .subtext {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* ---------- About page ---------- */

.copy-block {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px;
}

.copy-block h2 {
  font-size: 2rem;
  margin-bottom: 28px;
  text-align: center;
}

.copy-block p {
  margin: 0 0 20px;
  color: var(--gray-text);
}

.copy-block p:last-child {
  margin-bottom: 0;
}

.faculty-section {
  background: var(--black);
  color: var(--white);
  padding: 80px 24px;
}

.faculty-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 48px;
}

.faculty-section + .faculty-section {
  padding-top: 0;
}

.faculty-grid {
  max-width: var(--max-width);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.faculty-grid:last-child {
  margin-bottom: 0;
}

.faculty-grid.single {
  grid-template-columns: minmax(220px, 320px);
  justify-content: center;
}

.faculty-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3.8;
  background: #2a2a2a;
}

.faculty-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
}

.faculty-caption .name {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.faculty-caption .role {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ---------- Ensembles page ---------- */

.ensemble-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.ensemble-row:nth-child(even) .ensemble-media {
  order: 2;
}

.ensemble-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.ensemble-copy {
  padding: 56px 48px;
  align-self: center;
}

.ensemble-copy.full-width {
  grid-column: 1 / -1;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  padding: 56px 24px;
}

.ensemble-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.ensemble-copy h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.ensemble-copy p {
  color: var(--gray-text);
  margin: 0;
}

/* ---------- Media page ---------- */

.media-intro {
  padding: 90px 24px 48px;
}

.featured-video {
  max-width: var(--max-width);
  margin: 0 auto 80px;
  padding: 0 24px;
}

.featured-video .video-frame {
  position: relative;
  padding-top: 42%;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.featured-video .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.featured-video .video-title {
  margin-top: 18px;
  font-size: 1.1rem;
}

.gallery-section {
  background: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.gallery-section .subtext {
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto 40px;
}

.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  columns: 5 220px;
  column-gap: 14px;
}

.gallery-grid img {
  width: 100%;
  margin-bottom: 14px;
  border-radius: 6px;
  break-inside: avoid;
}

.videos-section {
  background: var(--black);
  color: var(--white);
  padding: 80px 24px 56px;
  text-align: center;
}

.videos-section .subtext {
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.video-grid {
  max-width: var(--max-width);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
  background: var(--white);
  color: var(--black);
  padding: 0 24px 56px;
}

.video-card .video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  margin-bottom: 14px;
}

.video-card .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
}

.load-more-wrap {
  text-align: center;
  padding: 0 24px 72px;
  background: var(--white);
}

.load-more-wrap button {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: none;
  border: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 2px;
  cursor: pointer;
}

/* ---------- Contact page ---------- */

.contact-hero .btn {
  margin-top: 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  padding: 28px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
}

.social-links img {
  width: 36px;
  height: 36px;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-left: 6px;
}

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

.copyright {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin: 0;
}

/* ---------- 404 page ---------- */

.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.not-found h1 {
  font-size: clamp(2.4rem, 8vw, 4rem);
  margin-bottom: 16px;
}

.not-found p {
  color: var(--gray-text);
  margin-bottom: 28px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .faculty-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    columns: 3 180px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 40px;
  }

  .site-nav > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav a {
    display: block;
    padding: 16px 4px;
    font-size: 0.95rem;
  }

  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    margin-top: 0;
    padding: 0 0 8px;
    display: none;
  }

  .has-dropdown.is-open .dropdown {
    display: block;
  }

  .ensemble-row,
  .ensemble-row:nth-child(even) .ensemble-media {
    grid-template-columns: 1fr;
    order: initial;
  }

  .ensemble-row {
    display: block;
  }

  .ensemble-media img {
    min-height: 260px;
  }

  .ensemble-copy {
    padding: 36px 24px;
  }

  .faculty-grid,
  .faculty-grid.single {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 2 150px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
