/*
Theme Name: AxsuR
Theme URI: https://www.axsur.com/
Author: AxsuR
Description: Corporate theme for AxsuR Risk Advisory. Lightweight, accessible and built to work with the AxsuR Core and AxsuR Country Risk Portal plugins.
Version: 1.1.5
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: axsur
*/

/* ---------- Font (self-hosted, no third-party requests) ---------- */
@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans-latin-ext.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
	--brand: #004261;        /* logo colour */
	--brand-deep: #00283b;
	--brand-mid: #0b5f85;
	--brand-tint: #e6eff4;
	--ink: #142430;
	--slate: #51616d;
	--line: #d6dee4;
	--mist: #f3f6f8;
	--white: #ffffff;
	--error: #a4262c;
	--success: #1f6b45;

	--font: "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1180px;
	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(56px, 8vw, 104px);
	--radius: 4px;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
	--step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
	--step-4: clamp(2.25rem, 1.5rem + 3.4vw, 4rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; color: var(--brand-deep); margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-4); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: var(--step-3); letter-spacing: -0.022em; }
h3 { font-size: var(--step-1); line-height: 1.3; }
h4 { font-size: var(--step-0); }
p { margin: 0 0 1.1em; }
a { color: var(--brand-mid); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; border-radius: 2px; }
ul, ol { padding-left: 1.2em; margin: 0 0 1.2em; }
li { margin-bottom: 0.4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--brand); color: var(--white); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(760px + var(--gutter) * 2); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand-deep); color: var(--white); padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center;
	font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
	padding: 0.85em 1.4em; border-radius: var(--radius); border: 1.5px solid transparent;
	text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary, .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-primary:hover, .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); }
.btn-outline, .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--brand); color: var(--white); }
.btn-light { background: var(--white); color: var(--brand-deep); border-color: var(--white); }
.btn-light:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: var(--white); }
.btn-small { padding: 0.55em 1em; font-size: 0.9375rem; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.3em; }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.site-logo { display: inline-flex; flex-shrink: 0; }
.site-logo-img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav .current-menu-item > a, .site-nav .current_page_parent > a, .site-nav .current-menu-ancestor > a { border-bottom-color: var(--brand); color: var(--brand-deep); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font: inherit; font-weight: 600; color: var(--brand-deep); cursor: pointer; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

@media (max-width: 1040px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px; box-shadow: 0 18px 30px -18px rgba(0, 40, 59, 0.35); }
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
	.site-nav .btn { width: 100%; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--brand-deep); color: var(--white); overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art svg { position: absolute; right: -12%; top: 50%; transform: translateY(-50%); width: min(980px, 95vw); height: auto; opacity: 0.5; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 40, 59, 0.94) 0%, rgba(0, 40, 59, 0.82) 45%, rgba(0, 40, 59, 0.45) 100%); }
.hero-inner { padding-block: clamp(72px, 12vw, 156px); max-width: 860px; }
.hero h1 { color: var(--white); margin-bottom: 0.45em; }
.hero-text { font-size: var(--step-1); line-height: 1.5; max-width: 40em; color: #d5e3ea; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; max-width: 20em; }
.section-head p { margin: 0.6em 0 0; color: var(--slate); max-width: 38em; }

.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.intro-grid h2 { font-size: var(--step-3); margin: 0; }
.intro-grid p { font-size: var(--step-1); line-height: 1.55; color: var(--slate); margin: 0; }

/* Services: a ruled list, not a wall of cards */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 5vw, 72px); border-top: 1px solid var(--line); }
.service-list li { margin: 0; border-bottom: 1px solid var(--line); }
.service-row { display: block; padding: 26px 0; text-decoration: none; color: inherit; }
.service-row h3 { margin: 0 0 6px; font-size: var(--step-1); color: var(--brand-deep); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.service-row h3 svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--brand-mid); transition: transform 0.15s; }
.service-row:hover h3 { color: var(--brand-mid); }
.service-row:hover h3 svg { transform: translateX(4px); }
.service-row p { margin: 0; color: var(--slate); font-size: 1rem; max-width: 34em; }

/* Regions */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--brand-deep); }
.region { padding: 24px 24px 8px 0; }
.region + .region { padding-left: 24px; border-left: 1px solid var(--line); }
.region h3 { font-size: var(--step-1); margin-bottom: 12px; }
.region ul { list-style: none; padding: 0; margin: 0; color: var(--slate); }
.region li { margin: 0; padding: 5px 0; }

/* Why AxsuR */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.why-item { border-top: 2px solid var(--brand); padding-top: 18px; }
.why-item h3 { margin-bottom: 8px; }
.why-item p { margin: 0; color: var(--slate); font-size: 1rem; }

/* Clients */
.client-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.client-item { margin: 0; background: var(--white); padding: 28px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 130px; text-align: center; }
.client-logo img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.8; transition: filter 0.2s, opacity 0.2s; }
.client-item:hover .client-logo img { filter: none; opacity: 1; }
.client-name { font-weight: 600; color: var(--brand-deep); }
.client-desc { margin: 0; font-size: var(--step--1); color: var(--slate); }
.client-grid-detailed { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.admin-note { border: 1px dashed #b7791f; background: #fffaf0; color: #5f4310; padding: 14px 18px; border-radius: var(--radius); font-size: 0.9375rem; }

/* Insights cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.5vw, 44px); }
.post-card { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 20px; }
.post-card-image { display: block; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; }
.post-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-topic { margin: 0 0 8px; font-size: var(--step--1); font-weight: 600; }
.post-card-topic a { color: var(--brand-mid); text-decoration: none; }
.post-card-title { font-size: var(--step-1); margin: 0 0 10px; }
.post-card-title a { color: var(--brand-deep); text-decoration: none; }
.post-card-title a:hover { text-decoration: underline; }
.post-card-excerpt { color: var(--slate); font-size: 1rem; margin: 0 0 14px; }
.post-card-date { margin: auto 0 0; font-size: var(--step--1); color: var(--slate); }

/* Portal introduction with the rating scale */
.portal-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.portal-panel p { color: var(--slate); }
.portal-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6em; }
.scale { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.scale li { display: grid; grid-template-columns: 8px 7.2em 1fr; gap: 16px; align-items: stretch; margin: 0; border-bottom: 1px solid var(--line); }
.scale li:last-child { border-bottom: 0; }
.scale-bar { background: var(--level, #8793a0); }
.scale-name { font-weight: 600; padding: 14px 0; color: var(--brand-deep); }
.scale-desc { padding: 14px 16px 14px 0; color: var(--slate); font-size: 0.9688rem; }
.scale-caption { font-size: var(--step--1); color: var(--slate); margin: 12px 0 0; }

/* CTA band */
.cta-band { background: var(--brand); color: var(--white); padding-block: clamp(48px, 7vw, 84px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin: 0 0 8px; max-width: 22em; }
.cta-band p { margin: 0; color: #cfe0e8; font-size: var(--step-1); }

/* ---------- Page header ---------- */
.page-header { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 6vw, 72px); }
.page-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); margin: 0; max-width: 18em; }
.page-intro { font-size: var(--step-1); line-height: 1.5; color: var(--slate); max-width: 40em; margin: 18px 0 0; }
.page-meta { color: var(--slate); font-size: 0.9688rem; margin: 16px 0 0; }
.breadcrumbs { margin-bottom: 18px; font-size: var(--step--1); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; color: var(--slate); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: #9aa7b1; }
.breadcrumbs a { color: var(--slate); }

/* ---------- Content ---------- */
.entry { padding-block: clamp(40px, 6vw, 80px); }
.entry-content { max-width: 760px; }
.entry-content > * + h2 { margin-top: 1.8em; }
.entry-content > * + h3 { margin-top: 1.5em; }
.entry-content h2 { font-size: var(--step-2); }
.entry-content .lead, .lead { font-size: var(--step-1); line-height: 1.55; color: var(--slate); }
.entry-content li::marker { color: var(--brand-mid); }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font-size: var(--step-1); color: var(--brand-deep); }
.entry-content img { border-radius: var(--radius); }
.entry-content .wp-block-buttons { margin: 1.4em 0; }
.entry-content table th, .entry-content table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content table th { background: var(--mist); }
.alignwide { max-width: var(--wrap); }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 88px); align-items: start; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 104px; background: var(--white); }
.aside-box h2 { font-size: var(--step-1); }
.aside-box ul { list-style: none; padding: 0; margin: 0 0 20px; }
.aside-box li { border-bottom: 1px solid var(--line); margin: 0; }
.aside-box li a { display: block; padding: 10px 0; text-decoration: none; color: var(--ink); }
.aside-box li a:hover, .aside-box li a[aria-current] { color: var(--brand-mid); }
.aside-box li a[aria-current] { font-weight: 600; }
.aside-box .btn { width: 100%; }

/* Service detail */
.service-sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px); margin-top: clamp(32px, 5vw, 56px); }
.service-sections h2 { font-size: var(--step-2); padding-top: 16px; border-top: 2px solid var(--brand); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding: 8px 0 8px 26px; margin: 0; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 9px; border-radius: 50%; background: var(--brand-mid); }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { margin: 0; background: var(--brand-tint); color: var(--brand-deep); padding: 6px 12px; border-radius: 100px; font-size: 0.9375rem; }

.faq { margin-top: clamp(40px, 6vw, 72px); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: var(--step-1); line-height: 1.35; color: var(--brand-deep); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.5rem; font-weight: 400; color: var(--brand-mid); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--slate); max-width: 44em; }

/* Article */
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--slate); font-size: 0.9688rem; margin: 18px 0 0; }
.article-meta a { color: var(--brand-mid); font-weight: 600; text-decoration: none; }
.article-image { margin: 0 0 clamp(28px, 4vw, 48px); }
.article-image img { width: 100%; border-radius: var(--radius); }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.9688rem; }
.share span { color: var(--slate); margin-right: 4px; }
.author-box { margin-top: 28px; padding: 22px 24px; background: var(--mist); border-radius: var(--radius); }
.author-box h2 { font-size: var(--step-0); margin: 0 0 6px; }
.author-box p { margin: 0; color: var(--slate); font-size: 1rem; }
.topic-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); padding: 0; list-style: none; }
.topic-nav li { margin: 0; }
.topic-nav a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 100px; text-decoration: none; color: var(--ink); font-size: 0.9375rem; }
.topic-nav a:hover, .topic-nav a[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--white); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: var(--white); }
.empty-state { padding: 40px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--slate); max-width: 640px; }
.empty-state h2 { font-size: var(--step-1); }

/* Regional page */
.country-links { list-style: none; padding: 0; margin: 1.2em 0 2.4em; display: flex; flex-wrap: wrap; gap: 8px; }
.country-links li { margin: 0; }
.country-links a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 9px; border: 1px solid var(--line); border-radius: 100px; text-decoration: none; color: var(--brand-deep); font-size: 0.9688rem; font-weight: 500; background: var(--white); }
.country-links a:hover { border-color: var(--brand); background: var(--brand-tint); }
.country-links img { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.country-links-note { font-size: var(--step--1); color: var(--slate); margin: -1.6em 0 2.4em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact-details h2 { font-size: var(--step-1); margin-top: 1.6em; }
.contact-details h2:first-child { margin-top: 0; }
.contact-details address { font-style: normal; color: var(--slate); }
.contact-details p { color: var(--slate); }

/* ---------- Forms ---------- */
.axsur-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9688rem; margin-bottom: 6px; color: var(--brand-deep); }
.field .optional { font-weight: 400; color: var(--slate); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
	width: 100%; font: inherit; color: var(--ink); background: var(--white);
	border: 1.5px solid #b9c5cd; border-radius: var(--radius); padding: 11px 13px; line-height: 1.4;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2351616d' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(11, 95, 133, 0.25); outline-offset: 0; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { display: block; color: var(--error); font-size: 0.9375rem; margin-top: 6px; font-weight: 500; }
.field-check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.field-check input { margin-top: 5px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brand); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice-box { padding: 18px 22px; border-radius: var(--radius); margin-bottom: 24px; border-left: 4px solid; }
.notice-box h3 { margin: 0 0 6px; }
.notice-box p { margin: 0; }
.notice-success { background: #edf7f1; border-color: var(--success); }
.notice-success h3 { color: #174f33; }
.notice-error { background: #fbeeee; border-color: var(--error); }
.notice-info { background: var(--brand-tint); border-color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #c5d5dd; padding-top: clamp(48px, 7vw, 80px); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(36px, 5vw, 56px); }
.site-footer .site-logo-img { height: 34px; }
.footer-about p { margin: 18px 0 0; max-width: 24em; }
.site-footer h2 { color: var(--white); font-size: 1rem; letter-spacing: 0; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 9px; }
.site-footer a { color: #c5d5dd; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 16px; }
.site-footer address strong { color: var(--white); display: block; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--step--1); }
.footer-bottom p { margin: 0; }

/* ---------- 404 / search ---------- */
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form label { flex: 1; }
.search-results-list { list-style: none; padding: 0; max-width: 760px; }
.search-results-list li { border-bottom: 1px solid var(--line); padding: 20px 0; margin: 0; }
.search-results-list h2 { font-size: var(--step-1); margin: 0 0 6px; }
.search-results-list p { margin: 0; color: var(--slate); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.intro-grid, .portal-panel, .contact-grid, .with-aside { grid-template-columns: 1fr; }
	.why-grid, .region-grid { grid-template-columns: repeat(2, 1fr); }
	.region:nth-child(3) { padding-left: 0; border-left: 0; }
	.region:nth-child(n+3) { border-top: 1px solid var(--line); }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.aside-box { position: static; }
	.hero-art svg { opacity: 0.3; }
}
@media (max-width: 640px) {
	.service-list, .service-sections, .post-grid, .why-grid, .region-grid, .footer-grid { grid-template-columns: 1fr; }
	.region, .region + .region { padding: 20px 0 8px; border-left: 0; }
	.region + .region { border-top: 1px solid var(--line); }
	.axsur-form .field-row { grid-template-columns: 1fr; }
	.scale li { grid-template-columns: 8px 1fr; }
	.scale-name { padding-bottom: 0; }
	.scale-desc { grid-column: 2; padding: 2px 16px 14px 0; }
	.hero-actions .btn, .portal-actions .btn, .cta-inner .btn { width: 100%; }
	.site-logo-img { height: 26px; }
}

@media print {
	.site-header, .site-footer, .cta-band, .share, .nav-toggle { display: none !important; }
	body { font-size: 11pt; }
}

/* ---------- Case studies ---------- */
.case-feature { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 6vw, 88px); align-items: start; }
.case-feature-label h2 { margin-bottom: 10px; }
.case-feature-label p { color: var(--slate); margin: 0; }
.case-feature-body { border-top: 2px solid var(--brand-deep); padding-top: 22px; }
.case-feature-body h3 { font-size: var(--step-2); line-height: 1.2; margin-bottom: 14px; }
.case-feature-body h3 a { color: var(--brand-deep); text-decoration: none; }
.case-feature-body h3 a:hover { text-decoration: underline; }
.case-feature-body p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; }
.case-list { display: grid; gap: 0; max-width: 860px; }
.case-item { border-top: 1px solid var(--line); padding: 28px 0; }
.case-item:last-child { border-bottom: 1px solid var(--line); }
.case-item h2, .case-item h3 { font-size: var(--step-2); margin-bottom: 10px; }
.case-item h2 a, .case-item h3 a { color: var(--brand-deep); text-decoration: none; }
.case-item h2 a:hover, .case-item h3 a:hover { text-decoration: underline; }
.case-item p { color: var(--slate); }
.case-meta { font-size: var(--step--1); font-weight: 600; color: var(--brand-mid) !important; margin-bottom: 8px; }
.clients-section { margin-top: clamp(40px, 6vw, 72px); }
.h3-like { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 6px; color: var(--brand-deep); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.h3-like svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--brand-mid); transition: transform 0.15s; }
.service-row:hover .h3-like { color: var(--brand-mid); }
.service-row:hover .h3-like svg { transform: translateX(4px); }
@media (max-width: 960px) { .case-feature { grid-template-columns: 1fr; } }

/* ---------- Photographs ---------- */
.photo { margin: 0; position: relative; }
.photo img { width: 100%; height: 100%; aspect-ratio: var(--ratio, auto); object-fit: cover; border-radius: var(--radius); background: var(--brand-tint); }
.photo figcaption, .wp-block-image figcaption { font-size: 0.8125rem; color: var(--slate); margin-top: 6px; }
.hero.has-image .hero-art img { object-position: 68% 50%; }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section-top-rule { padding-top: 0; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.feature-flip .feature-text { order: 2; }
.feature-text h2 { margin-bottom: 0.5em; }
.feature-text > p { color: var(--slate); font-size: var(--step-1); line-height: 1.5; }
.feature-text .check-list { margin: 1.2em 0 1.6em; }
.feature-link { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin: 1.4em 0 0; font-size: 1rem !important; }
.approach { margin-bottom: clamp(40px, 6vw, 72px); }
.region-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); }
.region-card h3 { margin: 16px 0 6px; font-size: var(--step-1); }
.region-card h3 a { color: var(--brand-deep); text-decoration: none; }
.region-card h3 a:hover { text-decoration: underline; }
.region-card p { margin: 0; color: var(--slate); font-size: 0.9688rem; }
.region-card-blank { aspect-ratio: 3 / 2; background: var(--brand-tint); border-radius: var(--radius); }
.entry .region-cards { margin-bottom: clamp(40px, 6vw, 72px); }
.service-photo { margin-bottom: clamp(24px, 4vw, 40px); max-width: 760px; }
.service-photo-second { margin-top: clamp(32px, 5vw, 56px); margin-bottom: 0; }
.case-photo { margin-bottom: 20px; }
.case-photo-top { max-width: 980px; margin-bottom: clamp(28px, 4vw, 48px); }
@media (max-width: 960px) {
	.feature { grid-template-columns: 1fr; }
	.feature-flip .feature-text { order: 0; }
	.region-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .region-cards { grid-template-columns: 1fr; } }

/* ---------- Case studies v2 ---------- */
.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.case-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case-card-image img, .case-card-blank { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--brand-tint); }
.case-card-industry { margin: 18px 20px 6px; font-size: var(--step--1); font-weight: 600; color: var(--brand-mid); }
.case-card h3 { margin: 0 20px 10px; font-size: var(--step-1); line-height: 1.3; }
.case-card h3 a { color: var(--brand-deep); text-decoration: none; }
.case-card h3 a:hover { text-decoration: underline; }
.case-card-text { margin: 0 20px 16px; color: var(--slate); font-size: 0.9688rem; flex: 1; }
.case-card .text-link { margin: 0 20px 22px; align-self: flex-start; }
.section-action { margin: clamp(24px, 4vw, 40px) 0 0; }
.case-note { margin-top: 32px; font-size: var(--step--1); color: var(--slate); }
.case-hero { position: relative; background: var(--brand-deep); color: var(--white); isolation: isolate; overflow: hidden; }
.case-hero-image { position: absolute; inset: 0; z-index: -1; }
.case-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.case-hero.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 40, 59, 0.92) 0%, rgba(0, 40, 59, 0.78) 50%, rgba(0, 40, 59, 0.45) 100%); }
.case-hero-inner { padding-block: clamp(48px, 8vw, 104px); }
.case-hero .page-title { color: var(--white); max-width: 20em; }
.case-hero .page-intro { color: #d5e3ea; }
.case-hero .breadcrumbs ol, .case-hero .breadcrumbs a { color: #c5d5dd; }
.case-kicker { margin: 0 0 10px; font-weight: 600; color: #9cc4d6; }
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: clamp(-36px, -3vw, -24px) 0 0; position: relative; }
.case-facts > div { background: var(--white); padding: 16px 20px; }
.case-facts dt { font-size: var(--step--1); color: var(--slate); }
.case-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--brand-deep); }
.case-body .wp-block-image { margin: 1.6em 0; }
@media (max-width: 960px) { .case-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .case-cards, .case-facts { grid-template-columns: 1fr; } .case-facts { margin-top: 20px; } }
