/* ==========================================================================
   Dijkhof Technische Dienstverlening — stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --blue-50: #eef5ff;
  --blue-300: #8dbaff;
  --blue-400: #5a9dff;
  --blue-500: #2f80f5;
  --blue-600: #1666de;
  --blue-700: #0f51b4;
  --blue-800: #0c418f;
  --navy-950: #050c18;
  --navy-900: #0a1628;
  --navy-800: #0f2039;
  --amber: #ffc23d;

  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --surface: #ffffff;
  --heading: #0a1628;
  --text: #1e2a3b;
  --text-muted: #556377;
  --border: #e1e7ef;
  --border-strong: #c9d3e0;
  --accent: #1666de;
  --accent-soft: #eaf2ff;
  --accent-text: #1666de;
  --btn: #1666de;
  --btn-hover: #0f51b4;
  --grid-line: rgb(22 102 222 / .075);

  --shadow-sm: 0 1px 2px rgb(10 22 40 / .06), 0 1px 3px rgb(10 22 40 / .04);
  --shadow: 0 12px 32px -14px rgb(10 22 40 / .22);
  --shadow-lg: 0 30px 60px -22px rgb(10 22 40 / .32);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --section-y: clamp(4rem, 8vw, 7rem);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --bg-alt: #0d1727;
    --surface: #111d30;
    --heading: #f1f5fb;
    --text: #d5deea;
    --text-muted: #9aa9bd;
    --border: #1f2e46;
    --border-strong: #2c3f5e;
    --accent: #4a93ff;
    --accent-soft: rgb(74 147 255 / .13);
    --accent-text: #6aa8ff;
    --btn: #1666de;
    --btn-hover: #2a78ee;
    --grid-line: rgb(106 168 255 / .06);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow: 0 12px 32px -14px rgb(0 0 0 / .6);
    --shadow-lg: 0 30px 60px -22px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.005em;
  color: var(--heading);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.7rem + 3.8vw, 4.75rem); }
h2 { font-size: clamp(2.05rem, 1.45rem + 2.3vw, 3.15rem); }
h3 { font-size: 1.45rem; line-height: 1.15; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
strong { font-weight: 600; color: var(--heading); }
address { font-style: normal; }

.lead {
  font-size: clamp(1.1rem, 1rem + .4vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-muted);
}

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

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--btn); color: #fff; padding: .75rem 1.1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4rem); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  --heading: #ffffff;
  --text: #c9d4e3;
  --text-muted: #a5b3c7;
  --accent-text: #7fb2ff;
  --accent-soft: rgb(127 178 255 / .12);
  --border: rgb(255 255 255 / .1);
  --surface: rgb(255 255 255 / .035);
  background: var(--navy-900);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(127 178 255 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(127 178 255 / .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 70% at 85% 0%, #000 10%, transparent 70%);
  pointer-events: none;
}
.section--dark > .container { position: relative; }
@media (prefers-color-scheme: dark) {
  .section--dark { background: #060d19; border-block: 1px solid #16243a; }
}

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head > :last-child { margin-bottom: 0; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split {
  max-width: none;
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem 2rem;
}
.section-head--split h2 { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

.grid-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 75% at 75% 20%, #000 25%, transparent 75%);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.35em;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform .2s; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn--lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn--sm { padding: .65em 1.1em; font-size: .95rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--btn); color: #fff; box-shadow: 0 8px 20px -10px rgb(22 102 222 / .7); }
.btn--primary:hover { background: var(--btn-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--heading); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--heading); color: var(--heading); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--blue-50); color: var(--navy-900); }
.btn--ghost-light { background: rgb(255 255 255 / .06); color: #fff; border-color: rgb(255 255 255 / .35); }
.btn--ghost-light:hover { background: rgb(255 255 255 / .14); border-color: #fff; color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--accent-text); text-decoration: none;
}
.text-link .icon { width: 1.05em; height: 1.05em; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(3px); }

.icon-box {
  flex: none;
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
}
.icon-box .icon { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 8px 24px -18px rgb(10 22 40 / .35); }
body.menu-open .site-header { background: var(--bg); border-color: var(--border); }

.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--accent); text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 46px; height: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .01em; color: var(--heading); }
.brand__tag { font-size: .72rem; font-weight: 500; color: var(--text-muted); letter-spacing: .02em; margin-top: 4px; }
.brand--light { color: var(--blue-400); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__tag { color: #9fb0c6; }

.main-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: .3rem;
  padding: .65rem .85rem; border-radius: 8px;
  font-weight: 500; font-size: .98rem; color: var(--heading); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.main-nav > ul > li > a .icon { width: 1em; height: 1em; transition: transform .2s; }
.main-nav > ul > li > a:hover { background: var(--bg-alt); }
.main-nav > ul > li > a[aria-current="page"] { color: var(--accent-text); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%;
  width: min(700px, 92vw);
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1.25rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover > a .icon,
.has-dropdown:focus-within > a .icon { transform: rotate(180deg); }
.has-dropdown.is-dismissed > .dropdown { opacity: 0; visibility: hidden; }

.dropdown__title {
  display: flex; align-items: center; gap: .5rem;
  margin: .25rem .6rem .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
}
.dropdown__title .icon { width: 1.05em; height: 1.05em; }
.dropdown ul { list-style: none; margin: 0; padding: 0; }
.dropdown li a {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem; border-radius: 10px;
  color: var(--heading); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.25;
  transition: background-color .15s;
}
.dropdown li a small { display: block; font-weight: 400; font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.dropdown li a .icon-box { width: 38px; height: 38px; border-radius: 10px; }
.dropdown li a .icon-box .icon { width: 19px; height: 19px; }
.dropdown li a:hover, .dropdown li a[aria-current="page"] { background: var(--bg-alt); }
.dropdown__all {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: .5rem; padding: .85rem 1rem; border-radius: 12px;
  background: var(--bg-alt); color: var(--heading); font-weight: 600; text-decoration: none; font-size: .95rem;
}
.dropdown__all .icon { width: 1.1em; height: 1.1em; color: var(--accent-text); transition: transform .2s; }
.dropdown__all:hover .icon { transform: translateX(3px); }

.header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.header-cta { padding: .85em 1.6em; }

.nav-toggle {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--heading);
  cursor: pointer;
}

.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s var(--ease), background-color .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav, .header-cta { display: none; }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile menu */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  padding: .5rem var(--gutter) 2.5rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .mobile-nav { display: none; } }

.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list > li > a,
.mobile-nav__toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1rem 0;
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; line-height: 1.2;
  color: var(--heading); text-decoration: none; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.mobile-nav__list > li > a .icon,
.mobile-nav__toggle .icon { width: 22px; height: 22px; color: var(--text-muted); }
.mobile-nav__list > li > a[aria-current="page"],
.mobile-nav__toggle.is-current { color: var(--accent-text); }
.mobile-nav__toggle .icon { transition: transform .3s var(--ease); }
.mobile-nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--accent-text); }

/* Collapsible services panel (animates its height via grid rows) */
.mobile-nav__panel {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows .35s var(--ease), visibility 0s linear .35s;
}
.mobile-nav__item.is-expanded .mobile-nav__panel {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows .35s var(--ease), visibility 0s;
}
.mobile-nav__item.is-expanded { border-bottom: 1px solid var(--border); }
.mobile-nav__item.is-expanded .mobile-nav__toggle { border-bottom-color: transparent; }
.mobile-nav__panel-inner { min-height: 0; overflow: hidden; display: grid; gap: .65rem; }
.mobile-nav__panel-inner > :last-child { margin-bottom: 1rem; }

.mobile-nav__group {
  padding: .9rem 1rem .4rem; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--border);
}
.mobile-nav__group-title {
  display: flex; align-items: center; gap: .65rem; margin: 0 0 .3rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--heading);
}
.mobile-nav__group-title .icon-box { width: 32px; height: 32px; border-radius: 9px; }
.mobile-nav__group-title .icon-box .icon { width: 17px; height: 17px; }
.mobile-nav__group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 520px) { .mobile-nav__group ul { grid-template-columns: 1fr 1fr; } }
.mobile-nav__group a {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem 0; color: var(--text); text-decoration: none; font-weight: 500;
}
.mobile-nav__group a .icon { color: var(--accent-text); width: 1.15em; height: 1.15em; }
.mobile-nav__group a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }
.mobile-nav__all {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1rem; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent-text); font-weight: 600; text-decoration: none;
}
.mobile-nav__all .icon { width: 1.1em; height: 1.1em; }
.mobile-nav__contact { margin-top: 1.75rem; display: grid; gap: .65rem; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__content > *, .page-hero__content > * { animation: rise .8s var(--ease) both; }
.hero__content > :nth-child(2), .page-hero__content > :nth-child(2) { animation-delay: .07s; }
.hero__content > :nth-child(3), .page-hero__content > :nth-child(3) { animation-delay: .14s; }
.hero__content > :nth-child(4), .page-hero__content > :nth-child(4) { animation-delay: .21s; }
.hero__content > :nth-child(5), .page-hero__content > :nth-child(5) { animation-delay: .28s; }
.hero__media, .page-hero__media { animation: rise 1s .15s var(--ease) both; }

[data-reveal] { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(14px); }

/* Click feedback */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .22; transform: scale(0);
  animation: ripple .6s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
:is(a.chip, .socials a, .nav-toggle, .lightbox__btn, .dropdown li a, .dropdown__all, .text-link, .mobile-nav__group a, .mobile-nav__all, .link-list a):active { transform: scale(.96); }
a.service-card:active { transform: translateY(-2px) scale(.985); transition-duration: .1s; }
.contact-list a.contact-item:active { transform: scale(.985); transition-duration: .1s; }
.gallery__item, .bento__item { transition: transform .25s var(--ease); }
.gallery__item:active { transform: scale(.97); }
.bento__item:active { transform: scale(.985); }

.mobile-nav.is-open .mobile-nav__list > li,
.mobile-nav.is-open .mobile-nav__contact { animation: rise .45s var(--ease) both; }
.mobile-nav.is-open .mobile-nav__list > li:nth-child(2) { animation-delay: .04s; }
.mobile-nav.is-open .mobile-nav__list > li:nth-child(3) { animation-delay: .08s; }
.mobile-nav.is-open .mobile-nav__list > li:nth-child(4) { animation-delay: .12s; }
.mobile-nav.is-open .mobile-nav__list > li:nth-child(5) { animation-delay: .16s; }
.mobile-nav.is-open .mobile-nav__contact { animation-delay: .2s; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } }
@keyframes slide-from-right { from { opacity: 0; transform: translateX(40px); } }
@keyframes slide-from-left { from { opacity: 0; transform: translateX(-40px); } }
.lightbox[open] { animation: fade-in .25s ease both; }
.lightbox__img.is-in { animation: zoom-in .35s var(--ease) both; }
.lightbox__img.from-right { animation: slide-from-right .3s var(--ease) both; }
.lightbox__img.from-left { animation: slide-from-left .3s var(--ease) both; }
.map iframe { animation: fade-in .4s ease both; }
.form-status:not([hidden]) { animation: rise .35s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal]:not(.is-visible) { opacity: 1; transform: none; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem);
}
.hero__grid { position: relative; display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero h1 { margin-bottom: .4em; }
.hero h1 .hl { color: var(--accent-text); }
.hero .lead { max-width: 36rem; margin-bottom: 2rem; }

.hero__media { position: relative; padding: 0 0 12% 10%; max-width: 600px; width: 100%; margin-inline: auto; }
.hero__main {
  aspect-ratio: 1 / 1.02; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--bg-alt);
}
.hero__main img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero__sub {
  position: absolute; left: 0; bottom: 0; width: 46%;
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 6px solid var(--bg); box-shadow: var(--shadow); background: var(--bg-alt);
}
.hero__sub img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip {
  position: absolute;
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1.1rem .7rem .7rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: .88rem; line-height: 1.25; color: var(--text-muted);
}
.hero__chip strong { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; }
.hero__chip--top { top: 7%; right: 4%; }
.hero__chip--bottom { right: 4%; bottom: 4%; }
.chip-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--amber); color: var(--navy-900); }
.chip-icon .icon { width: 21px; height: 21px; }
.chip-icon--blue { background: var(--btn); color: #fff; }
@media (min-width: 1100px) { .hero__chip--top { right: -4%; } }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--surface); border-block: 1px solid var(--border); }
.trustbar__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trustbar__item { display: flex; align-items: center; gap: .9rem; padding: 1.35rem .5rem; }
.trustbar__item strong { display: block; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.15; }
.trustbar__item span span { display: block; font-size: .87rem; color: var(--text-muted); line-height: 1.35; }
@media (max-width: 599px) {
  .trustbar__item { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.25rem .25rem; }
}
@media (min-width: 960px) {
  .trustbar__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trustbar__item { padding: 1.6rem clamp(.85rem, 1.6vw, 1.5rem); }
  .trustbar__item:first-child { padding-left: 0; }
  .trustbar__item + .trustbar__item { border-left: 1px solid var(--border); }
}

/* ---------- Audience cards (home) ---------- */
.audience { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .audience { grid-template-columns: 1fr 1fr; } }
.audience-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.audience-card__media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--bg-alt); }
.audience-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.audience-card:hover .audience-card__media img { transform: scale(1.04); }
.audience-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(5 12 24 / .72)); }
.audience-card__label {
  position: absolute; left: 1.5rem; bottom: 1.25rem; z-index: 1; margin: 0;
  display: flex; align-items: center; gap: .75rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; line-height: 1; color: #fff;
}
.audience-card__label .icon-box { background: rgb(255 255 255 / .16); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.audience-card__body { padding: 1.5rem clamp(1.25rem, 3vw, 1.85rem) 1.75rem; }
.audience-card__body > p { color: var(--text-muted); margin-bottom: 1.25rem; }

.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.link-list a {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 0; border-bottom: 1px solid var(--border);
  color: var(--heading); text-decoration: none; font-weight: 600; line-height: 1.3;
}
.link-list a > .icon { color: var(--accent-text); }
.link-list a small { display: block; font-weight: 400; font-size: .88rem; color: var(--text-muted); margin-top: 2px; }
.link-list .icon-arrow { margin-left: auto; color: var(--text-muted); transition: transform .2s, color .2s; }
.link-list a:hover .icon-arrow { transform: translateX(4px); color: var(--accent-text); }
.link-list li:last-child a { border-bottom: 0; padding-bottom: 0; }

/* ---------- Split / media ---------- */
.split { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div > :last-child { margin-bottom: 0; }

.media-stack { position: relative; padding: 0 1.25rem 1.75rem 0; }
.media-stack__main { aspect-ratio: 4 / 3.3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-alt); }
.media-stack__main img { width: 100%; height: 100%; object-fit: cover; }
.stat-card {
  position: absolute; right: 0; bottom: 0;
  padding: 1.2rem 1.5rem; border-radius: var(--radius);
  background: var(--btn); color: #dbe8ff; box-shadow: var(--shadow-lg);
}
.stat-card strong { display: block; font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: #fff; }
.stat-card span { font-size: .9rem; }

.chips { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 500; font-size: .93rem; color: var(--heading); text-decoration: none;
}
a.chip:hover { border-color: var(--accent); color: var(--accent-text); }
.chip .icon { width: 1.05em; height: 1.05em; color: var(--accent-text); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step {
  position: relative; padding: 1.75rem 1.6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step__num { font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .14em; color: var(--accent-text); }
.step .icon-box { margin: 1rem 0 1.15rem; }
.step h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.step p { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ---------- Features ---------- */
.features { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature { padding: 1.75rem 1.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature .icon-box { margin-bottom: 1.15rem; }
.feature h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: .97rem; }

/* ---------- Bento (projects) ---------- */
.bento { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; }
.bento__item:first-child { grid-column: span 2; grid-row: span 1; }
@media (min-width: 640px) { .bento { grid-auto-rows: 220px; } .bento__item:first-child { grid-row: span 2; } }
@media (min-width: 960px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 250px; } }
.bento__item {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); color: #fff; text-decoration: none; background: var(--navy-800);
}
.bento__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); z-index: -1; }
.bento__item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgb(5 12 24 / .78)); }
.bento__item:hover img { transform: scale(1.05); }
.bento__label {
  position: absolute; left: 1rem; right: 1rem; bottom: .9rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.1;
}
.bento__label .icon {
  width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: rgb(255 255 255 / .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .2s, transform .2s;
}
.bento__item:hover .bento__label .icon { background: var(--btn); transform: translateX(2px); }
.bento__item:first-child .bento__label { font-size: 1.6rem; left: 1.4rem; bottom: 1.25rem; }

/* ---------- Brands ---------- */
.brands-title {
  text-align: center; margin: 0 0 1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.brands { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .brands { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.brands li {
  height: 88px; padding: 1.25rem 1.5rem;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
}
.brands img { max-height: 34px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.brands li:hover img { filter: none; opacity: 1; }
.brands--compact { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.brands--compact img { filter: none; opacity: 1; }
@media (prefers-color-scheme: dark) { .brands li { background: #eef2f7; border-color: transparent; } }

/* ---------- CTA band ---------- */
.cta-section { padding-block: clamp(3rem, 6vw, 5rem); }
.cta-section--flush { padding-top: 0; }
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 2rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: #dce8ff;
}
@media (min-width: 960px) { .cta-band { grid-template-columns: minmax(0, 1.25fr) auto; } }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent 20%, #000);
}
.cta-band::after {
  content: ""; position: absolute; z-index: -1;
  right: -70px; bottom: -70px; width: 300px; height: 300px;
  border-top-right-radius: 100%;
  background: rgb(255 255 255 / .08);
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; font-size: 1.1rem; max-width: 36rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950); color: #9fb0c6;
  font-size: .95rem; padding-top: clamp(3.5rem, 6vw, 5rem);
}
@media (prefers-color-scheme: dark) { .site-footer { border-top: 1px solid #16243a; } }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand p { margin: 1.25rem 0 0; max-width: 22rem; }
.footer-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer a { color: #c9d5e5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand, .site-footer .brand:hover { color: var(--blue-400); text-decoration: none; }
.site-footer .brand__name { color: #e3eaf3; transition: color .2s; }
.site-footer .brand__tag { transition: color .2s; }
.site-footer .brand:hover .brand__name, .site-footer .brand:hover .brand__tag { color: #fff; }
.footer-contact { display: grid; gap: .8rem; }
.footer-contact > * { display: flex; gap: .7rem; align-items: flex-start; margin: 0; }
.footer-contact .icon { color: var(--blue-400); width: 1.15em; height: 1.15em; margin-top: .2em; }
.socials { display: flex !important; gap: .6rem !important; margin-top: 1.5rem !important; }
.socials a {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .08);
  transition: background-color .2s, border-color .2s;
}
.socials a:hover { background: var(--btn); border-color: var(--btn); }
.socials .icon { width: 19px; height: 19px; }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-block: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .08);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  font-size: .87rem;
}
.footer-bottom p { margin: 0; }
.site-footer .footer-cert {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .45rem 1.1rem .45rem .45rem; border-radius: 12px;
  background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1);
  color: #9fb0c6; text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .15s;
}
.site-footer .footer-cert:hover { background: rgb(255 255 255 / .08); border-color: var(--blue-400); color: #9fb0c6; text-decoration: none; }
.site-footer .footer-cert:active { transform: scale(.97); }
.footer-cert__icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgb(90 157 255 / .15); color: var(--blue-400);
}
.footer-cert__icon .icon { width: 20px; height: 20px; }
.footer-cert__text { display: flex; flex-direction: column; line-height: 1.25; }
.footer-cert__text strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; color: #fff; }
.footer-cert__text span { font-size: .78rem; }
.footer-legal { display: flex !important; flex-wrap: wrap; gap: .4rem 1.25rem !important; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(3rem, 6vw, 5rem);
}
.page-hero > .container { position: relative; }
.page-hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.page-hero h1 { font-size: clamp(2.5rem, 1.7rem + 3.2vw, 4.25rem); margin-bottom: .35em; }
.page-hero .lead { max-width: 40rem; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero__meta {
  display: flex; align-items: center; gap: .5rem;
  margin: 1.1rem 0 0; font-size: .92rem; font-weight: 500; color: var(--text-muted);
}
.page-hero__meta .icon { width: 1.05em; height: 1.05em; color: var(--accent-text); }
.container--narrow { max-width: calc(800px + 2 * var(--gutter)); }
.page-hero__media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-alt); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media--contain { background: #fff; }
.page-hero__media--contain img { object-fit: contain; padding: 6%; }

.breadcrumb { margin-bottom: clamp(2rem, 4vw, 3rem); font-size: .88rem; color: var(--text-muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.breadcrumb li { display: flex; align-items: center; gap: .35rem; }
.breadcrumb li + li::before { content: "/"; opacity: .45; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb [aria-current] { color: var(--heading); font-weight: 500; }

.tag {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .85rem; margin: 0 0 1.25rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600; color: var(--accent-text);
}
.tag .icon { width: 1.05em; height: 1.05em; }

/* ---------- Service pages ---------- */
.service-layout { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1024px) { .service-layout { grid-template-columns: minmax(0, 1fr) 350px; align-items: start; } }
.block + .block { margin-top: clamp(2.75rem, 5vw, 3.75rem); }
.block > h2 { font-size: clamp(1.7rem, 1.35rem + 1.2vw, 2.25rem); margin-bottom: 1.1rem; }
.block > p:last-child { margin-bottom: 0; }
.prose > * { max-width: 70ch; }
.prose > :last-child { margin-bottom: 0; }
.intro-text p:first-child { font-size: 1.12rem; color: var(--heading); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
@media (min-width: 640px) { .checklist--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checklist li {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .95rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 500; color: var(--heading); line-height: 1.45;
}
.checklist--plain li { background: transparent; border: 0; padding: .2rem 0; font-weight: 400; color: var(--text); }
.check {
  flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
}
.check .icon { width: 14px; height: 14px; stroke-width: 3; }

.block > .chips { margin: 0; }
.closing-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  padding: 1.25rem 1.4rem; border-radius: var(--radius);
  background: var(--accent-soft); color: var(--heading); font-weight: 500;
}
.closing-note > .icon { color: var(--accent-text); width: 24px; height: 24px; }
.closing-note p { margin: 0; flex: 1 1 18rem; }
.closing-note .text-link { margin-left: auto; white-space: nowrap; }

.service-aside { display: grid; gap: 1rem; }
@media (min-width: 1024px) { .service-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.aside-card {
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.aside-card h2 { font-size: 1.65rem; margin-bottom: .4rem; }
.aside-card > p { color: var(--text-muted); font-size: .97rem; margin-bottom: 1.25rem; }
.aside-card .btn + .btn { margin-top: .6rem; }
.aside-card .text-link { margin-top: 1.1rem; font-size: .95rem; }
.aside-badges { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.aside-badges a, .aside-badges span {
  display: flex; align-items: center; height: 64px; padding: 8px 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.aside-badges img { height: 100%; width: auto; }

/* ---------- Gallery & lightbox ---------- */
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - 6px), 240px), 1fr));
}
.gallery__item {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm); background: var(--bg-alt);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: rgb(5 12 24 / 0); transition: background-color .3s; }
.gallery__zoom {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(255 255 255 / .94); color: var(--navy-900);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s;
}
.gallery__zoom .icon { width: 18px; height: 18px; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { background: rgb(5 12 24 / .18); }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery--contain .gallery__item { background: #fff; border: 1px solid var(--border); }
.gallery--contain .gallery__item img { object-fit: contain; padding: 8%; }
.gallery--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery--wide .gallery__item { aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--border); }
.gallery--wide .gallery__item img { object-fit: contain; }

.lightbox {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgb(4 9 18 / .95); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: transparent; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1rem, 3vw, 1.5rem); }
.lightbox__count { font-size: .9rem; color: #c9d5e5; font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(.75rem, 6vw, 5.5rem); }
.lightbox__img {
  max-width: 100%; max-height: calc(100dvh - 150px);
  width: auto; height: auto; object-fit: contain;
  border-radius: 6px; box-shadow: 0 20px 60px rgb(0 0 0 / .5);
  touch-action: pan-y;
}
.lightbox__caption { margin: 0; padding: 1rem 1.5rem 1.4rem; text-align: center; font-size: .95rem; color: #c9d5e5; }
.lightbox__btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .08); color: #fff;
  cursor: pointer; transition: background-color .2s;
}
.lightbox__btn:hover { background: rgb(255 255 255 / .18); }
.lightbox__btn .icon { width: 22px; height: 22px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__next { right: clamp(.5rem, 2vw, 1.5rem); }
.lightbox--single .lightbox__prev, .lightbox--single .lightbox__next { display: none; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 265px), 1fr)); }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-alt); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 2.1rem 1.5rem 1.5rem; }
.service-card__body > .icon-box {
  position: absolute; top: -23px; left: 1.5rem;
  background: var(--btn); color: #fff; box-shadow: 0 10px 20px -8px rgb(22 102 222 / .7);
}
.service-card h3 { font-size: 1.45rem; margin-bottom: .45rem; }
.service-card p { flex: 1; margin: 0 0 1.1rem; color: var(--text-muted); font-size: .96rem; }
.service-card__more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; color: var(--accent-text); }
.service-card__more .icon { width: 1.05em; height: 1.05em; transition: transform .2s; }
.service-card:hover .service-card__more .icon { transform: translateX(3px); }
.service-card--compact .service-card__body { padding: 1.5rem; }
.service-card--compact .service-card__body > .icon-box { position: static; margin-bottom: 1rem; box-shadow: none; background: var(--accent-soft); color: var(--accent-text); }

.group-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.group-head .icon-box { width: 56px; height: 56px; border-radius: 14px; }
.group-head .icon-box .icon { width: 26px; height: 26px; }
.group-head h2 { margin: 0; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); }
.group-head p { margin: .2rem 0 0; color: var(--text-muted); }

/* ---------- Feature panel ---------- */
.feature-panel {
  display: grid; gap: 1.75rem; align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius-lg);
  background: var(--bg-alt); border: 1px solid var(--border);
}
.feature-panel h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin-bottom: .5rem; }
.feature-panel p { color: var(--text-muted); margin: 0; max-width: 60ch; }
.feature-panel .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- News ---------- */
.news-list { display: grid; gap: clamp(1.25rem, 3vw, 2rem); max-width: 1000px; }
.news-item {
  display: grid; gap: 1.5rem;
  padding: 1.25rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
@media (min-width: 760px) { .news-item { grid-template-columns: 300px minmax(0, 1fr); gap: 2.25rem; padding: 1.5rem; } }
.news-item__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); align-self: start; }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; }
.news-item__media--contain { background: #fff; border: 1px solid var(--border); }
.news-item__media--contain img { object-fit: contain; padding: 6%; }
.news-item time {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text);
}
.news-item time .icon { width: 1.1em; height: 1.1em; }
.news-item h2 { font-size: clamp(1.55rem, 1.25rem + 1vw, 2rem); margin: .55rem 0 .8rem; }
.news-item__body > :last-child { margin-bottom: 0; }
.news-item .checklist { margin: 0 0 1.25rem; }
.news-item__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; }

.follow-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  max-width: 1000px; margin-top: clamp(1.25rem, 3vw, 2rem);
  padding: 1.5rem 1.75rem; border-radius: var(--radius-lg);
  background: var(--bg-alt); border: 1px dashed var(--border-strong);
}
.follow-card p { margin: 0; color: var(--heading); font-weight: 500; }

/* ---------- About ---------- */
.cert-card {
  max-width: 780px;
  display: grid; gap: 1.5rem; align-items: center;
  padding: 1.5rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
@media (min-width: 520px) { .cert-card { grid-template-columns: 140px minmax(0, 1fr); } }
.cert-card__media { display: grid; place-items: center; padding: 10px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border); }
.cert-card__media img { max-height: 180px; width: auto; }
.cert-card h3 { margin-bottom: .4rem; }
.cert-card p { margin: 0 0 .6rem; color: var(--text-muted); font-size: .97rem; }
.cert-card small { display: block; color: var(--text-muted); font-size: .84rem; font-style: italic; }

.anniversary {
  border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.anniversary img { width: 100%; padding: 6% 8% 2%; }
.anniversary figcaption { padding: 1rem 1.5rem 1.4rem; text-align: center; color: #556377; font-size: .95rem; }

.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.facts > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.facts dt { color: var(--text-muted); font-size: .93rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--heading); }
.facts a { text-decoration: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.contact-grid h2 { font-size: clamp(1.7rem, 1.35rem + 1.2vw, 2.25rem); }
.contact-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .7rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: inherit; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.contact-item:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-item small { display: block; color: var(--text-muted); font-size: .84rem; line-height: 1.3; }
.contact-item strong { font-size: 1.05rem; line-height: 1.35; }
.contact-item .icon-arrow { margin-left: auto; color: var(--text-muted); }
.contact-social { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.form-card > p { color: var(--text-muted); }
.form-grid { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .92rem; color: var(--heading); }
.field .optional { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  font: inherit; font-size: 1rem; color: var(--heading);
  background: var(--bg); border: 1.5px solid var(--border-strong); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23778599' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.form-note { margin: 0; font-size: .85rem; color: var(--text-muted); }
.form-status {
  display: flex; gap: .75rem; align-items: flex-start;
  margin-top: 1.25rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--heading); font-size: .95rem;
}
.form-status[hidden] { display: none; }
.form-status .icon { color: var(--accent-text); margin-top: 2px; }

.map {
  position: relative; overflow: hidden;
  height: clamp(380px, 42vw, 540px);
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-alt);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent {
  position: absolute; inset: 0;
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
}
.map__consent > div { position: relative; max-width: 30rem; }
.map__pin {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--btn); color: #fff; box-shadow: 0 0 0 10px var(--accent-soft);
}
.map__pin .icon { width: 28px; height: 28px; }
.map__consent strong { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; }
.map__consent p { color: var(--text-muted); font-size: .92rem; margin: .5rem 0 1.25rem; }
.map__consent .btn-row { justify-content: center; }

/* ---------- Legal / prose ---------- */
.legal h2 { font-size: clamp(1.5rem, 1.25rem + .9vw, 1.9rem); margin: 2.25em 0 .6em; }
.legal h3 { font-size: 1.25rem; margin: 1.8em 0 .45em; }
.legal > :first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text); }
.legal .legal-card {
  margin-top: 2.5rem; padding: 1.4rem 1.6rem; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--border);
}
.legal .legal-card p { margin: 0; }
.legal .legal-summary {
  margin-bottom: 2.75rem; padding: 1.5rem 1.75rem; border-radius: var(--radius-lg);
  background: var(--accent-soft); border: 1px solid var(--border);
}
.legal .legal-summary h2 { margin: 0 0 .9rem; font-size: 1.45rem; }
.legal .legal-summary li { color: var(--heading); }

/* ---------- Error / maintenance ---------- */
.error-page { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 8rem); text-align: center; }
.error-page > .container { position: relative; max-width: 760px; }
.error-code {
  margin: 0 0 .5rem;
  font-family: var(--font-display); font-weight: 700; line-height: .9;
  font-size: clamp(6rem, 3.5rem + 12vw, 11rem);
  background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) { .error-code { background-image: linear-gradient(135deg, #8dbaff, #1666de); } }
.error-page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.error-page .lead { margin-inline: auto; max-width: 34rem; }
.error-page .btn-row { justify-content: center; margin-top: 2rem; }
.error-page .chips { justify-content: center; margin-top: 2.5rem; }
.error-page .icon-hero {
  width: 88px; height: 88px; margin: 0 auto 1.5rem; border-radius: 24px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text);
}
.error-page .icon-hero .icon { width: 42px; height: 42px; }

.minimal-header { padding-block: 1.5rem; }
.minimal-header .brand { margin: 0 auto; }
