/* ==========================================================================
   LITIAS — Design System & Styles
   Mobile-First | Clean & Minimal | MIT-Lab Inspired
   ========================================================================== */

/* =============================================
   1. Custom Properties
   ============================================= */
:root {
  /* Colors — derived from LITIAS logo */
  --navy: #1B3A4B;
  --navy-light: #264653;
  --teal: #2A7B9B;
  --teal-light: #3D9FC0;
  --teal-pale: #E8F4F8;
  --green: #7BAF4C;
  --green-light: #8EC45F;
  --coral: #E07A5F;
  --coral-light: #E8927A;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #ADB5BD;
  --gray-500: #868E96;
  --gray-600: #495057;
  --gray-700: #343A40;
  --gray-800: #212529;

  /* Semantic */
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --text-heading: var(--navy);
  --text-body: var(--gray-600);
  --text-muted: var(--gray-500);
  --accent: var(--teal);
  --accent-hover: var(--teal-light);
  --border-color: var(--gray-200);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: clamp(1.75rem, 4vw, 2.25rem);
  --font-size-4xl: clamp(2rem, 5vw, 3rem);
  --font-size-5xl: clamp(2.5rem, 6vw, 3.5rem);
  --line-height-tight: 1.25;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --container-padding: 1.25rem;
  --container-max: 1140px;
  --nav-height: 64px;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(27, 58, 75, 0.04);
  --shadow-sm: 0 1px 3px rgba(27, 58, 75, 0.06), 0 1px 2px rgba(27, 58, 75, 0.04);
  --shadow-md: 0 4px 12px rgba(27, 58, 75, 0.08);
  --shadow-lg: 0 8px 25px rgba(27, 58, 75, 0.1);
  --shadow-xl: 0 12px 40px rgba(27, 58, 75, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-body);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--accent-hover);
}

ul, ol {
  list-style: none;
}

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

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* =============================================
   3. Typography
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); font-weight: 600; }

p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-sm { font-size: var(--font-size-sm); }
.text-lg { font-size: var(--font-size-lg); }

/* =============================================
   4. Layout
   ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

.section--alt {
  background-color: var(--bg-secondary);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__title {
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

.section__subtitle {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: var(--space-md) auto 0;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* =============================================
   5. Navigation
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo img {
  height: 40px;
  width: auto;
}

.navbar__logo-text {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

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

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.hamburger.active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav-menu {
  position: fixed;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - var(--nav-height));
  background: var(--white);
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--container-padding);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  z-index: 999;
  overflow-y: auto;
}

.nav-menu.open {
  transform: translateX(0);
}

.nav-menu__link {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-heading);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition-fast);
}

.nav-menu__link:hover,
.nav-menu__link.active {
  color: var(--accent);
}

.nav-menu__link.active {
  font-weight: 600;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  font-size: var(--font-size-sm);
}

.lang-toggle__btn {
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-toggle__btn.active {
  background: var(--white);
  color: var(--text-heading);
  box-shadow: var(--shadow-xs);
}

/* =============================================
   6. Hero Section
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--container-padding) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.hero--home {
  background: linear-gradient(160deg, var(--white) 0%, var(--teal-pale) 50%, var(--white) 100%);
}

.hero--page {
  min-height: 40vh;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-color);
}

.hero__content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__logo {
  width: 150px;
  height: 150px;
  margin: 0 auto var(--space-xl);
  animation: fadeInDown 0.8s ease;
}

.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease;
}

.hero__lab-name {
  font-size: var(--font-size-lg);
  color: var(--text-body);
  font-weight: 400;
  margin-bottom: var(--space-xs);
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero__affiliation {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero__slogan {
  font-size: var(--font-size-xl);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-2xl);
  font-style: italic;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__page-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-sm);
}

.hero__page-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
}

/* Decorative floating shapes */
.hero__decoration {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.08;
  z-index: 0;
}

.hero__decoration--1 {
  width: 300px;
  height: 300px;
  background: var(--teal);
  top: -50px;
  right: -100px;
}

.hero__decoration--2 {
  width: 200px;
  height: 200px;
  background: var(--green);
  bottom: 50px;
  left: -80px;
}

.hero__decoration--3 {
  width: 150px;
  height: 150px;
  background: var(--coral);
  bottom: -30px;
  right: 30%;
}

/* =============================================
   7. Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 12px 28px;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 8px 18px;
  font-size: var(--font-size-sm);
}

/* =============================================
   8. Cards
   ============================================= */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  color: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: var(--font-size-2xl);
}

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

.card__text {
  color: var(--text-body);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

/* Mission/Vision cards */
.card--feature {
  text-align: center;
  border-top: 3px solid transparent;
}

.card--feature:hover {
  border-top-color: var(--accent);
}

.card--feature .card__icon {
  margin: 0 auto var(--space-md);
}

/* =============================================
   9. Expertise Grid
   ============================================= */
.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.expertise-item:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.expertise-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  color: var(--accent);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xl);
}

.expertise-item__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-2xs);
}

.expertise-item__desc {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* =============================================
   10. Team Components
   ============================================= */
.team-director {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.team-director__avatar,
.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--teal-pale), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--accent);
  border: 3px solid var(--teal-pale);
}

.team-director__name {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-xs);
}

.team-director__role {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-xs);
}

.team-director__lab {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.team-section {
  margin-bottom: var(--space-3xl);
}

.team-section__header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--gray-100);
}

.team-section__title {
  font-size: var(--font-size-2xl);
  color: var(--text-heading);
  margin-bottom: var(--space-xs);
}

.team-section__domain {
  color: var(--accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.team-section__lead {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

/* Team member cards */
.team-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
}

.team-card__name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-2xs);
}

.team-card__title {
  font-size: var(--font-size-sm);
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.team-card__bio {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: var(--line-height-normal);
}

/* =============================================
   11. Publications
   ============================================= */
.pub-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pub-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.pub-card__year {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pub-card__title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-heading);
  line-height: var(--line-height-tight);
}

.pub-card__authors {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.pub-card__journal {
  font-size: var(--font-size-sm);
  font-style: italic;
  color: var(--text-body);
}

.pub-card__link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}

/* =============================================
   12. Blog
   ============================================= */
.blog-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.blog-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--teal-pale), var(--gray-100));
}

.blog-card__content {
  padding: var(--space-lg);
}

.blog-card__date {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}

.blog-card__title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-tight);
}

.blog-card__excerpt {
  font-size: var(--font-size-sm);
  color: var(--text-body);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

.blog-card__link {
  font-size: var(--font-size-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}

/* =============================================
   13. Contact
   ============================================= */
.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.contact-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pale);
  color: var(--accent);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xl);
}

.contact-card__label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2xs);
}

.contact-card__value {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text-heading);
}

.contact-card__value a {
  color: var(--text-heading);
}

.contact-card__value a:hover {
  color: var(--accent);
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: var(--space-xl);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Social links */
.social-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 10px 18px;
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-heading);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* =============================================
   14. Institutions (Carousel)
   ============================================= */
.institutions-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  /* Add subtle fade at edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.institutions-carousel {
  display: flex !important;
  width: max-content !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-sm) var(--space-xs) var(--space-lg) var(--space-xs);
  animation: scroll-carousel 30s linear infinite;
}

.institutions-carousel:hover {
  animation-play-state: paused;
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate exactly half of the content width (since it's duplicated) minus half gap */
    transform: translateX(calc(-50% - (var(--space-lg) / 2)));
  }
}

.institution-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-heading);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.institution-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* =============================================
   15. Placeholder / Empty State
   ============================================= */
.empty-state {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-state__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

.empty-state__text {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* =============================================
   16. Footer
   ============================================= */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer a:hover {
  color: var(--white);
}

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

.footer__section-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer__description {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-sm);
}

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

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition-fast);
}

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  text-align: center;
  font-size: var(--font-size-xs);
}

/* =============================================
   17. Scroll Reveal Animation
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   18. Utilities
   ============================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-2xl { margin-top: var(--space-2xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Main content offset for fixed navbar */
main {
  padding-top: var(--nav-height);
}

/* Body scroll lock for mobile menu */
body.menu-open {
  overflow: hidden;
}

/* =============================================
   19. Responsive — Tablet (768px+)
   ============================================= */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
    --nav-height: 72px;
  }

  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }

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

  .hero__logo {
    width: 180px;
    height: 180px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }



  .map-container {
    height: 350px;
  }

  .team-director {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    text-align: left;
  }

  .team-director__avatar {
    margin: 0;
    flex-shrink: 0;
  }
}

/* =============================================
   20. Responsive — Desktop (1024px+)
   ============================================= */
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  /* Desktop navigation — show links inline, hide hamburger */
  .hamburger {
    display: none;
  }

  .nav-menu {
    position: static;
    transform: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: var(--space-xs);
    background: transparent;
    overflow: visible;
  }

  .nav-menu__link {
    padding: 8px 14px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-bottom: none;
    border-radius: var(--radius-sm);
  }

  .nav-menu__link:hover {
    background: var(--gray-50);
  }

  .nav-menu__link.active {
    color: var(--accent);
    background: var(--teal-pale);
  }

  .navbar__inner {
    gap: var(--space-lg);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .map-container {
    height: 400px;
  }
}

/* =============================================
   21. Responsive — Large Desktop (1200px+)
   ============================================= */
@media (min-width: 1200px) {
  .hero__logo {
    width: 210px;
    height: 210px;
  }
}

/* =============================================
   22. Print Styles
   ============================================= */
@media print {
  .navbar,
  .hamburger,
  .lang-toggle,
  .footer {
    display: none !important;
  }

  main {
    padding-top: 0;
  }

  .hero {
    min-height: auto;
    padding: var(--space-xl) 0;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
