@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #edf3ff;
  --line: #dbe5f3;
  --text: #0f172a;
  --muted: #475569;
  --brand: #1d4ed8;
  --brand-strong: #173ea8;
  --accent: #0f766e;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, 0.09);
  --container: 1060px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.12), transparent 30%),
    radial-gradient(circle at 100% 10%, rgba(15, 118, 110, 0.08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: 'Source Sans 3', 'Trebuchet MS', sans-serif;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.8rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.06rem; margin-bottom: 0.45rem; }
p { color: var(--muted); }

.container {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
}

/* ── Accessibility ── */

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -100px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #111827;
  color: #fff;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus { top: 10px; }

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(8px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.logo {
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
}

.logo span { color: var(--brand); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-weight: 600;
  color: #334155;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.site-nav a.active,
.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: rgba(29, 78, 216, 0.11);
  color: var(--brand-strong);
  text-decoration: none;
}

.nav-toggle-btn {
  display: none;
}

/* ── Main content ── */

.main {
  min-height: 72vh;
  padding: clamp(2.2rem, 5vw, 3.3rem) 0 clamp(3rem, 6vw, 4.4rem);
}

/* ── Hero ── */

.hero {
  text-align: center;
  margin-bottom: 1.8rem;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.7rem;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  background: #eff6ff;
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero .sub {
  max-width: 760px;
  margin: 0 auto 1.25rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */

.button {
  display: inline-block;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  border: 1px solid transparent;
  font-weight: 700;
  padding: 0.7rem 1.05rem;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.button:hover { background: var(--brand-strong); text-decoration: none; }

.button-secondary {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.button-secondary:hover {
  background: #eaf1ff;
  text-decoration: none;
}

/* ── Cards & Panels ── */

.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1rem, 2vw, 1.5rem);
}

/* ── Info strip ── */

.info-strip {
  margin: 1.1rem 0 1.6rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat {
  background: var(--surface);
  border: 1px solid #cddbf3;
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.stat span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e3a8a;
  font-weight: 700;
}

.stat strong {
  font-size: 1rem;
  color: var(--text);
}

.section-title {
  margin: 1rem 0 0.9rem;
}

/* ── Grids ── */

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ── Chips & badges ── */

.chip {
  display: inline-block;
  background: #eef3ff;
  color: #1e3a8a;
  border: 1px solid #d4e2ff;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.73rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.55rem;
}

/* ── Projects ── */

.project-preview h3 { margin-bottom: 0.4rem; }
.text-link { font-weight: 700; }

.project-list {
  display: grid;
  gap: 1rem;
}

.project-card {
  scroll-margin-top: 90px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 0.45rem;
}

.status {
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.25rem 0.62rem;
}

.lead {
  color: #1e293b;
  font-size: 1.03rem;
}

.project-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid ul {
  margin-left: 1rem;
}

.project-actions {
  margin-top: 1rem;
}

.meta-note {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ── Legal pages ── */

.legal {
  display: grid;
  gap: 0.8rem;
}

.legal section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.legal ul { margin-left: 1rem; }

/* ── Contact ── */

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  padding: 1.2rem 0 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.footer-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #334155;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.footer-links a:hover {
  background: #edf2ff;
  text-decoration: none;
}

.footer-copy {
  color: #475569;
  font-size: 0.93rem;
}

/* ── Cookie banner ── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #1e293b;
  border-top: 2px solid #2d4a7a;
  padding: 0.9rem 0;
}

.cookie-banner[hidden] { display: none; }

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-inner p {
  color: #cbd5e1;
  margin: 0;
  font-size: 0.92rem;
  flex: 1;
  min-width: 240px;
}

.cookie-inner a { color: #93c5fd; }

.cookie-accept {
  background: #2563eb;
  border-color: transparent;
  white-space: nowrap;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

.cookie-accept:hover { background: #1d4ed8; }

/* ── Responsive ── */

@media (max-width: 920px) {
  .grid-3,
  .grid-2,
  .project-grid,
  .contact-grid,
  .info-strip {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
  }

  .project-top {
    flex-direction: column;
  }

  .header-inner {
    min-height: 68px;
  }

  .nav-toggle-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
    padding: 0;
  }

  .nav-toggle-btn span,
  .nav-toggle-btn span::before,
  .nav-toggle-btn span::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #334155;
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle-btn span::before {
    position: absolute;
    top: -6px;
  }

  .nav-toggle-btn span::after {
    position: absolute;
    top: 6px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
  }

  .site-nav a {
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle-btn[aria-expanded="true"] span {
    background: transparent;
  }

  .nav-toggle-btn[aria-expanded="true"] span::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle-btn[aria-expanded="true"] span::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
