/* ================= BASIC RESET ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #ffffff;
  background: #0d1f0d;
}

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1a3a1a;
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.slug-icon {
  font-size: 1.1rem;
}

.nav-title {
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links > a,
.nav-links .nav-link-with-dropdown {
  color: #d6ead6;
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
}

/* underline animation on hover */
.nav-links > a::after,
.nav-links .nav-link-with-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #7ed957;
  transition: width 0.2s ease;
}

.nav-links > a:hover::after,
.nav-links > a.active::after,
.nav-links .nav-link-with-dropdown:hover::after {
  width: 100%;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* ============ DROPDOWN (DESKTOP) ============ */

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #122612;
  padding: 0.4rem 0;
  display: flex;
  flex-direction: column;
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  min-width: 160px;
}

.dropdown a {
  display: block;
  padding: 0.35rem 0.8rem;
  color: #d6ead6;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
}

.dropdown a:hover {
  color: #7ed957;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.has-dropdown:hover .dropdown a {
  animation: dropdownFade 0.18s forwards;
}

.has-dropdown:hover .dropdown a:nth-child(1) { animation-delay: 0s; }
.has-dropdown:hover .dropdown a:nth-child(2) { animation-delay: 0.05s; }
.has-dropdown:hover .dropdown a:nth-child(3) { animation-delay: 0.1s; }
.has-dropdown:hover .dropdown a:nth-child(4) { animation-delay: 0.15s; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  height: 65vh;
  min-height: 420px;
  background: linear-gradient(135deg, #0d1f0d 0%, #1a3a1a 50%, #0d1f0d 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 0 1.5rem;
}

.hero.hero-home {
  height: 85vh;
  min-height: 520px;
}

/* Hero emoji placeholder — same visual weight as a background photo */
.hero-emoji-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(8rem, 20vw, 16rem);
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 5, 0.6);
}

.hero-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  color: #ffffff;
  padding-top: 60px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 4.5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #7ed957;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #1a3a1a;
  color: #ffffff;
}

.btn-primary:hover {
  background: #0f2510;
}

.btn-secondary {
  background: #7ed957;
  color: #0d1f0d;
}

.btn-secondary:hover {
  background: #65c040;
}

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

/* ================= GENERIC SECTIONS ================= */

.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  background: #0d1f0d;
}

.section.alt {
  background: #122612;
}

/* full-bleed alt background */
.section-alt-bleed {
  background: #122612;
  padding: 4rem 1.5rem;
}

.section-alt-bleed .section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section h2,
.section-inner h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.section p,
.section-inner p {
  color: #c4dcc4;
  line-height: 1.6;
}

/* page-style header */
.page-header {
  padding-top: 90px;
  padding-bottom: 1.5rem;
  background: #1a3a1a;
}

.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-header h1 {
  font-size: 2.3rem;
  margin-bottom: 0.25rem;
}

.page-header p {
  color: #acd4ac;
}

/* ================= SPLIT SECTION (text + image/emoji) ================= */

.section-split {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  background: inherit;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
}

.section-split.alt {
  background: #122612;
}

.section-split .split-text p + p {
  margin-top: 0.75rem;
}

.section-split ul {
  margin-top: 0.75rem;
  margin-left: 1.25rem;
  color: #c4dcc4;
}

/* Emoji placeholder — same size as the images in MATE */
.split-emoji {
  width: 80%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border-radius: 8px;
  background: #1e3d1e;
  border: 2px dashed #3a6b3a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 5rem;
}

.split-emoji .emoji-label {
  font-size: 0.8rem;
  color: #6a9b6a;
  text-align: center;
  padding: 0 1rem;
  font-family: monospace;
}

/* square/avatar emoji placeholder for member cards */
.member-avatar-emoji {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #1e3d1e;
  border: 2px dashed #3a6b3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin: 0 auto 0.75rem;
}

/* ================= GENERIC CARDS / GRIDS ================= */

.card-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.info-card {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  background: #1a3a1a;
  border: 1px solid #2a502a;
}

.info-card.wide {
  max-width: 900px;
  margin: 1.5rem auto 0;
}

.info-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.card-meta {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: #7aaa7a;
}

/* ================= Q&A BLOCKS ================= */

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qa-item {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  background: #1a3a1a;
  border: 1px solid #2a502a;
}

.qa-item h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.qa-item p {
  font-size: 0.95rem;
  color: #c4dcc4;
}

.about-logo-emoji {
  max-width: 280px;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #1e3d1e;
  border: 2px dashed #3a6b3a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  margin: 0 auto;
}

/* ================= MEMBER + LEAD CARDS ================= */

.member-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.member-card {
  padding: 1.2rem 1rem 1.3rem;
  border-radius: 10px;
  background: #1a3a1a;
  border: 1px solid #2a502a;
  text-align: center;
}

.member-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.member-major {
  font-size: 0.9rem;
  font-weight: 600;
  color: #7ed957;
  margin-bottom: 0.25rem;
}

.member-role {
  font-size: 0.9rem;
  color: #c4dcc4;
}

.leads-grid {
  justify-items: center;
}

.leads-grid .lead-card {
  border: 2px solid #7ed957;
}

#leads.section.alt {
  background: #0d1f0d;
}

#leads.section {
  padding-bottom: 2rem;
}

#members.section {
  padding-top: 2rem;
}

/* ================= MEETING GRID ================= */

.meeting-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.meeting-slot {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #0d1f0d;
  border: 1px solid #2a502a;
}

.meeting-slot h3 {
  margin-bottom: 0.25rem;
}

/* ================= COMPETITION / SKILLS CARDS ================= */

.competition-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.competition-card {
  padding: 1.5rem;
  border-radius: 10px;
  background: #1a3a1a;
  border: 1px solid #2a502a;
}

.competition-card .comp-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.competition-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #7ed957;
}

.competition-card p {
  color: #c4dcc4;
  font-size: 0.95rem;
  line-height: 1.6;
}

.skills-list {
  margin-top: 0.9rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: #c4dcc4;
}

.skills-list li + li {
  margin-top: 0.25rem;
}

/* ================= PLACEHOLDER NOTE ================= */

.placeholder-note {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  background: #2a1f00;
  border: 1px dashed #a08030;
  color: #d4aa50;
  font-size: 0.82rem;
  font-family: monospace;
}

/* stack diagram placeholder */
.stack-diagram-placeholder {
  margin-top: 1.5rem;
  width: 100%;
  min-height: 220px;
  border-radius: 8px;
  background: #1e3d1e;
  border: 2px dashed #3a6b3a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 3rem;
}

.stack-diagram-placeholder .emoji-label {
  font-size: 0.8rem;
  color: #6a9b6a;
  font-family: monospace;
  text-align: center;
  padding: 0 1rem;
}

/* ================= TEAM PAGE: FULL-WIDTH STRIPS ================= */

.subteam-strips {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 50vh;
}

.subteam-strip {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.subteam-strip-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 8vw, 7rem);
  opacity: 0.3;
}

/* distinct colour per strip */
.strip-mechanical  { background: #1a3a1a; }
.strip-embedded    { background: #0f2d2a; }
.strip-perception  { background: #1a2a3a; }
.strip-simulations { background: #2a1a3a; }

.subteam-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.2s ease;
}

.subteam-strip-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  padding: 2rem 1rem;
}

.subteam-strip-content .strip-icon {
  font-size: 2.5rem;
}

.subteam-strip:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.subteam-strip:hover::before {
  background: rgba(0, 0, 0, 0.25);
}

/* ================= SPONSORS PAGE ================= */

.tier-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tier-card {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  background: #1a3a1a;
  border: 1px solid #2a502a;
}

.tier-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.tier-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tier-gold .tier-tag    { background: #fdd835; color: #3a2800; }
.tier-silver .tier-tag  { background: #cfd8e3; color: #1a2030; }
.tier-bronze .tier-tag  { background: #ffb04c; color: #3a2002; }

.metrics-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.metric-card {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: #1a3a1a;
  border: 1px solid #2a502a;
  text-align: center;
}

.metric-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: #7ed957;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.95rem;
  color: #c4dcc4;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a3a1a;
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }

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

  .nav-item {
    width: 100%;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    padding-left: 0;
    margin-top: 0.25rem;
  }

  .dropdown a {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    height: 65vh;
    min-height: 420px;
    text-align: left;
  }

  .hero.hero-home {
    height: 75vh;
    min-height: 480px;
  }

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

  .hero-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .section-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .subteam-strips {
    grid-template-columns: 1fr 1fr;
    min-height: 60vh;
  }

  .subteam-strip {
    min-height: 30vh;
  }
}

@media (max-width: 480px) {
  .subteam-strips {
    grid-template-columns: 1fr;
  }
}
