/* Base styles */
* { box-sizing: border-box; }
:root {
  --navy: #082f4a;
  --navy-deep: #06253a;
  --teal: #0a7898;
  --teal-soft: #dfeef3;
  --ink: #173247;
  --muted: #4c6679;
  --line: #d7e4ea;
  --paper: #f7f9fa;
  --white: #ffffff;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.6;
}

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

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--navy);
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

nav .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.35rem;
}

nav .nav-links a {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.01em;
}

nav .nav-links a:hover {
  text-decoration: none;
  color: var(--teal);
}

nav .nav-links .lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}

nav .nav-links .lang-toggle:hover {
  background: var(--teal-soft);
}

/* Home hero */
.hero {
  position: relative;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,47,74,0.18) 0%, rgba(8,47,74,0.45) 55%, rgba(8,47,74,0.74) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 2rem 2.6rem;
}

.hero-card {
  max-width: 640px;
  background: rgba(8,47,74,0.64);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  padding: 1.55rem 1.6rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

.hero-content h1 {
  font-size: 2.75rem;
  line-height: 1.08;
  margin: 0 0 0.55rem;
}

.hero-content p {
  font-size: 1.08rem;
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.94);
}

.cta {
  display: inline-block;
  background-color: var(--teal);
  color: var(--white);
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(8,47,74,0.14);
}

.cta:hover {
  background-color: #095d77;
  text-decoration: none;
}

/* Page hero */
.page-hero {
  position: relative;
  background-image: linear-gradient(90deg, rgba(6,37,58,0.92) 0%, rgba(8,47,74,0.82) 42%, rgba(8,47,74,0.45) 72%), url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.page-hero .section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-hero h1,
.page-hero h2 {
  margin: 0 0 0.5rem;
  font-size: 2.6rem;
  line-height: 1.08;
  color: var(--white);
  max-width: 720px;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  font-size: 1.12rem;
  color: rgba(255,255,255,0.94);
}

/* Sections */
.section {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section h2 {
  font-size: 2rem;
  margin: 0 0 1rem;
  color: var(--navy);
}

.section p {
  font-size: 1rem;
  color: var(--ink);
}

.research {
  padding-top: 3.4rem;
}

.portal {
  background-color: #eef5f7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portal .section-inner,
.contact .section-inner {
  max-width: 1080px;
}

.portal.centered {
  text-align: center;
  padding-top: 3.5rem;
  padding-bottom: 3.6rem;
}

.portal.centered h2 {
  margin-bottom: 0.5rem;
}

.portal.centered p {
  max-width: 920px;
  margin: 0 auto 1.35rem;
}

.contact {
  padding-bottom: 4rem;
}

/* About page bio layout */
.bio-layout {
  display: grid;
  grid-template-columns: minmax(320px, 620px) minmax(300px, 1fr);
  gap: 2.25rem;
  align-items: start;
  margin-top: 1.3rem;
}

.bio-figure {
  margin: 0;
}

.bio-figure img {
  display: block;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(7, 37, 58, 0.12);
}

.eyebrow {
  display: inline-block;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--teal);
  margin-top: 0.5rem;
  border-radius: 999px;
}

.bio-copy h2 {
  font-size: 3rem;
  line-height: 1.04;
  margin: 0 0 1rem;
}

.bio-copy p {
  font-size: 1.02rem;
  margin: 0 0 1rem;
}

.bio-copy .cta {
  margin-top: 0.4rem;
  background-color: var(--navy);
}

.bio-copy .cta:hover {
  background-color: var(--navy-deep);
}

/* Panels */
.card-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 10px 24px rgba(7,37,58,0.05);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--white);
  margin-top: 0;
}

.footer-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 1.3rem 2rem 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.footer-title {
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-sub {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
}

.footer-meta {
  text-align: right;
}

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

.footer-copy {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 2rem 1.2rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

@media (max-width: 940px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav .nav-links {
    margin-top: 0.5rem;
    gap: 1rem;
  }

  .bio-layout {
    grid-template-columns: 1fr;
  }

  .bio-copy h2 {
    font-size: 2.35rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .brand-title {
    font-size: 1.45rem;
  }

  .brand-subtitle {
    white-space: normal;
  }

  .hero-content {
    padding: 0 1rem 1.5rem;
  }

  .hero-card {
    padding: 1.15rem 1.1rem;
  }

  .hero-content h1,
  .page-hero h1,
  .page-hero h2 {
    font-size: 2rem;
  }

  .section {
    padding: 2.2rem 1rem;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }
}
