:root {
  --dark-green: #163823;
  --mid-green:  #478f5e;
  --cream:      #f4efe9;
  --beige:      #e8e6dd;
  --sage:       #acb886;
  --yellow:     #febd11;
  --black:      #111;
  --white:      #fff;

  --font-h1:     clamp(2.6rem, 8vw, 6.5rem);
  --font-h2:     clamp(2.2rem, 5vw, 4.5rem);
  --font-h3:     clamp(1.3rem, 2.4vw, 1.8rem);
  --font-h4:     clamp(1.05rem, 1.6vw, 1.2rem);
  --font-body:   clamp(1.05rem, 1.4vw, 1.35rem);
  --font-accent: clamp(1.15rem, 1.8vw, 1.5rem);
  --font-nav:    1rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--beige);
  color: var(--black);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }

.section-title { text-align: center; }

h2.section-title,
#moodleRefSection h2 {
  font-size: var(--font-h2);
  line-height: 1;
  margin-bottom: 1rem;
}

section { padding: 6rem 2rem; }

.section-lead {
  font-size: var(--font-body);
  line-height: 1.7;
  max-width: 600px;
}

.container { max-width: 1100px; margin: 0 auto; }

.about-text p,
.text,
.involvedPara,
.timeCard p,
.timeCard h2,
.moodleIntro,
#moodleRefSection p,
.pointCard {
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--font-body);
  line-height: 1.8;
}

.pointCard h3 { font-size: var(--font-h3); }

::-webkit-scrollbar       { width: 12px; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #aaa; border-radius: 5px; max-height: 20px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================
   NAVBAR
========================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--dark-green);
  z-index: 1000;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
}

.nav-container {
  max-width: 1300px;
  margin: auto;
  height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
}

.logo {
  color: var(--cream);
  text-decoration: none;
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 28px;
}

.nav-links li { list-style: none; }

.nav-links a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-nav);
  padding: 10px 16px;
  border-radius: 8px;
  transition: .25s ease;
}

.nav-links a:hover {
  background: var(--mid-green);
  color: var(--yellow);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
}

.menu-btn svg { width: 32px; height: 32px; }

/* ==========================
   HERO
========================== */

.hero {
  background: var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10rem 2rem 4rem 2rem;
  min-height: calc(100svh - 75px);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  text-align: center;
  position: relative;
  max-width: 820px;
  width: 100%;
}

.hero-inner > * { animation: fadeUp 0.7s ease both; }

.hero h1 {
  font-size: var(--font-h1);
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: var(--font-accent);
  font-weight: bolder;
  color: var(--cream);
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

#titleImgDiv {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#titleImg {
  width: 100%;
  max-width: 900px;
  height: auto;
}

/* ==========================
   MOODLE LINK SECTION
========================== */

#moodleRefSection {
  background-color: var(--beige);
  margin-bottom: 20px;
  margin-top: 20px;
  line-height: 1.8;
  padding: 2rem 2rem;
}

#moodleRefSection .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 2rem 3rem;
  gap: 2rem;
}

#moodleRefSection h2 {
  color: var(--dark-green);
  margin-bottom: 3rem;
  font-family: 'Fraunces', serif;
  font-weight: 700;
}

#moodleRefSection a {
  display: inline-block;
  font-family: 'Glacial Indifference', sans-serif;
  font-size: var(--font-accent);
  font-weight: 700;
  color: var(--black);
  background-color: var(--yellow);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.2s ease;
}

#moodleRefSection a:hover { background-color: var(--sage); }

.refImg { width: 30%; height: 100%; }
.refImg img { width: 100%; height: auto; }

.refContent { text-align: center; width: 65%; height: 100%; }

/* ==========================
   MOODLE ABOUT SECTION
========================== */

#moodleAboutSection { background: var(--dark-green); }
#moodleAboutSection h2.section-title { color: var(--beige); }

.moodleGrid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.moodleTopRow {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.moodleIntro {
  flex: 1;
  font-family: 'Glacial Indifference', sans-serif;
  color: var(--beige);
}

#pohaImages {
  position: relative;
  width: 400px;
  height: 400px;
  flex-shrink: 0;
}

#pohaImages img:first-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
}

#pohaImages img:last-child {
  position: absolute;
  top: 10px;
  left: 25px;
  width: 350px;
  height: 380px;
  z-index: 1;
}

.moodleCarouselWrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.moodleViewport { overflow: hidden; width: 100%; }

.moodlePoints {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
}

.pointCard {
  flex: 0 0 100%;
  background-color: var(--beige);
  color: var(--dark-green);
  padding: 2.5rem;
  border-radius: 16px;
  font-family: 'Glacial Indifference', sans-serif;
}

.carouselBtn {
  border: none;
  background: var(--beige);
  color: var(--dark-green);
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.carouselBtn:hover { background: var(--mid-green); }

/* ==========================
   ABOUT
========================== */

#about { background: var(--beige); }
#about h2.section-title { color: var(--dark-green); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-top: 2rem;
  gap: 2rem;
}

.about-text p {
  color: black;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.about-text p em { color: var(--dark-green); font-weight: 700; }

#aboutImgDiv { display: flex; justify-content: center; }
#aboutImg { width: 100%; max-width: 530px; height: auto; margin: 0 auto; }

/* ==========================
   OUR WORK
========================== */

#work { background: var(--dark-green); }
#work h2.section-title { color: var(--cream); }

#work .section-lead,
.workFooter {
  color: var(--cream);
  font-weight: 900;
  font-size: var(--font-accent);
  text-align: center;
}

#work .section-lead {
  margin: 0 auto 3rem;
  max-width: 1000px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem auto 0;
  width: 75vw;
  max-width: 1100px;
}

.work-card {
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  color: var(--cream);
  font-size: var(--font-accent);
  line-height: 1.7;
  font-family: 'Glacial Indifference', sans-serif;
  text-align: center;
}

.workFooter { width: 75vw; max-width: 1100px; margin: 2rem auto 0; }

.OWtitleImg { width: 100%; max-width: 530px; margin: 0 auto; }
#OWlistImg  { width: 100%; max-width: 600px; height: auto; margin: 0 auto; }

/* ==========================
   TEAM
========================== */

#team { background: var(--beige); }
#team h2.section-title { color: var(--dark-green); }

#imgContainer { display: flex; justify-content: center; }
#teamImg { width: 100%; max-width: 1100px; height: auto; }

#textContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  text-align: center;
  flex-wrap: wrap;
}

.text { width: 30%; color: black; margin-bottom: 1rem; padding-left: 1rem; }

/* ==========================
   GET INVOLVED
========================== */

#involved { background: var(--dark-green); }
#involved h2.section-title { color: var(--cream); }

.involvedContainer {
  width: 90vw;
  margin: 30px auto;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.involvedPara { width: 75vw; max-width: 900px; color: var(--cream); }
.involvedImg { width: 80vw; margin-top: 30px; margin-bottom: 30px; }

#fireImg { width: 100%; max-width: 300px; height: auto; }

.gi-pills {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gi-pill {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, filter 0.2s;
  height: 110px;
  width: auto;
}

.gi-pill:hover { opacity: 0.85; }
.gi-pill.active { opacity: 1; }

.gi-panel {
  display: none;
  animation: fadeUp 0.4s ease both;
}

.gi-panel.active { display: block; }

/* ==========================
   JOURNEY
========================== */

#journey { background: var(--beige); }
#journey h2.section-title { color: var(--dark-green); }

.timeContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.timeCard { width: 20%; }
.timeCard p { color: black; }
.timeCard h3 { color: var(--mid-green); font-size: var(--font-h3); }
.timeCard h4 { color: black; font-weight: bold; font-size: var(--font-h4); }

.descContainer { display: flex; width: 88%; gap: 5vw; }

#timeImg { width: 85vw; max-width: 1400px; height: auto; margin: 0 auto; }

/* ==========================
   CONTACT
========================== */

#contact { background: var(--dark-green); text-align: center; min-height: 98vh; }
#contact h2.section-title { color: var(--cream); margin-bottom: 3rem; }

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-direction: column;
  width: 33%;
  min-width: 260px;
}

.contact-card {
  padding: 1.5rem 2rem;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.contact-card:hover {
  background: rgba(244, 239, 233, 0.06);
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.contact-card-type {
  font-size: var(--font-accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-bottom: 0.6rem;
}

.contact-card a,
.contact-card span {
  display: inline-block;
  color: var(--yellow);
  font-size: var(--font-body);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-card a:hover,
.contact-card a:focus-visible {
  color: var(--sage);
  text-decoration-color: var(--sage);
}

.img-card { width: 33%; min-width: 220px; }
#contactImg { width: 100%; max-width: 550px; height: auto; }

/* ==========================
   RESPONSIVE — max-width: 1100px
========================== */

@media (max-width: 1100px) {

  .work-grid {
    grid-template-columns: 1fr;
    width: 90vw;
    justify-items: center;
  }

  .workFooter { width: 90vw; }

  .moodleTopRow {
    flex-direction: column;
    text-align: center;
  }

  #pohaImages {
    width: min(340px, 80vw);
    height: min(340px, 80vw);
  }

  #pohaImages img:first-child {
    width: 100%;
    height: 100%;
  }

  #pohaImages img:last-child {
    width: 88%;
    height: 92%;
    top: 6%;
    left: 6%;
  }

  .text { width: 45%; }
  .timeCard { width: 40%; }

  .contact-cards,
  .img-card { width: 45%; }
}

/* ==========================
   RESPONSIVE — max-width: 768px
========================== */

@media (max-width: 768px) {

  .nav-container {
    height: 70px;
    padding: 0 20px;
  }

  .logo { font-size: 1.4rem; }

  .menu-btn { display: block; }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--dark-green);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;

    display: flex;
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;

    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.35);

    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0s;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 15px;
  }

  section { padding: 4rem 1.2rem; }

  .hero { min-height: 100svh; padding: 5rem 1.5rem 3rem; }

  .imgToHide { display: none; }

  #titleImgDiv {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
  }

  #moodleRefSection .container {
    flex-direction: column;
    gap: 2rem;
    padding: 0;
  }

  .refImg {
    display: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .refContent { width: 100%; }

  .moodleCarouselWrapper { display: none; }

  .pointCard { padding: 1.8rem; }

  .carouselBtn { display: none; }

  .moodleViewport { overflow: visible; }

  .moodlePoints {
    display: block;
    transform: none !important;
    transition: none !important;
  }

  .pointCard {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .moodlePoints > .pointCard:first-child,
  .moodlePoints > .pointCard:last-child {
    display: none;
  }

  .about-grid { grid-template-columns: 1fr; }

  #aboutImgDiv { order: -1; }

  .about-text p { padding-left: 0; }

  .work-card { padding: 1.5rem; }

  #textContainer {
    flex-direction: column;
    gap: 1rem;
  }

  .text { width: 100%; padding-left: 0; }

  .involvedContainer {
    width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
  }

  .involvedPara { width: 100%; }
  .involvedImg { width: 100%; }

  #fireImg { max-width: 200px; }

  .gi-pills {
    flex-wrap: nowrap;
    gap: 0.6rem;
  }

  .gi-pill {
    height: auto;
    width: 33%;
    min-width: 0;
  }

  #timeImg { display: none; }

  .descContainer {
    flex-direction: column;
    width: 100%;
    gap: 2.5rem;
  }

  .timeCard {
    width: 100%;
    border-left: 4px solid var(--mid-green);
    padding-left: 1.2rem;
  }

  #contact {
    height: auto;
    padding: 4rem 1.5rem;
  }

  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-cards,
  .img-card { width: 100%; }

  .contact-card { padding: 1.2rem 1.5rem; }

  .img-card {
    width: 85%;
    margin: 0 auto;
  }
}