/* ==========================================================================
   Bracedge – main stylesheet
   Built from "Brace Website v2" design.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
	--be-navy: #203864;
	--be-navy-dark: #1a2f55;
	--be-sky: #c8e8fb;
	--be-sky-light: #d7eefc;
	--be-cyan: #1ba3dd;
	--be-text: #5a5a5a;
	--be-text-dark: #3d3d3d;
	--be-muted: #8a8a8a;
	--be-line: #d9d9d9;
	--be-white: #fff;
	--be-grey-panel: #efefef;

	--be-font-head: "Arya", "Trebuchet MS", sans-serif;
	--be-font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
	--be-font-ui: "Roboto", "Segoe UI", Arial, sans-serif;

	--be-container: 1200px;
	--be-gutter: 24px;
	--be-edge: max(var(--be-gutter), calc((100vw - var(--be-container)) / 2));
	--be-header-h: 96px;
	--be-section: clamp(64px, 8vw, 120px);
	--be-shadow: 0 18px 40px rgba(20, 35, 65, .16);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	font-family: var(--be-font-body);
	font-size: 16px;
	line-height: 1.65;
	color: var(--be-text);
	background: var(--be-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--be-navy); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, opacity .2s; }
a:hover { color: var(--be-cyan); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--be-navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--be-cyan); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: var(--be-navy);
}

.be-container {
	width: 100%;
	max-width: calc(var(--be-container) + var(--be-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--be-gutter);
}
.be-section { padding-block: var(--be-section); }
.be-section--tight { padding-block: calc(var(--be-section) * .6); }

.be-title {
	font-family: var(--be-font-head);
	font-weight: 700;
	font-size: clamp(32px, 3.1vw, 44px);
	letter-spacing: .01em;
	color: var(--be-navy);
	text-align: center;
	margin-bottom: .6em;
}
.be-title--light { color: #fff; }
.be-title--left { text-align: left; }
.be-lead {
	font-weight: 600;
	font-size: clamp(17px, 1.55vw, 22px);
	line-height: 1.6;
	color: var(--be-text);
}
.be-intro {
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
	font-size: clamp(15px, 1.15vw, 16px);
	line-height: 1.75;
}

/* Buttons */
.be-btn {
	display: inline-block;
	font-family: var(--be-font-head);
	font-weight: 700;
	font-size: 17px;
	line-height: 1;
	color: var(--be-navy);
	border: 1.5px solid var(--be-navy);
	border-radius: 3px;
	padding: 12px 16px 10px;
	background: transparent;
}
.be-btn:hover { background: var(--be-navy); color: #fff; }

.be-btn-pill {
	display: inline-flex;
	align-items: center;
	gap: 28px;
	font-family: var(--be-font-ui);
	font-size: 15px;
	color: var(--be-text-dark);
	border: 1px solid var(--be-navy);
	border-radius: 5px;
	padding: 9px 10px 9px 12px;
}
.be-btn-pill .be-svg-arrow { width: 24px; height: 24px; color: var(--be-navy); }
.be-btn-pill:hover { background: var(--be-navy); color: #fff; }
.be-btn-pill:hover .be-svg-arrow { color: #fff; }
.be-btn-pill:hover .be-svg-arrow path { stroke: var(--be-navy); }

.be-svg { display: inline-block; width: 1em; height: 1em; vertical-align: middle; flex: none; }
.be-arrow-link { display: inline-flex; color: var(--be-navy); line-height: 0; }
.be-arrow-link .be-svg-arrow { width: 20px; height: 20px; transition: transform .2s; }
.be-arrow-link:hover .be-svg-arrow { transform: translateX(4px); }

/* Mask icons (take the current text colour) */
.be-icon {
	display: inline-block;
	width: 64px;
	height: 64px;
	background-color: currentColor;
	-webkit-mask: var(--be-icon) center / contain no-repeat;
	mask: var(--be-icon) center / contain no-repeat;
	flex: none;
}

/* Accent bars beside images (design detail) */
.be-barred { position: relative; }
.be-barred::before,
.be-barred::after {
	content: "";
	position: absolute;
	width: clamp(110px, 15vw, 206px);
	height: clamp(14px, 1.8vw, 25px);
	background: var(--be-navy);
}
.be-barred--right::before { right: 0; top: calc(clamp(14px, 1.8vw, 25px) * -1); }
.be-barred--right::after  { right: 0; bottom: calc(clamp(14px, 1.8vw, 25px) * -1); }
.be-barred--left::before  { left: 0; top: calc(clamp(14px, 1.8vw, 25px) * -1); }
.be-barred--left::after   { left: 0; bottom: calc(clamp(14px, 1.8vw, 25px) * -1); }
.be-barred img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 3. Header ---------- */
.be-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	height: var(--be-header-h);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.admin-bar .be-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .be-header { top: 0; } }
.be-header__inner {
	max-width: calc(1360px + var(--be-gutter) * 2);
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.be-logo img, .be-header .custom-logo { width: clamp(150px, 16vw, 222px); height: auto; }
.be-header .custom-logo-link { display: block; }

.be-menu { list-style: none; display: flex; align-items: center; gap: clamp(18px, 3.2vw, 52px); padding-top: 14px; }
.be-menu > li { position: relative; }
.be-menu a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	color: var(--be-text);
	padding: 6px 0;
}
.be-menu a:hover { color: var(--be-navy); }
.be-menu .current-menu-item > a,
.be-menu .current-menu-ancestor > a,
.be-menu .current_page_item > a,
.be-menu .current-page-ancestor > a {
	color: var(--be-navy);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 1.5px;
}
.be-menu .be-svg-download { width: 26px; height: 26px; color: #222; }
.be-menu .sub-menu {
	list-style: none;
	position: absolute;
	top: 100%;
	left: -16px;
	min-width: 240px;
	background: #fff;
	box-shadow: var(--be-shadow);
	padding: 10px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: .2s;
}
.be-menu li:hover > .sub-menu,
.be-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.be-menu .sub-menu a { display: block; padding: 8px 18px; font-size: 15px; }

.be-nav-toggle {
	display: none;
	width: 44px; height: 44px;
	border: 0; background: transparent; cursor: pointer;
	position: relative;
}
.be-nav-toggle__bar,
.be-nav-toggle__bar::before,
.be-nav-toggle__bar::after {
	position: absolute; left: 10px; width: 24px; height: 2px; background: var(--be-navy); content: ""; transition: .25s;
}
.be-nav-toggle__bar { top: 21px; }
.be-nav-toggle__bar::before { left: 0; top: -7px; }
.be-nav-toggle__bar::after { left: 0; top: 7px; }
.be-nav-open .be-nav-toggle__bar { background: transparent; }
.be-nav-open .be-nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.be-nav-open .be-nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* ---------- 4. Heroes ---------- */
.be-hero {
	position: relative;
	height: clamp(320px, 40vw, 680px);
	background: #c9d3df center / cover no-repeat;
}
.be-hero--home {
	display: flex;
	align-items: flex-end;
	background-position: left center;
	background-size: auto 100%;
	background-color: var(--be-navy);
}
.be-hero--home::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(52, 76, 114, .10) 0%, rgba(52, 76, 114, .35) 28%, rgba(46, 70, 110, .92) 46%, #344c72 60%);
}
.be-hero__content {
	position: relative;
	width: 100%;
	padding-bottom: clamp(40px, 5vw, 76px);
}
.be-hero__title {
	margin: 0 0 0 auto;
	width: min(100%, 680px);
	font-family: var(--be-font-body);
	font-weight: 600;
	font-size: clamp(28px, 3.9vw, 58px);
	line-height: 1.25;
	color: #fff;
	letter-spacing: .005em;
}

/* ---------- 5. Home: About ---------- */
.be-home-about { padding-top: clamp(56px, 7vw, 100px); }
.be-home-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: clamp(32px, 5vw, 72px);
}
.be-home-about__text {
	padding-left: var(--be-edge);
	text-align: center;
	padding-top: 6px;
}
.be-home-about__text .be-lead { margin-bottom: 18px; }
.be-home-about__text p { font-size: clamp(15px, 1.2vw, 17px); }
.be-home-about__media {
	height: clamp(420px, 60vw, 815px);
	margin-top: clamp(14px, 1.8vw, 25px);
}
.be-home-about .be-btn { margin-top: 18px; }
.be-cred { margin-top: clamp(40px, 4.5vw, 64px); }
.be-cred__title {
	font-family: var(--be-font-head);
	font-weight: 400;
	font-size: clamp(20px, 1.8vw, 25px);
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--be-text);
	text-align: center;
	margin-bottom: 30px;
}
.be-cred__grid {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px 24px;
	text-align: center;
	font-size: clamp(15px, 1.2vw, 17px);
	line-height: 1.6;
}
.be-cred__grid strong { display: block; color: var(--be-text-dark); font-size: clamp(16px, 1.3vw, 18px); }

/* ---------- 6. Home: Services band ---------- */
.be-services-band {
	position: relative;
	margin-top: clamp(72px, 9vw, 130px);
	padding-bottom: clamp(48px, 6vw, 90px);
}
.be-services-band::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: calc(100% - clamp(160px, 22vw, 320px));
	min-height: 360px;
	background: linear-gradient(rgba(28, 52, 94, .86), rgba(28, 52, 94, .86)), var(--be-band-bg) center / cover no-repeat, var(--be-navy);
}
.be-services-band .be-container { position: relative; }
.be-services-band .be-title { padding-top: clamp(48px, 5.5vw, 88px); margin-bottom: clamp(36px, 4.5vw, 64px); }
.be-services-card {
	background: #fff;
	box-shadow: 0 26px 50px rgba(0, 0, 0, .18);
	padding: clamp(24px, 3.2vw, 46px) clamp(18px, 2.2vw, 30px) clamp(20px, 2.2vw, 32px);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.be-services-card__item { display: flex; flex-direction: column; }
.be-services-card__item h3 {
	font-family: var(--be-font-body);
	font-weight: 400;
	font-size: clamp(19px, 1.85vw, 27px);
	line-height: 1.42;
	color: var(--be-text-dark);
	padding: 0 clamp(6px, 1.2vw, 16px);
	margin-bottom: 10px;
	min-height: 4.3em;
}
.be-services-card__item .be-arrow-link { margin: 0 clamp(6px, 1.2vw, 16px) 18px; }
.be-services-card__img { aspect-ratio: 196 / 227; overflow: hidden; margin-top: auto; }
.be-services-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.be-services-card__item:hover .be-services-card__img img { transform: scale(1.05); }
.be-services-card__item h3 a { color: inherit; }
.be-services-card__item h3 a:hover { color: var(--be-navy); }

/* ---------- 7. Home: Sectors ---------- */
.be-sectors-home {
	display: grid;
	grid-template-columns: 55fr 45fr;
	margin-top: clamp(40px, 5vw, 80px);
	min-height: clamp(520px, 46vw, 680px);
}
.be-sectors-home__list {
	background: var(--be-navy);
	color: #fff;
	padding: clamp(48px, 5.5vw, 80px) clamp(32px, 6vw, 90px) clamp(40px, 4vw, 64px) var(--be-edge);
}
.be-sectors-home__list .be-title { text-align: left; margin-left: clamp(0px, 4.5vw, 64px); }
.be-sectors-home__items { list-style: none; max-width: 580px; }
.be-sectors-home__items li {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.4vw, 34px);
	padding: clamp(18px, 2vw, 26px) 0 clamp(16px, 1.6vw, 22px) clamp(0px, 4.5vw, 64px);
	border-bottom: 2px dotted rgba(255, 255, 255, .85);
}
.be-sectors-home__items li:last-child { border-bottom: 0; }
.be-sectors-home__items .be-icon { width: clamp(64px, 6vw, 92px); height: clamp(54px, 5vw, 78px); color: #fff; }
.be-sectors-home__items h3 {
	font-family: var(--be-font-body);
	font-weight: 400;
	font-size: clamp(19px, 1.85vw, 27px);
	line-height: 1.4;
	color: #fff;
	margin: 0 0 4px;
	max-width: 300px;
}
.be-sectors-home__items h3 a { color: #fff; }
.be-sectors-home__items .be-arrow-link { color: #fff; }
.be-sectors-home__items .be-arrow-link path { stroke: var(--be-navy); }
.be-sectors-home__items .be-svg-arrow { width: 18px; height: 18px; }

/* ---------- 8. Slider (vanilla) ---------- */
.be-slider { position: relative; overflow: hidden; height: 100%; min-height: 320px; background: #ddd; }
.be-slider__track { display: flex; height: 100%; transition: transform .6s ease; }
.be-slider__slide { flex: 0 0 100%; height: 100%; }
.be-slider__slide img { width: 100%; height: 100%; object-fit: cover; }
.be-slider__dots {
	position: absolute; left: 0; right: 0; bottom: clamp(18px, 2.4vw, 34px);
	display: flex; justify-content: center; align-items: center; gap: 8px;
}
.be-slider__dots button {
	width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0;
	background: #fff; cursor: pointer; transition: .25s;
}
.be-slider__dots button[aria-current="true"] { width: 30px; height: 30px; background: var(--be-navy); }
.be-slider--small-dots .be-slider__dots button { width: 7px; height: 7px; }
.be-slider--small-dots .be-slider__dots button[aria-current="true"] { width: 7px; height: 7px; background: var(--be-navy); }

/* ---------- 9. Testimonials ---------- */
.be-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 525px));
	justify-content: center;
	gap: clamp(24px, 6vw, 64px);
	margin-top: clamp(28px, 3.5vw, 56px);
}
.be-quote {
	margin: 0;
	border: 1px solid var(--be-line);
	border-radius: 8px;
	box-shadow: 0 14px 22px rgba(0, 0, 0, .10);
	padding: clamp(24px, 2.6vw, 38px) clamp(24px, 4vw, 56px) clamp(22px, 2.4vw, 34px);
	text-align: center;
	font-size: 15px;
	line-height: 1.65;
}
.be-quote blockquote { margin: 0 0 18px; }
.be-quote figcaption { font-weight: 700; color: var(--be-navy); font-size: 15px; }
.be-quote figcaption span { display: block; font-weight: 400; color: var(--be-muted); font-size: 13px; }

/* ---------- 10. Blog cards (home) ---------- */
.be-blog-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(24px, 4.5vw, 64px);
	max-width: 1080px;
	margin: clamp(28px, 3.5vw, 50px) auto 0;
}
.be-blog-card { text-align: center; }
.be-blog-card__img { display: block; aspect-ratio: 222 / 218; overflow: hidden; border-radius: 12px; margin-bottom: 18px; }
.be-blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.be-blog-card:hover .be-blog-card__img img { transform: scale(1.05); }
.be-blog-card p { font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.be-blog-card p a { color: inherit; }

/* ---------- 11. Clients ---------- */
.be-clients__row {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	gap: 32px 48px;
	margin-top: clamp(36px, 4.5vw, 72px);
}
.be-clients__row img { max-height: 132px; width: auto; max-width: 210px; object-fit: contain; filter: grayscale(0); transition: .3s; }
.be-clients__row a:hover img { transform: scale(1.04); }

/* ---------- 12. CTA band ---------- */
.be-cta {
	position: relative;
	padding: clamp(56px, 6.5vw, 90px) 0 clamp(64px, 6vw, 90px);
	margin-top: clamp(32px, 4vw, 60px);
}
.be-cta::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 64%;
	background: var(--be-navy);
}
.be-cta .be-container { position: relative; }
.be-cta__card {
	display: grid;
	grid-template-columns: 1fr minmax(260px, 40%);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 18px 30px rgba(0, 0, 0, .22);
	overflow: hidden;
	min-height: 300px;
}
.be-cta__body { padding: clamp(28px, 3.5vw, 46px) clamp(24px, 5.5vw, 76px); }
.be-cta__title {
	font-family: var(--be-font-body);
	font-weight: 700;
	font-size: clamp(32px, 3.8vw, 54px);
	color: var(--be-navy);
	margin-bottom: 20px;
}
.be-cta__help { font-family: var(--be-font-ui); font-size: 15px; color: var(--be-text-dark); margin: 20px 0 6px; }
.be-cta__phone {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	font-family: var(--be-font-ui); font-size: clamp(20px, 2vw, 28px); color: var(--be-text-dark); margin: 0;
}
.be-cta__phone a { color: inherit; }
.be-cta__phone .be-svg-phone { width: 28px; height: 28px; color: #3d3d3d; }
.be-cta__media {
	background: center / cover no-repeat;
	clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
	margin: 5px 5px 5px 0;
	border-radius: 0 6px 6px 0;
}

/* ---------- 13. Footer ---------- */
.be-footer {
	position: relative;
	color: #fff;
	background: var(--be-navy);
	padding: clamp(64px, 7vw, 110px) 0 24px;
	overflow: hidden;
}
.be-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--be-footer-bg) right center / cover no-repeat;
	opacity: .12;
	mix-blend-mode: luminosity;
	-webkit-mask-image: linear-gradient(90deg, transparent 15%, #000 70%);
	mask-image: linear-gradient(90deg, transparent 15%, #000 70%);
}
.be-footer > .be-container { position: relative; max-width: calc(1360px + var(--be-gutter) * 2); }
.be-footer__grid {
	display: grid;
	grid-template-columns: 1.35fr .65fr 1.25fr 1.4fr;
	gap: 32px clamp(24px, 3vw, 56px);
}
.be-footer a { color: #fff; }
.be-footer a:hover { color: var(--be-sky); }
.be-footer__logo img { width: clamp(170px, 15vw, 222px); margin-bottom: 28px; }
.be-footer__company { font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); margin: 0; }
.be-footer__tagline { font-size: clamp(16px, 1.4vw, 20px); margin: 0 0 22px; }
.be-footer__contact { font-size: 14px; line-height: 1.75; padding-left: 6px; }
.be-footer__col ul { list-style: none; }
.be-footer__col--links li + li { margin-top: clamp(14px, 1.6vw, 22px); }
.be-footer__col--links a { font-weight: 700; font-size: 17px; }
.be-footer__title { font-family: var(--be-font-body); font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 clamp(18px, 2vw, 26px); }
.be-footer__dash li { position: relative; padding-left: 16px; font-size: 17px; line-height: 1.4; }
.be-footer__dash li + li { margin-top: clamp(14px, 1.6vw, 22px); }
.be-footer__dash li::before { content: "-"; position: absolute; left: 0; }
.be-footer__bottom { margin-top: clamp(48px, 5vw, 80px); padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; opacity: .8; }
.be-footer__bottom p { margin: 0; }

/* ---------- 14. About page ---------- */
.be-about-intro { text-align: center; max-width: 900px; margin: 0 auto; }
.be-about-intro .be-lead { margin-bottom: 22px; }
.be-about-intro p:not(.be-lead) { font-size: 15px; }

.be-why__grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(14px, 2.2vw, 42px);
	margin-top: clamp(28px, 3vw, 46px);
}
.be-why__card {
	border: 1.5px solid var(--be-navy);
	border-radius: 6px;
	padding: 22px 14px 24px;
	text-align: center;
	color: var(--be-text);
	transition: background-color .3s, color .3s, transform .3s;
	height: 100%;
}
.be-why__card .be-icon { width: 76px; height: 64px; color: var(--be-navy); margin-bottom: 10px; transition: color .3s; }
.be-why__card h3 { font-family: var(--be-font-body); font-weight: 700; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.38; color: var(--be-text-dark); margin-bottom: 10px; transition: color .3s; }
.be-why__card p { font-size: 15px; line-height: 1.55; margin: 0; }
.be-why__card.is-active,
.be-why__card:hover { background: var(--be-navy); color: #fff; }
.be-why__card.is-active h3, .be-why__card:hover h3,
.be-why__card.is-active .be-icon, .be-why__card:hover .be-icon { color: #fff; }

.be-defines__grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(28px, 3vw, 40px) 24px;
	margin-top: clamp(28px, 3vw, 46px);
	text-align: center;
	font-size: 15px;
	line-height: 1.55;
}
.be-defines__grid li { display: flex; flex-direction: column; align-items: center; }
.be-defines__grid .be-icon { width: 120px; height: 96px; color: #3a3a3a; margin-bottom: 12px; }

.be-philosophy {
	position: relative;
	background: var(--be-navy) var(--be-bg) center / cover no-repeat;
	color: #fff;
	text-align: center;
	padding: clamp(56px, 6vw, 84px) 0 clamp(44px, 5vw, 70px);
}
.be-philosophy::before { content: ""; position: absolute; inset: 0; background: rgba(32, 56, 100, .82); }
.be-philosophy .be-container { position: relative; }
.be-philosophy .be-title { margin-bottom: .2em; }
.be-philosophy__sub { font-size: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.be-philosophy__grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.be-philosophy__grid li { font-weight: 700; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.4; }
.be-philosophy__circle {
	width: 70px; height: 70px; border-radius: 50%; background: #fff;
	display: grid; place-items: center; margin: 0 auto 16px;
}
.be-philosophy__circle .be-icon { width: 44px; height: 40px; color: var(--be-navy); }

.be-approach {
	position: relative;
	background: var(--be-sky) var(--be-bg) left bottom / 100% auto no-repeat;
	padding: clamp(48px, 5vw, 70px) 0 clamp(200px, 22vw, 330px);
	overflow: hidden;
}
.be-approach .be-title { margin-bottom: clamp(20px, 2.4vw, 36px); }
.be-approach__steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	counter-reset: step;
	max-width: 1320px;
	margin: 0 auto;
	padding-inline: var(--be-gutter);
}
.be-approach__steps li { text-align: center; }
.be-approach__steps li:nth-child(2) { margin-top: clamp(60px, 8vw, 160px); }
.be-approach__steps li:nth-child(3) { margin-top: clamp(100px, 11vw, 210px); }
.be-approach__steps li:nth-child(4) { margin-top: clamp(140px, 16vw, 310px); }
.be-approach__steps li:nth-child(5) { margin-top: clamp(190px, 21vw, 410px); }
.be-approach__steps h3 { font-family: var(--be-font-body); font-weight: 700; font-size: clamp(17px, 1.45vw, 21px); color: var(--be-text-dark); margin-bottom: 8px; }
.be-approach__steps p { font-size: 15px; line-height: 1.6; max-width: 230px; margin: 0 auto 16px; }
.be-approach__circle {
	width: clamp(80px, 7.3vw, 104px); height: clamp(80px, 7.3vw, 104px);
	border-radius: 50%; background: #fff; border: 2px solid var(--be-navy);
	display: grid; place-items: center; margin: 0 auto;
	box-shadow: 0 0 0 5px rgba(255, 255, 255, .5);
}
.be-approach__circle .be-icon { width: 55%; height: 55%; color: var(--be-navy); }
.be-approach__steps li:first-child .be-approach__circle { margin-left: 20%; }

.be-team__grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(28px, 5vw, 72px);
	margin-top: clamp(40px, 5.5vw, 80px);
	text-align: center;
}
.be-team__photo { width: 84%; max-width: 242px; margin: 0 auto; aspect-ratio: 170 / 214; background: var(--be-sky); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.be-team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.be-team__name { background: var(--be-navy); color: #fff; max-width: 284px; margin: 0 auto 26px; padding: 10px 12px; line-height: 1.35; }
.be-team__name strong { display: block; font-size: 17px; }
.be-team__name span { font-size: 15px; }
.be-team__bio { font-size: 15px; line-height: 1.7; max-width: 300px; margin: 0 auto; }

/* ---------- 15. Services page ---------- */
.be-service-row {
	display: grid;
	grid-template-columns: 45fr 55fr;
	gap: clamp(32px, 6vw, 90px);
	align-items: start;
	margin-block: clamp(64px, 9vw, 130px);
	scroll-margin-top: calc(var(--be-header-h) + 30px);
}
.be-service-row__media { height: clamp(380px, 60vw, 815px); }
.be-service-row__text { padding-right: var(--be-edge); padding-top: 0; }
.be-service-row--flip { grid-template-columns: 55fr 45fr; }
.be-service-row--flip .be-service-row__text { order: -1; padding-right: 0; padding-left: max(var(--be-gutter), calc((100vw - var(--be-container)) / 2 + 40px)); }
.be-service-row__title {
	font-family: var(--be-font-head);
	font-weight: 700;
	font-size: clamp(36px, 4.4vw, 64px);
	line-height: 1.22;
	color: var(--be-navy);
	margin-bottom: clamp(20px, 2.5vw, 36px);
}
.be-service-row .be-lead { font-weight: 700; font-size: clamp(18px, 1.75vw, 25px); line-height: 1.5; margin-bottom: 22px; }
.be-service-row__body { font-size: 15px; line-height: 1.75; margin-bottom: 28px; }
.be-capabilities h3 { font-family: var(--be-font-body); font-weight: 700; font-size: 17px; color: var(--be-cyan); margin-bottom: 16px; }
.be-list { list-style: none; font-size: 15px; line-height: 1.75; }
.be-list li { position: relative; padding-left: 14px; }
.be-list li::before { content: "•"; position: absolute; left: 0; }

/* ---------- 16. Sectors page ---------- */
.be-sector-row {
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	align-items: start;
	margin-block: clamp(64px, 9vw, 130px);
	scroll-margin-top: calc(var(--be-header-h) + 30px);
}
.be-sector-row__media { grid-column: 1 / 9; grid-row: 1; aspect-ratio: 660 / 520; overflow: hidden; }
.be-sector-row__media img { width: 100%; height: 100%; object-fit: cover; }
.be-sector-row__card {
	grid-column: 7 / 13;
	grid-row: 1;
	margin-top: clamp(32px, 4.5vw, 64px);
	background: var(--be-sky);
	outline: 6px solid #fff;
	padding: clamp(26px, 3.2vw, 44px) clamp(24px, 3.6vw, 50px) clamp(32px, 4vw, 60px);
	position: relative;
	z-index: 1;
}
.be-sector-row--flip .be-sector-row__media { grid-column: 5 / 13; aspect-ratio: 660 / 392; }
.be-sector-row--flip .be-sector-row__card { grid-column: 1 / 7; }
.be-sector-row__card h2 { font-family: var(--be-font-head); font-weight: 700; font-size: clamp(32px, 3.3vw, 50px); line-height: 1.25; color: var(--be-text-dark); margin-bottom: 18px; }
.be-sector-row__card .be-sector-row__desc { font-size: clamp(16px, 1.45vw, 20px); color: var(--be-text-dark); line-height: 1.55; margin-bottom: 26px; }
.be-sector-row__card .be-list li { padding-left: 30px; color: var(--be-text-dark); }

/* ---------- 17. Contact page ---------- */
.be-contact { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.be-contact__eyebrow { font-family: var(--be-font-ui); font-weight: 500; font-size: 15px; color: var(--be-text-dark); margin: 0; }
.be-contact__title { font-family: var(--be-font-body); font-weight: 700; font-size: clamp(34px, 3.4vw, 48px); color: var(--be-navy); margin-bottom: 24px; }
.be-contact__list { list-style: none; font-size: 15px; }
.be-contact__list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin-bottom: 26px; }
.be-contact__list .be-svg { width: 20px; height: 20px; color: var(--be-text-dark); margin-top: 3px; }
.be-contact__list strong { display: block; font-size: 17px; color: var(--be-text-dark); }
.be-contact__list a { color: inherit; }
.be-contact__form {
	background: var(--be-sky-light);
	padding: clamp(28px, 3.5vw, 48px) clamp(24px, 3.5vw, 50px);
	box-shadow: 0 0 20px rgba(0, 0, 0, .06);
	scroll-margin-top: calc(var(--be-header-h) + 30px);
}
.be-contact__form h2 { font-family: var(--be-font-body); font-weight: 700; font-size: clamp(30px, 3.1vw, 44px); color: var(--be-navy); margin-bottom: 28px; }
.be-form { display: grid; gap: 20px; }
.be-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.be-form input,
.be-form textarea,
.be-contact__form input[type="text"],
.be-contact__form input[type="email"],
.be-contact__form input[type="tel"],
.be-contact__form input[type="url"],
.be-contact__form textarea {
	width: 100%;
	border: 1px solid transparent;
	background: #fff;
	padding: 13px 18px;
	font: inherit;
	font-size: 15px;
	color: var(--be-text-dark);
	border-radius: 0;
}
.be-form textarea { min-height: 128px; resize: vertical; }
.be-form input:focus, .be-form textarea:focus { outline: none; border-color: var(--be-navy); }
.be-form ::placeholder { color: #6f6f6f; }
.be-form__submit { border: 0; background: none; padding: 0; width: 34px; height: 34px; color: var(--be-navy); cursor: pointer; margin-top: 10px; }
.be-form__submit .be-svg-arrow { width: 34px; height: 34px; transition: transform .2s; }
.be-form__submit:hover .be-svg-arrow { transform: translateX(4px); }
.be-form__hp { position: absolute; left: -9999px; }
.be-form-notice { padding: 12px 16px; margin-bottom: 18px; font-size: 15px; }
.be-form-notice--ok { background: #e6f6ea; color: #1d6b33; }
.be-form-notice--err { background: #fdeaea; color: #9b1c1c; }
.be-map { margin-top: clamp(64px, 8vw, 120px); }
.be-map iframe { width: 100%; height: clamp(300px, 34vw, 560px); border: 0; filter: grayscale(1); display: block; }

/* ---------- 18. Projects ---------- */
.be-projects__grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(28px, 3vw, 44px) clamp(20px, 2.2vw, 34px);
}
.be-project-card { text-align: center; }
.be-project-card__img { display: block; aspect-ratio: 128 / 98; border: 1.5px solid #333; overflow: hidden; margin-bottom: 12px; }
.be-project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.be-project-card:hover .be-project-card__img img { transform: scale(1.05); }
.be-project-card h2 { font-family: var(--be-font-body); font-size: 16px; font-weight: 700; color: var(--be-navy); margin: 0 0 2px; line-height: 1.35; }
.be-project-card h2 a { color: inherit; }
.be-project-card p { font-size: 13px; color: var(--be-muted); margin: 0; }
.be-more { text-align: center; margin-top: clamp(32px, 4vw, 56px); font-size: 18px; }
.be-more a { color: var(--be-text-dark); }
.be-more a:hover { color: var(--be-navy); }
.be-more .page-numbers { display: inline-block; padding: 4px 10px; color: var(--be-text-dark); }
.be-more .page-numbers.current { color: var(--be-navy); font-weight: 700; }

.be-project { display: grid; grid-template-columns: 1fr minmax(260px, 370px); gap: 0; align-items: start; }
.be-project__media { aspect-ratio: 390 / 240; margin-top: 44px; }
.be-project__meta { background: var(--be-grey-panel); padding: 36px 30px 40px 70px; margin-left: 0; min-height: 100%; }
.be-project__meta dl { margin: 0; }
.be-project__meta dt { font-size: 14px; color: var(--be-text); margin: 0; }
.be-project__meta dd { margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #c9c9c9; font-size: clamp(17px, 1.45vw, 20px); color: var(--be-text-dark); }
.be-project__meta dd:last-of-type { border-bottom: 0; margin-bottom: 0; }
.be-project__body { max-width: 800px; margin-top: clamp(40px, 4.5vw, 60px); }
.be-project__title { font-family: var(--be-font-body); font-weight: 400; font-size: clamp(30px, 2.9vw, 42px); color: var(--be-navy); margin-bottom: 6px; }
.be-project__subtitle { font-size: clamp(19px, 1.7vw, 24px); color: var(--be-text-dark); margin-bottom: 20px; }
.be-project__content { font-size: 15px; line-height: 1.85; }
.be-project__content h3, .be-project__hl h3 { font-family: var(--be-font-body); font-size: 17px; font-weight: 700; color: var(--be-navy); margin: 34px 0 20px; }
.be-project__hl .be-list li { padding-left: 22px; }

/* ---------- 19. Blog ---------- */
.be-posts__grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px) clamp(20px, 2.2vw, 32px); }
.be-post-card { display: grid; grid-template-columns: 38% 1fr; border: 1px solid var(--be-line); background: #fff; min-height: 260px; height: 100%; transition: box-shadow .3s; }
.be-post-card:hover { box-shadow: var(--be-shadow); }
.be-post-card__img { display: block; overflow: hidden; }
.be-post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.be-post-card:hover .be-post-card__img img { transform: scale(1.05); }
.be-post-card__body { padding: clamp(20px, 2.2vw, 34px) clamp(18px, 2.2vw, 34px) 22px; display: flex; flex-direction: column; }
.be-post-card h2 { font-family: var(--be-font-body); font-weight: 400; font-size: clamp(19px, 1.65vw, 23px); line-height: 1.45; color: var(--be-text); margin-bottom: 14px; }
.be-post-card h2 a { color: inherit; }
.be-post-card h2 a:hover { color: var(--be-navy); }
.be-post-card__excerpt { font-size: 13.5px; line-height: 1.6; color: var(--be-text); }
.be-post-card__excerpt p { margin: 0; }
.be-post-card .be-arrow-link { margin-top: auto; padding-top: 12px; }
.be-post-card .be-svg-arrow { width: 16px; height: 16px; }

.be-hero--post { height: clamp(260px, 33vw, 640px); }
.be-article { display: grid; grid-template-columns: 1fr minmax(240px, 40%); gap: clamp(32px, 5vw, 70px); align-items: start; }
.be-article--full { grid-template-columns: minmax(0, 860px); justify-content: center; }
.be-article__date { font-size: 13px; color: var(--be-text); margin: 0 0 8px; }
.be-article__title { font-family: var(--be-font-body); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.45; color: var(--be-text-dark); margin-bottom: 26px; }
.be-article__content { font-size: 15px; line-height: 1.85; color: var(--be-text); }
.be-article__content h2, .be-article__content h3 { font-family: var(--be-font-head); margin-top: 1.4em; }
.be-article__content img { margin: 1.5em 0; }
.be-article__content a { text-decoration: underline; }
.be-article__side { position: sticky; top: calc(var(--be-header-h) + 30px); margin-top: 30px; }
.be-article__side img { width: 100%; height: auto; }

.be-similar { position: relative; }
.be-similar .be-title { font-family: var(--be-font-body); }
.be-similar__wrap { position: relative; padding-inline: 46px; }
.be-similar__viewport { overflow: hidden; }
.be-similar__track { list-style: none; display: flex; gap: 30px; transition: transform .5s ease; }
.be-similar__track > li { flex: 0 0 calc(50% - 15px); }
.be-similar__btn { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 6px; color: #222; cursor: pointer; }
.be-similar__btn .be-svg { width: 30px; height: 30px; }
.be-similar__btn--prev { left: 0; }
.be-similar__btn--next { right: 0; }
.be-similar__btn[disabled] { opacity: .25; cursor: default; }

/* Generic page content */
.be-page-content { max-width: 900px; margin: 0 auto; font-size: 16px; line-height: 1.8; }
.be-page-content h1 { font-family: var(--be-font-head); text-align: center; font-size: clamp(32px, 3.1vw, 44px); }
.be-404 { text-align: center; padding-block: 120px; }

/* Comments (basic) */
.be-comments { max-width: 860px; margin: 60px auto 0; }
.be-comments textarea, .be-comments input[type="text"], .be-comments input[type="email"], .be-comments input[type="url"] { width: 100%; border: 1px solid var(--be-line); padding: 10px 14px; font: inherit; }
.be-comments .submit { background: var(--be-navy); color: #fff; border: 0; padding: 12px 22px; font-family: var(--be-font-head); font-weight: 700; cursor: pointer; }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1100px) {
	.be-menu { gap: 18px; }
	.be-menu a { font-size: 15px; }
	.be-footer__grid { grid-template-columns: 1fr 1fr; }
	.be-why__grid { grid-template-columns: repeat(3, 1fr); }
	.be-projects__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
	:root { --be-header-h: 72px; }
	.be-nav-toggle { display: block; }
	.be-nav {
		position: fixed;
		inset: var(--be-header-h) 0 0 0;
		background: #fff;
		padding: 24px var(--be-gutter) 40px;
		transform: translateX(100%);
		transition: transform .3s ease;
		overflow-y: auto;
		visibility: hidden;
	}
	.admin-bar .be-nav { top: calc(var(--be-header-h) + 46px); }
	.be-nav-open .be-nav { transform: none; visibility: visible; }
	.be-menu { flex-direction: column; align-items: stretch; gap: 0; padding-top: 0; }
	.be-menu > li { border-bottom: 1px solid #eee; }
	.be-menu a { font-size: 18px; padding: 14px 0; }
	.be-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 10px 16px; }

	.be-hero--home { background-size: cover; }
	.be-hero--home::before { background: linear-gradient(180deg, rgba(52, 76, 114, .25) 0%, rgba(46, 70, 110, .92) 70%); }
	.be-hero__title { margin: 0; }

	.be-home-about__grid { grid-template-columns: 1fr; }
	.be-home-about__text { padding-inline: var(--be-gutter); }
	.be-home-about__media { height: 460px; margin-left: var(--be-gutter); }

	.be-services-card { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
	.be-services-card__item h3 { min-height: 0; }

	.be-sectors-home { grid-template-columns: 1fr; }
	.be-sectors-home__list { padding-inline: var(--be-gutter); }
	.be-sectors-home__list .be-title,
	.be-sectors-home__items li { margin-left: 0; padding-left: 0; }
	.be-sectors-home__media { height: 420px; }

	.be-blog-cards { grid-template-columns: repeat(2, 1fr); }
	.be-defines__grid { grid-template-columns: repeat(3, 1fr); }
	.be-philosophy__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }

	.be-approach { padding-bottom: 52vw; background-size: 100% auto; }
	.be-approach__steps { grid-template-columns: 1fr; gap: 28px; max-width: 520px; }
	.be-approach__steps li { margin-top: 0 !important; display: grid; grid-template-columns: 90px 1fr; gap: 0 20px; text-align: left; align-items: center; }
	.be-approach__steps li .be-approach__circle { grid-row: 1 / 3; grid-column: 1; margin: 0 !important; width: 84px; height: 84px; }
	.be-approach__steps h3, .be-approach__steps p { grid-column: 2; margin: 0; max-width: none; }

	.be-service-row, .be-service-row--flip { grid-template-columns: 1fr; gap: 40px; }
	.be-service-row__media { height: 420px; margin-right: var(--be-gutter); }
	.be-service-row--flip .be-service-row__media { margin-right: 0; margin-left: var(--be-gutter); }
	.be-service-row__text,
	.be-service-row--flip .be-service-row__text { order: 0; padding-inline: var(--be-gutter); }

	.be-sector-row, .be-sector-row--flip { display: block; padding-inline: var(--be-gutter); }
	.be-sector-row__media, .be-sector-row--flip .be-sector-row__media { aspect-ratio: 16 / 10; }
	.be-sector-row__card { margin: -60px 16px 0; }

	.be-contact { grid-template-columns: 1fr; }
	.be-project { grid-template-columns: 1fr; }
	.be-project__meta { padding: 28px; }
	.be-article { grid-template-columns: 1fr; }
	.be-article__side { position: static; }
	.be-cta__card { grid-template-columns: 1fr; }
	.be-cta__media { min-height: 200px; clip-path: none; margin: 0; border-radius: 0; order: -1; }
	.be-cta::before { height: 45%; }
}

@media (max-width: 680px) {
	:root { --be-gutter: 16px; }
	.be-cred__grid { grid-template-columns: 1fr; gap: 26px; }
	.be-services-card { grid-template-columns: 1fr; }
	.be-testimonials__grid { grid-template-columns: 1fr; }
	.be-blog-cards { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
	.be-why__grid { grid-template-columns: repeat(2, 1fr); }
	.be-defines__grid { grid-template-columns: repeat(2, 1fr); }
	.be-team__grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
	.be-footer__grid { grid-template-columns: 1fr; }
	.be-projects__grid { grid-template-columns: repeat(2, 1fr); }
	.be-posts__grid { grid-template-columns: 1fr; }
	.be-post-card { grid-template-columns: 1fr; }
	.be-post-card__img { aspect-ratio: 16 / 10; }
	.be-form__row { grid-template-columns: 1fr; }
	.be-similar__track > li { flex-basis: 100%; }
	.be-similar__wrap { padding-inline: 34px; }
	.be-clients__row img { max-width: 130px; max-height: 90px; }
	.be-why__card .be-icon { width: 60px; height: 52px; }
}
