/* ============================================================
   CAMBA Website — styles.css
   Charlotte Alumni Marching Band Association
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --white: #FFFFFF;
  --green: #005035;
  --gold: #A49665;
  --black: #1a1a1a;
  --gray-light: #f5f5f5;
  --gray-medium: #e0e0e0;
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--black);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

ul {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1em;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: var(--gray-light);
}

.section--green {
  background-color: var(--green);
  color: var(--white);
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--white);
}

/* ---------- Header / Navigation ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--green);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.header__logo span {
  color: var(--gold);
}

.header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.header__nav a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--gold);
}

.header__nav a.active {
  color: var(--gold);
}

/* Hamburger Menu Toggle */
.header__toggle {
  display: none;
}

.header__toggle-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.header__toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__toggle:checked ~ .header__toggle-label span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__toggle:checked ~ .header__toggle-label span:nth-child(2) {
  opacity: 0;
}

.header__toggle:checked ~ .header__toggle-label span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav dropdown */
.header__mobile-nav {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--green);
  padding: 1rem 0;
  flex-direction: column;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.header__toggle:checked ~ .header__mobile-nav {
  display: flex;
}

.header__mobile-nav a {
  display: block;
  color: var(--white);
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s;
}

.header__mobile-nav a:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--gold);
}

/* Join CAMBA Button */
.header__cta {
  display: none;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--gold {
  background-color: var(--gold);
  color: var(--white);
}

.btn--gold:hover {
  background-color: #8d7f55;
  color: var(--white);
}

.btn--green {
  background-color: var(--green);
  color: var(--white);
}

.btn--green:hover {
  background-color: #003d28;
  color: var(--white);
}

.btn--outline {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn--outline:hover {
  background-color: var(--gold);
  color: var(--white);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline-white:hover {
  background-color: var(--white);
  color: var(--green);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 80, 53, 0.75) 0%,
    rgba(0, 80, 53, 0.65) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem 1.5rem;
}

.hero__content h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.hero__content p {
  color: var(--white);
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* ---------- Page Hero (smaller variant) ---------- */
.hero--sm {
  min-height: 20vh;
}

.hero--sm .hero__content {
  padding: 1.5rem 1.5rem;
}

.hero--sm .hero__content h1 {
  font-size: 2rem;
}

.hero--sm .hero__content p {
  font-size: 1rem;
}

/* ---------- About CAMBA Sidebar ---------- */
.about-sidebar {
  display: flex;
  flex-direction: column;
}

.about-sidebar__text {
  background-color: var(--green);
  color: var(--white);
  padding: 3rem 2rem;
}

.about-sidebar__text h2 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-sidebar__text p {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.about-sidebar__carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--gray-medium);
}

.about-sidebar__carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.about-sidebar__carousel img.active {
  display: block;
}

.carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background-color: var(--white);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 80, 53, 0.6);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background-color 0.2s;
}

.carousel-arrow:hover {
  background-color: rgba(0, 80, 53, 0.9);
}

.carousel-arrow--prev {
  left: 0.5rem;
  border-radius: 0 4px 4px 0;
}

.carousel-arrow--next {
  right: 0.5rem;
  border-radius: 4px 0 0 4px;
}

/* ---------- Welcome Section ---------- */
.welcome {
  text-align: center;
}

.welcome h2 {
  color: var(--green);
}

.welcome p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ---------- Follow Us Section ---------- */
.follow-us {
  text-align: center;
}

.follow-us h2 {
  color: var(--green);
}

.follow-us__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.follow-us__link:hover {
  color: var(--gold);
}

.follow-us__icon {
  width: 24px;
  height: 24px;
}

/* ---------- About Us Page ---------- */
.page-header {
  background-color: var(--green);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
}

.page-header h1 {
  color: var(--white);
  margin: 0;
}

.page-header p {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Story / Mission sections */
.story {
  max-width: 800px;
  margin: 0 auto;
}

.story h2 {
  color: var(--green);
  margin-top: 1.5rem;
}

.story p {
  line-height: 1.8;
  color: #333;
}

.mission-block {
  border-left: 4px solid var(--gold);
  padding-left: 1.5rem;
  max-width: 800px;
  margin: 2rem auto;
}

/* Button Group */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Leadership Grid ---------- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.leadership-card {
  text-align: center;
  padding: 0.5rem;
}

.leadership-card__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--gray-medium);
  margin: 0 auto 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 1.75rem;
  font-weight: 700;
}

.leadership-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.leadership-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.25rem;
}

.leadership-card__title {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* ---------- GiveButter Widget ---------- */
.givebutter-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Events Page ---------- */
.calendar-embed {
  width: 100%;
  min-height: 600px;
  border: 2px solid var(--gray-medium);
  border-radius: 4px;
  background-color: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.1rem;
}

.calendar-embed iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* ---------- FAQ / Accordion ---------- */
.faq-section-title {
  color: var(--green);
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}

.faq-section-title:first-child {
  margin-top: 0;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accordion__item {
  border-bottom: 1px solid var(--gray-medium);
}

.accordion__trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  transition: color 0.2s;
}

.accordion__trigger:hover {
  color: var(--gold);
}

.accordion__question {
  flex: 1;
}

.accordion__icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background-color: var(--green);
  transition: transform 0.3s;
}

.accordion__icon::before {
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
}

.accordion__icon::after {
  top: 2px;
  left: 9px;
  width: 2px;
  height: 16px;
}

.accordion__item.open .accordion__icon::after {
  transform: rotate(90deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion__item.open .accordion__content {
  max-height: 500px;
}

.accordion__answer {
  padding: 0 0 1.5rem 0;
  line-height: 1.7;
  color: #333;
  font-size: 0.95rem;
}

.accordion__answer a {
  color: var(--green);
  text-decoration: underline;
  font-weight: 600;
}

.accordion__answer a:hover {
  color: var(--gold);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--green);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

.footer__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.footer__links a {
  color: var(--white);
  font-size: 0.85rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer__contact {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer__contact a {
  color: var(--white);
  opacity: 0.85;
}

.footer__contact a:hover {
  opacity: 1;
  color: var(--gold);
}

/* ---------- Utility ---------- */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--gold);
}

.text-green {
  color: var(--green);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================================
   Responsive — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }

  .hero {
    min-height: 80vh;
  }

  .hero--sm {
    min-height: 20vh;
  }

  .hero__content p {
    font-size: 1.25rem;
  }

  .leadership-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .leadership-card {
    padding: 1rem;
  }

  .leadership-card__img {
    width: 150px;
    height: 150px;
    font-size: 2rem;
  }

  .leadership-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

  .leadership-card__name {
    font-size: 1.1rem;
  }

  .leadership-card__title {
    font-size: 0.9rem;
  }

  .about-sidebar {
    flex-direction: row;
    min-height: 50vh;
  }

  .about-sidebar__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
  }

  .about-sidebar__carousel {
    flex: 1;
    aspect-ratio: 16 / 9;
  }
}

/* ============================================================
   Responsive — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }

  /* Show desktop nav, hide hamburger */
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: flex;
  }

  .header__toggle-label {
    display: none;
  }

  .header__mobile-nav {
    display: none !important;
  }

  .leadership-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .calendar-embed iframe {
    height: 700px;
  }
}
