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

:root {
  --color-primary: #1b5e20;       /* AHS dark green */
  --color-primary-dark: #0a3d0a;
  --color-accent: #ffffff;         /* White accent */
  --color-bg-dark: #1b5e20;       /* Dark green background - AHS green */
  --color-bg-darker: #0d3b0d;
  --color-text-light: #ffffff;
  --color-text-dark: #333333;
  --color-hero-overlay: rgba(0, 0, 20, 0.45);
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-nav: 'Trebuchet MS', 'Lucida Sans', sans-serif;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --nav-height: 60px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-bg-dark);
  line-height: 1.6;
}

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

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

/* ===== Typography - Small Caps Style matching Martin HS ===== */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

/* ===== Navigation ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--nav-height);
  padding: 0 20px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 8px 20px;
  color: var(--color-text-light);
  font-family: var(--font-nav);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  border-color: rgba(255, 255, 255, 0.6);
}

/* Dropdown */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  list-style: none;
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu > li:hover .nav-dropdown {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text-light);
  font-family: var(--font-nav);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.nav-dropdown li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-light);
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 4rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-shadow: 2px 4px 8px rgba(0,0,0,0.7);
  margin-bottom: 20px;
}

.hero-content .motto {
  font-size: 1.3rem;
  font-style: italic;
  letter-spacing: 0.2em;
  opacity: 0.9;
  margin-bottom: 30px;
}

.hero-content .school-info {
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.6;
}

.hero-content .school-info .address {
  font-size: 0.95rem;
  font-weight: normal;
  opacity: 0.85;
}

/* Page Hero (shorter, for subpages) */
.page-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.page-hero .hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
}

.page-hero .hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}

.page-hero h1 {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 3.5rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  text-shadow: 2px 4px 8px rgba(0,0,0,0.7);
}

/* ===== Social Sidebar ===== */
.social-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #333;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.social-sidebar a:hover {
  background: white;
  transform: scale(1.1);
}

.social-sidebar svg {
  width: 24px;
  height: 24px;
}

/* ===== Content Sections ===== */
.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 60px 20px;
}

.section-darker {
  background: var(--color-bg-darker);
  color: var(--color-text-light);
  padding: 60px 20px;
}

.section-light {
  background: #ffffff;
  color: var(--color-text-dark);
  padding: 60px 20px;
}

.section-black {
  background: #1a1a1a;
  color: var(--color-text-light);
  padding: 60px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-variant: small-caps;
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

/* ===== Announcement Banner ===== */
.announcement {
  text-align: center;
  padding: 30px 20px;
}

.announcement h2 {
  font-size: 2rem;
  font-variant: small-caps;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.announcement p {
  font-size: 1.2rem;
  color: var(--color-text-light);
}

/* ===== Season Banner ===== */
.season-banner {
  width: 100%;
  padding: 0;
}

.season-banner img {
  width: 100%;
  display: block;
}

/* ===== Show Cards ===== */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.show-card {
  background: #2a2a2a;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s;
}

.show-card:hover {
  transform: translateY(-4px);
}

.show-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.show-card .show-info {
  padding: 15px;
}

.show-card .show-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.show-card .show-dates {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== Image Gallery / Slideshow ===== */
.gallery-section {
  padding: 60px 20px;
  background: var(--color-bg-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Slideshow */
.slideshow {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #000;
}

.slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.slideshow img.active {
  opacity: 1;
}

.slideshow-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.slideshow-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  border: 2px solid transparent;
}

.slideshow-thumbs img.active,
.slideshow-thumbs img:hover {
  opacity: 1;
  border-color: white;
}

/* ===== Donate / CTA Button ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 2px solid var(--color-text-light);
  color: var(--color-text-dark);
  background: var(--color-text-light);
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover {
  background: transparent;
  color: var(--color-text-light);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-light);
}

.btn-outline:hover {
  background: var(--color-text-light);
  color: var(--color-text-dark);
}

/* ===== Page Content ===== */
.page-content {
  background: white;
  padding: 60px 20px;
}

.page-content .container {
  max-width: 900px;
}

.page-content p {
  margin-bottom: 1.2em;
  line-height: 1.8;
}

.page-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.page-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--color-primary-dark);
}

.page-content ul, .page-content ol {
  margin-left: 30px;
  margin-bottom: 1.2em;
}

.page-content li {
  margin-bottom: 0.4em;
}

/* ===== Production Gallery Page ===== */
.production-gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.production-gallery .season-heading {
  text-align: center;
  font-size: 1.5rem;
  text-decoration: underline;
  margin: 40px 0 10px;
}

.production-gallery .season-shows {
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* ===== Directors / Staff ===== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.staff-card {
  text-align: center;
}

.staff-card img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid var(--color-accent);
}

.staff-card h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.staff-card .title {
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 10px;
}

/* ===== Video Embed ===== */
.video-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ===== Footer ===== */
.site-footer {
  background: #111;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-container {
    justify-content: space-between;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 10px 0;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu > li > a {
    padding: 12px 20px;
    border: none;
  }

  .nav-dropdown {
    position: static;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    display: none;
  }

  .nav-menu > li:hover .nav-dropdown,
  .nav-menu > li.open .nav-dropdown {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .social-sidebar {
    display: none;
  }

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

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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