/* ═══════════════════════════════════════════════════════════
   BOMBI  –  Global Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ────────────────────────────────────────── */
:root {
  --primary:       #002a57;
  --primary-dark:  #002a57;
  --primary-light: #459cdf;
  --primary-faint: #e6f7f5;
  --navy:          #0D2240;
  --text:          #1E2D3D;
  --muted:         #5F7A8A;
  --bg:            #F4F8FA;
  --card-bg:       #ffffff;
  --border:        #D8E6E3;
  --font:          'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius:        10px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.13);
  --nav-h:         88px;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Utility ──────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--primary);
  z-index: 9000;
  transition: box-shadow .25s, background .25s;
}
.navbar.scrolled {
  background: var(--primary-dark);
  box-shadow: 0 2px 16px rgba(0,0,0,0.22);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.nav-logo {
  height: 50px;
  width: auto;
  border-radius: 6px;
}
.nav-title {
  font-size: 25px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
}

#sidebar-active { display: none; }

.hamburger, .close-btn {
  display: none;
  cursor: pointer;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  transition: background .15s;
}
.hamburger:hover, .close-btn:hover { background: rgba(255,255,255,0.15); }

#nav-overlay { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}
.nav-links a {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(255,255,255,0.88);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 14px;
  height: 3px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-data-link { font-weight: 700 !important; color: #fff !important; }

.nav-institute-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.25);
  margin-left: 8px;
}
.nav-institute-logos a { height: auto; padding: 4px 6px; }
.nav-institute-logos a::after { display: none; }
.nav-institute-logos img { height: 36px; width: auto; opacity: .9; filter: brightness(1.1); }
.nav-institute-logos img:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  filter: brightness(0.75) saturate(0.85);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(0, 26, 42, 0.75) 0%,
    rgba(0, 90, 80, 0.55) 55%,
    rgba(0, 153, 134, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 40px 24px 120px;
  max-width: 820px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(72px, 12vw, 130px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.0;
  margin-bottom: 8px;
  text-shadow: 0 4px 32px rgba(0,0,0,0.35);
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 300;
  letter-spacing: .04em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,153,134,0.45);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,153,134,0.55);
  text-decoration: none;
}

.btn-ghost {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
  text-decoration: none;
}

/* Stats strip at bottom of hero */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 24px;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 36px;
}
.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1.1;
}
.stat-lbl {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}
.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.18);
  align-self: center;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.page-section {
  padding: 90px 0;
}
.page-section.bg-tinted {
  background: #edf4f2;
}

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 100%;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ── ABOUT section ────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 18px;
}
.about-text a { color: var(--primary); }

.about-img-placeholder {
  background: #e4eeec;
  border: 2px dashed #b2d0ca;
  border-radius: var(--radius);
  aspect-ratio: 5/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-inner {
  text-align: center;
  color: #7aada5;
  padding: 24px;
}
.placeholder-inner svg {
  width: 52px; height: 52px;
  stroke: #7aada5;
  margin: 0 auto 12px;
  display: block;
}
.placeholder-inner p { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.placeholder-hint { font-size: 12px; color: #9bbfba; font-weight: 400; line-height: 1.5; }

/* ── MODEL GRIDS ──────────────────────────────────────────── */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.grid-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.grid-card-header {
  padding: 18px 20px 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.grid-abbr {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
}
.grid-name {
  font-size: 12px;
  font-weight: 500;
  opacity: .85;
  margin-top: 3px;
}

.grid-card-body { padding: 16px 20px 20px; }

.grid-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #f0f0f0;
  padding: 7px 0;
  font-size: 13.5px;
}
.grid-stat-row:last-child { border-bottom: none; }
.grid-stat-label { color: var(--muted); }
.grid-stat-value { font-weight: 600; color: var(--navy); }

.grid-footnote {
  font-size: 22px;
  color: var(--muted);
  text-align: center;
}

/* ── APPS ─────────────────────────────────────────────────── */
.app-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.app-card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.app-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #d8eae8;
}
.app-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.app-card:hover .app-card-img img { transform: scale(1.04); }

.app-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.app-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-card-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.app-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.app-features {
  list-style: none;
  margin-bottom: 22px;
  flex: 1;
}
.app-features li {
  font-size: 13.5px;
  color: var(--text);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.app-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}
.app-features li:empty { display: none; }

.btn-app {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  transition: background .15s, transform .15s;
}
.btn-app:hover {
  background: var(--primary-dark);
  transform: translateX(3px);
  text-decoration: none;
}

/* ── PUBLICATIONS ─────────────────────────────────────────── */
.pub-list {
  list-style: none;
  counter-reset: pub-counter;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 3px solid var(--primary-light);
  padding-left: 0;
  margin-bottom: 28px;
}

.pub-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 18px 0 18px 28px;
  border-bottom: 1px solid #d4e8e4;
  position: relative;
}
.pub-item:last-child { border-bottom: none; }

.pub-year {
  min-width: 52px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  padding-top: 2px;
  letter-spacing: .04em;
}

.pub-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pub-authors {
  font-size: 13.5px;
  color: var(--muted);
}

.pub-journal {
  font-size: 12px;
  color: #9ebbba;
  font-style: italic;
}

.pub-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.4;
}
.pub-title:hover {
  color: var(--primary);
  text-decoration: underline;
}

.pub-note {
  font-size: 14px;
  color: var(--muted);
}

/* ── TEAM ─────────────────────────────────────────────────── */
.team-pi {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--card-bg);
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 48px;
}

.team-pi-photo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-faint);
  border: 3px solid var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-pi-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}
.team-photo-placeholder svg { width: 52px; height: 52px; }

.team-pi-role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}
.team-pi-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.team-pi-affil {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.team-pi-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.team-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 24px;
}

.team-member {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 22px 16px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.team-member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-member img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 2.5px solid var(--primary-light);
}

.member-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.member-role {
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px;
}
.member-affil {
  font-size: 11px;
  color: var(--muted);
}

/* ── DATA ACCESS ──────────────────────────────────────────── */
.data-access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.data-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.data-box-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-faint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.data-box-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
}

.data-box h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.data-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  transition: background .15s, color .15s;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact-section {
  background: var(--navy);
  padding: 70px 0;
}
.contact-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.contact-title {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
}
.contact-text {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  max-width: 100%;
  line-height: 1.7;
}
.contact-text a { color: var(--primary-light); }
.contact-logos {
  display: flex;
  gap: 36px;
  justify-content: center;
  align-items: center;
  margin: 44px auto 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  max-width: 1100px;
  padding-left: 28px;
  padding-right: 28px;
}
.contact-logos img {
  height: auto;
  width: 300px;
  opacity: .9;
  transition: opacity .2s;
}
.contact-logos img:hover { opacity: 1; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: #060f1c;
  color: rgba(255,255,255,0.55);
  padding: 28px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.footer-brand img {
  height: 40px;
  width: auto;
  opacity: .7;
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  letter-spacing: .04em;
}
.footer-brand-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--primary-light); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: right;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img-placeholder { max-width: 480px; }
  .app-cards { grid-template-columns: 1fr; }
  .data-access-grid { grid-template-columns: 1fr; }
  .team-pi { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; gap: 18px; }
  .footer-brand { margin-right: 0; }
  .footer-copy { text-align: center; }
}

@media (max-width: 700px) {
  .grid-cards { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat-sep { width: 60px; height: 1px; }
  .hero-stat { padding: 4px 0; }
}

/* ── Mobile sidebar nav ───────────────────────────────────── */
@media (max-width: 800px) {
  .hamburger { display: flex; margin-left: auto; }

  #nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 8998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
  }
  #sidebar-active:checked ~ #nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    position: fixed;
    top: 0; right: -280px;
    width: 260px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px 0 30px;
    gap: 0;
    z-index: 9001;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    transition: right .3s ease;
    overflow-y: auto;
  }
  #sidebar-active:checked ~ .nav-links { right: 0; }

  .close-btn {
    display: flex;
    margin-left: auto;
    margin-right: 12px;
    margin-bottom: 8px;
  }

  .nav-links a {
    width: 100%;
    height: auto;
    padding: 14px 24px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links a::after { display: none; }

  .nav-institute-logos {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 16px 24px 0;
    margin: 8px 0 0;
    width: 100%;
    justify-content: flex-start;
  }
  .nav-institute-logos img { height: 32px; }
}
