/* ==========================================================================
   KPM Group theme - all front-end styles.
   Tokens come from theme.json (--wp--preset--* / --wp--custom--*).
   Sections: base, utilities, buttons, header, footer, components, pages,
   blog, forms, motion, responsive.
   ========================================================================== */

:root {
  --navy: var(--wp--preset--color--navy);
  --navy-deep: var(--wp--preset--color--navy-deep);
  --blue: var(--wp--preset--color--blue);
  --blue-dark: var(--wp--preset--color--blue-dark);
  --topbar: var(--wp--preset--color--topbar);
  --text: var(--wp--preset--color--text);
  --ink: var(--wp--preset--color--ink);
  --line: var(--wp--preset--color--line);
  --mist: var(--wp--preset--color--mist);
  --off: var(--wp--preset--color--off-white);
  --white: var(--wp--preset--color--white);
  --slate: #5F6773;
  --f-head: var(--wp--preset--font-family--heading);
  --f-body: var(--wp--preset--font-family--body);
  --radius: var(--wp--custom--radius--sm);
  --shadow: var(--wp--custom--shadow--card);
  --shadow-lift: var(--wp--custom--shadow--lift);
  --ease: var(--wp--custom--transition--base);
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 24px);
  --nav-h: 82px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--white); color: var(--text); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--navy); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: var(--white); }
main { display: block; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group { margin: 0; }
main :where(.is-layout-flow) > * { margin-block-start: 0; }
.article__wrap, .wrap.wp-block-group { margin-inline: auto !important; }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius); font-family: var(--f-head); font-size: .9rem; }
.skip-link:focus { top: 12px; color: var(--white); }
.section { padding-block: clamp(56px, 8vw, 100px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--mist { background: var(--off); }
.h2 { font-size: clamp(1.6rem, 2.6vw, 1.9rem); font-weight: 600; }
.h2--sm { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); font-weight: 600; margin-bottom: .45em; }
.h3 a { color: inherit; text-decoration: none; }
.h3 a:hover { color: var(--blue-dark); }
.page-title { font-family: var(--f-head); font-weight: 500; color: #3c3c3c; font-size: clamp(1.8rem, 3vw, 2.25rem); margin: 0 0 .8em; }
.eyebrow { font-family: var(--f-body); color: var(--blue-dark); font-size: 1.15rem; margin: 0 0 .25em; }
.eyebrow--line { display: flex; align-items: center; gap: 14px; }
.eyebrow--line::before { content: ""; width: 40px; height: 2px; background: var(--blue); flex: none; }
.eyebrow--caps { text-transform: uppercase; letter-spacing: .04em; }
.rule { display: block; width: 164px; height: 4px; background: var(--blue); margin: 4px auto 22px; border-radius: 2px; }
.rule--white { background: var(--white); width: 245px; height: 3px; margin: 10px auto 22px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p { margin-bottom: 0; }
.section-head .section-head__wide { max-width: 1000px; }
.section-head--left { text-align: left; max-width: none; margin-inline: 0; }
.section-head:has(.section-head__wide) { max-width: 1000px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 26px; border: 2px solid transparent; border-radius: var(--radius); font-family: var(--f-body); font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,33,61,.18); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #003a6b; color: var(--white); }
.btn--blue { background: var(--blue); color: var(--navy); font-family: var(--f-head); font-weight: 600; }
.btn--blue:hover { background: var(--navy); color: var(--white); }
.btn--slate { background: var(--slate); color: var(--white); }
.btn--slate:hover { background: var(--navy); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--pill { border-radius: 999px; text-transform: uppercase; font-size: .875rem; letter-spacing: .02em; padding-inline: 30px; min-height: 52px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--topbar); color: var(--white); font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 16px; }
.topbar__info { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.topbar a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--navy); }
.topbar__social { padding: 4px; }
.site-nav { background: var(--navy); }
.site-nav__inner { display: flex; align-items: center; gap: 28px; min-height: var(--nav-h); }
.nav-logo { flex: none; display: block; }
.nav-logo__img { width: 62px; height: auto; }
.nav-links { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: clamp(14px, 2.4vw, 42px); }
.nav-links > li { position: relative; }
.nav-links a { color: var(--white); text-decoration: none; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 4px; padding: 26px 0; transition: color var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-links a.is-active { color: var(--blue); }
.dropdown { list-style: none; margin: 0; padding: 10px 0; position: absolute; top: 100%; left: -18px; min-width: 240px; background: var(--white); box-shadow: var(--shadow-lift); border-top: 3px solid var(--blue); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--ease), transform var(--ease), visibility var(--ease); }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { color: var(--navy); padding: 10px 20px; display: block; font-size: 1rem; }
.dropdown a:hover, .dropdown a[aria-current="page"] { color: var(--blue-dark); background: var(--off); }
.nav-support { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; padding-left: 26px; border-left: 1px solid rgba(255,255,255,.25); line-height: 1.3; }
.nav-support:hover { color: var(--blue); }
.nav-support__icon { display: flex; }
.nav-support__icon img { width: 34px; height: 34px; }
.nav-support__text { display: flex; flex-direction: column; font-size: 1rem; }
.nav-support__text strong { font-weight: 400; }
.nav-burger { display: none; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.7); color: var(--white); border-radius: var(--radius); padding: 6px 10px; cursor: pointer; }

/* Mobile menu */
.m-menu { position: fixed; inset: 0; z-index: 200; background: var(--navy); color: var(--white); padding: 18px var(--gutter) 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; }
.m-menu[hidden] { display: none; }
.m-menu__head { display: flex; align-items: center; justify-content: space-between; }
.m-menu__logo { width: 60px; }
.m-menu__close { background: transparent; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
.m-menu__nav { display: flex; flex-direction: column; }
.m-menu__nav a { color: var(--white); text-decoration: none; font-family: var(--f-head); font-size: 1.25rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.m-menu__nav a.sub { font-size: 1rem; padding-left: 18px; color: rgba(255,255,255,.8); }
.m-menu__nav a:hover { color: var(--blue); }
.m-menu__call { margin-top: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding: clamp(56px, 7vw, 84px) 0 24px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.footer-logo { display: inline-block; margin-bottom: 34px; }
.footer-logo img { width: 120px; height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.footer-title { color: var(--white); font-size: 1.6rem; font-weight: 500; margin-bottom: 22px; }
.footer-col p { font-size: 1rem; margin-bottom: .6em; }
.footer-call strong { display: block; margin-top: 18px; }
.footer-call a { font-size: 1.2rem; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.newsletter__row { display: flex; border: 1px solid rgba(255,255,255,.3); }
.kpm-form.newsletter input[type="email"] { flex: 1; min-width: 0; background: transparent; border: 0; border-radius: 0; color: var(--white); padding: 14px; font: inherit; font-size: .95rem; box-shadow: none; }
.newsletter input::placeholder { color: rgba(255,255,255,.65); }
.newsletter button { background: transparent; border: 0; color: var(--white); padding: 0 16px; cursor: pointer; }
.newsletter button:hover { color: var(--blue); }
.footer-social { display: inline-flex; margin-top: 18px; }
.footer-legal { text-align: center; margin: 56px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .95rem; }
.footer-legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Home: hero ---------- */
.hero { position: relative; min-height: max(620px, calc(100vh - 110px)); display: grid; place-items: center; text-align: center; overflow: hidden; background: var(--navy); }
.hero__media, .hero__overlay { position: absolute; inset: 0; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__overlay { background: rgba(64, 84, 178, .72); }
.hero__content { position: relative; z-index: 1; color: var(--white); padding-block: 80px 200px; }

/* Hero feature tiles (bottom of the hero, as on the original site) */
.hero-tiles { position: absolute; z-index: 1; left: 0; right: 0; bottom: 47px; list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 214px); gap: 10px; justify-content: center; text-align: left; }
.hero-tile a { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; height: 185px; padding: 30px; background: rgba(6, 22, 54, .56); color: var(--white); text-decoration: none; transition: background-color var(--ease), transform var(--ease); }
.hero-tile a:hover { background: rgba(0, 152, 213, .75); color: var(--white); transform: translateY(-4px); }
.hero-tile .icon { flex: none; margin-bottom: auto; stroke-width: 1.3; }
.hero-tile__title { font-family: var(--f-head); font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
@media (prefers-reduced-motion: no-preference) {
  .hero-tile { animation: tile-up .9s cubic-bezier(0.16,1,0.3,1) both; animation-delay: calc(var(--d) * 120ms + 300ms); }
  @keyframes tile-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
}
.hero__eyebrow { font-size: clamp(1.1rem, 1.8vw, 1.35rem); margin: 0 0 .1em; }
.hero__title { color: var(--white); font-weight: 700; font-size: clamp(2.2rem, 5.4vw, 3.75rem); line-height: 1.05; max-width: 900px; margin: 0 auto; }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.split--top { align-items: start; }
.split + .split { margin-top: clamp(40px, 6vw, 72px); }
.split--reverse .split__text { order: 2; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split__media--phone img { width: auto; max-width: 300px; aspect-ratio: auto; margin-inline: auto; }
.about-intro .split__text { max-width: 540px; }

/* Vimeo facade */
.video-facade { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-facade__btn { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video-facade__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.video-facade__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.video-facade__play { position: relative; width: 74px; height: 74px; border-radius: 50%; background: var(--topbar); color: var(--white); display: grid; place-items: center; transition: transform var(--ease); box-shadow: 0 0 0 10px rgba(0,152,213,.25); }
.video-facade__btn:hover .video-facade__play { transform: scale(1.08); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Home: icon services grid ---------- */
.icon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.icon-card { display: flex; gap: 22px; align-items: flex-start; }
.icon-card__icon { flex: none; width: 70px; height: 70px; border-radius: 50%; background: var(--white); box-shadow: 0 6px 24px rgba(0,33,61,.12); display: grid; place-items: center; color: var(--navy); transition: background var(--ease), color var(--ease); }
.icon-card:hover .icon-card__icon { background: var(--blue); color: var(--white); }
.icon-card .h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.icon-card p { margin: 0; }

/* ---------- Home: established + switch card ---------- */
.established { position: relative; padding-top: clamp(56px, 7vw, 84px); padding-bottom: clamp(56px, 7vw, 90px); }
.established__bg { position: absolute; inset: 0 0 auto 0; height: clamp(420px, 44vw, 560px); background-size: cover; background-position: center; }
.established__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 23, 99, .84); }
.established__head { position: relative; text-align: center; color: var(--white); max-width: 900px; padding-bottom: clamp(48px, 7vw, 110px); }
.established__eyebrow { font-size: 1.2rem; margin: 0; }
.established__title { font-family: var(--f-head); line-height: 1.25; color: var(--white); font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 600; margin: 0; }
.switch-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--white); box-shadow: var(--shadow-lift); }
.switch-card__info, .switch-card__form { padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 52px); }
.switch-card__form { background: var(--mist); }
.feature { display: flex; gap: 22px; margin-top: 30px; }
.feature__icon { width: 44px; height: auto; flex: none; align-self: flex-start; object-fit: contain; margin-top: 4px; }
.feature p { margin: 0; font-size: 1rem; }

/* ---------- Home: global client base ---------- */
.global .eyebrow { color: var(--blue-dark); font-size: 1.15rem; }
.world-map { position: relative; max-width: 960px; margin-inline: auto; }
.world-map img { width: 100%; }

/* ---------- Home: explore solutions ---------- */
.explore { position: relative; background: var(--mist); overflow: hidden; padding-block: clamp(48px, 6vw, 72px); }
.explore__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .12; }
.explore__inner { position: relative; display: grid; grid-template-columns: .8fr 1.3fr auto; gap: 40px; align-items: center; }
.explore .h2 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 1.9rem); }
.explore p { margin: 0; }

/* ---------- Accreditations ---------- */
.accreditations { padding-block: 44px; background: var(--white); }
.accreditations__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; justify-items: center; }
.accreditations__list img { width: 124px; height: auto; filter: grayscale(.2); transition: filter var(--ease), transform var(--ease); }
.accreditations__list img:hover { filter: none; transform: scale(1.05); }

/* ---------- Services page ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 0; }
.photo-card { display: flex; flex-direction: column; padding-bottom: 32px; }
.photo-card__img { aspect-ratio: 3 / 2; overflow: hidden; }
.photo-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.photo-card:hover .photo-card__img img { transform: scale(1.04); }
.photo-card__body { padding: 32px clamp(16px, 2.4vw, 30px) 0; }
.photo-card__title { font-family: var(--f-head); font-size: 1.15rem; font-weight: 600; color: #111; margin-bottom: .8em; }
.photo-card__title a { color: inherit; text-decoration: none; }
.photo-card__title a:hover { color: var(--blue-dark); }
.photo-card p { font-size: 1rem; margin: 0; }

/* ---------- Contact page ---------- */
.contact-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 72px); background: var(--off); }
.contact-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.contact-hero__person { position: absolute; left: 0; bottom: 0; width: clamp(220px, 28vw, 409px); height: auto; pointer-events: none; }
.contact-hero__inner { position: relative; }
.contact-hero .eyebrow { color: var(--blue-dark); }
.contact-hero .section-head { margin-bottom: 36px; }
.contact-intro { max-width: 560px; margin: 12px auto 0 !important; font-size: 1rem; }
.contact-form { max-width: 520px; margin-inline: auto; background: rgba(255,255,255,.92); padding: 28px; box-shadow: var(--shadow); }
.contact-form input, .contact-form textarea { border-radius: 8px; background: #F3F3F3; }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.15); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.info-item__icon { color: var(--navy); display: inline-flex; margin-bottom: 10px; }
.info-item p { font-size: 1rem; }

/* ---------- Service landing pages ---------- */
.svc-hero { background: linear-gradient(180deg, var(--off), var(--white)); padding-block: clamp(40px, 6vw, 72px); }
.svc-hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.svc-hero__title { font-size: clamp(1.7rem, 3vw, 2.1rem); text-transform: uppercase; line-height: 1.12; }
.svc-hero__form { background: var(--white); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-lift); border-top: 4px solid var(--blue); }
.svc-intro .h2 { margin-bottom: .7em; }
.feature-grid { display: grid; gap: 40px 32px; }
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature-card { padding: 28px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--wp--custom--radius--md); transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease); }
.feature-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: transparent; }
.feature-card__icon { width: 72px; height: 72px; margin-bottom: 18px; }
.feature-card .h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
.feature-card p { font-size: 1rem; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.dot-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.call-today { margin-top: 28px; }
.call-today a { font-family: var(--f-head); font-weight: 600; color: var(--navy); text-decoration: none; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.call-today a:hover { color: var(--blue-dark); }

/* ---------- About page ---------- */
.about-page .split__text p { margin-bottom: .9em; }

/* ---------- Default page ---------- */
.page-default { padding-block: clamp(40px, 6vw, 72px); padding-inline: var(--gutter); }

/* ---------- Blog index / archives ---------- */
.blog-index { background: #EEEEEE; padding-block: clamp(48px, 6vw, 80px); }
.blog-title { font-size: clamp(1.6rem, 2.6vw, 1.9rem); margin-bottom: 1.3em; }
.post-grid.is-layout-grid { gap: 40px 30px; }
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; }
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__img { margin: 0 0 22px; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__title { font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin: 0 0 12px; }
.post-card__title a { color: var(--navy); text-decoration: none; }
.post-card__title a:hover { color: var(--blue-dark); }
.post-card__excerpt { margin: 0 0 14px; }
.post-card__excerpt p { margin: 0; font-size: 1rem; color: var(--ink); }
.post-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
.post-card__more { font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: var(--blue-dark); text-decoration: none; margin-top: auto; }
.post-card__more:hover { color: var(--navy); }
.pagination { margin-top: 56px; gap: 6px; font-family: var(--f-head); }
.pagination a, .pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; background: var(--white); color: var(--navy); text-decoration: none; border-radius: var(--radius); }
.pagination .page-numbers.current { background: var(--navy); color: var(--white); }
.pagination a:hover { background: var(--blue); color: var(--white); }

/* ---------- Single article ---------- */
.article__head { background: var(--off); padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(32px, 4vw, 48px); }
.article__wrap { max-width: 860px; margin-inline: auto; padding-inline: var(--gutter); }
.article__head .article__wrap { padding-inline: 0; }
.article__cat { font-family: var(--f-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.article__cat a { color: var(--blue-dark); text-decoration: none; }
.article__title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin: 0 0 12px; }
.article__date { color: var(--slate); font-size: .95rem; }
.article__img { margin: clamp(28px, 4vw, 40px) 0; }
.article__img img { width: 100%; }
.article__body { font-family: var(--f-head); font-size: 1rem; line-height: 1.85; color: #4a4a4a; }
.article__body > * + * { margin-top: 1.1em; }
.article__body h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 1.6em; }
.article__body h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin-top: 1.4em; }
.article__body img { margin-block: 1.4em; }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body li { margin-bottom: .4em; }
.article__body blockquote { border-left: 4px solid var(--blue); margin-inline: 0; padding: 6px 0 6px 20px; font-style: italic; }
.article__body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 10px; text-align: left; }
.article-cta { margin: 48px 0 32px; padding: clamp(24px, 4vw, 40px); background: var(--navy); color: var(--white); border-radius: var(--wp--custom--radius--md); }
.article-cta .h3 { color: var(--white); }
.article-cta .btn--ghost { color: var(--white); border-color: var(--white); }
.article-cta .btn--ghost:hover { background: var(--white); color: var(--navy); }
.article__nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 24px; margin-bottom: 64px; gap: 24px; }
.article__nav .post-navigation-link-previous, .article__nav .post-navigation-link-next { max-width: 48%; font-size: .95rem; }
.article__nav a { color: var(--blue-dark); text-decoration: none; }
.article__nav .post-navigation-link__label, .article__nav .wp-block-post-navigation-link__label { display: block; font-family: var(--f-head); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; color: var(--slate); }
.article__nav .post-navigation-link-next { text-align: right; margin-left: auto; }
.related { background: var(--off); padding-block: clamp(48px, 6vw, 72px); }
.related__title { text-align: center; margin-bottom: 1.2em; }

/* ---------- 404 ---------- */
.not-found { padding-block: clamp(64px, 10vw, 120px); }

/* ---------- Forms ---------- */
.kpm-form .field { margin-bottom: 18px; }
.kpm-form label { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.kpm-form label span { color: #c2185b; }
.kpm-form input[type="text"], .kpm-form input[type="email"], .kpm-form input[type="tel"], .kpm-form textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid #69727D; border-radius: var(--radius); transition: border-color var(--ease), box-shadow var(--ease); }
.kpm-form textarea { resize: vertical; min-height: 110px; }
.kpm-form input:focus, .kpm-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,177,235,.25); }
.kpm-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.kpm-form [aria-invalid="true"] { border-color: #c62828; }
.form-status { margin: 12px 0 0; font-size: .95rem; min-height: 1em; }
.form-status.is-ok { color: #1b7a3d; }
.form-status.is-error { color: #c62828; }
.newsletter .form-status { color: var(--white); }
.kpm-form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }

/* ---------- Forminator forms (form-style "none": all styling lives here) ---------- */
.kpm-fm .forminator-ui { margin: 0; }
.kpm-fm .forminator-row { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 16px; }
.kpm-fm .forminator-col { flex: 1 1 100%; min-width: 0; }
.kpm-fm .forminator-col-6 { flex: 1 1 calc(50% - 8px); }
.kpm-fm .forminator-field { position: relative; }
.kpm-fm .forminator-label { display: block; font-family: var(--f-body); font-size: 1rem; font-weight: 400; color: var(--ink); margin-bottom: 6px; }
.kpm-fm .forminator-required { color: #c2185b; }
.kpm-fm .forminator-input, .kpm-fm .forminator-textarea {
  display: block; width: 100%; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #69727D; border-radius: var(--radius); box-shadow: none; transition: border-color var(--ease), box-shadow var(--ease); }
.kpm-fm .forminator-textarea { min-height: 120px; resize: vertical; }
.kpm-fm .forminator-input:focus, .kpm-fm .forminator-textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,177,235,.25); }
.kpm-fm .forminator-input::placeholder, .kpm-fm .forminator-textarea::placeholder { color: #8a9099; }
.kpm-fm .forminator-has_error .forminator-input, .kpm-fm .forminator-has_error .forminator-textarea { border-color: #c62828; }
.kpm-fm .forminator-error-message { display: block; color: #c62828; font-size: .9rem; margin-top: 6px; }
.kpm-fm .forminator-description { font-size: .85rem; }
.kpm-fm .forminator-row-last { margin-bottom: 0; }
.kpm-fm .forminator-button-submit {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 12px 26px; border: 0;
  border-radius: var(--radius); background: var(--blue); color: var(--navy); font-family: var(--f-head); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease); }
.kpm-fm .forminator-button-submit:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,33,61,.18); }
.kpm-fm .forminator-button-submit:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.kpm-fm--switch .forminator-button-submit { background: var(--navy); color: var(--white); font-family: var(--f-body); font-weight: 400; }
.kpm-fm--switch .forminator-button-submit:hover { background: #003a6b; }
.kpm-fm .forminator-response-message { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius); font-size: .95rem; }
.kpm-fm .forminator-response-message[aria-hidden="true"], .kpm-fm .forminator-response-message:empty { display: none; }
.kpm-fm .forminator-response-message.forminator-error { background: #fdecea; color: #a31515; }
.kpm-fm .forminator-response-message.forminator-success { background: #e6f6ec; color: #17663a; }
.kpm-fm .forminator-response-message p { margin: 0; }
.kpm-fm .forminator-hidden, .kpm-fm [hidden] { display: none !important; }
.contact-form .kpm-fm .forminator-input, .contact-form .kpm-fm .forminator-textarea { border-radius: 8px; background: #F3F3F3; }
/* Footer newsletter: inline field with the send icon, on navy */
.kpm-fm--newsletter form.forminator-ui { display: grid !important; grid-template-columns: 1fr 52px; align-items: start; }
.kpm-fm--newsletter form.forminator-ui[style*="display: none"] { display: none !important; }
.kpm-fm--newsletter .forminator-response-message { grid-column: 1 / -1; }
.kpm-fm--newsletter .forminator-row { margin: 0; grid-column: 1; }
.kpm-fm--newsletter .forminator-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.kpm-fm--newsletter .forminator-input { background: transparent; border: 1px solid rgba(255,255,255,.3); border-right: 0; border-radius: 0; color: var(--white); padding: 14px; height: 50px; font-size: .95rem; }
.kpm-fm--newsletter .forminator-input::placeholder { color: rgba(255,255,255,.65); }
.kpm-fm--newsletter .forminator-row-last { grid-column: 2; grid-row: 2; margin: 0; }
.kpm-fm--newsletter .forminator-response-message[aria-hidden="true"] ~ .forminator-row-last, .kpm-fm--newsletter .forminator-response-message:empty ~ .forminator-row-last { grid-row: 1; }
.kpm-fm--newsletter .forminator-button-submit { width: 52px; height: 50px; min-height: 50px; padding: 0; background: transparent; border: 1px solid rgba(255,255,255,.3); border-left: 0; border-radius: 0; font-size: 0; color: transparent; box-shadow: none; }
.kpm-fm--newsletter .forminator-button-submit::after { content: ""; width: 20px; height: 20px; background: var(--white); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3 10 14'/%3E%3Cpath d='m21 3-7 18-4-7-7-4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3 10 14'/%3E%3Cpath d='m21 3-7 18-4-7-7-4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.kpm-fm--newsletter .forminator-button-submit:hover { background: transparent; box-shadow: none; transform: none; }
.kpm-fm--newsletter .forminator-button-submit:hover::after { background: var(--blue); }
.kpm-fm--newsletter .forminator-error-message { color: #ffb4b4; }
.kpm-fm--newsletter .forminator-response-message.forminator-success { background: rgba(255,255,255,.1); color: var(--white); }
@media (max-width: 640px) { .kpm-fm .forminator-col-6 { flex-basis: 100%; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hero-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero-tile a { padding: 22px; height: 170px; }
  .hero-tile__title { font-size: 1.05rem; }
}
@media (max-width: 1100px) {
  .nav-support { display: none; }
  .feature-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --nav-h: 70px; }
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .split, .switch-card, .svc-hero__inner, .two-col { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .photo-card__body { padding-inline: 0; }
  .explore__inner { grid-template-columns: 1fr; gap: 20px; text-align: center; justify-items: center; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .accreditations__list { grid-template-columns: repeat(2, 1fr); }
  .contact-hero__person { opacity: .25; }
  .established__bg { height: 100%; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .topbar__info { gap: 14px; }
  .hero { min-height: 520px; }
  .hero__content { padding-block: 72px 32px; }
  .hero-tiles { position: relative; bottom: auto; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 32px; }
  .hero-tile:last-child { grid-column: 1 / -1; }
  .hero-tile a { height: auto; min-height: 120px; padding: 18px; gap: 10px; }
  .hero-tile .icon { width: 36px; height: 36px; }
  .hero-tile__title { font-size: 1rem; }
  .icon-grid, .photo-grid, .post-grid, .feature-grid--2, .feature-grid--4, .info-grid, .footer-cols { grid-template-columns: 1fr; }
  .icon-card { gap: 16px; }
  .icon-card__icon { width: 58px; height: 58px; }
  .kpm-form .field-row { grid-template-columns: 1fr; }
  .contact-hero__person { display: none; }
  .contact-form { padding: 20px; }
  .article__nav { flex-direction: column; }
  .article__nav .post-navigation-link-previous, .article__nav .post-navigation-link-next { max-width: 100%; text-align: left; margin-left: 0; }
  .footer-legal { margin-top: 40px; }
}
