
/* ==========================================================
   Shared styles: colours, fonts, layout helpers, nav, footer.
   Change the colours here and the whole site follows.
   ========================================================== */

:root {
  /* Brand colours (from the Neurion logo files) */
  --bg: #012233;            /* darker shade of the brand blue */
  --bg-alt: #012b40;
  --surface: #01364e;       /* brand dark blue */
  --surface-hover: #054360;
  --border: rgba(255, 255, 255, 0.1);
  --text: #fcf9f3;          /* brand cream */
  --text-muted: #a9bcc6;

  /* Accent */
  --accent: #66d4c1;          /* teal from the team prototype */
  --accent-rgb: 102, 212, 193;   /* same colour as numbers, for see-through versions */
  --accent-2: #b3ece2;          /* lighter green, used in gradients */

  /* Light sections (e.g. projects) */
  --light-bg: #fcf9f3;      /* brand cream */
  --light-surface: #ffffff;
  --light-text: #01364e;    /* brand dark blue */
  --light-muted: #4d6674;
  --light-border: rgba(1, 54, 78, 0.12);

  --radius: 18px;
  --nav-height: 72px;
  --font: "Manrope", "Inter", system-ui, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height); /* so the nav doesn't cover section titles */
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; aspect-ratio: 4 / 3;display: block; }
a { color: inherit; }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: 6.5rem 0; }

/* Light section variant: add class="section section--light" */
.section--light {
  background: var(--light-bg);
  color: var(--light-text);
  --text: var(--light-text);
  --text-muted: var(--light-muted);
  --border: var(--light-border);
  --surface: var(--light-surface);
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section--light .eyebrow { color: #1a8a78; } /* darker green so it's readable on light bg */

h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; margin: 0; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

.section-lead {
  max-width: 60ch;
  margin: 1.25rem 0 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #012233;
}
.btn-primary:hover { background: var(--accent-2); }

/* Rounded outline button, like "Close" / "Work with us" */
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: currentColor;
}
.btn-outline:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(1, 34, 51, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--border); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--text);
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--text);
  border-radius: 999px;
}
.nav-links .nav-cta:hover { background: var(--text); color: var(--bg); }

@media (max-width: 680px) {
  .nav-links li:not(:last-child) { display: none; } /* keep only the main button on phones */
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-inner p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand .footer-logo { height: 44px; width: auto; }
.footer-brand .footer-tue { height: 22px; width: auto; opacity: 0.85; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-meta { align-items: flex-start; }
}
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* Respect people who turn animations off in their system settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

