/* ============================================================
   SSA 62nd Grand Alumni Homecoming 2027
   Theme: Dark Cosmic · Pink/Cyan · Teko + Poppins
   ============================================================ */

:root {
  /* Backgrounds */
  --bg:          #090B1A;
  --bg-2:        #0D102A;
  --bg-card:     rgba(255, 255, 255, 0.04);
  --bg-card-h:   rgba(255, 255, 255, 0.08);

  /* Accents */
  --pink:        #FF4FA0;
  --pink-light:  #FF80BF;
  --pink-glow:   rgba(255, 79, 160, 0.4);
  --cyan:        #00E5FF;
  --cyan-light:  #66F0FF;
  --cyan-glow:   rgba(0, 229, 255, 0.38);
  --purple-glow: rgba(155, 77, 255, 0.3);

  /* Text */
  --white:       #FFFFFF;
  --white-dim:   rgba(255, 255, 255, 0.78);
  --white-muted: rgba(255, 255, 255, 0.48);
  --white-faint: rgba(255, 255, 255, 0.1);

  /* Borders */
  --border:      rgba(255, 255, 255, 0.08);
  --border-pink: rgba(255, 79, 160, 0.35);
  --border-cyan: rgba(0, 229, 255, 0.32);

  /* Typography — matching original site */
  --font-heading: 'Teko', 'Arial', sans-serif;
  --font-body:    'Poppins', 'Arial', sans-serif;

  /* Layout */
  --nav-height:      68px;
  --section-pad:     clamp(60px, 8vw, 108px);
  --container-width: 1200px;
  --container-pad:   clamp(20px, 5vw, 56px);

  /* Shadows */
  --shadow:    0 4px 20px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 36px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.6);

  --ease:      0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-fast: 0.16s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--white-dim);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================
   Navigation
   ============================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 500;
  height: var(--nav-height);
  background: rgba(9, 11, 26, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--ease), border-color var(--ease);
}

.nav.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.6);
  border-bottom-color: var(--border-pink);
}

.nav__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.2));
}

.nav__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav__links a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color var(--ease-fast), background var(--ease-fast);
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white-dim);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease-fast);
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================
   Hero
   ============================ */
.hero {
  padding-top: var(--nav-height);
  background: var(--bg);
}

.hero__banner {
  width: 100%;
  line-height: 0;
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero__ctas {
  padding: 36px var(--container-pad);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg);
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--ease-fast), border-color var(--ease-fast),
              color var(--ease-fast), transform var(--ease-fast), box-shadow var(--ease-fast);
  border: 2px solid transparent;
  line-height: 1;
}

.btn--outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.12);
}

.btn--pink {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
  box-shadow: 0 4px 20px var(--pink-glow);
}
.btn--pink:hover {
  background: var(--pink-light);
  border-color: var(--pink-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--pink-glow);
}

.btn--cyan {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
}
.btn--cyan:hover {
  background: rgba(0,229,255,0.1);
  transform: translateY(-2px);
}

.btn--full { width: 100%; text-align: center; }

/* ============================
   Sections Shared
   ============================ */
.section { padding: var(--section-pad) 0; }

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

.section__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section__rule {
  width: 56px;
  height: 3px;
  background: linear-gradient(to right, var(--pink), var(--cyan));
  margin: 0 auto 32px;
  border-radius: 2px;
}

.section__sub {
  font-size: 0.97rem;
  color: var(--white-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.7;
}

/* Fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--delay, 0s);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================
   Carousel (shared)
   ============================ */
.carousel,
.merch-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.carousel__track-wrap {
  width: 100%;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Events: full poster, no crop */
.carousel__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 700px;
}

/* Merch: show full product images */
.carousel__img--merch {
  max-height: 560px;
  object-fit: contain;
}

.carousel__arrow {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(9, 11, 26, 0.8);
  border: 1px solid var(--border-pink);
  color: var(--pink);
  font-size: 1.3rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--ease-fast), border-color var(--ease-fast),
              box-shadow var(--ease-fast), transform var(--ease-fast);
  backdrop-filter: blur(8px);
}

.carousel__arrow--prev { left: -18px; }
.carousel__arrow--next { right: -18px; }

.carousel__arrow:hover {
  background: var(--pink);
  color: var(--white);
  border-color: var(--pink);
  box-shadow: 0 0 18px var(--pink-glow);
  transform: translateY(-50%) scale(1.1);
}

.carousel__dots {
  display: flex;
  gap: 10px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--white-faint);
  cursor: pointer;
  transition: background var(--ease-fast), transform var(--ease-fast), box-shadow var(--ease-fast);
  padding: 0;
}

.carousel__dot.active {
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink-glow);
  transform: scale(1.3);
}

/* ============================
   Events
   ============================ */
.events { background: var(--bg-2); }

/* ============================
   Merch
   ============================ */
.merch { background: var(--bg); }

.merch__order-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  text-align: center;
}

.merch__order-note {
  font-size: 0.9rem;
  color: var(--white-muted);
  max-width: 480px;
  line-height: 1.65;
}

/* ============================
   Order Modal
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 18, 0.82);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #111426;
  border: 1px solid var(--border-pink);
  border-radius: 14px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 40px var(--pink-glow);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  color: var(--white-muted);
  cursor: pointer;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  transition: background var(--ease-fast), color var(--ease-fast);
}
.modal__close:hover { background: var(--border); color: var(--pink); }

.modal__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.1;
}

.modal__sub {
  font-size: 0.88rem;
  color: var(--white-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

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

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 6px;
  line-height: 1;
}

.label-opt {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.78em;
  color: var(--white-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--white);
  background: rgba(255,255,255,0.05);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.22); }

.form-group select option { background: #111426; color: var(--white); }

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.modal__thanks {
  display: none;
  text-align: center;
  padding: 44px 20px 36px;
}
.modal__thanks.active { display: block; }

.modal__thanks-star {
  font-size: 2.6rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 18px;
  animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pop-in {
  from { transform: scale(0.4) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.modal__thanks h4 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.modal__thanks p {
  color: var(--white-muted);
  font-size: 1rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ============================
   Tickets
   ============================ */
.tickets { background: var(--bg-2); }

.tickets__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 24px 36px;
  text-align: center;
  position: relative;
  transition: background var(--ease), border-color var(--ease),
              transform var(--ease), box-shadow var(--ease);
}

.ticket-card:hover {
  background: var(--bg-card-h);
  border-color: var(--border-cyan);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px var(--cyan-glow);
}

.ticket-card--featured {
  border-color: var(--border-pink);
  background: rgba(255, 79, 160, 0.04);
}
.ticket-card--featured:hover {
  border-color: var(--pink);
  box-shadow: 0 12px 40px var(--pink-glow);
}

.ticket-card__popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--pink), #9B4DFF);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--pink-glow);
}

.ticket-card__tier {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  padding: 5px 16px;
  border: 1px solid var(--border-cyan);
  border-radius: 20px;
  display: inline-block;
  line-height: 1.2;
}

.ticket-card--featured .ticket-card__tier {
  color: var(--pink);
  border-color: var(--border-pink);
}

.ticket-card__price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.ticket-card__note {
  font-size: 0.88rem;
  color: var(--white-muted);
  line-height: 1.65;
}

.tickets__payment {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.tickets__payment-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 16px;
}

.tickets__payment-methods {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-badge {
  padding: 9px 22px;
  border: 1px solid var(--border-cyan);
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,229,255,0.06);
  transition: background var(--ease-fast), box-shadow var(--ease-fast);
}

.payment-badge:hover {
  background: rgba(0,229,255,0.12);
  box-shadow: 0 0 16px var(--cyan-glow);
}

/* ============================
   FAQ
   ============================ */
.faq { background: var(--bg); }

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color var(--ease-fast);
}

.faq-item.open { border-color: var(--border-pink); }

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--ease-fast), background var(--ease-fast);
}

.faq-item__question:hover { background: var(--bg-card-h); }
.faq-item.open .faq-item__question { color: var(--pink); }

.faq-item__icon {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform var(--ease), color var(--ease-fast);
  font-weight: 300;
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
  color: var(--pink);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

.faq-item__answer p {
  padding: 0 24px 22px;
  font-size: 0.97rem;
  color: var(--white-muted);
  line-height: 1.75;
}

.faq-item__answer strong { color: var(--white-dim); }

.faq-item__answer a {
  color: var(--cyan);
  text-decoration: none;
}
.faq-item__answer a:hover { color: var(--cyan-light); }

/* ============================
   Copyright
   ============================ */
.copyright-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 18px var(--container-pad);
  text-align: center;
}

.copyright-bar p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.06em;
}

/* ============================
   Responsive — Tablet (≤ 960px)
   ============================ */
@media (max-width: 960px) {
  .tickets__grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================
   Responsive — Mobile (≤ 768px)
   ============================ */
@media (max-width: 768px) {
  html { font-size: 17px; }

  .nav__hamburger { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    inset-inline: 0;
    background: rgba(9, 11, 26, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 14px var(--container-pad) 18px;
    gap: 2px;
    border-bottom: 1px solid var(--border-pink);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
    z-index: 490;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__links a { padding: 12px 16px; width: 100%; }

  .carousel__arrow--prev { left: 4px; }
  .carousel__arrow--next { right: 4px; }

  .modal { padding: 32px 22px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============================
   Small Mobile (≤ 480px)
   ============================ */
@media (max-width: 480px) {
  html { font-size: 16px; }

  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__ctas .btn { width: 100%; max-width: 280px; text-align: center; }

  .tickets__payment-methods { flex-direction: column; align-items: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
  .carousel__track { transition: none; }
}
