/* Nexfin — Website in opbouw */

/* Poppins, self-hosted (latin subset) so no visitor data goes to Google */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/poppins-400-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/poppins-600-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/poppins-700-latin.woff2) format('woff2');
}

:root {
  /* Brand */
  --blue: #005296;
  --green: #00885A;
  --navy: #0a2c46;

  /* Derived */
  --blue-dark: #00446f;
  --green-ink: #00704a; /* brand green darkened for small text (WCAG AA) */
  --text: #13293d;
  --text-muted: #4a6072;
  --text-subtle: #5c7183;
  --surface: #fff;
  --border: #e3eaf0;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: 20px;
}

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

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #f6f9fb;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--green-ink);
}

a[href^="tel:"] {
  white-space: nowrap;
}

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

img {
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Page shell ---------- */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(170deg, #f3f8fb 0%, #eef5f1 100%);
}

/* Drifting background blobs */
.page::before,
.page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.page::before {
  top: -180px;
  left: -160px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0, 82, 150, .13), transparent 68%);
  animation: drift1 18s ease-in-out infinite;
}

.page::after {
  top: 180px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 136, 90, .12), transparent 68%);
  animation: drift2 22s ease-in-out infinite;
}

.site-header,
.main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  justify-content: center;
  padding: 48px var(--gutter) 0;
}

.logo {
  display: block;
  height: 96px;
  width: auto;
  margin-bottom: 48px;
  animation: pop .9s var(--ease) both;
}

/* ---------- Main ---------- */

.main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 8px 16px 8px 14px;
  background: var(--surface);
  border: 1px solid #dcebe4;
  border-radius: 999px;
  color: var(--green-ink);
  font-weight: 600;
  font-size: 13px;
  isolation: isolate;
  animation: rise .8s .15s var(--ease) both;
}

.badge__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* Pulse ring: scaled on the compositor instead of animating box-shadow */
.badge__dot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: rgba(0, 136, 90, .45);
  animation: pulse 2s infinite;
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--navy);
  text-wrap: balance;
  animation: rise .8s .25s var(--ease) both;
}

.hero__title span {
  color: var(--blue);
}

.accent {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  animation: rise .8s .3s var(--ease) both;
}

.accent span {
  height: 4px;
  border-radius: 4px;
  transform-origin: left;
}

.accent__blue {
  width: 44px;
  background: var(--blue);
  animation: drawline .7s .6s var(--ease) both;
}

.accent__green {
  width: 22px;
  background: var(--green);
  animation: drawline .5s .85s var(--ease) both;
}

.hero__lead {
  max-width: 540px;
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  text-wrap: pretty;
  animation: rise .8s .35s var(--ease) both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  animation: rise .8s .45s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

.btn:focus-visible {
  border-radius: 999px;
}

.btn--primary {
  padding: 15px 28px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(0, 82, 150, .6);
  transition: transform .2s, background .2s, box-shadow .2s;
}

.btn--primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(0, 82, 150, .7);
}

.btn--secondary {
  padding: 15px 26px;
  background: var(--surface);
  color: var(--navy);
  border: 1px solid #d6e2ea;
  transition: transform .2s, border-color .2s, color .2s;
}

.btn--secondary:hover {
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* ---------- Team cards ---------- */

.team {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  scroll-margin-top: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 44px -32px rgba(10, 44, 70, .4);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: rise .8s .6s var(--ease) both;
}

.card:nth-of-type(2) {
  animation-delay: .72s;
}

.card:nth-of-type(3) {
  animation-delay: .84s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 52px -30px rgba(10, 44, 70, .45);
  border-color: #cddbe6;
}

.card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #eef5fb;
  color: var(--blue);
  font-weight: 600;
  font-size: 17px;
}

.avatar--green {
  background: #e2efe9;
  color: var(--green-ink);
}

.card__name {
  margin: 0;
  font-weight: 600;
  font-size: 18.5px;
  line-height: 1.3;
  color: var(--navy);
}

.card__role {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--green-ink);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.contact > div {
  display: flex;
  gap: 12px;
}

.contact dt {
  flex: none;
  width: 12px;
  padding: 2px 0;
  font-weight: 700;
  color: var(--navy);
}

.contact abbr {
  text-decoration: none;
}

.contact dd {
  margin: 0;
  min-width: 0;
}

.contact a {
  display: inline-block;
  padding: 2px 0;
  overflow-wrap: anywhere;
}

.card__note {
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid #edf2f6;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-subtle);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #cde0ef;
  font-size: 14px;
  line-height: 1.5;
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.site-footer__logo {
  display: block;
  height: 40px;
  width: auto;
}

.site-footer__info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.site-footer address {
  font-style: normal;
}

.site-footer__copy {
  color: #9fb8cc;
}

/* ---------- Larger screens ---------- */

@media (min-width: 480px) {
  :root {
    --gutter: 28px;
  }

  .site-header {
    padding-top: 64px;
  }

  .main {
    padding-bottom: 80px;
  }

  .card {
    padding: 30px 28px;
  }
}

@media (min-width: 640px) {
  .team {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  }
}

/* ---------- Animations ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: none; }
}

@keyframes drawline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(3.25); opacity: 0; }
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-36px, -24px); }
}

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