/*
Theme Name: Ariosh Custom
Description: Custom theme rebuilding the Ariosh Elementor/Hello Elementor design as native templates, with ACF-editable content.
Author: Ariosh
Version: 1.0.0
Text Domain: ariosh
*/

/* Real SF Pro Text font files (pulled from the original site's export) —
   using @font-face instead of just the family name so it renders
   consistently cross-browser/OS, not just on Mac (which has a similar
   system font that made this easy to miss visually before). */
@font-face {
	font-family: 'SF Pro Text';
	src: url('assets/fonts/FontsFree-Net-SFProText-Light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'SF Pro Text';
	src: url('assets/fonts/FontsFree-Net-SFProText-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'SF Pro Text';
	src: url('assets/fonts/FontsFree-Net-SFProText-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'SF Pro Text';
	src: url('assets/fonts/FontsFree-Net-SFProText-Semibold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'SF Pro Text';
	src: url('assets/fonts/FontsFree-Net-SFProText-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'SF Pro Text';
	src: url('assets/fonts/FontsFree-Net-SFProText-Heavy.ttf') format('truetype');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'SF Pro Text';
	src: url('assets/fonts/FontsFree-Net-SFProText-MediumItalic.ttf') format('truetype');
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'SF Pro Text';
	src: url('assets/fonts/FontsFree-Net-SFProText-BoldItalic.ttf') format('truetype');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

:root {
	/* Brand colors — pulled from the Elementor global palette */
	--color-primary: #6EC1E4;
	--color-secondary: #54595F;
	--color-text: #7A7A7A;
	--color-accent: #61CE70;
	--color-heading: #173071;
	--color-white: #FFFFFF;

	/* Typography — global font family/weights from Elementor settings */
	--font-base: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--fw-primary: 600;
	--fw-secondary: 400;
	--fw-text: 400;
	--fw-accent: 500;

	/* Layout */
	--container-width: 1200px;
	--container-padding: 20px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-base);
	font-weight: var(--fw-text);
	color: var(--color-text);
	line-height: 1.6;
}

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

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--color-heading);
	font-weight: var(--fw-primary);
	margin: 0 0 16px;
	line-height: 1.25;
}

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

.btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 4px;
	font-weight: var(--fw-accent);
	font-size: 15px;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
	border: 2px solid transparent;
	cursor: pointer;
}

.btn-primary {
	background-color: var(--color-primary);
	color: var(--color-white);
}

.btn-primary:hover {
	background-color: #56b3dc;
}

.btn-outline {
	background-color: transparent;
	border-color: var(--color-white);
	color: var(--color-white);
}

.btn-outline:hover {
	background-color: var(--color-white);
	color: var(--color-secondary);
}

.section {
	padding: 50px 0;
	/* A tiny (1px), imperceptible overlap between any two adjacent
	   sections — this eliminates the hairline white seam that can
	   appear at section boundaries due to browser sub-pixel rounding,
	   without any of the real overlap risk that larger negative
	   margins caused elsewhere. */
	margin-bottom: -1px;
}

@media (max-width: 1024px) {
	.section { padding: 42px 0; }
}

@media (max-width: 767px) {
	.section { padding: 32px 0; }
	:root { --container-padding: 16px; }
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 18px 0;
}

.site-header.is-solid {
	position: relative;
	background-color: var(--color-secondary);
}

.site-header__inner {
	display: flex;
	align-items: center;
}

.site-header__logo {
	margin-right: auto;
}

.site-header__logo img {
	max-height: 34px;
}

.site-header__nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.primary-menu {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 4px;
}

.primary-menu a {
	display: inline-block;
	padding: 6px 20px;
	color: #F8F8F8;
	font-weight: 400;
	font-size: 16px;
	transition: color .2s ease;
}

.primary-menu a:hover,
.primary-menu li.current-menu-item > a {
	color: #FFFFFF;
}

.site-header__cta {
	margin-left: 16px;
}

/* --- Header icons: search + site-menu toggle --- */

.site-header__icons {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: 20px;
}

.icon-btn {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color .2s ease;
}

.icon-btn:hover {
	background-color: rgba(255,255,255,.12);
}

.site-menu-toggle {
	position: relative;
	z-index: 210;
	width: 36px;
	height: 36px;
	padding: 0;
}

.site-menu-toggle span {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 2px;
	background: #fff;
	border-radius: 1px;
	transform: translate(-50%, -50%);
	transition: transform .2s ease, opacity .2s ease;
}

.site-menu-toggle span:nth-child(1) { margin-top: -7px; }
.site-menu-toggle span:nth-child(2) { margin-top: 0; }
.site-menu-toggle span:nth-child(3) { margin-top: 7px; }

.site-menu-toggle[aria-expanded="true"] span:nth-child(1) {
	margin-top: 0;
	transform: translate(-50%, -50%) rotate(45deg);
}
.site-menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.site-menu-toggle[aria-expanded="true"] span:nth-child(3) {
	margin-top: 0;
	transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 1024px) {
	.primary-menu,
	.site-header__cta { display: none; }
}

/* --- Search bar: drops down under the header, full width --- */

.site-search-bar {
	max-height: 0;
	overflow: hidden;
	background-color: rgba(15, 27, 68, .96);
	transition: max-height .3s ease;
}

.site-search-bar.is-open {
	max-height: 90px;
}

.site-search-bar__form {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 20px;
}

.site-search-bar__form input[type="search"] {
	flex: 1;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255,255,255,.35);
	color: #fff;
	font-size: 18px;
	padding: 6px 2px;
	font-family: var(--font-base);
}

.site-search-bar__form input[type="search"]::placeholder {
	color: rgba(255,255,255,.55);
}

.site-search-bar__form input[type="search"]:focus {
	outline: none;
	border-bottom-color: var(--color-primary);
}

.site-search-bar__form button {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	padding: 6px;
}

/* --- Site menu panel: full sitemap, slides in from the RIGHT --- */

.site-menu-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility 0s linear .25s;
	z-index: 190;
}

.site-menu-backdrop.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .25s ease;
}

.site-menu-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 340px;
	max-width: 86vw;
	background-color: #173071;
	color: #fff;
	z-index: 200;
	transform: translateX(100%);
	transition: transform .3s ease;
	overflow-y: auto;
	padding: 20px 28px 30px;
	display: flex;
	flex-direction: column;
	box-shadow: -4px 0 24px rgba(0,0,0,.3);
}

.site-menu-panel.is-open {
	transform: translateX(0);
}

.site-menu-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.site-menu-panel__close {
	background: rgba(255,255,255,.08);
	border: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease;
}

.site-menu-panel__close:hover {
	background: rgba(255,255,255,.18);
}

.site-menu-panel__body {
	flex-grow: 1;
}

.site-menu-panel__item {
	margin-bottom: 22px;
}

.site-menu-panel__parent {
	display: block;
	color: #fff;
	font-weight: 600;
	font-size: 16px;
	padding: 6px 2px;
	transition: color .2s ease;
}

.site-menu-panel__parent:hover {
	color: var(--color-primary);
}

.site-menu-panel__child {
	display: block;
	color: #B9C2DA;
	font-weight: 400;
	font-size: 14px;
	padding: 5px 2px 5px 16px;
	transition: color .2s ease, padding-left .2s ease;
}

.site-menu-panel__child:hover {
	color: #fff;
	padding-left: 20px;
}

body.site-menu-open {
	overflow: hidden;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
	background-color: #0E1B44;
	color: #C9CBCD;
	padding: 70px 0 0;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-bottom: 50px;
}

@media (max-width: 900px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer h4 {
	color: #fff;
	font-size: 17px;
	margin-bottom: 20px;
}

.site-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__list li {
	margin-bottom: 12px;
}

.site-footer__list a:hover {
	color: var(--color-primary);
}

.site-footer__social {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

.site-footer__social a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #6b7075;
	display: flex;
	align-items: center;
	justify-content: center;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,.1);
	padding: 22px 0;
	text-align: center;
	font-size: 13px;
}

/* ==========================================================================
   Homepage
   ========================================================================== */

.home-hero {
	background-color: var(--color-secondary);
	color: #fff;
	padding: 220px 0 100px;
	text-align: left;
}

.home-hero h1 {
	color: #fff;
	font-size: 44px;
	line-height: 1.2;
	max-width: 700px;
	margin-bottom: 20px;
}

.home-hero__text {
	max-width: 560px;
	color: #D5D8DB;
	margin-bottom: 28px;
}

@media (max-width: 767px) {
	.home-hero { padding: 140px 0 60px; }
	.home-hero h1 { font-size: 30px; }
}

.teaser-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 767px) {
	.teaser-grid { grid-template-columns: 1fr; }
}

.teaser-card {
	display: block;
	background-color: #F5F7FA;
	border-radius: 8px;
	padding: 40px 30px;
	transition: background-color .2s ease;
}

.teaser-card:hover {
	background-color: #EBEEF2;
}

.teaser-card h3 {
	margin-bottom: 12px;
}

.teaser-card__link {
	color: var(--color-primary);
	font-weight: var(--fw-accent);
	font-size: 14px;
}

.home-tech-services {
	text-align: center;
}

.home-tech-services__intro {
	max-width: 700px;
	margin: 0 auto 50px;
}

.service-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	text-align: left;
}

@media (max-width: 1024px) {
	.service-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.service-cards { grid-template-columns: 1fr; }
}

.service-card {
	border: 1px solid #E5E7EA;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.service-card__image img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
}

.service-card h3,
.service-card p {
	padding-left: 20px;
	padding-right: 20px;
}

.service-card h3 {
	margin-top: 20px;
}

.service-card p {
	font-size: 14px;
	flex-grow: 1;
}

.btn-outline-dark {
	margin: 0 20px 20px;
	align-self: flex-start;
	border-color: var(--color-secondary);
	color: var(--color-secondary);
}

.btn-outline-dark:hover {
	background-color: var(--color-secondary);
	color: #fff;
}

/* ==========================================================================
   Fancy pill buttons — dark pill, white label, circular icon badge that
   morphs from a dot into an arrow on hover.
   ========================================================================== */

.btn-fancy {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	border-radius: 999px;
	padding: 6px 8px 6px 26px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: padding .25s ease, background-color .2s ease;
}

.btn-fancy--dark {
	background-color: #14152B;
	color: #fff;
}

.btn-fancy--light {
	background-color: #fff;
	color: #14152B;
}

.btn-fancy:hover {
	padding-right: 10px;
}

.btn-fancy__label {
	white-space: nowrap;
}

.btn-fancy__icon {
	position: relative;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background-color: var(--color-primary);
	flex-shrink: 0;
	overflow: hidden;
}

.btn-fancy__dot,
.btn-fancy__arrow {
	position: absolute;
	top: 50%;
	left: 50%;
	transition: transform .25s ease, opacity .25s ease;
}

.btn-fancy__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #14152B;
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

.btn-fancy__arrow {
	color: #14152B;
	transform: translate(-50%, -50%) translateX(-8px);
	opacity: 0;
}

.btn-fancy:hover .btn-fancy__dot {
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
}

.btn-fancy:hover .btn-fancy__arrow {
	transform: translate(-50%, -50%) translateX(0);
	opacity: 1;
}

.btn-fancy--sm {
	gap: 10px;
	padding: 4px 6px 4px 18px;
	font-size: 13px;
}

.btn-fancy--sm .btn-fancy__icon {
	width: 28px;
	height: 28px;
}

.btn-fancy--sm .btn-fancy__dot {
	width: 6px;
	height: 6px;
}

.btn-fancy--sm .btn-fancy__arrow {
	width: 11px;
	height: 11px;
}

/* ==========================================================================
   (team-card styles consolidated further down under "Team cards: compact")
   ========================================================================== */

/* ==========================================================================
   Flexible Content Blocks
   ========================================================================== */

.block-hero {
	background-color: var(--color-secondary);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 220px 0 100px;
}

.block-hero h1 {
	color: #fff;
	font-size: 44px;
	line-height: 1.2;
	max-width: 700px;
	margin-bottom: 20px;
}

.block-hero__text {
	max-width: 560px;
	color: #D5D8DB;
	margin-bottom: 28px;
}

.block-hero__actions { display: flex; gap: 14px; }

@media (max-width: 767px) {
	.block-hero { padding: 140px 0 60px; }
	.block-hero h1 { font-size: 30px; }
}

.eyebrow {
	color: #1D1D1F;
	font-weight: 700;
	font-size: 15px;
	margin-bottom: 8px;
}

.card-grid {
	display: grid;
	gap: 24px;
	margin-top: 30px;
	justify-content: center;
}

.card-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.card-grid--cols-3, .card-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.card-grid { grid-template-columns: 1fr !important; }
}

.content-card {
	border: 1px solid #E5E7EA;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding-bottom: 20px;
}

.content-card__image img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
}

.content-card h3, .content-card p, .content-card__link {
	padding-left: 20px;
	padding-right: 20px;
}

.content-card h3 { margin-top: 20px; }
.content-card p { font-size: 14px; flex-grow: 1; }
.content-card__link {
	color: var(--color-primary);
	font-weight: var(--fw-accent);
	font-size: 14px;
}

.image-text-grid {
	display: grid;
	grid-template-columns: minmax(200px, 280px) 1fr;
	gap: 36px;
	align-items: center;
}

/* Image+text rows (service descriptions) read as a compact list in
   the original design, not full-height sections — tighten padding
   specifically for these so a run of 4 rows doesn't blow up the
   page length. */
.block-image-text {
	padding-top: 26px;
	padding-bottom: 26px;
}

/* Standalone intro statement (no heading, just text) reads as a bold,
   heading-weight declaration in the original design — not a regular
   body paragraph. */
.block-heading-text--intro-only .block-heading-text__body {
	font-size: 22px;
	font-weight: 700;
	color: inherit;
	line-height: 1.4;
}

.block-heading-text--intro-only.block-heading-text--dark .block-heading-text__body {
	color: #fff;
}

.image-text-grid--reverse { direction: rtl; }
.image-text-grid--reverse > * { direction: ltr; }

@media (max-width: 767px) {
	.image-text-grid { grid-template-columns: 1fr; }
}

.image-text-grid__image img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	border-radius: 8px;
}

/* --- Hero: video/image background, overlay, divider --- */

.block-hero {
	position: relative;
	min-height: 640px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: #fff;
	padding-bottom: 90px;
	margin-bottom: -1px;
}

.block-hero__video,
.block-hero__bg-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background-size: cover;
	background-position: center;
}

.block-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.35) 100%);
}

.block-hero__content {
	position: relative;
	z-index: 1;
}

.block-hero__divider {
	display: block;
	width: 70px;
	height: 2px;
	background: #fff;
	margin-bottom: 18px;
}

.block-hero h1 {
	color: #fff;
	font-size: 42px;
	line-height: 1.25;
	max-width: 680px;
	margin-bottom: 16px;
}

.block-hero__text {
	max-width: 560px;
	color: #E6E8EA;
	margin-bottom: 26px;
}

.block-hero__actions { display: flex; gap: 14px; }

@media (max-width: 767px) {
	.block-hero { min-height: 480px; padding-bottom: 50px; }
	.block-hero h1 { font-size: 28px; }
}

/* --- Card grid: overlay style (full-bleed image teaser cards) --- */

.card-grid--overlay {
	gap: 4px;
}

.content-card--overlay {
	position: relative;
	display: block;
	min-height: 340px;
	background-size: cover;
	background-position: center;
	background-color: var(--color-secondary);
	color: #fff;
	overflow: hidden;
	border: none;
	border-radius: 6px;
}

.content-card--overlay__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(23,48,113,.05) 0%, rgba(23,48,113,.35) 55%, rgba(23,48,113,.8) 100%);
	transition: background .2s ease;
}

.content-card--overlay:hover .content-card--overlay__scrim {
	background: rgba(23,48,113,.85);
}

.content-card--overlay__content {
	position: absolute;
	left: 24px;
	bottom: 22px;
	right: 24px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.content-card--overlay h3 {
	color: #fff;
	margin: 0;
}

/* --- Image strip (hover-reveal panels) --- */

.image-strip {
	display: flex;
	min-height: 560px;
}

.image-strip__panel {
	position: relative;
	flex: 1;
	background-size: cover;
	background-position: center;
	background-color: var(--color-secondary);
	color: #fff;
	overflow: hidden;
	transition: flex .35s ease;
	display: flex;
	align-items: flex-end;
	cursor: pointer;
	text-decoration: none;
}

.image-strip__panel:hover {
	flex: 1.6;
}

.image-strip__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.65) 100%);
}

.image-strip__content {
	position: relative;
	z-index: 1;
	padding: 24px;
}

.image-strip__content h3 {
	color: #fff;
	margin-bottom: 0;
	font-size: 18px;
}

.image-strip__content p {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	font-size: 13px;
	margin-top: 0;
	transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
}

.image-strip__panel:hover .image-strip__content p {
	max-height: 220px;
	opacity: 1;
	margin-top: 10px;
}

@media (max-width: 900px) {
	.image-strip { flex-direction: column; min-height: auto; }
	.image-strip__panel { min-height: 180px; }
	.image-strip__panel:hover { flex: 1; }
}

/* --- Image + Text: dark theme variant --- */

.block-image-text--dark {
	background-color: #173071;
	color: #C9CFE0;
	padding-top: 60px;
	padding-bottom: 60px;
}

.block-image-text--dark h2 {
	color: #fff;
}

.block-image-text--dark + .block-image-text--dark {
	padding-top: 0;
}

/* --- Dark theme variants for card-grid and heading-text, so the
   teaser cards → image strip → intro → service rows read as one
   continuous navy section, matching the original design, instead
   of breaking up into separate white/dark chunks. --- */

.block-card-grid--dark,
.block-heading-text--dark {
	background-color: #173071;
	color: #C9CFE0;
}

.block-card-grid--dark h2,
.block-heading-text--dark h2 {
	color: #fff;
}

.block-heading-text--center {
	text-align: center;
}

.block-heading-text--center .block-heading-text__body,
.block-heading-text--center.block-heading-text p {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.block-heading-text--heading-center .eyebrow,
.block-heading-text--heading-center h2 {
	text-align: center;
}

/* Consecutive same-theme sections should read as one connected flow.
   Dark sections get a small, bounded negative margin (safe here since
   dark blocks tend to have substantial content); light sections use
   the safer padding-only approach, since a short light section
   (e.g. a not-yet-filled-in block) previously caused real overlap
   with a larger negative value. */
/* Consecutive dark-themed sections: drop the SECOND section's own top
   padding only — no negative margin. Negative margins compound
   unpredictably across long chains of sections (as seen on the
   Services page, where several dark blocks in a row caused real
   content to overlap), so this is the safe version: the guaranteed
   minimum gap is always the first section's own bottom padding, and
   it can never eat into visible content, no matter how many dark
   sections are chained together. */
.theme-dark + .theme-dark {
	padding-top: 0;
}

.theme-light + .theme-light {
	padding-top: 0;
}

/* --- Two column (was previously missing entirely) --- */

.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	text-align: center;
}

.two-col > div {
	max-width: 420px;
	margin: 0 auto;
}

@media (max-width: 767px) {
	.two-col { grid-template-columns: 1fr; }
}

/* --- Clients logo marquee: auto-scrolling, seamless loop --- */

.clients-marquee {
	overflow: hidden;
	margin-top: 30px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-marquee__track {
	display: flex;
	align-items: center;
	gap: 70px;
	width: max-content;
	animation: clients-scroll 28s linear infinite;
}

.clients-marquee:hover .clients-marquee__track {
	animation-play-state: paused;
}

.clients-marquee__logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.clients-marquee__logo img {
	max-height: 46px;
	width: auto;
	filter: grayscale(1);
	opacity: .75;
	transition: filter .2s ease, opacity .2s ease;
}

.clients-marquee__logo:hover img {
	filter: grayscale(0);
	opacity: 1;
}

.clients-placeholder {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: 30px;
	flex-wrap: wrap;
}

.clients-placeholder__box {
	width: 110px;
	height: 50px;
	border-radius: 6px;
	background-color: #F0F2F5;
}

.clients-placeholder__note {
	text-align: center;
	font-size: 13px;
	color: #A0A5AC;
	margin-top: 16px;
}

@keyframes clients-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.clients-marquee__track { animation: none; }
}

.block-heading-text__actions {
	margin-top: 24px;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

/* --- Heading + Text: background image variant (e.g. About "Who We Are") --- */

.block-heading-text--bg {
	position: relative;
	background-size: cover;
	background-position: center;
	padding-top: 100px;
	padding-bottom: 80px;
	color: #fff;
	overflow: hidden;
}

.block-heading-text__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.block-heading-text--bg h2,
.block-heading-text--bg .eyebrow {
	color: #fff;
}

.block-heading-text__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(23,48,113,.82) 0%, rgba(23,48,113,.55) 55%, rgba(23,48,113,.3) 100%);
}

.block-heading-text--bg .container {
	position: relative;
	z-index: 1;
}

/* --- Stats: icon + dark theme --- */

.block-stats--dark {
	background-color: #173071;
	color: #C9CFE0;
}

.block-stats--dark .stat h3 {
	color: #fff;
}

.block-stats--dark .stat p {
	color: #C9CFE0;
}

.stat__icon {
	color: var(--color-primary);
	margin: 0 auto 14px;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(110, 193, 228, .12);
	border-radius: 12px;
}

.block-stats--dark .stat__icon {
	background-color: rgba(255, 255, 255, .1);
}

/* --- Stats: base layout (was previously missing entirely) --- */

.stats-row {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	margin-top: 8px;
	text-align: center;
}

.stat {
	flex: 1;
	min-width: 140px;
}

.stat h3 {
	font-size: 34px;
	margin-bottom: 4px;
}

.stat p {
	color: var(--color-text);
	font-size: 14px;
	margin: 0;
}

@media (max-width: 600px) {
	.stats-row { gap: 28px; }
}

/* --- Team grid: dark theme --- */

.block-team-grid--dark {
	background-color: #173071;
	color: #C9CFE0;
}

.block-team-grid--dark h2,
.block-team-grid--dark .team-card__name {
	color: #fff;
}

.block-team-grid--dark .team-card__title {
	color: #B9C2DA;
}

/* --- Team cards: compact (photo, name, role, LinkedIn, bio trigger) --- */

.team-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 30px;
	row-gap: 60px;
	margin-top: 40px;
	align-items: start;
}

@media (max-width: 900px) {
	.team-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.team-cards { grid-template-columns: 1fr; }
}

.team-card {
	display: flex;
	flex-direction: column;
}

.team-card__image img {
	width: 100%;
	aspect-ratio: 4/5;
	object-fit: cover;
	object-position: center top;
	border-radius: 6px;
	filter: grayscale(1) contrast(1.05);
	margin-bottom: 14px;
}

.team-card__name {
	color: var(--color-primary);
	font-size: 16px;
	margin-bottom: 2px;
}

.block-team-grid:not(.block-team-grid--dark) .team-card__name {
	color: var(--color-heading);
}

.team-card__title {
	font-size: 13px;
	color: #B9C2DA;
	margin-bottom: 12px;
	line-height: 1.4;
}

.block-team-grid:not(.block-team-grid--dark) .team-card__title {
	color: var(--color-text);
}

.team-card__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
}

.team-card__linkedin {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.1);
	color: #fff;
	flex-shrink: 0;
	transition: background-color .2s ease;
}

.team-card__linkedin:hover {
	background-color: var(--color-primary);
}

.block-team-grid:not(.block-team-grid--dark) .team-card__linkedin {
	background: #EEF1F4;
	color: var(--color-heading);
}

.team-card__bio-btn {
	background: none;
	border: 1px solid rgba(255,255,255,.35);
	color: #fff;
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.team-card__bio-btn:hover {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
	color: #0E1B44;
}

.block-team-grid:not(.block-team-grid--dark) .team-card__bio-btn {
	border-color: #D8DCE1;
	color: var(--color-heading);
}

/* --- Team bio drawer: slides in from the right --- */

.team-bio-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility 0s linear .25s;
	z-index: 240;
}

.team-bio-backdrop.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .25s ease;
}

.team-bio-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 420px;
	max-width: 88vw;
	background-color: #173071;
	color: #fff;
	z-index: 250;
	transform: translateX(100%);
	transition: transform .3s ease;
	overflow-y: auto;
	padding: 50px 36px;
	box-shadow: -4px 0 24px rgba(0,0,0,.3);
}

.team-bio-panel.is-open {
	transform: translateX(0);
}

.team-bio-panel__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(255,255,255,.08);
	border: none;
	color: #fff;
	font-size: 24px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	cursor: pointer;
}

.team-bio-panel__name {
	color: var(--color-primary);
	margin-bottom: 4px;
}

.team-bio-panel__title {
	color: #B9C2DA;
	font-size: 14px;
	margin-bottom: 24px;
}

.team-bio-panel__bio p {
	color: #C9CFE0;
	font-size: 14px;
	margin: 0 0 16px;
}

body.team-bio-open {
	overflow: hidden;
}

/* --- Values grid: dark theme --- */

.block-values-grid--dark {
	background-color: #173071;
}

.block-values-grid--dark h2 {
	color: #fff;
}

/* --- Values grid: base layout — chevron + title by default, description
   reveals on hover (matches original design's accordion-style cards) --- */

.values-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 36px;
}

@media (max-width: 767px) {
	.values-grid { grid-template-columns: 1fr; }
}

.flip-card {
	background-color: #0B1B3D;
	border-radius: 6px;
	padding: 40px 28px;
	text-align: center;
	cursor: default;
	transition: background-color .25s ease;
}

.flip-card__chevron {
	color: var(--color-primary);
	margin-bottom: 14px;
	transition: transform .25s ease;
}

.flip-card:hover .flip-card__chevron {
	transform: rotate(180deg);
}

.flip-card h3 {
	color: #fff;
	font-size: 18px;
	margin: 0;
}

.flip-card p {
	color: #C9CFE0;
	font-size: 14px;
	margin: 12px 0 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height .3s ease, opacity .3s ease, margin-top .3s ease;
}

.flip-card:hover p {
	max-height: 200px;
	opacity: 1;
}

.flip-card:hover {
	background-color: #0E2350;
}

/* On a light section (not dark theme), give the cards a light-appropriate
   base look instead of the near-black styling above. */
.block-values-grid:not(.block-values-grid--dark) .flip-card {
	background-color: #F5F7FA;
}

.block-values-grid:not(.block-values-grid--dark) .flip-card:hover {
	background-color: #EBEEF2;
}

.block-values-grid:not(.block-values-grid--dark) .flip-card h3 {
	color: var(--color-heading);
}

.block-values-grid:not(.block-values-grid--dark) .flip-card p {
	color: var(--color-text);
}

/* collapse padding between adjacent dark sections so the color reads
   as one continuous block rather than visibly stacked boxes */
.block-card-grid--dark + .block-image-strip,
.block-image-strip + .block-heading-text--dark,
.block-heading-text--dark + .block-image-text--dark {
	margin-top: 0;
}

.block-heading-text--dark {
	padding-bottom: 20px;
}
