/* ------------------------------------
   NEMO • TEAM.CSS (Unified with Homepage)
------------------------------------ */

/* Fonts & Root Vars */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Playfair+Display:wght@700;900&display=swap');

:root {
  --purple: #3B2E71;
  --bright-blue: #73C5E8;
  --soft-blue: #9CD7E7;
  --cream: #FDF8DC;
  --white: #FEFEFC;
  --max-width: 1100px;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--purple);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--purple);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Utility */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1rem; }
.section { padding: 4rem 1rem; }
.section--alt { background: var(--cream); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1.1rem; color: #444; }

/* ------------------------------------
   Navbar (identical to homepage)
------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--purple);
}
.nav-links { list-style: none; display: flex; gap: 1.5rem; }
.nav-links a { position: relative; font-weight: 500; transition: color .3s ease; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--bright-blue);
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--bright-blue); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle-bar {
  width: 25px; height: 3px;
  background: var(--purple);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-links {
    display: none; flex-direction: column; background: var(--white);
    padding: 1rem; position: absolute; right: 1rem; top: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}

/* ------------------------------------
   News Banner (homepage match)
------------------------------------ */
.news-banner {
  background: var(--bright-blue);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}
.banner-link {
  color: var(--cream);
  font-weight: 700;
  text-decoration: underline;
}

/* ------------------------------------
   HERO — exact same as homepage
------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--purple), var(--bright-blue));
  color: var(--white);
  padding: 5rem 1rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.3px;
}

.slogan {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--cream);
}

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

.hero-art {
  flex: 1 1 250px;
  text-align: center;
}

.mascot {
  width: 200px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 900px) {
  .hero-content { flex-direction: column; text-align: center; }
  .hero-text h1 { font-size: 2.2rem; }
}

@media (max-width: 600px) {
  .hero-text h1 { font-size: 1.8rem; }
  .btn { padding: 0.6rem 1.2rem; }
}

/* ------------------------------------
   Buttons (consistent with homepage)
------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--bright-blue);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--purple);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

/* ------------------------------------
   Team Layout (cards with fixed height)
------------------------------------ */
.team-rows { display: flex; flex-direction: column; gap: 2.25rem; }
.team-row { display: grid; gap: 1.75rem; justify-items: center; }
.team-row--1 { grid-template-columns: 1fr; justify-content: center; }
.team-row--2 { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
.team-row--3 { grid-template-columns: repeat(3, minmax(220px, 1fr)); }

.team-card {
  position: relative;
  background: var(--white);
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 420px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-items: start;
  padding: 1.25rem 1.25rem 1.5rem;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--bright-blue), var(--soft-blue));
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.team-card img {
  width: 200px; height: 200px;
  border-radius: 12px;
  object-fit: cover;
  justify-self: center;
  margin-top: .5rem;
  margin-bottom: .9rem;
  transition: box-shadow .25s ease, transform .25s ease;
}
.team-card img:hover {
  box-shadow: 0 0 18px rgba(115,197,232,0.55);
  transform: translateY(-2px);
}

.team-card h3, .team-card p { margin: 0; }
.team-card h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.role {
  font-weight: 700;
  color: var(--bright-blue);
  font-size: 0.96rem;
}
.team-card .bio {
  font-size: 0.92rem;
  color: #333;
  margin-top: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------
   Responsive Cards
------------------------------------ */
@media (max-width: 1024px) {
  .team-row--3 { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .team-card img { width: 180px; height: 180px; }
  .team-card { height: 390px; }
}

@media (max-width: 900px) {
  .team-row--3 { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
}

@media (max-width: 600px) {
  .team-row--1, .team-row--2, .team-row--3 {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
  .team-card img { width: 140px; height: 140px; }
  .team-card { height: 340px; }
  .team-card .bio { -webkit-line-clamp: 3; }
}

/* ------------------------------------
   Footer (identical to homepage)
------------------------------------ */
.site-footer {
  background: var(--purple);
  color: var(--cream);
  padding: 2rem 1rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 900;
}
.footer-nav ul { list-style: none; display: flex; gap: 1rem; }
.footer-nav a { color: var(--cream); transition: color .3s ease; }
.footer-nav a:hover { color: var(--soft-blue); }
.footer-actions .btn { border: 2px solid var(--cream); color: var(--cream); }
.footer-actions .btn:hover { background: var(--cream); color: var(--purple); }

/* ------------------------------------
   Fade-in Animation
------------------------------------ */
.section { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.section.visible { opacity: 1; transform: translateY(0); }
