/* IM-SURF site stylesheet — modern design system
   Palette: navy / cyan / orange / sand / mist. Headings in Manrope, body in DM Sans. */

:root {
  --navy: #0b2740;
  --navy-2: #123a58;
  --cyan: #20b7c5;
  --cyan-2: #087f8b;
  --orange: #f2a43b;
  --sand: #f3f0e9;
  --mist: #edf4f5;
  --ink: #152d3f;
  --muted: #627583;
  --line: #d7e0e4;
  --radius: 1.25rem;
  --shadow: 0 24px 60px rgba(11, 39, 64, 0.12);
  --max-width: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }

body {
  margin: 0;
  background: #fbfcfc;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  z-index: 100;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 39, 64, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo { height: 34px; width: auto; }
.brand-text {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

/* Full project name stays in the DOM for screen readers / SEO, but out of
   the compact sticky header visually — it already appears in page content. */
header h1 {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 99px;
  padding: 0.55rem 1rem;
  font: 600 0.85rem "DM Sans", sans-serif;
  cursor: pointer;
  margin-left: auto;
}

/* ---------- Nav ---------- */
#site-nav { background: transparent; }

.nav-list {
  max-width: var(--max-width);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.nav-list > li { position: relative; }

.nav-list > li > a,
.dropdown-toggle {
  display: block;
  color: var(--navy);
  text-decoration: none;
  background: none;
  border: none;
  font: 600 0.88rem "DM Sans", sans-serif;
  cursor: pointer;
  padding: 0.7rem 0.85rem;
  border-radius: 99px;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus-visible,
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible,
.dropdown.open .dropdown-toggle {
  color: var(--cyan-2);
  background: var(--mist);
  outline: none;
}

.nav-list > li > a[aria-current="page"] { color: var(--cyan-2); }

/* Contact gets the pill-outline treatment, like a nav CTA */
.nav-list > li:last-child > a {
  border: 1px solid var(--navy);
  padding: 0.55rem 1rem;
  margin-left: 0.4rem;
}
.nav-list > li:last-child > a:hover { background: var(--navy); color: #fff; }

.dropdown-content {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.4rem;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 260px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  z-index: 20;
  display: none;
}

.dropdown.open .dropdown-content { display: block; }

.dropdown-content a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 0.6rem;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.9rem;
}
.dropdown-content a:hover,
.dropdown-content a:focus-visible { background: var(--mist); color: var(--cyan-2); outline: none; }

/* ---------- Layout ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section {
  background: #fff;
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
main > .section:nth-of-type(even) { background: var(--sand); box-shadow: none; }

.section h2 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--navy);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  margin: 0 0 1.1rem;
}
.section h3 {
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 1.75rem 0 0.5rem;
}
.section p { color: var(--ink); }
.section ul, .section ol { color: var(--ink); padding-left: 1.3rem; }
.section li { margin: 0.4rem 0; }
.section a { color: var(--cyan-2); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(8,127,139,0.35); text-underline-offset: 2px; }
.section a:hover { text-decoration-color: currentColor; }

/* eyebrow-style kicker, used above headings where present */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--cyan-2);
  margin: 0 0 0.75rem;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.85rem 1.3rem;
  border-radius: 99px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.92rem;
}
.button.primary { background: var(--orange); color: #1c2d39; }
.button.secondary { border: 1px solid rgba(255,255,255,0.5); color: #fff; }
.button.on-light.secondary { border-color: var(--navy); color: var(--navy); }

/* ---------- Homepage hero ---------- */
.hero {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  right: -16rem;
  top: -14rem;
  background: #155a7b;
  opacity: 0.42;
}
.hero-inner { position: relative; z-index: 2; max-width: 700px; }
.hero .eyebrow { color: #71dce3; }
.hero h1 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  display: block;
}
.hero h1 span { color: var(--orange); }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #d7e8ee; max-width: 620px; margin: 1.25rem 0 1.75rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.project-facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.project-facts div { padding: 1.25rem 1rem 0; display: flex; align-items: baseline; gap: 0.55rem; }
.project-facts strong { font: 800 1.6rem "Manrope", sans-serif; }
.project-facts span { color: #a9c1cf; font-size: 0.8rem; }

/* ---------- Logos / partner cards ---------- */
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.logos a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  text-decoration: none !important;
  transition: transform 0.15s ease;
}
.logos a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.logos img { height: 46px; width: auto; max-width: 100%; object-fit: contain; }
.logos .partner-name { font: 700 0.95rem "Manrope", sans-serif; color: var(--navy); }
.logos .partner-role { font-size: 0.76rem; color: var(--muted); }
main > .section:nth-of-type(even) .logos a { border-color: transparent; }

.hero-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 0 1rem;
}
.hero-logos img { height: 56px; width: auto; object-fit: contain; }

/* ---------- Media ---------- */
.video-container, .image-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
}
video { max-width: 100%; height: auto; border-radius: var(--radius); background: #061a2b; box-shadow: var(--shadow); }

/* ---------- News / publication cards ---------- */
.news-item {
  padding: 1.5rem 0;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.news-item h3 { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: #071c2e;
  color: #c7d5dd;
  padding: 2.5rem 1.25rem;
  margin-top: 1rem;
}
.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.85rem;
}
.site-footer img { height: 32px; width: auto; background: #fff; border-radius: 0.5rem; padding: 0.3rem 0.5rem; }
.site-footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.site-footer a { color: #fff; font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  #site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 100%;
    margin-top: 0.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 0.75rem;
  }
  #site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav-list > li > a, .dropdown-toggle { width: 100%; text-align: left; border-radius: 0.7rem; }
  .nav-list > li:last-child > a { margin-left: 0; margin-top: 0.3rem; border-radius: 0.7rem; text-align: center; }
  .dropdown-content { position: static; box-shadow: none; background: var(--mist); margin-top: 0.2rem; }

  .project-facts { grid-template-columns: repeat(2, 1fr); }
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
