@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --mint: #edfffe;
  --teal: #1eb8a9;
  --teal-dark: #189a8d;
  --teal-soft: #a2d8d2;
  --ink: #3b3b3b;
  --rule: #bfe8e1;
}

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

body {
  font-family: 'Montserrat', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--mint);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
main { flex: 1; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2.5rem;
}

.site-header.solid { position: static; background: var(--mint); }

.brand img { height: 64px; width: auto; display: block; }

.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.6rem; cursor: pointer; color: var(--ink);
}

.site-nav { display: flex; align-items: center; gap: 2rem; }

.site-nav > .nav-item,
.site-nav > a {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.site-nav > a:hover,
.nav-item:hover > .nav-head { text-decoration: underline; text-underline-offset: 5px; }
.site-nav a.active { text-decoration: underline; text-underline-offset: 5px; }

/* Dropdowns */
.nav-item .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px); }

.nav-item .dropdown a {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-item .dropdown a:hover { color: var(--teal); }

/* Social icon buttons */
.socials { display: flex; gap: 0.6rem; align-items: center; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #111;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.socials a:hover { transform: scale(1.08); }
.socials img, .socials svg { width: 20px; height: 20px; }

/* ---------- Home carousel ---------- */
.carousel { position: relative; height: 100vh; overflow: hidden; }
.slides { height: 100%; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide-label, .pill {
  position: absolute;
  left: 2.5rem; bottom: 2.5rem;
  background: var(--teal);
  color: #000;
  padding: 0.85rem 2rem;
  border-radius: 20px;
  border: 2px solid var(--teal-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
}
.slide-label:hover, .pill:hover { background: var(--teal-soft); border-color: var(--teal); }

.carousel-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  right: 2rem;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: #111; color: #fff;
  border: none; cursor: pointer;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.carousel-arrow:hover { background: #000; }
.carousel-arrow.prev { left: 2rem; right: auto; }

/* ---------- Content pages ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 8rem 1.5rem 4rem; }
.page.wide { max-width: 1080px; }

.page h1 {
  color: var(--teal);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 2rem;
}
.page h1.center { text-align: center; }

.box {
  background: var(--mint);
  border: 5px solid var(--teal);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  font-size: 1.05rem;
  text-align: justify;
}

.page p { margin-bottom: 1rem; }
.section-title { color: var(--teal); font-weight: 800; font-size: 2rem; margin: 3rem 0 1.75rem; }

.watermark { display: block; margin: 3rem auto 0; width: 90px; opacity: 0.9; }

/* Video embed */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto 2rem;
  max-width: 760px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.credit { text-align: center; font-weight: 500; margin-top: 1.5rem; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.member { text-align: center; }
.member img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.member img:hover { filter: grayscale(0%); }
.member h2 { color: var(--teal); font-size: 1.15rem; font-weight: 700; margin: 1rem 0 0.25rem; }
.member .role { color: var(--ink); font-size: 0.95rem; margin-bottom: 0.5rem; }
.member .bio { font-size: 0.85rem; text-align: left; color: #40474e; }
.member .links { font-size: 0.8rem; margin-top: 0.5rem; }
.member .links a { color: var(--teal); border-bottom: 1px solid var(--teal); }

.collab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.collab-grid .member img { aspect-ratio: 1 / 1; }

hr.rule { border: none; border-top: 1px solid var(--rule); margin: 3rem 0; }

/* Contact */
.contact { display: flex; align-items: center; justify-content: center; gap: 3rem; padding: 8rem 1.5rem 4rem; flex-wrap: wrap; }
.contact .logo { width: 110px; }
.contact h1 { color: var(--teal); font-size: 2.5rem; font-weight: 800; }
.contact a, .contact .phone { color: var(--teal); font-weight: 700; font-size: 1.25rem; display: block; margin-top: 1rem; }

/* Upcoming hero pages */
.hero-page { position: relative; min-height: 100vh; display: flex; align-items: flex-end; }
.hero-page img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-page .deck-note {
  position: relative; z-index: 5;
  margin: 0 auto 3rem; padding: 1.25rem 2rem;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
}
.hero-page .pill { z-index: 6; }

/* Footer */
.site-footer {
  display: flex; gap: 1.5rem; align-items: center; justify-content: center;
  padding: 2rem 1.5rem; margin-top: auto;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal-dark);
}
.site-footer a:hover { color: var(--teal); }

/* Responsive */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; right: 1.5rem;
    background: #fff; border-radius: 14px; padding: 1.25rem 1.5rem;
    flex-direction: column; align-items: flex-start; gap: 1rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  }
  .site-nav.open { display: flex; }
  .nav-item .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0.5rem 0 0 1rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
}
