/* =====================================================================
   MD Expertise — Grondig juridisch advies
   Stylesheet / design system
   Brand colours derived from the logo:
     - Deep petrol navy  (#13303b)  → headings, footer, buttons
     - Steel brand blue  (#4f93a8)  → accents, links, tagline
     - Light blue        (#6ea7bb)  → secondary accents
   ===================================================================== */

/* ---------- Self-hosted body font: Noto Sans (variable, Latin subset) ---------- */
@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/noto-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Self-hosted headings font: Lora (variable, Latin subset) ---------- */
@font-face {
  font-family: "Lora";
  src: url("../assets/fonts/lora-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --color-dark:          #13303b;
  --color-dark-2:        #0e252e;
  --color-primary:       #4f93a8;
  --color-primary-dark:  #3b7a8e;
  --color-light-blue:    #6ea7bb;
  --color-accent-soft:   #cfe0e6;

  --color-bg:            #ffffff;
  --color-bg-alt:        #f4f7f8;
  --color-bg-tint:       #eaf1f3;

  --color-text:          #28383f;
  --color-heading:       #13303b;
  --color-muted:         #5f717a;
  --color-border:        #dde6e9;

  --font-serif: "Lora", "Georgia", "Times New Roman", serif;
  --font-sans:  "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(19, 48, 59, 0.08), 0 1px 2px rgba(19, 48, 59, 0.06);
  --shadow-md: 0 10px 30px rgba(19, 48, 59, 0.10);

  --space-section: clamp(3.5rem, 7vw, 6.5rem);
  --transition: 0.25s ease;
  --gradient-brand: linear-gradient(118deg, #1c4e5c 0%, #184550 40%, #143540 72%, #0f2a33 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 96px) + 28px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--color-primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

p { margin: 0 0 1.1rem; }

ul, ol { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section { padding-block: var(--space-section); }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-dark); color: #e8eef0; }
.section--dark h2, .section--dark h3 { color: #ffffff; }
.section--dark p { color: #c3d2d7; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 0.9rem;
}
.section--dark .eyebrow { color: var(--color-light-blue); }

.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Shared folded bottom-right corner */
.intro-panel,
.service-card,
.topic-page__panel {
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--fold-size)),
    calc(100% - var(--fold-size)) 100%,
    0 100%
  );
}

/* Shared photo placeholder / image fill */
.intro-media img,
.photo-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Shared animated underline (header nav + footer links) */
.nav__menu a::after,
.footer-col a::after,
.footer-brand__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-light-blue);
  transition: width var(--transition);
}
.nav__menu a:hover::after,
.footer-col a:hover::after,
.footer-brand__links a:hover::after { width: 100%; }

/* Shared round bullets */
.topic-page__body ul,
.page-hero--legal .legal ul {
  margin: 0.35rem 0 1.4rem;
  padding-left: 0;
  list-style: none;
}
.topic-page__body li,
.page-hero--legal .legal ul li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.85rem;
}
.topic-page__body li::before,
.page-hero--legal .legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ---------- Homepage intro (photo + panel) ---------- */
.intro-section { background: var(--color-bg); }
.intro-block {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(0, 1.36fr);
  gap: 1.5rem;
  align-items: stretch;
}
.intro-media {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3 / 5;
  min-height: 100%;
  background: var(--color-bg-tint);
}
.intro-media img {
  object-fit: cover;
  object-position: 70% 50%;
}
.photo-placeholder {
  background:
    linear-gradient(160deg, rgba(79, 147, 168, 0.18), transparent 55%),
    linear-gradient(180deg, #d7e4e8 0%, #c5d5db 100%);
  color: var(--color-primary-dark);
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.intro-panel {
  position: relative;
  --fold-size: 68px;
  background: var(--color-bg-alt);
  border-radius: 24px;
  padding: clamp(2rem, 4.2vw, 3.4rem) clamp(1.7rem, 3.8vw, 3.2rem) clamp(2.4rem, 4.5vw, 3.6rem);
}
.intro-panel h2 {
  color: var(--color-dark);
  margin: 0 0 1.15rem;
}
.intro-panel > p {
  color: var(--color-muted);
  margin: 0 0 1.05rem;
  max-width: 42rem;
}
.intro-panel > p:last-child { margin-bottom: 0; }
.intro-panel__callout {
  margin: 1.35rem 0;
  padding: 0.1rem 0 0.1rem 1.15rem;
  border-left: 3px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-light { background: #fff; color: var(--color-dark); border-color: #fff; }
.btn-light:hover { background: var(--color-accent-soft); color: var(--color-dark); transform: translateY(-2px); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }

.btn-arrow::after { content: "→"; font-size: 1.05em; transition: transform var(--transition); }
.btn-arrow:hover::after { transform: translateX(3px); }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #eaf1f3;
  /* Solid base first: sticky headers can drop gradient paints on resize and show the white page behind. */
  background-color: #143540;
  background-image:
    radial-gradient(720px 320px at 0% -40%, rgba(79, 147, 168, 0.42), transparent 60%),
    var(--gradient-brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 22px rgba(10, 28, 35, 0.28);
  transform: translateZ(0);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
}
.nav__logo {
  flex: 0 1 auto;
  min-width: 0;
}
.nav__logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  font-weight: 500;
  color: #d7e4e8;
  font-size: 0.98rem;
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--transition);
}
.nav__menu li { margin-bottom: 0; }
.nav__menu a:hover { color: #ffffff; }

.nav__item--dropdown { position: relative; }
.nav__item--dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
}
.nav__dropdown {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  z-index: 120;
  min-width: 15.5rem;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  background: #12343e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(10, 28, 35, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}
.nav__item--dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.75rem;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav__dropdown a {
  display: block;
  padding: 0.65rem 1.15rem;
  white-space: nowrap;
}
.nav__dropdown a::after { display: none; }
.nav__dropdown a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__cta .btn { padding: 0.7rem 1.2rem; }

/* Mobile-only CTA inside the menu list is hidden on desktop */
.nav__mobile-cta { display: none; }

.nav__toggle {
  display: none;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-dark-2);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(102deg, rgba(14,37,46,0.94) 0%, rgba(14,37,46,0.82) 30%, rgba(16,42,51,0.5) 58%, rgba(16,42,51,0.2) 100%),
    linear-gradient(0deg, rgba(14,37,46,0.35) 0%, rgba(14,37,46,0) 45%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: max(620px, calc(100svh - var(--header-h, 80px)));
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero__content { max-width: 620px; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(2px);
  transition: background var(--transition), border-color var(--transition);
  animation: heroScrollBounce 2.2s ease-in-out infinite;
}
.hero__scroll:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
}
@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}
.hero h1 { margin-bottom: 1.1rem; color: #ffffff; }
.hero__accent { color: var(--color-light-blue); }
.hero__lead { font-size: 1.22rem; color: rgba(255,255,255,0.9); margin-bottom: 1.8rem; max-width: 42ch; }
.hero__buttons { margin-bottom: 1.8rem; }
.hero__assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.75rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}
.hero__assurance span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__assurance svg { flex: none; color: var(--color-light-blue); }

/* ---------- Expertise service cards ---------- */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.35rem;
  max-width: 1080px;
  margin-inline: auto;
}
.services > * {
  flex: 0 1 calc((100% - 2 * 1.35rem) / 3);
  max-width: calc((100% - 2 * 1.35rem) / 3);
}
.service-card {
  position: relative;
  --fold-size: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  min-height: 240px;
  padding: 2.2rem 1.25rem 2.5rem;
  background: #fff;
  border-radius: 24px;
  color: var(--color-dark);
  text-align: center;
  transition: transform var(--transition), color var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-4px);
    color: var(--color-primary-dark);
  }
}
.service-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.service-card__icon {
  width: 112.5px;
  height: 112.5px;
  flex: none;
}
.service-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.service-card__label {
  font-weight: 600;
  font-size: clamp(0.9rem, 1.05vw, 1.05rem);
  letter-spacing: 0.01em;
}

/* ---------- Expertise topic pages ---------- */
.topic-page {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
  padding-block: clamp(3.25rem, 7vw, 5.75rem);
}
/* Tall floorplan filling the full right side of the topic page */
.topic-page::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 52%;
  background: url("../assets/plattegrond-petrol.webp") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 16%, rgba(0, 0, 0, 0.28) 42%, #000 78%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 16%, rgba(0, 0, 0, 0.28) 42%, #000 78%);
  opacity: 0.36;
  pointer-events: none;
}
.topic-page > .container {
  position: relative;
  z-index: 1;
}
.topic-page__inner {
  max-width: 40.5rem;
  margin-inline: auto;
}
.topic-page h1 {
  color: var(--color-dark);
  font-size: clamp(2.35rem, 5.2vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 1.85rem;
}
.topic-page__lead {
  font-size: 1.08rem;
  color: var(--color-muted);
  margin: 0 0 1.35rem;
}
.topic-page__body p {
  color: var(--color-muted);
  margin: 0 0 1.25rem;
}
.topic-page__body h2 {
  font-size: 1.28rem;
  margin: 2.1rem 0 0.65rem;
}
.topic-page__body ul { color: var(--color-muted); }
.topic-page__panel {
  --fold-size: 52px;
  background: #fff;
  margin-top: 2.75rem;
  padding: clamp(1.7rem, 3.2vw, 2.45rem) clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 24px;
}
.topic-page__panel h2 {
  color: var(--color-dark);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 500;
  margin: 0 0 0.8rem;
}
.topic-page__panel p {
  color: var(--color-muted);
  margin: 0 0 1.35rem;
}
.topic-page__panel .btn-group { margin-top: 0.15rem; }

/* ---------- Split (about) ---------- */
#over {
  position: relative;
  overflow: hidden;
}
#over::before {
  content: "";
  position: absolute;
  top: -6%;
  right: 0;
  /* Match the drawing’s visible width so the left fade hits the art, not empty space */
  width: min(46vw, 520px);
  height: 112%;
  background: url("../assets/plattegrond-wit.webp") center center / cover no-repeat;
  /* Strong fade on the left only — solid toward the right edge */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 22%,
    rgba(0, 0, 0, 0.55) 48%,
    #000 72%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 22%,
    rgba(0, 0, 0, 0.55) 48%,
    #000 72%,
    #000 100%
  );
  opacity: 0.55;
  pointer-events: none;
}
#over .split { position: relative; z-index: 1; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.profile-card {
  position: relative;
  z-index: 2;
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.profile-card .mono { font-family: var(--font-serif); font-size: 1.5rem; color: var(--color-dark); margin-bottom: 0.25rem; }
.profile-card .role { color: var(--color-primary-dark); font-weight: 600; margin-bottom: 1.5rem; }
.profile-card ul { list-style: none; padding: 0; margin: 0; }
.profile-card li { display: flex; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.profile-card li:last-child { border: none; }
.profile-card li svg { flex: none; color: var(--color-primary); margin-top: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
  /* Same petrol + steel-blue language as header/footer */
  background:
    radial-gradient(720px 340px at 8% -20%, rgba(79, 147, 168, 0.48), transparent 58%),
    radial-gradient(640px 360px at 100% 120%, rgba(10, 28, 35, 0.45), transparent 58%),
    var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3d2d7; max-width: 50ch; margin-inline: auto; }
.cta-band .btn-group { justify-content: center; margin-top: 1.75rem; }

/* ---------- Contact ---------- */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.contact-block__content h1 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
}
.contact-block__lead {
  color: var(--color-muted);
  max-width: 40ch;
  margin: 0 0 1.75rem;
}
.contact-info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}
.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.contact-item:last-child { border-bottom: none; }
.contact-item__icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--color-bg-tint); color: var(--color-primary-dark);
  display: grid; place-items: center;
}
.contact-item strong { display:block; color: var(--color-dark); }
.contact-item a, .contact-item span { color: var(--color-muted); }
.contact-media {
  position: relative;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  min-height: 100%;
  background: var(--color-bg-tint);
}

/* ---------- Footer ----------
   Continuous diagonal gradient: brand-blue glow (top-left) easing into
   deep petrol/anthracite (bottom-right). The gradient spans the whole
   footer so the colour transition flows across both zones. */
.site-footer {
  position: relative;
  color: #d7e4e8;
  background:
    radial-gradient(1200px 540px at 1% -10%, rgba(79, 147, 168, 0.55), transparent 56%),
    radial-gradient(900px 500px at 100% 120%, rgba(10, 28, 35, 0.55), transparent 60%),
    var(--gradient-brand);
}
.site-footer a:not(.btn) { color: #c6d6db; transition: color var(--transition); }
.site-footer a:not(.btn):hover { color: #ffffff; }

.footer-col a,
.footer-brand__links a {
  position: relative;
  display: inline-block;
}

/* --- Main zone --- */
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) 1fr 1fr minmax(0, 1.3fr);
  gap: clamp(2.25rem, 3.5vw, 3.75rem);
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(3rem, 5vw, 4.5rem);
  align-items: start;
}

/* CTA column */
.footer-cta h2 {
  color: #ffffff;
  font-size: clamp(1.4rem, 1.85vw, 1.55rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.footer-cta p {
  color: #c3d4d9;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 42ch;
  margin-bottom: 1.75rem;
}
.footer-cta__buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-cta__buttons .btn { flex: 1 1 150px; min-width: 0; padding: 0.85rem 1rem; justify-content: center; white-space: nowrap; }

/* Link columns */
.footer-col h3 {
  font-family: var(--font-sans);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.95rem; }
.footer-col a { font-size: 0.97rem; white-space: nowrap; }

/* Brand / logo column */
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.footer-brand .footer-logo { width: 100%; max-width: 220px; height: auto; margin: 0; }
.footer-brand__contact { font-style: normal; font-size: 0.95rem; line-height: 1.5; color: #b7cace; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-brand__links { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-brand__links a { font-size: 0.95rem; font-weight: 500; }

/* --- Divider + bottom zone --- */
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  padding-block: 1.9rem;
  font-size: 0.88rem;
  color: #a7bcc2;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}
.footer-social {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid; place-items: center;
  color: #d7e4e8;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.footer-social img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
}
.footer-social:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.footer-cookie-settings {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #c6d6db;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.footer-cookie-settings:hover { color: #fff; }

/* Visible before JS reveals the address */
a.js-mail:not([href^="mailto"])::before {
  content: "e-mail";
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  right: 1rem;
  left: auto;
  bottom: 1rem;
  z-index: 1200;
  padding: 0;
  pointer-events: none;
  max-width: min(22rem, calc(100vw - 2rem));
}
.cookie-banner__inner {
  pointer-events: auto;
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: var(--gradient-brand);
  box-shadow: 0 12px 28px rgba(10, 28, 35, 0.32);
  color: #d7e4e8;
}
.cookie-banner__text {
  flex: none;
  min-width: 0;
}
.cookie-banner__text p {
  margin: 0;
  max-width: none;
  color: #d7e4e8;
  font-size: 0.86rem;
  line-height: 1.5;
}
.cookie-banner__text p + p { margin-top: 0.3rem; }
.cookie-banner__text strong {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}
.cookie-banner__text a { color: var(--color-light-blue); }
.cookie-banner__text a:hover { color: #fff; }
.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: none;
}
.cookie-banner__btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

/* ---------- Legal / content pages ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--color-dark) 0%, var(--color-dark-2) 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero--legal {
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; }
.page-hero p { color: #c3d2d7; margin: 0; max-width: 60ch; }

.error-page {
  min-height: min(70vh, 640px);
  display: grid;
  align-items: center;
}
.error-page__inner { max-width: 40rem; }
.error-page__actions { margin-top: 1.75rem; }

.legal { max-width: 820px; margin-inline: auto; width: 100%; }
.legal h2 { font-size: 1.4rem; margin-top: 0; padding-top: 1.5rem; }
.legal h2:first-of-type { padding-top: 0; }
.legal h2[id] {
  scroll-margin-top: calc(var(--header-h, 96px) + 8px);
}
.legal-sep {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0 0;
  scroll-margin-top: calc(var(--header-h, 96px) + 8px);
}
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal ol, .legal ul { margin-bottom: 1.1rem; }
.legal .toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0 2.5rem;
}
.legal .toc h2 { padding: 0; margin: 0 0 0.8rem; font-size: 1.1rem; }
.legal .toc ol { margin: 0; columns: 2; column-gap: 2rem; }
.legal .toc a { color: var(--color-primary-dark); font-weight: 500; }

/* Legal content inside the blue page hero */
.page-hero--legal .legal h1 { margin-bottom: 0; }
.page-hero--legal .legal h2,
.page-hero--legal .legal h3 { color: #fff; }
.page-hero--legal .legal-sep { border-top-color: rgba(255, 255, 255, 0.14); }
.page-hero--legal .legal p {
  color: #c3d2d7;
  max-width: none;
  margin: 0 0 1.1rem;
}
.page-hero--legal .legal ul { color: #c3d2d7; }
.page-hero--legal .legal a { color: var(--color-light-blue); }
.page-hero--legal .legal a:hover { color: #fff; }
.page-hero--legal .legal strong { color: #e8eef0; }
.page-hero--legal .legal .toc {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.page-hero--legal .legal .toc h2 { color: #fff; }
.page-hero--legal .legal .toc a { color: var(--color-light-blue); }

.legal-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0 1.75rem;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.legal-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  vertical-align: middle;
  word-break: break-word;
}
.legal-table th {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
}
.legal-table th:nth-child(1),
.legal-table td:nth-child(1) { width: 34%; }
.legal-table th:nth-child(2),
.legal-table td:nth-child(2) { width: 28%; }
.legal-table th:nth-child(3),
.legal-table td:nth-child(3) { width: 18%; }
.legal-table th:nth-child(4),
.legal-table td:nth-child(4) { width: 20%; }
.legal-table td { color: #d5e1e5; }
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}
.legal-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--color-light-blue);
  text-decoration: none;
}

/* ---------- Utilities / animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 2.4s ease, transform 2.4s ease; }
.reveal--from-left { transform: translateX(-36px); }
.reveal--from-right { transform: translateX(36px); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__inner { min-height: max(500px, calc(100svh - var(--header-h, 72px))); }
  .hero__overlay {
    background:
      linear-gradient(100deg, rgba(14,37,46,0.95) 0%, rgba(14,37,46,0.88) 45%, rgba(16,42,51,0.72) 100%),
      linear-gradient(0deg, rgba(14,37,46,0.35) 0%, rgba(14,37,46,0) 55%);
  }
  .split { grid-template-columns: 1fr; }
  .intro-block { grid-template-columns: 1fr; }
  .intro-media { aspect-ratio: 4 / 5; max-width: 28rem; }
  .contact-block { grid-template-columns: 1fr; }
  .contact-media {
    order: -1;
    aspect-ratio: 4 / 5;
    max-width: 28rem;
    min-height: 0;
  }

  /* Footer: CTA spans full width, link columns wrap below */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
  }
  .footer-cta { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav {
    gap: 0.75rem;
  }
  .nav__logo img {
    height: 40px;
  }
  .nav__menu,
  .nav__cta {
    display: none;
  }
  .nav__toggle { display: flex; }

  .nav__menu.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - var(--header-h, 72px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--gradient-brand);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(10, 28, 35, 0.35);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav__menu.is-open li { width: 100%; }
  .nav__menu.is-open a { display: block; padding: 0.9rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); color: #d7e4e8; }
  .nav__menu.is-open a::after { display: none; }
  .nav__menu.is-open .nav__mobile-cta { display: block; margin-top: 1rem; }
  .nav__menu.is-open .nav__mobile-cta a { border: none; color: #fff; }

  /* Expertise submenu: accordion — closed until tapped */
  .nav__menu.is-open .nav__item--dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.75rem;
  }
  .nav__menu.is-open .nav__caret {
    flex: none;
    margin-top: 0;
    transition: transform var(--transition);
  }
  .nav__menu.is-open .nav__item--dropdown.is-expanded .nav__caret {
    transform: rotate(180deg);
  }
  .nav__menu.is-open .nav__dropdown {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    margin: 0 0 0.35rem;
    padding: 0 0 0.35rem 0.85rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .nav__menu.is-open .nav__item--dropdown.is-expanded .nav__dropdown {
    display: block;
  }
  .nav__menu.is-open .nav__dropdown a {
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
  }
  .nav__menu.is-open .nav__item--dropdown::after { display: none; }

  .legal .toc ol { columns: 1; }
  .services {
    max-width: none;
  }
  .services > * {
    flex: 1 1 100%;
    max-width: none;
  }

  /* Footer stacks to a single column */
  .footer-top { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-bottom > span {
    flex: 1 1 100%;
  }
}
