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

html, body {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  scroll-behavior: smooth;
}

/* Color Palette */
:root {
  /*
   * Colour palette inspired by the University of Guelph: bold red, golden yellow and classic black.
   * primary-colour is used for headings, accents and buttons.
   * secondary-colour provides a golden highlight.
   * dark background and light backgrounds ensure legibility throughout the site.
   */
  --primary-color: #cc0033; /* Gryphon red */
  --secondary-color: #ffc425; /* Gryphon gold */
  --light-bg: #f7f8fa;
  --dark-bg: #000000; /* black for nav and footer */
  --text-light: #ffffff;
  --text-dark: #111111;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--dark-bg);
  z-index: 1000;
  transition: background 0.3s ease;
}
nav .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
nav .logo {
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}
nav .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav .nav-links li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
nav .nav-links li a:hover {
  color: var(--secondary-color);
}

/* Mobile Menu */
.mobile-menu-icon {
  display: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  width: 100%;
  overflow: hidden;
  margin-top: 60px; /* account for fixed nav */
}
.hero img.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 49, 0.65);
  z-index: 1;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: var(--text-light);
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
/* Call to action buttons */
.btn-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-cta:hover {
  background: #990022; /* darker shade for hover */
}
.btn-cta.secondary {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}
.btn-cta.secondary:hover {
  background: var(--secondary-color);
  color: var(--dark-bg);
}

/* Section Styling */
.section {
  padding: 4rem 0;
  scroll-margin-top: 80px; /* offset anchor for fixed navigation */
}
.section.light-bg {
  background: var(--light-bg);
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
}
.section h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.value-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}
.value-item h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-bg);
}
.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Impact Grid */
/* Impact Grid */
.impact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}
/* Impact cards */
.impact-item {
  flex: 1 1 250px;
  background: #fff;
  color: var(--dark-bg);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  border-top: 4px solid var(--primary-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Circular number badge inside impact cards */
.impact-item .impact-number {
  display: inline-block;
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
}

.impact-item h3 {
  margin-bottom: 0.75rem;
}

/* Projects Section */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
}
.project-item {
  flex: 1 1 45%;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.project-list {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
}
.project-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  color: var(--dark-bg);
}
.project-list li i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

/* Get Involved */
.get-involved {
  text-align: center;
}

/* Contact Info */
.contact-info {
  margin-top: 1rem;
  text-align: center;
}
.contact-info p {
  margin-bottom: 0.5rem;
}
.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Executive Committee */
.exec-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.exec-member {
  flex: 1 1 280px; /* cards will be ~280px wide but shrink/grow responsively */
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.exec-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.exec-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}
.exec-member h3 {
  margin: 0.5rem 0 0.25rem;
  color: var(--primary-color);
  font-size: 1.4rem;
}
.exec-member .position {
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}
.exec-member .bio {
  font-size: 0.9rem;
  color: var(--dark-bg);
}

/* Media Queries */
@media (max-width: 768px) {
  nav .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--dark-bg);
    flex-direction: column;
    width: 100%;
    display: none;
    text-align: right;
    padding: 1rem 2rem;
  }
  nav .nav-links.active {
    display: flex;
  }
  nav .nav-links li {
    margin: 0.5rem 0;
  }
  nav .mobile-menu-icon {
    display: block;
  }
  .hero {
    height: 75vh;
  }
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .projects-grid {
    flex-direction: column;
  }
  .project-item {
    flex: 1 1 100%;
  }
  .impact-grid {
    flex-direction: column;
  }
  .impact-item {
    flex: 1 1 100%;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
}
