/* =========================================================
   MET Alliance – Design inspired by skeyes.be
   Fully responsive
   ========================================================= */

/* --- CSS Variables ---------------------------------------- */
:root {
  --navy:        #001F4B;
  --navy-dark:   #001030;
  --sky-blue:    #0099CC;
  --mid-blue:    #4A90B8;
  --light-blue:  #E5F3FA;
  --accent:      #0099CC;
  --text:        #1A2033;
  --text-muted:  #5A6275;
  --bg:          #F4F7FB;
  --white:       #FFFFFF;
  --border:      #C8DDEF;
  --card-border: #B0D0E8;
  --header-h:    #002D6B;
  --header-height: 64px;
}

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Verdana, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sky-blue);
  text-decoration: none;
}

a:hover {
  color: var(--navy);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.25rem;
}

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo:hover {
  color: #ADD8F7;
  text-decoration: none;
}

.site-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* =========================================================
   MAIN NAVIGATION – Desktop
   ========================================================= */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.15rem;
  flex-wrap: nowrap;
}

.main-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}

.main-nav a.active {
  background: var(--sky-blue);
  color: var(--white);
}

/* =========================================================
   HAMBURGER BUTTON – hidden on desktop
   ========================================================= */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Animate to X when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   PAGE BANNER
   ========================================================= */
.page-banner {
  background: linear-gradient(135deg, var(--header-h) 0%, var(--sky-blue) 100%);
  padding: 2.2rem 1.5rem;
  color: var(--white);
}

.page-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.page-banner h1 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.page-banner .page-subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 400;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.main-content {
  min-height: calc(100vh - var(--header-height) - 50px);
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.8rem 0 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--light-blue);
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--mid-blue);
  margin: 1.2rem 0 0.4rem;
}

p {
  margin-bottom: 1rem;
}

b, strong {
  font-weight: 600;
}

ol.footnotes {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

a.note-ref-link {
  font-size: 0.72rem;
  vertical-align: super;
  color: var(--sky-blue);
  font-weight: 600;
}

/* =========================================================
   INFO / CONTACT TABLE
   ========================================================= */
.info-table {
  width: 100%;
  max-width: 680px;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.info-table th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.info-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  background: var(--light-blue);
  line-height: 1.7;
}

.info-table tr:last-child td {
  border-bottom: none;
}

/* =========================================================
   MEMBER CARDS
   ========================================================= */
.members-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.member-card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.09);
  border: 1px solid var(--card-border);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.member-card-accent {
  width: 5px;
  background: var(--sky-blue);
  flex-shrink: 0;
}

.member-card-body {
  flex: 1;
  padding: 1.1rem 1.25rem;
  min-width: 0;
}

.member-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.member-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  flex: 1;
}

.member-logo {
  flex-shrink: 0;
}

.member-logo img {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

.member-card-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.member-links {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.member-links li {
  margin: 0;
}

.member-links a {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sky-blue);
  border: 1px solid var(--sky-blue);
  border-radius: 3px;
  padding: 0.15rem 0.55rem;
  transition: background 0.15s, color 0.15s;
}

.member-links a:hover {
  background: var(--sky-blue);
  color: var(--white);
  text-decoration: none;
}

/* =========================================================
   STRUCTURE PAGE
   ========================================================= */
.organigram-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* =========================================================
   PROJECTS PAGE
   ========================================================= */
.project-section {
  margin-bottom: 2rem;
}

.project-section p {
  margin-bottom: 0.75rem;
}

/* =========================================================
   SITE FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  text-align: center;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE – Tablet (≤ 900px)
   ========================================================= */
@media (max-width: 900px) {
  .main-nav a {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
  }
}

/* =========================================================
   RESPONSIVE – Mobile (≤ 700px)
   ========================================================= */
@media (max-width: 700px) {

  /* Show hamburger, hide desktop nav */
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 0.5rem 0 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(0,153,204,0.25);
  }

  .main-nav a.active {
    border-left: 3px solid var(--sky-blue);
    padding-left: calc(1.5rem - 3px);
  }

  /* Page banner */
  .page-banner {
    padding: 1.5rem 1rem;
  }

  .page-banner h1 {
    font-size: 1.3rem;
  }

  /* Content */
  .content-wrapper {
    padding: 1.5rem 1rem 2.5rem;
  }

  /* Member cards: stack logo below title on very small screens */
  .member-card-header {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .member-logo img {
    max-width: 120px;
    max-height: 50px;
  }

  /* Info table full width */
  .info-table {
    max-width: 100%;
  }

  /* Site logo font size */
  .site-logo {
    font-size: 1rem;
  }
}

/* =========================================================
   RESPONSIVE – Small mobile (≤ 420px)
   ========================================================= */
@media (max-width: 420px) {
  html {
    font-size: 14px;
  }

  .page-banner h1 {
    font-size: 1.15rem;
  }

  .member-card-body {
    padding: 0.9rem 1rem;
  }

  .member-links a {
    font-size: 0.74rem;
  }
}
