/* ==========================================================================
   UBSAL — main stylesheet
   Brand system derived from the UBSAL logo: Ink (#0B0E13) + Signal Yellow (#FCDE66)
   ========================================================================== */

:root {
	--ink: #0B0E13;
	--harbour: #121A28;
	--harbour-2: #1B2638;
	--signal: #FCDE66;
	--signal-deep: #E8C240;
	--steel: #5A6474;
	--steel-light: #9FB0C8;
	--fog: #F4F3EE;
	--line: #E3E1D8;
	--line-dark: rgba(255, 255, 255, .12);
	--white: #FFFFFF;
	--success: #1E7B4E;
	--error: #B42318;
	--wa: #25D366;

	--font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
	--font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 120px);
	--radius: 4px;
	--radius-lg: 8px;
	--shadow: 0 1px 2px rgba(11, 14, 19, .06), 0 12px 32px -12px rgba(11, 14, 19, .18);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 84px;
}

/* ---------- Reset & 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(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-stretch: 88%;
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	color: inherit;
}
ul, ol { padding-left: 1.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal-deep); outline-offset: 2px; }
::selection { background: var(--signal); color: var(--ink); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 12px 18px; background: var(--signal); color: var(--ink); font-weight: 600;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { display: block; outline: none; }

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--btn-bg);
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .7em 1.4em;
	font-family: var(--font-display); font-stretch: 92%; font-weight: 650; font-size: 1rem; letter-spacing: .01em; line-height: 1.1;
	color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: var(--radius);
	text-decoration: none; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
	-webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { --btn-bg: var(--signal); --btn-fg: var(--ink); }
.btn--primary:hover { --btn-bg: var(--signal-deep); color: var(--ink); }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--ink:hover { --btn-bg: var(--harbour-2); color: var(--white); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); color: var(--white); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { --btn-bd: var(--white); --btn-bg: rgba(255, 255, 255, .08); color: var(--white); }
.btn--lg { min-height: 56px; padding: .8em 1.7em; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--signal); padding-bottom: 2px; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s var(--ease); width: 1.1em; }

/* ---------- Eyebrows & headings ---------- */
.eyebrow, .manifest-label {
	display: inline-flex; align-items: center; gap: .6em;
	font-family: var(--font-mono); font-weight: 500; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--steel); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--signal-deep); flex: none; }
.eyebrow .icon { width: 16px; height: 16px; color: var(--signal); }
.eyebrow--light { color: var(--steel-light); }
.eyebrow--light::before { background: var(--signal); }
.eyebrow--ink { color: var(--ink); }
.eyebrow--ink::before { background: var(--ink); }
.manifest-label { color: var(--steel-light); margin-bottom: .75rem; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 780; font-stretch: 85%; line-height: 1.04; margin: 0; }
.section-lead { margin: 1.1rem 0 0; color: var(--steel); font-size: 1.125rem; max-width: 62ch; }
.section-head--light .section-title { color: var(--white); }
.section-head--light .section-lead { color: var(--steel-light); }
.section-head--light .eyebrow { color: var(--steel-light); }
.section-head--light .eyebrow::before { background: var(--signal); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head-row .section-head { margin-bottom: 0; }

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--fog { background: var(--fog); }
.section--dark { background: var(--harbour); color: var(--white); }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.45; }
.check-list .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--ink); background: var(--signal); border-radius: 2px; padding: 3px; stroke-width: 2.5; }
.check-list--light li { color: #E6EBF2; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: var(--white); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.topbar { background: var(--harbour); font-size: .8125rem; color: var(--steel-light); border-bottom: 1px solid var(--line-dark); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__note { margin: 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.topbar__contact { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar__contact li, .topbar__contact a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; white-space: nowrap; }
.topbar__contact a:hover { color: var(--signal); }
.topbar__contact .icon { width: 14px; height: 14px; color: var(--signal); }

.masthead { border-bottom: 1px solid var(--line-dark); transition: box-shadow .25s var(--ease); }
.is-scrolled .masthead { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }
.masthead__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); flex: none; }
.brand__logo { height: 64px; width: auto; transition: height .25s var(--ease); }
.is-scrolled .brand__logo { height: 54px; }
.brand__name { display: flex; flex-direction: column; font-family: var(--font-display); font-stretch: 80%; font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; color: #C9D2DF; border-left: 1px solid var(--line-dark); padding-left: 14px; }

.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; display: flex; align-items: center; }
.primary-nav .menu > li > a {
	display: block; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: .96rem; color: #E6EBF2; position: relative;
}
.primary-nav .menu > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.primary-nav .menu > li > a:hover, .primary-nav .menu > .current-menu-item > a, .primary-nav .menu > .current-menu-ancestor > a, .primary-nav .menu > .current_page_parent > a { color: var(--white); }
.primary-nav .menu > li > a:hover::after, .primary-nav .menu > .current-menu-item > a::after, .primary-nav .menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.submenu-toggle { background: none; border: 0; color: var(--steel-light); padding: 6px 4px; margin-left: -8px; cursor: pointer; display: inline-flex; }
.submenu-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; list-style: none; margin: 0; padding: 10px;
	background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); border-top: 3px solid var(--signal);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: 10px 12px; text-decoration: none; border-radius: var(--radius); font-size: .95rem; font-weight: 500; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu .current-menu-item > a { background: var(--fog); }
.primary-nav__mobile-extra { display: none; }
.masthead__actions { display: flex; align-items: center; gap: 12px; }
.btn--header { min-height: 44px; padding: .55em 1.15em; }
.nav-toggle { display: none; width: 46px; height: 46px; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--white); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

/* Light header option */
.site-header--light { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header--light .masthead { border-color: var(--line); }
.site-header--light .brand, .site-header--light .brand__name { color: var(--ink); border-color: var(--line); }
.site-header--light .primary-nav .menu > li > a { color: var(--ink); }
.site-header--light .nav-toggle { color: var(--ink); border-color: var(--line); }
.site-header--light .primary-nav .menu > li > a::after { background: var(--signal-deep); }

@media (max-width: 1180px) {
	.brand__name { display: none; }
}
@media (max-width: 1080px) {
	:root { --header-h: 72px; }
	.masthead__actions { margin-left: auto; }
	.brand__logo, .is-scrolled .brand__logo { height: 52px; }
	.nav-toggle { display: inline-flex; }
	.topbar__note { display: none; }
	.topbar__contact { width: 100%; justify-content: center; }
	.primary-nav {
		position: fixed; inset: var(--nav-top, 110px) 0 0 0; z-index: 99; background: var(--ink); color: var(--white);
		overflow-y: auto; overscroll-behavior: contain; padding: 12px var(--gutter) 40px;
		transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
	}
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.nav-open { overflow: hidden; }
	.primary-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line-dark); }
	.primary-nav .menu > li > a { flex: 1; padding: 16px 0; font-family: var(--font-display); font-stretch: 88%; font-size: 1.35rem; font-weight: 650; color: var(--white) !important; }
	.primary-nav .menu > li > a::after { display: none; }
	.submenu-toggle { width: 48px; height: 48px; justify-content: center; margin: 0; color: var(--white); }
	.submenu-toggle .icon { width: 22px; height: 22px; }
	.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
	.primary-nav .sub-menu { position: static; width: 100%; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; color: var(--white); border: 0; padding: 0 0 12px 12px; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu a { color: #C9D2DF; padding: 10px 0; }
	.primary-nav .sub-menu a:hover { background: transparent; color: var(--signal); }
	.primary-nav__mobile-extra { display: grid; gap: 14px; margin-top: 28px; }
	.mobile-contact { display: flex; align-items: center; gap: 10px; color: #E6EBF2; text-decoration: none; padding: 6px 0; }
	.mobile-contact .icon { color: var(--signal); }
	.site-header--light .primary-nav { background: var(--white); }
	.site-header--light .primary-nav .menu > li > a { color: var(--ink) !important; }
	.site-header--light .primary-nav .menu > li, .site-header--light .primary-nav .sub-menu a { border-color: var(--line); color: var(--steel); }
	.site-header--light .submenu-toggle, .site-header--light .mobile-contact { color: var(--ink); }
}
@media (max-width: 560px) {
	.topbar { display: none; }
	.btn--header { display: none; }
	.brand__logo, .is-scrolled .brand__logo { height: 48px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; padding-top: clamp(56px, 8vw, 104px); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 14, 19, .94) 0%, rgba(11, 14, 19, .82) 45%, rgba(11, 14, 19, .55) 100%); }
.hero__map { position: absolute; z-index: -1; right: -8%; top: 4%; width: min(1180px, 95%); opacity: .9; pointer-events: none; }
.hero.has-image .hero__map { opacity: .35; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-bottom: clamp(48px, 6vw, 80px); }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 820; font-stretch: 78%; line-height: .96; letter-spacing: -.02em; margin: 0 0 1.5rem; }
.hero__title span { display: block; }
.hero__title-accent { color: var(--signal); }
.hero__text { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #C9D2DF; max-width: 54ch; margin-bottom: 2rem; }

.quick-quote {
	background: rgba(18, 26, 40, .78); border: 1px solid var(--line-dark); border-top: 3px solid var(--signal);
	border-radius: var(--radius-lg); padding: clamp(20px, 2.4vw, 30px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	display: grid; gap: 16px;
}
.quick-quote__head h2 { font-size: 1.45rem; margin: 0; font-stretch: 85%; }
.quick-quote__head .manifest-label { margin-bottom: .4rem; }
.quick-quote__modes, .quick-quote__dir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick-quote__dir { grid-template-columns: repeat(2, 1fr); }
.quick-quote label { position: relative; }
.quick-quote__modes input, .quick-quote__dir input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.quick-quote__modes span, .quick-quote__dir span {
	display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px;
	border: 1px solid var(--line-dark); border-radius: var(--radius); font-weight: 500; font-size: .95rem; color: #C9D2DF; transition: all .2s;
}
.quick-quote__modes .icon { width: 18px; height: 18px; }
.quick-quote input:checked + span { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.quick-quote input:focus-visible + span { outline: 3px solid var(--signal-deep); outline-offset: 2px; }
.quick-quote__route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.quick-quote__route label > span { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-light); margin-bottom: 6px; }
.quick-quote select {
	width: 100%; min-height: 46px; background-color: var(--ink); color: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius);
	padding: 0 32px 0 12px; appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239FB0C8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; font-size: .95rem; text-overflow: ellipsis;
}
.quick-quote__arrow { color: var(--signal); height: 46px; display: flex; align-items: center; }
.quick-quote__note { margin: 0; text-align: center; font-size: .82rem; color: var(--steel-light); }

.service-strip { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-dark); }
.service-strip__item {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
	padding: 22px 18px 26px; text-decoration: none; color: var(--white); border-right: 1px solid var(--line-dark); position: relative; transition: background .2s;
}
.service-strip__item:first-child { padding-left: 0; }
.service-strip__item:last-child { border-right: 0; }
.service-strip__item::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.service-strip__item:hover { color: var(--white); background: rgba(255, 255, 255, .03); }
.service-strip__item:hover::before { transform: scaleX(1); }
.service-strip__item .icon { grid-row: span 2; width: 30px; height: 30px; color: var(--signal); }
.service-strip__num { font-family: var(--font-mono); font-size: .7rem; color: var(--steel-light); letter-spacing: .1em; }
.service-strip__name { font-family: var(--font-display); font-stretch: 88%; font-weight: 650; line-height: 1.2; }

@media (max-width: 1080px) {
	.hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 28px; }
	.hero__title { font-size: clamp(2.4rem, 6vw, 4rem); }
	.quick-quote { max-width: 560px; }
	.service-strip { grid-template-columns: repeat(3, 1fr); }
	.service-strip__item:nth-child(3) { border-right: 0; }
	.service-strip__item:nth-child(4) { padding-left: 0; }
	.service-strip__item:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
	.hero__map { width: 140%; right: -50%; top: 0; opacity: .55; }
}
@media (max-width: 900px) {
	.hero__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.service-strip { grid-template-columns: 1fr 1fr; }
	.service-strip__item, .service-strip__item:nth-child(n) { padding: 18px 10px 18px 0; border-right: 0; border-top: 1px solid var(--line-dark); }
	.service-strip__item:nth-child(odd) { border-right: 1px solid var(--line-dark); }
	.service-strip__item:nth-child(even) { padding-left: 14px; }
	.service-strip__item .icon { width: 24px; height: 24px; }
	.service-strip__name { font-size: .95rem; }
	.quick-quote__route { grid-template-columns: 1fr; }
	.quick-quote__arrow { display: none; }
	.hero .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Intro ---------- */
.intro__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.intro .section-head { margin-bottom: 0; }
.intro .prose { color: #2F3743; font-size: 1.0625rem; margin: 1.5rem 0 1.75rem; }
.intro__visual { position: relative; padding-bottom: 48px; }
.intro__img { width: 100%; aspect-ratio: 5/5.4; object-fit: cover; border-radius: var(--radius-lg); }
.intro__panel { aspect-ratio: 5/5; background: var(--fog); border-radius: var(--radius-lg); display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); }
.intro__panel img { width: 170%; max-width: none; margin-left: -60%; }
.manifest-card {
	position: absolute; left: -32px; right: 32px; bottom: 0; background: var(--ink); color: var(--white);
	padding: 26px 28px; border-radius: var(--radius-lg); border-left: 4px solid var(--signal); box-shadow: var(--shadow);
}
.manifest-card .check-list li { color: #E6EBF2; font-size: .98rem; }
@media (max-width: 900px) {
	.intro__grid { grid-template-columns: 1fr; }
	.manifest-card { left: 16px; right: 16px; }
}

/* ---------- Service cards ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #CFCCBF; }
.service-card__link { display: flex; flex-direction: column; height: 100%; padding: clamp(24px, 2.6vw, 34px); text-decoration: none; color: inherit; }
.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.service-card__icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--ink); color: var(--signal); border-radius: var(--radius); transition: background .3s; }
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-card__icon { background: var(--signal); color: var(--ink); }
.service-card__num { font-family: var(--font-mono); font-size: .75rem; color: var(--steel); letter-spacing: .1em; }
.service-card__title { font-family: var(--font-display); font-stretch: 85%; font-size: 1.45rem; font-weight: 750; line-height: 1.12; margin: 0 0 .6rem; }
.service-card__text { color: var(--steel); font-size: .98rem; margin-bottom: 1.1rem; }
.service-card__list { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.service-card__list li { padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line); font-size: .92rem; position: relative; }
.service-card__list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--signal-deep); }
.service-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .95rem; }
.service-card__more .icon { width: 1.1em; transition: transform .2s; }
.service-card:hover .service-card__more .icon { transform: translateX(4px); }
.service-card--cta { background: var(--ink) url("../img/world-routes-dark.svg") 70% 120%/220% no-repeat; color: var(--white); border-color: var(--ink); padding: clamp(24px, 2.6vw, 34px); text-decoration: none; display: flex; flex-direction: column; gap: 16px; }
.service-card--cta:hover { color: var(--white); border-color: var(--ink); }
.service-card--cta .service-card__title { color: var(--white); font-size: 1.6rem; }
.service-card--cta .service-card__more { color: var(--signal); }
@media (max-width: 1024px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- Why ---------- */
.why { position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.why-item { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background .3s; }
.why-item:hover { background: rgba(255, 255, 255, .03); }
.why-item__num { display: block; font-family: var(--font-mono); font-size: .8rem; color: var(--signal); letter-spacing: .12em; margin-bottom: 1.6rem; }
.why-item h3 { font-size: 1.35rem; color: var(--white); }
.why-item p { margin: 0; color: var(--steel-light); font-size: .98rem; }
@media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: 20px; position: relative; counter-reset: step; }
.process-track::before { content: ""; position: absolute; top: 28px; left: calc(100% / var(--steps, 5) / 2); right: calc(100% / var(--steps, 5) / 2); border-top: 2px dashed #CFCCBF; }
.process-step { position: relative; text-align: center; padding: 0 6px; }
.process-step__node {
	position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 22px; display: grid; place-items: center;
	background: var(--signal); color: var(--ink); border-radius: 50%; font-family: var(--font-mono); font-weight: 500; font-size: .95rem;
	box-shadow: 0 0 0 8px var(--white);
}
.process-step h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.process-step p { color: var(--steel); font-size: .95rem; margin: 0; }
@media (max-width: 900px) {
	.process-track { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
	.process-track::before { top: 28px; bottom: 28px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed #CFCCBF; }
	.process-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: left; padding: 0 0 32px; }
	.process-step__node { grid-row: span 2; margin: 0; }
	.process-step h3 { margin-top: 14px; }
}

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 32px); display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; transition: border-color .3s, transform .3s var(--ease); }
.industry-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.industry-card__icon { grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--fog); color: var(--ink); border: 1px solid var(--line); }
.industry-card:hover .industry-card__icon { background: var(--signal); border-color: var(--signal); }
.industry-card__icon .icon { width: 24px; height: 24px; }
.industry-card h3 { font-size: 1.2rem; margin: 4px 0 .4rem; }
.industry-card p { margin: 0; color: var(--steel); font-size: .95rem; }
@media (max-width: 1024px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .industry-grid { grid-template-columns: 1fr; } }

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cap-panel { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); min-height: 420px; display: flex; align-items: flex-end; }
.cap-panel--intl { background: var(--ink); color: var(--white); }
.cap-panel--dom { background: var(--fog); border: 1px solid var(--line); }
.cap-panel__map { position: absolute; top: -10%; left: -30%; width: 180%; max-width: none; opacity: .7; pointer-events: none; }
.cap-panel__body { position: relative; width: 100%; }
.cap-panel__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius); background: var(--signal); color: var(--ink); margin-bottom: 22px; }
.cap-panel__icon .icon { width: 28px; height: 28px; }
.cap-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 1.25rem; }
@media (max-width: 860px) { .cap-grid { grid-template-columns: 1fr; } .cap-panel { min-height: 0; } }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card__media { display: block; aspect-ratio: 3/2; background: var(--harbour); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--signal); background: var(--harbour) url("../img/world-routes-dark.svg") center/180% no-repeat; }
.post-card__placeholder .icon { width: 48px; height: 48px; }
.post-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: .6rem; }
.post-card__meta a { text-decoration: none; color: var(--ink); font-weight: 500; }
.post-card__title { font-size: 1.28rem; line-height: 1.2; margin-bottom: .6rem; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--signal-deep); text-decoration-thickness: 2px; }
.post-card__excerpt { color: var(--steel); font-size: .95rem; margin: 0; }
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--signal); color: var(--ink); padding-block: clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, transparent 14px 28px); opacity: .9; }
.cta-band__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-stretch: 80%; font-weight: 820; line-height: 1; margin-bottom: .8rem; }
.cta-band__text p:not(.eyebrow) { font-size: 1.1rem; max-width: 52ch; margin: 0; }
.cta-band__actions { display: grid; gap: 14px; justify-items: start; }
.cta-band__alt { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; }
.cta-band__alt a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.page-hero__map { position: absolute; z-index: -1; right: -12%; top: -6%; width: min(1100px, 110%); opacity: .55; pointer-events: none; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 14, 19, .93), rgba(11, 14, 19, .7)); }
.page-hero__grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.page-hero__grid.has-aside { grid-template-columns: 1.35fr .9fr; }
.page-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 820; font-stretch: 80%; line-height: 1; letter-spacing: -.02em; margin: 0 0 1.1rem; max-width: 20ch; }
.page-hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #C9D2DF; max-width: 60ch; margin-bottom: 1.75rem; }
.page-hero__lead:last-child { margin-bottom: 0; }
.page-hero__aside { background: rgba(18, 26, 40, .8); border: 1px solid var(--line-dark); border-left: 3px solid var(--signal); border-radius: var(--radius-lg); padding: 26px 28px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 900px) { .page-hero__grid.has-aside { grid-template-columns: 1fr; } }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-light); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; opacity: .5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--signal); }
.breadcrumbs [aria-current] { color: #E6EBF2; }

/* ---------- Content / prose ---------- */
.entry-content { font-size: 1.0625rem; color: #222A35; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-top: 2em; color: var(--ink); }
.entry-content h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); margin-top: 1.7em; color: var(--ink); }
.entry-content h4 { font-size: 1.15rem; margin-top: 1.5em; }
.entry-content a { color: var(--ink); text-decoration-color: var(--signal-deep); text-decoration-thickness: 2px; font-weight: 500; }
.entry-content a:hover { background: rgba(252, 222, 102, .35); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content ul li::marker { color: var(--signal-deep); }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--signal); font-family: var(--font-display); font-stretch: 90%; font-size: 1.3rem; line-height: 1.4; color: var(--ink); }
.entry-content blockquote cite { display: block; font-family: var(--font-body); font-size: .9rem; color: var(--steel); margin-top: .5em; font-style: normal; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content thead th { background: var(--ink); color: var(--white); font-weight: 600; border: 0; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content figure { margin: 1.8em 0; }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content figcaption { font-size: .85rem; color: var(--steel); margin-top: .6em; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content .wp-block-button__link { background: var(--signal); color: var(--ink); border-radius: var(--radius); font-weight: 650; padding: .8em 1.4em; text-decoration: none; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 1.5px solid var(--ink); }
.entry-content .wp-block-columns { gap: 2rem; }
.entry-content .alignwide { max-width: 1200px; }
.alignleft { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: .85rem; color: var(--steel); }
.sticky, .bypostauthor { display: block; }

/* Callout block style (used in content) */
.entry-content .ubsal-callout, .entry-content .is-style-ubsal-callout { background: var(--fog); border-left: 4px solid var(--signal); padding: 22px 26px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

/* ---------- Generic page layout ---------- */
.page-body { padding-block: var(--section); }
.page-body .entry-content { max-width: 760px; margin-inline: auto; }
.page-body--wide .entry-content { max-width: 1200px; }

/* ---------- About template ---------- */
.about-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); background: var(--white); position: relative; }
.pillar--dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pillar__label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.pillar--dark .pillar__label { color: var(--signal); }
.pillar h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: .6rem; }
.pillar p { margin: 0; color: var(--steel); }
.pillar--dark p { color: #C9D2DF; }
@media (max-width: 760px) { .about-pillars { grid-template-columns: 1fr; } }

/* ---------- Service single ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.service-layout .entry-content { max-width: none; }
.service-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.admin-bar .service-aside { top: calc(var(--header-h) + 56px); }
.aside-card { border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--line); background: var(--white); }
.aside-card--dark { background: var(--ink); color: var(--white); border-color: var(--ink); border-top: 3px solid var(--signal); }
.aside-card--dark h2, .aside-card--dark h3 { color: var(--white); }
.aside-card h2, .aside-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.aside-card p { color: var(--steel); font-size: .95rem; }
.aside-card--dark p { color: #C9D2DF; }
.aside-card .btn + .btn { margin-top: 10px; }
.aside-links { list-style: none; margin: 0; padding: 0; }
.aside-links li { border-bottom: 1px solid var(--line); }
.aside-links a { display: flex; align-items: center; gap: 12px; padding: 13px 0; text-decoration: none; font-weight: 500; }
.aside-links a .icon { color: var(--steel); width: 20px; height: 20px; }
.aside-links a:hover .icon { color: var(--ink); }
.aside-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal-deep); text-decoration-thickness: 2px; }
@media (max-width: 1024px) { .service-layout { grid-template-columns: minmax(0, 1fr); } .service-aside { position: static; } }

.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefit { padding: 26px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.benefit__icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--signal); color: var(--ink); border-radius: var(--radius); margin-bottom: 18px; }
.benefit__icon .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.benefit h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.benefit p { margin: 0; color: var(--steel); font-size: .96rem; }
@media (max-width: 760px) { .benefit-grid { grid-template-columns: 1fr; } }

.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 0; }
.steps-list li { counter-increment: s; position: relative; padding: 0 0 30px 76px; }
.steps-list li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 52px; height: 52px; display: grid; place-items: center; background: var(--ink); color: var(--signal); font-family: var(--font-mono); font-size: .9rem; border-radius: 50%; }
.steps-list li::after { content: ""; position: absolute; left: 25px; top: 56px; bottom: 4px; border-left: 2px dashed #CFCCBF; }
.steps-list li:last-child::after { display: none; }
.steps-list h3 { font-size: 1.2rem; margin: 12px 0 .35rem; }
.steps-list p { margin: 0; color: var(--steel); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--font-display); font-stretch: 90%; font-weight: 650; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; border: 1px solid var(--line); transition: transform .25s, background .25s; }
.faq details[open] summary .icon { transform: rotate(180deg); background: var(--signal); border-color: var(--signal); }
.faq summary:hover { color: var(--ink); }
.faq .faq__answer { padding: 0 52px 22px 0; color: var(--steel); }
.faq .faq__answer p:last-child { margin: 0; }

.related-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-services .service-card__link { padding: 24px; }
.related-services .service-card__title { font-size: 1.2rem; }
@media (max-width: 1024px) { .related-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-services { grid-template-columns: 1fr; } }

.sub-block + .sub-block { margin-top: clamp(48px, 6vw, 80px); }
.sub-block .section-head { margin-bottom: 28px; }
.sub-block .section-title { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 44px); box-shadow: var(--shadow); }
@media (max-width: 1024px) { .form-shell { grid-template-columns: minmax(0, 1fr); } }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ubsal-form fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.ubsal-form legend { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-stretch: 85%; font-weight: 750; font-size: 1.5rem; margin-bottom: 20px; padding: 0; }
.legend-num { font-family: var(--font-mono); font-size: .78rem; font-weight: 500; padding: 4px 8px; background: var(--ink); color: var(--signal); border-radius: 2px; letter-spacing: .08em; }
.ubsal-form fieldset + fieldset { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full, .form-nav { grid-column: 1 / -1; }
.field > label, .field-label { font-weight: 600; font-size: .92rem; }
.req { color: var(--error); margin-left: 2px; }
.ubsal-form input[type="text"], .ubsal-form input[type="email"], .ubsal-form input[type="tel"], .ubsal-form input[type="number"], .ubsal-form input[type="date"], .ubsal-form select, .ubsal-form textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem; line-height: 1.4;
	background: var(--white); border: 1.5px solid #D4D1C6; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.ubsal-form select {
	padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6474' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.ubsal-form textarea { min-height: 120px; resize: vertical; }
.ubsal-form input:hover, .ubsal-form select:hover, .ubsal-form textarea:hover { border-color: #A9A595; }
.ubsal-form input:focus, .ubsal-form select:focus, .ubsal-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(252, 222, 102, .55); }
.ubsal-form ::placeholder { color: #8C93A0; }
.input-group { display: grid; grid-template-columns: 1fr 112px; }
.input-group input { border-radius: var(--radius) 0 0 var(--radius) !important; }
.input-group select { border-radius: 0 var(--radius) var(--radius) 0 !important; border-left: 0 !important; background-color: var(--fog) !important; }
.field-help { font-size: .82rem; color: var(--steel); margin: 0; }
.field-error { font-size: .85rem; color: var(--error); margin: 0; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field.has-error .choice-card__body, .field.has-error .choice-pill span { border-color: var(--error); }

.choice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice-card, .choice-pill { position: relative; }
.choice-card input, .choice-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; z-index: 1; }
.choice-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border: 1.5px solid #D4D1C6; border-radius: var(--radius-lg); font-weight: 600; transition: all .2s; min-height: 100%; }
.choice-card__body .icon { width: 28px; height: 28px; color: var(--steel); }
.choice-card input:checked + .choice-card__body { border-color: var(--ink); background: var(--ink); color: var(--white); }
.choice-card input:checked + .choice-card__body .icon { color: var(--signal); }
.choice-card input:focus-visible + .choice-card__body, .choice-pill input:focus-visible + span { outline: 3px solid var(--signal-deep); outline-offset: 2px; }
.choice-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.choice-pill span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 24px; border: 1.5px solid #D4D1C6; border-radius: 999px; font-weight: 600; transition: all .2s; }
.choice-pill input:checked + span { background: var(--signal); border-color: var(--signal); }
@media (max-width: 520px) {
	.choice-cards { grid-template-columns: 1fr; }
	.choice-card__body { flex-direction: row; align-items: center; padding: 14px 16px; }
	.choice-pill { flex: 1; }
	.choice-pill span { width: 100%; justify-content: center; }
}

.file-drop { position: relative; }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; z-index: 1; }
.file-drop__ui { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed #BDB9AC; border-radius: var(--radius-lg); background: var(--fog); color: var(--steel); transition: border-color .2s, background .2s; }
.file-drop__ui .icon { width: 26px; height: 26px; color: var(--ink); }
.file-drop:hover .file-drop__ui, .file-drop.is-drag .file-drop__ui { border-color: var(--ink); background: #EFEDE5; }
.file-drop input:focus-visible + .file-drop__ui { outline: 3px solid var(--signal-deep); outline-offset: 2px; }
.file-drop.has-file .file-drop__text { color: var(--ink); font-weight: 600; word-break: break-all; }

.form-footer { gap: 12px; }
.form-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--steel); margin: 0; }
.form-privacy .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ink); }
.form-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 10px; }
.form-nav [data-prev] { margin-right: auto; }
.form-status { margin-top: 22px; padding: 16px 20px; border-radius: var(--radius); font-weight: 500; }
.form-status.is-success { background: #E6F4EC; color: var(--success); border-left: 4px solid var(--success); }
.form-status.is-error { background: #FDECEA; color: var(--error); border-left: 4px solid var(--error); }
.ubsal-form.is-sending { opacity: .7; pointer-events: none; }
.ubsal-form.is-done > *:not(.form-status) { display: none; }
.ubsal-form.is-done .form-status { margin-top: 0; font-size: 1.1rem; padding: 28px; }

/* Step mode (enabled by JS) */
.form-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.form-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 0 0; border-top: 3px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--steel); }
.form-steps li span { font-family: var(--font-mono); font-size: .75rem; }
.form-steps li.is-active, .form-steps li.is-done { border-color: var(--ink); color: var(--ink); }
.form-steps li.is-active { border-color: var(--signal-deep); }
.is-stepped fieldset + fieldset { margin-top: 0; padding-top: 0; border-top: 0; }
.is-stepped .form-step:not(.is-current) { display: none; }
:not(.is-stepped) > .form-step .form-nav [data-next], :not(.is-stepped) > .form-step .form-nav [data-prev] { display: none; }
@media (max-width: 640px) {
	.ubsal-form fieldset, .form-grid { grid-template-columns: 1fr; }
	.form-steps li { font-size: .78rem; flex-direction: column; align-items: flex-start; gap: 2px; }
	.form-nav .btn { flex: 1 1 auto; }
}

.contact-aside { display: grid; gap: 20px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.contact-list li > .icon { width: 42px; height: 42px; padding: 10px; background: var(--signal); color: var(--ink); border-radius: var(--radius); }
.contact-list__label { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: 2px; }
.contact-list a { text-decoration: none; font-weight: 600; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--signal-deep); }
.contact-list address { font-style: normal; }
.hours { margin: 0; display: grid; gap: 4px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; }
.aside-card--dark .contact-list__label { color: var(--steel-light); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/7; background: var(--fog); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder { display: grid; place-items: center; text-align: center; padding: 32px; color: var(--steel); aspect-ratio: auto; min-height: 220px; border-style: dashed; }
@media (max-width: 640px) { .map-embed { aspect-ratio: 4/3; } }

.ubsal-placeholder { display: inline-block; font-family: var(--font-mono); font-size: .78rem; padding: 3px 8px; border: 1.5px dashed var(--signal-deep); background: rgba(252, 222, 102, .15); color: inherit !important; text-decoration: none; border-radius: 2px; }

/* ---------- Blog ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.blog-layout .post-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .blog-layout { grid-template-columns: minmax(0, 1fr); } }
.blog-layout > *, .service-layout > *, .form-shell > * { min-width: 0; }
@media (max-width: 640px) { .blog-layout .post-grid { grid-template-columns: 1fr; } }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.cat-filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; background: var(--white); }
.cat-filter a:hover { border-color: var(--ink); }
.cat-filter .is-current a { background: var(--ink); color: var(--white); border-color: var(--ink); }
.sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.widget { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.widget-title { font-size: 1.1rem; margin-bottom: 1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget a:hover { text-decoration: underline; }
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; min-width: 0; }
.search-form .search-field { width: 100%; min-height: 46px; padding: 0 14px; border: 1.5px solid #D4D1C6; border-radius: var(--radius); }
.search-form .search-submit { min-height: 46px; padding: 0 16px; background: var(--ink); color: var(--white); border: 0; border-radius: var(--radius); cursor: pointer; font-weight: 600; }

.article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-light); }
.article-meta a { text-decoration: none; color: var(--signal); }
.article-wrap { padding-block: var(--section); }
.article { max-width: 760px; margin-inline: auto; }
.article__thumb { margin: 0 0 40px; }
.article__thumb img { width: 100%; border-radius: var(--radius-lg); }
.article .entry-content { font-size: 1.125rem; line-height: 1.75; }
.article-footer { max-width: 760px; margin: 56px auto 0; display: grid; gap: 28px; }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.share a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.share a:hover { background: var(--signal); border-color: var(--signal); }
.share .icon { width: 18px; height: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: .85rem; padding: 4px 12px; background: var(--fog); border-radius: 999px; text-decoration: none; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 26px; background: var(--fog); border-radius: var(--radius-lg); border-left: 4px solid var(--signal); }
.author-box__logo { width: 64px; height: 64px; background: var(--ink); border-radius: var(--radius); display: grid; place-items: center; padding: 8px; }
.author-box__logo img { height: 48px; width: auto; }
.author-box h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.author-box p { margin: 0; color: var(--steel); font-size: .95rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; }
.post-nav a:hover { border-color: var(--ink); }
.post-nav span { display: block; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.post-nav strong { font-family: var(--font-display); font-stretch: 90%; font-weight: 650; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: auto; } }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); }
.empty-state { text-align: center; padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--steel); }

/* Comments */
.comments-area { max-width: 760px; margin: 56px auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: .85rem; color: var(--steel); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: 12px; border: 1.5px solid #D4D1C6; border-radius: var(--radius); }
.comment-form .submit { background: var(--signal); border: 0; padding: 14px 22px; border-radius: var(--radius); font-weight: 650; cursor: pointer; }

/* 404 */
.error-404 { text-align: center; padding-block: var(--section); }
.error-404 .search-form { max-width: 460px; margin: 28px auto 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D2DF; padding-top: clamp(40px, 5vw, 64px); font-size: .96rem; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line-dark); }
.footer-cta__text { margin: 0; font-family: var(--font-display); font-stretch: 85%; font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--white); max-width: 30ch; line-height: 1.2; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(40px, 5vw, 64px); }
.footer-logo { height: 110px; width: auto; margin-bottom: 22px; }
.footer-brand p { color: var(--steel-light); max-width: 36ch; }
.footer-title { font-size: .75rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-bottom: 1.2rem; }
.footer-menu, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-menu a, .site-footer .menu a { text-decoration: none; }
.footer-menu a:hover, .site-footer .menu a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--signal); }
.site-footer .contact-list { gap: 16px; }
.site-footer .contact-list li { grid-template-columns: 34px 1fr; gap: 12px; }
.site-footer .contact-list li > .icon { width: 34px; height: 34px; padding: 8px; background: var(--harbour-2); color: var(--signal); }
.site-footer .contact-list__label { color: var(--steel-light); }
.site-footer .contact-list a { color: var(--white); font-weight: 500; }
.social-links { display: flex; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.social-links a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--white); }
.social-links a:hover { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.social-links .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--steel-light); }
.footer-bottom p { margin: 0; }
.legal-menu { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.legal-menu a { text-decoration: none; }
.legal-menu a:hover { color: var(--white); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-logo { height: 92px; } }

/* WhatsApp floating button */
.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
	height: 56px; padding: 0 20px 0 16px; background: var(--wa); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600;
	box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .45); transition: transform .2s var(--ease);
}
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.wa-float .icon { width: 26px; height: 26px; }
@media (max-width: 640px) { .wa-float { width: 56px; padding: 0; justify-content: center; right: 14px; bottom: 14px; } .wa-float span { display: none; } }

/* ---------- Reveal on scroll (only with JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .wa-float, .cta-band, .hero__map, .page-hero__map { display: none !important; }
	.page-hero, .hero { background: none; color: #000; }
	a { text-decoration: underline; }
}

/* ---------- Page-specific additions ---------- */
.about-body .entry-content > p, .about-body .entry-content > h2, .about-body .entry-content > h3, .about-body .entry-content > ul { max-width: 780px; }
.entry-content .eyebrow-text { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: .4rem; }
.entry-content .wp-block-columns.ubsal-pillars { margin: 3rem 0; gap: 20px; }
.entry-content .pillar { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 40px); height: 100%; margin: 0; }
.entry-content .pillar > * + * { margin-top: .6rem; }
.entry-content .pillar h3 { margin-top: .4rem; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.entry-content .is-style-ubsal-pillar-dark, .entry-content .pillar--dark { background: var(--ink); color: #C9D2DF; border-color: var(--ink); }
.entry-content .pillar--dark h3 { color: var(--white); }
.entry-content .pillar__label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.entry-content .pillar--dark .pillar__label { color: var(--signal); }
.entry-content .wp-block-column > .pillar { height: 100%; }
.entry-content .ubsal-callout { margin-block: 2rem; }
.entry-content .ubsal-callout > *:first-child { margin-top: 0; }
.entry-content .ubsal-callout > *:last-child { margin-bottom: 0; }

.steps-list--compact li { padding: 0 0 22px 52px; }
.steps-list--compact li::before { width: 36px; height: 36px; font-size: .75rem; background: var(--signal); color: var(--ink); }
.steps-list--compact li::after { left: 17px; top: 40px; border-color: rgba(255, 255, 255, .2); }
.steps-list--compact h3 { font-size: 1.02rem; margin: 6px 0 .25rem; color: var(--white); }
.steps-list--compact p { font-size: .9rem; color: var(--steel-light) !important; }
.form-card__title { font-size: 1.6rem; font-stretch: 85%; margin-bottom: 1.5rem; }
.form-intro { margin-bottom: 1.5rem; }
.form-divider { border: 0; border-top: 1px solid var(--line); margin: 0 0 2rem; }
.contact-map { margin-top: clamp(40px, 5vw, 64px); }
.btn--wa { --btn-bg: var(--wa); --btn-fg: #fff; }
.btn--wa:hover { --btn-bg: #1EBE5A; color: #fff; }
.aside-card .contact-list { gap: 18px; }
.page-title--article { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 24ch; }
.page-hero--article { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero__aside .manifest-label { color: var(--signal); }
.page-hero--service .eyebrow .icon { width: 18px; height: 18px; }
.service-main .section-head .eyebrow { margin-bottom: .6rem; }
.service-main > .sub-block:first-child .section-head { margin-bottom: 16px; }

.entry-content .eyebrow-text + h2, .entry-content .eyebrow-text + .wp-block-heading { margin-top: .3em; }
.entry-content > .wp-block-group.ubsal-callout { max-width: 980px; }

/* Core block widgets inside the blog sidebar */
.sidebar > * { min-width: 0; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.widget .wp-block-search__input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1.5px solid #D4D1C6; border-radius: var(--radius); }
.widget .wp-block-search__button { min-height: 46px; padding: 0 16px; margin: 0; background: var(--ink); color: var(--white); border: 0; border-radius: var(--radius); font-weight: 600; cursor: pointer; }
.widget .wp-block-search__label, .widget h2.wp-block-heading { display: block; font-family: var(--font-display); font-stretch: 88%; font-weight: 750; font-size: 1.1rem; margin-bottom: 1rem; }
.quick-quote { container-type: inline-size; }
@container (max-width: 400px) {
	.quick-quote__route { grid-template-columns: 1fr; }
	.quick-quote__arrow { display: none; }
}
