/* ============================================
   PLAY Layout — layout.css
   Grids, header, footer, containers.
   ============================================ */

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-200);
}

.site-header.scrolled .logo-p {
  color: var(--dark-blue);
}

.site-header.scrolled .logo-tagline {
  color: var(--gray-500);
}

.site-header.scrolled .nav-link {
  color: var(--gray-700);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--dark-blue);
  background: rgba(0, 0, 0, 0.04);
}

.site-header.scrolled .hamburger span {
  background: var(--dark-blue);
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  line-height: 1;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.logo .logo-dark {
  display: none;
}

.logo .logo-light {
  display: block;
}

.site-header.scrolled .logo .logo-light {
  display: none;
}

.site-header.scrolled .logo .logo-dark {
  display: block;
}

.logo-p {
  color: var(--white);
}

.logo-l {
  color: var(--accent-red);
}

.logo-a {
  color: var(--accent-yellow);
}

.logo-y {
  color: var(--accent-green);
}

.logo-tagline {
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--gray-500);
  margin: 0;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ---------- Navigation ---------- */
.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- FOOTER ---------- */
.site-footer {
  min-height: var(--footer-min-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding: var(--footer-padding-block) var(--footer-padding-inline);
  align-items: start;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-col--links {
  align-items: center;
  text-align: center;
}

.footer-col-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--gray-500);
  letter-spacing: 0.5px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--footer-font-size);
  color: rgba(255, 255, 255, 0.7);
}
.footer-info a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-info a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.social-icon:hover {
  color: var(--white);
}

.footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-footer-outline {
  padding: 9px 22px;
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-footer-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-footer-green {
  padding: 9px 22px;
  background: var(--accent-green);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: var(--space-md) var(--footer-padding-inline);
  font-size: var(--footer-copyright-size);
  color: var(--gray-500);
}

/* ---------- Content Wrappers ---------- */
.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* ---------- Hero Wave ---------- */
.hero-wave path {
  fill: var(--off-white);
}

.report-page .hero-wave path {
  fill: var(--white);
}

/* ---------- RESPONSIVE: Mobile-first Layout ---------- */
/* Base (mobile) styles are set above; these queries extend for larger screens */
@media (max-width: 768px) {
  .nav-item.dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 0;
    margin-top: 5px;
    display: none;
    min-width: 100%;
  }

  .nav-item.dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding-left: 25px;
  }

  /* Scrolled-state dropdown overrides */
  .site-header.scrolled .nav-item.dropdown .dropdown-menu {
    background: var(--gray-100);
  }

  .site-header.scrolled .dropdown-item {
    color: var(--gray-700);
  }

  .site-header.scrolled .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--dark-blue);
  }

  .dropdown-arrow {
    transition: transform 0.3s ease;
  }

  .nav-item.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-container {
    padding: 0 18px;
  }

  /* Footer stacks vertically with reduced (but still generous) padding on phones */
  .site-footer {
    min-height: 0;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-md);
  }

  .footer-col--links {
    align-items: flex-start;
    text-align: left;
  }

  .footer-ctas {
    width: 100%;
  }

  .btn-footer-outline,
  .btn-footer-green {
    flex: 1;
    text-align: center;
    /* Comfortable touch target on mobile */
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .header-actions .btn-donate {
    display: none;
  }

  /* Mobile nav open state — default (hero / transparent header) */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0c1c13;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  /* Mobile nav open state — scrolled (white header) */
  .site-header.scrolled .main-nav.open {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--gray-200);
  }

  .site-header.scrolled .main-nav.open .nav-link {
    color: var(--gray-700);
  }

  .site-header.scrolled .main-nav.open .nav-link:hover,
  .site-header.scrolled .main-nav.open .nav-link.active {
    color: var(--dark-blue);
    background: rgba(0, 0, 0, 0.04);
  }

  /* ---------- DNA Timeline Mobile Overrides ---------- */
  .dna-timeline-container {
    padding: 60px 20px;
  }

  .dna-timeline-spine-wrapper::before {
    left: 20px;
  }

  .dna-timeline-item {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-left: 40px;
    padding-right: 0;
    margin-left: 0 !important;
  }

  .dna-timeline-item:nth-child(even) {
    align-self: flex-start;
    justify-content: flex-start;
    padding-left: 40px;
    padding-right: 0;
    margin-left: 0;
  }

  .dna-timeline-node {
    left: 10px !important;
    right: auto !important;
    top: 36px;
    transform: translateY(-50%) !important;
  }

  .dna-timeline-card {
    max-width: 100%;
    grid-column: 1 !important;
  }

  .dna-timeline-image-block {
    display: none !important;
  }
}

/* --- Dropdown Navigation --- */
.nav-item.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: var(--white);
  min-width: 200px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 1000;
}

@media (min-width: 769px) {
  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}

.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--dark-blue);
  padding-left: 25px;
}

.dropdown-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  transition: transform var(--transition);
}

.nav-item.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.site-header.scrolled .dropdown-menu {
  background: var(--white);
  border: 1px solid var(--gray-200);
}

/* --- Featured Event card: responsive layout ---
   Desktop keeps the two-column (image left / details right) grid defined in
   components.css. On mobile (< 768px) — where main.js relocates the card
   beneath the Stats section — stack the image on top of the details and cap
   the width so it stays centred and legible, keeping the rounded rectangle. */
@media (max-width: 767px) {
  .featured-event-card {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .featured-event-img {
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 200px;
  }
}



