/* ======================================
   DMAC Stylesheet v7
   Unique aviation-themed design
   ====================================== */

/* Root palette */
:root {
  --blue: #1f6fb5;       /* aviation blue */
  --orange: #ff7f00;     /* dynamic accent */
  --white: #ffffff;
  --dark: #0c1b2a;       /* deep navy */
  --muted: #cfe0f5;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Inter", Arial, sans-serif;
  background: linear-gradient(to bottom, var(--blue) 0%, var(--dark) 100%);
  background-attachment: fixed;
  color: var(--white);
  line-height: 1.6;
}

/* Containers */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }

/* Links */
a { color: var(--muted); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--orange); }

/* =======================
   Header / Navigation
   ======================= */
header {
  background: rgba(12,27,42,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--orange);
  position: relative;
  z-index: 2000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 15px 0;
}

nav ul li {
  position: relative;
  margin: 0;
  padding: 0;
  height: 100%;
}

nav ul li.dropdown {
  display: inline-block;
  vertical-align: middle;
}

nav a {
  font-weight: 700;
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  transition: background 0.25s, color 0.25s;
}

nav a:hover,
nav a.active {
  background: var(--orange);
  color: var(--dark);
}

/* Dropdown trigger */
nav ul li.dropdown > a {
  display: inline-block;
}

/* Dropdown menu */
nav ul li .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(12,27,42,0.85);
  min-width: 180px;
  z-index: 9999;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
  margin: 0;
  padding: 6px;
  list-style: none;
  line-height: 1.4;
}

nav ul li .dropdown-content li a {
  display: block;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}

nav ul li .dropdown-content li a:hover {
  background-color: var(--orange);
  color: var(--dark);
}

nav ul li.dropdown:hover .dropdown-content,
nav ul li .dropdown-content:hover {
  display: block;
}

nav ul li.dropdown:hover > a {
  background: var(--orange);
  color: var(--dark);
}

/* =======================
   Hero Section
   ======================= */
.hero {
  position: relative;
  background: url('images/hero-field.jpg') center/cover no-repeat;
  text-align: center;
  padding: 100px 20px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(31,111,181,0.6), rgba(12,27,42,0.9));
}
.hero h2, .hero p, .hero .cta-row {
  position: relative; z-index: 1;
}
.hero h2 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  color: var(--orange);
}
.hero p {
  max-width: 700px;
  margin: 20px auto;
  color: var(--white);
}
.cta-button {
  background: var(--orange);
  color: var(--dark);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
}
.cta-button:hover {
  background: var(--white);
  color: var(--blue);
  transform: translateY(-3px);
}

/* =======================
   Section Dividers
   ======================= */
.section {
  position: relative;
}
.section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  transform: skewY(-3deg);
}

/* =======================
   Cards / Highlights
   ======================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255,127,0,0.3);
}
.card h3 { color: var(--orange); margin-bottom: 10px; }

/* =======================
   Event Blocks
   ======================= */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 20px;
}
.event-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.event-card h3 {
  color: var(--orange);
  margin-bottom: 10px;
}
.event-card p {
  color: var(--white);
  margin-bottom: 6px;
}
.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255,127,0,0.3);
}
.event-card::before {
  content: "✈️ ";
  font-size: 1.2rem;
}
.event-card.scale::before { content: "🛩️ "; }
.event-card.funfly::before { content: "🎉 "; }

/* =======================
   Gallery
   ======================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
}
.album-tile,
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  max-width: 220px;
}
.album-tile img,
.gallery-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.album-tile:hover img,
.gallery-item:hover img { transform: scale(1.08); }
.album-tile span,
.gallery-item span {
  position: absolute;
  bottom: 8px; left: 8px;
  background: rgba(12,27,42,0.7);
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
}
.album-tile::after {
  content: "📁";
  position: absolute;
  top: 8px; right: 8px;
  font-size: 1rem;
  color: var(--orange);
}

/* =======================
   Lightbox
   ======================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}
.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  z-index: 10000;
}
.lightbox-arrow.left { left: 30px; }
.lightbox-arrow.right { right: 30px; }

/* =======================
   Album Modal (DMAC theme)
   ======================= */
#albumModal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#albumModal .modal-box {
  background: var(--dark); /* DMAC deep navy */
  color: var(--white);
  padding: 20px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
#albumModal .modal-box h3 {
  color: var(--orange);
  margin-bottom: 15px;
}
#albumModal button.close-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--orange);
  color: var(--dark);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
#albumModal button.close-btn:hover {
  background: var(--white);
  color: var(--blue);
}
#albumModalContent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 12px;
}
#albumModalContent img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.25s ease;
  cursor: pointer;
}
#albumModalContent img:hover {
  transform: scale(1.05);
}

/* =======================
   Membership Page
   ======================= */
.membership {
  text-align: center;
  padding: 60px 20px;
}
.membership h2 {
  color: var(--orange);
  margin-bottom: 20px;
}
.membership .intro {
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--muted);
}
.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.membership-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}
.membership-card h3 {
  color: var(--orange);
  margin-bottom: 10px;
}
.membership-card p {
  margin-bottom: 10px;
  color: var(--white);
}
.membership-card ul {
  margin: 0 0 20px;
  padding-left: 20px;
}
.membership-card ul li {
  margin-bottom: 6px;
  color: var(--muted);
}
.membership-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255,127,0,0.3);
}
.membership-card .cta-button {
  display: inline-block;
  margin-top: 10px;
}

/* =======================
   About Page Bands
   ======================= */
.about {
  text-align: center;
  padding: 80px 20px;
}
.about h2 {
  color: var(--orange);
  margin-bottom: 20px;
}
.about .intro {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.about-band {
  padding: 80px 20px;
  margin: 40px 0;
}
.about-band h3 {
  color: var(--orange);
  margin-bottom: 20px;
  font-size: 1.6rem;
}
.about-band p,
.about-band ul {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--white);
}
.about-band ul {
  padding-left: 20px;
}
.about-band ul li {
  margin-bottom: 10px;
  color: var(--muted);
}
.about-band.mission {
  background: rgba(255,255,255,0.05);
}
.about-band.history {
  background: rgba(12,27,42,0.6);
}
.about-band.facilities {
  background: rgba(255,127,0,0.1);
}
.about-band.community {
  background: rgba(31,111,181,0.15);
}

/* =======================
   Footer
   ======================= */
footer {
  background: rgba(12,27,42,0.9);
  text-align: center;
  padding: 30px 20px;
  border-top: 2px solid var(--orange);
}
footer p {
  margin: 8px 0;
  color: var(--muted);
}
footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}
footer .social-icons a {
  color: var(--orange);
  font-size: 1.4rem;
  transition: color 0.3s;
}
footer .social-icons a:hover {
  color: var(--white);
}

/* =======================
   Event Details Override
   ======================= */
.event-details {
  background: #004080 !important; /* match scorecard DMAC blue */
  border: 2px solid #ff6600;      /* optional orange border to match */
  border-radius: 8px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* =======================
   Mobile Navigation Fix
   ======================= */

/* Hide hamburger completely by default (desktop) */
.hamburger {
  display: none;
}

@media (max-width: 768px) {
  /* Show hamburger button only on mobile */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 10px;
    z-index: 3000;
  }

  .hamburger span {
    width: 100%;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Hide nav links by default on mobile */
  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(12,27,42,0.95);
    border-radius: 8px;
    padding: 10px;
    margin-top: 50px;
  }

  /* Show nav when toggled */
  nav ul.show {
    display: flex;
  }

  nav ul li {
    text-align: left;
    margin: 5px 0;
  }

  nav ul li a {
    display: block;
    padding: 10px;
    color: var(--white);
  }
}
