/* ============================================
   ÉQUILIBRE / CISE QUÉBEC - Main Stylesheet
   Design: Bold & Dynamic (Option B)
   ============================================ */

/* -------------------- CSS Variables -------------------- */
:root {
  /* Brand Colors from Logo */
  --navy-dark: #1B3A5F;
  --navy-medium: #254B77;
  --blue-primary: #2E6B9E;
  --teal-accent: #4BBFCF;
  --teal-light: #7DD3E8;
  --blue-gradient-start: #1B3A5F;
  --blue-gradient-end: #4BBFCF;
  
  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-light: #E2E8F0;
  --gray-medium: #94A3B8;
  --gray-dark: #475569;
  --black: #0F172A;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* -------------------- Reset & Base -------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* -------------------- Typography -------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: 1.25rem;
  color: var(--gray-dark);
  line-height: 1.7;
}

/* -------------------- Layout -------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--navy {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
  color: var(--white);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

.section--gray {
  background-color: var(--off-white);
}

/* Wave Divider */
.wave-divider {
  position: relative;
  height: 80px;
  overflow: hidden;
}

.wave-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wave-divider--flip svg {
  transform: rotate(180deg);
}

/* -------------------- Navigation -------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all var(--transition-normal);
}

.navbar--transparent {
  background: transparent;
}

.navbar--solid {
  background: var(--navy-dark);
  box-shadow: var(--shadow-lg);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  height: 70px;
  transition: all var(--transition-normal);
}

.navbar--solid .navbar__logo {
  height: 55px;
}

.navbar__logo img {
  height: 100%;
  width: auto;
  transition: all var(--transition-normal);
}

/* -------------------- Hero Logo (Large Static) -------------------- */
.hero__logo-container {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.hero__logo-large {
  height: auto;
  width: 450px;
  max-width: 90vw;
  object-fit: contain;
  filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.15));
}

/* Navbar logo - hidden when transparent, visible when solid */
.navbar--transparent .navbar__logo {
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
}

.navbar--solid .navbar__logo {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.navbar__logo {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar__link {
  color: var(--white);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

/* Dark text when navbar is transparent (at top) */
.navbar--transparent .navbar__link {
  color: var(--navy-dark);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.navbar--transparent .navbar__link:hover {
  background: rgba(27, 58, 95, 0.1);
  color: var(--navy-dark);
}

/* White text when navbar is solid (scrolled) */
.navbar--solid .navbar__link {
  color: var(--white);
}

.navbar__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.navbar__link--dropdown {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar__link--dropdown::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition-fast);
}

.navbar__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.navbar__link--dropdown:hover .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar__dropdown-item {
  display: block;
  padding: var(--space-sm);
  color: var(--navy-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar__dropdown-item:hover {
  background: var(--off-white);
  color: var(--teal-accent);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 2px;
  transition: all var(--transition-fast);
}

/* Dark style when navbar is transparent */
.navbar--transparent .lang-toggle {
  background: rgba(27, 58, 95, 0.15);
}

.navbar--transparent .lang-toggle__btn {
  color: var(--navy-dark);
}

.lang-toggle__btn {
  padding: var(--space-xs) var(--space-sm);
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.lang-toggle__btn--active {
  background: var(--teal-accent);
  color: var(--navy-dark);
}

/* Mobile Menu */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
}

.navbar__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
}

@media (max-width: 1024px) {
  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3xl) var(--space-lg);
    transition: right var(--transition-normal);
  }
  
  .navbar__menu--open {
    right: 0;
  }
  
  .navbar__hamburger {
    display: flex;
  }
  
  .navbar__link--dropdown .navbar__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding-left: var(--space-md);
  }
  
  .navbar__dropdown-item {
    color: var(--white);
  }
}

/* -------------------- Hero Section -------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, 
    #E8F4FA 0%,
    #C5DFF0 10%,
    #7BB8D9 25%, 
    #4A8BB8 40%,
    #2E6B9E 55%,
    #1B4A6E 70%,
    #152D4A 85%,
    var(--navy-dark) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/pattern.svg') repeat;
  opacity: 0.03;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  color: var(--teal-light);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__title {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.hero__title span {
  color: var(--teal-light);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Animated Background Elements */
.hero__shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 191, 207, 0.15) 0%, rgba(75, 191, 207, 0.05) 70%, transparent 100%);
  animation: floatBubble 8s ease-in-out infinite;
}

.hero__shape--1 {
  width: 120px;
  height: 120px;
  top: 15%;
  right: 10%;
  animation-delay: 0s;
  animation-duration: 7s;
}

.hero__shape--2 {
  width: 80px;
  height: 80px;
  top: 45%;
  right: 20%;
  animation-delay: -1s;
  animation-duration: 9s;
}

.hero__shape--3 {
  width: 60px;
  height: 60px;
  top: 70%;
  right: 8%;
  animation-delay: -3s;
  animation-duration: 6s;
}

.hero__shape--4 {
  width: 100px;
  height: 100px;
  top: 25%;
  right: 35%;
  animation-delay: -2s;
  animation-duration: 10s;
}

.hero__shape--5 {
  width: 50px;
  height: 50px;
  top: 60%;
  right: 40%;
  animation-delay: -4s;
  animation-duration: 8s;
}

.hero__shape--6 {
  width: 70px;
  height: 70px;
  top: 80%;
  right: 25%;
  animation-delay: -1.5s;
  animation-duration: 7s;
}

.hero__shape--7 {
  width: 40px;
  height: 40px;
  top: 10%;
  left: 10%;
  animation-delay: -5s;
  animation-duration: 9s;
}

.hero__shape--8 {
  width: 90px;
  height: 90px;
  top: 35%;
  left: 5%;
  animation-delay: -3.5s;
  animation-duration: 11s;
}

.hero__shape--9 {
  width: 55px;
  height: 55px;
  top: 75%;
  left: 15%;
  animation-delay: -2.5s;
  animation-duration: 8s;
}

.hero__shape--10 {
  width: 35px;
  height: 35px;
  top: 50%;
  left: 25%;
  animation-delay: -4.5s;
  animation-duration: 6s;
}

@keyframes floatBubble {
  0% { 
    transform: translateY(0) translateX(0) scale(1); 
    opacity: 0.6;
  }
  25% { 
    transform: translateY(-15px) translateX(10px) scale(1.05); 
    opacity: 0.8;
  }
  50% { 
    transform: translateY(-25px) translateX(-5px) scale(1); 
    opacity: 0.5;
  }
  75% { 
    transform: translateY(-10px) translateX(-10px) scale(0.95); 
    opacity: 0.7;
  }
  100% { 
    transform: translateY(0) translateX(0) scale(1); 
    opacity: 0.6;
  }
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn--primary {
  background: var(--teal-accent);
  color: var(--navy-dark);
}

.btn--primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--secondary:hover {
  background: var(--white);
  color: var(--navy-dark);
}

.btn--outline {
  background: transparent;
  color: var(--navy-dark);
  border: 2px solid var(--navy-dark);
}

.btn--outline:hover {
  background: var(--navy-dark);
  color: var(--white);
}

.btn--lg {
  padding: var(--space-md) var(--space-xl);
  font-size: 1.125rem;
}

/* -------------------- Cards -------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--teal-accent), var(--blue-primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card__icon svg {
  width: 30px;
  height: 30px;
  color: var(--white);
}

.card__title {
  margin-bottom: var(--space-sm);
}

.card__text {
  color: var(--gray-dark);
  margin-bottom: var(--space-md);
}

/* Pillar Cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--teal-accent), var(--blue-primary));
}

.pillar-card__number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--off-white);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

/* -------------------- Team Section -------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.team-card__image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 auto var(--space-lg);
  overflow: hidden;
  border: 4px solid var(--teal-accent);
  box-shadow: var(--shadow-lg);
}

.team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Specific adjustments for individual photos */
.team-card__image img.photo-kulbir {
  object-position: center 5%;
  transform: scale(1.5);
  transform-origin: center top;
}

.team-card__name {
  margin-bottom: var(--space-xs);
}

.team-card__role {
  color: var(--teal-accent);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.team-card__affiliation {
  color: var(--gray-medium);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.team-card__bio {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.3s ease;
}

.team-card:hover .team-card__bio {
  color: rgba(255, 255, 255, 1);
}

.team-card__more {
  color: var(--teal-accent);
  font-weight: 600;
  margin-top: var(--space-sm);
  cursor: pointer;
}

.team-card__more:hover {
  text-decoration: underline;
}

.team-card__uni-logo {
  display: block;
  height: 56px;
  width: auto;
  margin: var(--space-sm) auto 2px auto;
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

/* -------------------- Team Modal -------------------- */
.team-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.team-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.team-modal__content {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  margin: 2rem auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.team-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: background 0.2s;
}

.team-modal__close:hover {
  background: #cbd5e1;
}

.team-modal__body {
  padding: 2rem;
}

.team-modal__image {
  text-align: center;
  margin-bottom: 1.25rem;
}

.team-modal__image img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--teal-accent);
}

.team-modal__info {
  text-align: center;
  margin-bottom: 1.25rem;
}

.team-modal__info h2 {
  font-family: var(--font-heading);
  color: var(--navy-dark);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.team-modal__role {
  color: var(--teal-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.125rem;
}

.team-modal__affiliation {
  color: #64748b;
  font-size: 0.9rem;
}

.team-modal__bio {
  color: #334155;
  line-height: 1.75;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .team-modal { padding: 1rem; }
  .team-modal__body { padding: 1.5rem; }
  .team-modal__image img { width: 180px; height: 180px; }
}

/* -------------------- Partners Section -------------------- */
.partners-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.partners-tab {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-weight: 500;
  color: var(--gray-dark);
  background: var(--off-white);
  transition: all var(--transition-fast);
}

.partners-tab:hover,
.partners-tab--active {
  background: var(--teal-accent);
  color: var(--navy-dark);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
}

.partner-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-fast);
  max-height: 60px;
  width: auto;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Partner links wrapper */
.partner-link {
  display: inline-block;
  transition: all var(--transition-fast);
}

.partner-link:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* -------------------- CTA Cards (Get Involved) -------------------- */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}

.cta-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--gray-light);
  transition: all var(--transition-normal);
}

.cta-card:hover {
  border-color: var(--teal-accent);
  box-shadow: var(--shadow-xl);
}

.cta-card__icon {
  width: 80px;
  height: 80px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.cta-card__icon svg {
  width: 40px;
  height: 40px;
  color: var(--blue-primary);
}

.cta-card__title {
  margin-bottom: var(--space-sm);
}

.cta-card__text {
  color: var(--gray-dark);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

/* -------------------- Footer -------------------- */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  height: 60px;
  margin-bottom: var(--space-md);
}

.footer__desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: var(--space-md);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--teal-accent);
}

.footer__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.footer__link {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xs) 0;
  transition: all var(--transition-fast);
}

.footer__link:hover {
  color: var(--teal-accent);
  padding-left: var(--space-xs);
}

.footer__funders {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  margin-top: var(--space-lg);
}

.footer__funder-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer__funder-logo[alt="NSERC"] {
  filter: none;
  opacity: 1;
  background: white;
  padding: 6px 10px;
  border-radius: 6px;
  height: 44px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer__acknowledgment {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  font-style: italic;
  max-width: 600px;
}

/* -------------------- Animations -------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* -------------------- Section Headers -------------------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-header__label {
  display: inline-block;
  color: var(--teal-accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__subtitle {
  color: var(--gray-dark);
  font-size: 1.125rem;
}

.section--navy .section-header__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* -------------------- Utilities -------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-auto { margin-top: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

