/*
Theme Name: Syme
Description: Lightweight custom theme for Syme Structural Engineering Ltd. Content is managed with ACF PRO.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: syme
*/

/* ==========================================================================
   Tokens (Syme branding colour adjustments)
   ========================================================================== */
:root {
	/* Primary */
	--navy: #1b2d45;
	--slate: #334b5f;
	--cool-gray: #a7adb3;
	--warm-gray: #d8d6d1;
	--off-white: #f5f6f7;
	--text: #111111;
	/* Accent */
	--brown: #57281c;
	--steel: #56748a;
	--sand: #b7b1a4;

	--font: "Inter", system-ui, sans-serif;
	--font-heading: "Poppins", system-ui, sans-serif;

	--container: 1200px;
	--gutter: 20px;
	--radius: 8px;
	--shadow: 0 6px 24px rgba(27, 45, 69, 0.08);
	--section: 88px;
	--admin-bar: 0px;
}
.admin-bar { --admin-bar: 32px; }
@media (max-width: 782px) { .admin-bar { --admin-bar: 46px; } }

@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; vertical-align: middle; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
.text p { margin: 0 0 1em; }
.text p:last-child { margin-bottom: 0; }
.text a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
figure, blockquote { margin: 0; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	color: var(--navy);
	font-family: var(--font-heading);
	line-height: 1.25;
}
h1 { font-size: 46px; font-weight: 800; line-height: 1.15; letter-spacing: 0.5px; text-transform: uppercase; }
h2 { font-size: 34px; font-weight: 600; }
h3 { font-size: 22px; font-weight: 500; }
h4 { font-size: 20px; font-weight: 600; }
h5 { font-size: 16px; font-weight: 600; }

.lead { color: var(--slate); font-size: 18px; }
.eyebrow {
	margin-bottom: 10px;
	color: var(--steel);
	font-family: var(--font-heading);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.eyebrow--light { color: var(--cool-gray); }

.icon { display: inline-block; width: auto; height: 1em; fill: currentColor; }

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

/* Layout */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); text-align: center; }
.section { padding: var(--section) 0; }
.section--compact { padding: 56px 0; }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--off-white); }
.section-title { margin-bottom: 16px; text-align: center; }
.intro h2 { margin-bottom: 16px; }

/* Buttons */
.btn {
	display: inline-block;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: 4px;
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--slate); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: #fff; color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover, .btn--light:focus-visible { background: var(--off-white); }
.btn--accent { background: var(--brown); color: #fff; }
.btn--accent:hover, .btn--accent:focus-visible { background: #43200f; }

.link-arrow {
	display: inline-block;
	margin-top: 8px;
	color: var(--navy);
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 600;
}
.link-arrow::after { content: " \2192"; transition: margin-left 0.2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Icon lists */
.icon-list li a,
.check-list li { display: flex; align-items: center; gap: 10px; }
.icon-circle {
	display: inline-flex;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--warm-gray);
	color: var(--navy);
	font-size: 14px;
}

.social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--navy);
	color: #fff;
	font-size: 16px;
	transition: background-color 0.2s;
}
.social-icon:hover { background: var(--steel); }
.social-icon--lg { width: 38px; height: 38px; font-size: 18px; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar { background: var(--navy); color: #fff; font-size: 14px; }
.topbar__inner { display: flex; justify-content: flex-end; align-items: center; gap: 28px; min-height: 44px; }
.topbar__contact { display: flex; gap: 28px; }
.topbar__contact a { gap: 8px; color: #fff; opacity: 0.9; transition: opacity 0.2s; }
.topbar__contact a:hover { opacity: 1; }
.topbar .icon-circle { flex-basis: 26px; width: 26px; height: 26px; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 12px; }
.topbar .social-icon { width: 26px; height: 26px; background: rgba(255, 255, 255, 0.12); font-size: 13px; }
.topbar .social-icon:hover { background: var(--steel); }

.site-header {
	position: sticky;
	top: var(--admin-bar);
	z-index: 99;
	background: #fff;
	transition: box-shadow 0.3s;
}
.site-header.is-stuck { box-shadow: 0 4px 18px rgba(27, 45, 69, 0.1); }
.site-header__inner { position: relative; display: flex; align-items: center; min-height: 84px; }
.site-logo { flex: 0 0 auto; padding: 10px 0; }
.site-logo img { display: block; width: 180px; }

.site-nav { margin-left: auto; }
.site-nav .menu { display: flex; gap: 4px; }
.site-nav a {
	display: block;
	padding: 0 18px;
	border-radius: 4px;
	color: var(--navy);
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 44px;
	transition: background-color 0.2s, color 0.2s;
}
.site-nav a:hover { background: var(--off-white); }
.site-nav .current-menu-item > a { background: var(--navy); color: #fff; }

.menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--navy);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
}
.menu-toggle .icon { display: block; margin: 0 auto; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 620px;
	overflow: hidden;
	background: var(--navy);
	text-align: center;
}
.hero--page { min-height: 380px; }
.hero__slides,
.hero__slide,
.hero__overlay { position: absolute; inset: 0; }
.hero__slide {
	background-position: center;
	background-size: cover;
	opacity: 0;
	transition: opacity 0.8s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay { background: linear-gradient(180deg, rgba(27, 45, 69, 0.45) 0%, rgba(27, 45, 69, 0.72) 100%); }
.hero__content { position: relative; width: 100%; max-width: 980px; padding: 40px var(--gutter); }
.hero__title { color: #fff; }
.hero__subtitle {
	margin-top: 16px;
	color: rgba(255, 255, 255, 0.92);
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 2px;
	text-transform: uppercase;
}
.hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }

/* ==========================================================================
   Home
   ========================================================================== */
.split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.split__body h2 { margin-bottom: 20px; }

.accordion { margin-top: 28px; }
.accordion__item { border: 1px solid var(--warm-gray); border-radius: 6px; background: #fff; }
.accordion__item + .accordion__item { margin-top: 10px; }
.accordion__title {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	color: var(--navy);
	font-family: var(--font-heading);
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}
.accordion__title::-webkit-details-marker { display: none; }
.accordion__icon { display: flex; color: var(--steel); font-size: 14px; }
.accordion__icon .icon-minus,
.accordion__item[open] .accordion__icon .icon-plus { display: none; }
.accordion__item[open] .accordion__icon .icon-minus { display: inline-block; }
.accordion__content { padding: 0 20px 18px 46px; color: var(--slate); }

/* Offices */
.offices .section-title { margin-bottom: 40px; }
.offices__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.office {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}
.office__map { line-height: 0; }
.office__map iframe { width: 100%; height: 260px; border: 0; background: var(--warm-gray); }
.office__body { display: flex; gap: 16px; padding: 24px 28px 28px; }
.office__icon { flex: 0 0 auto; color: var(--steel); font-size: 24px; line-height: 1.2; }
.office h3 { margin-bottom: 6px; font-size: 20px; }
.office p { color: var(--slate); }

/* Call to action */
.cta__box {
	padding: 56px 48px;
	border-radius: var(--radius);
	background: var(--navy);
	color: rgba(255, 255, 255, 0.88);
}
.cta__box h2 { margin-bottom: 16px; color: #fff; }
.cta__box .text { margin-bottom: 28px; }

/* Gallery carousel */
.gallery .section-title { margin-bottom: 40px; }
.carousel { position: relative; padding-bottom: 44px; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: 20px; transition: transform 0.6s ease; }
.carousel__slide { flex: 0 0 calc((100% - 40px) / 3); overflow: hidden; border-radius: 6px; }
.carousel__slide img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.4s; }
.carousel__slide:hover img { transform: scale(1.04); }
.carousel__dots { position: absolute; right: 0; bottom: 8px; left: 0; display: flex; justify-content: center; gap: 10px; }
.carousel__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--cool-gray);
	cursor: pointer;
	transition: background-color 0.2s;
}
.carousel__dots button.is-active { background: var(--navy); }

/* Careers */
.careers__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--off-white);
}
.careers__card { display: flex; flex-direction: column; justify-content: center; padding: 56px; }
.careers__card h2 { margin-bottom: 16px; }
.careers__card .text { color: var(--slate); }
.careers__media img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

/* Scrolling strips (testimonials, logos) */
.marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee.is-running .marquee__track { animation: marquee var(--marquee-duration, 60s) linear infinite; }
.marquee.is-running:hover .marquee__track,
.marquee.is-running:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; }
	.marquee__item { scroll-snap-align: center; }
}

/* Testimonials */
.testimonials {
	position: relative;
	background-color: var(--navy);
	background-position: center;
	background-size: cover;
	color: #fff;
}
.testimonials::before { content: ""; position: absolute; inset: 0; background: rgba(27, 45, 69, 0.93); }
.testimonials__inner { position: relative; padding: var(--section) 0; }
.testimonials__heading { margin-bottom: 40px; color: #fff; }
.testimonial { text-align: center; }
/* Slides share one grid cell, so the section keeps the height of the longest quote. */
.fader__slides { display: grid; }
.fader__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.fader__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.8s ease, visibility 0s; }
.fader__dots { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.fader__dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}
.fader__dots button:hover { background: rgba(255, 255, 255, 0.6); }
.fader__dots button.is-active { background: #fff; transform: scale(1.2); }
.testimonial__mark {
	display: block;
	height: 44px;
	color: var(--steel);
	font-family: var(--font-heading);
	font-size: 72px;
	font-weight: 800;
	line-height: 1;
}
.testimonial__text { color: rgba(255, 255, 255, 0.92); font-size: 19px; line-height: 1.75; }
.testimonial__name {
	margin-top: 20px;
	color: var(--cool-gray);
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/* Community */
.community .lead { margin-bottom: 48px; }
.marquee--logos .marquee__item { display: flex; align-items: center; justify-content: center; height: 120px; padding: 0 20px; }
.logo-tile img { width: auto; max-width: 180px; max-height: 88px; object-fit: contain; }
.feature {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-top: 56px;
	padding: 36px 40px;
	border-left: 4px solid var(--brown);
	border-radius: var(--radius);
	background: var(--off-white);
}
.feature h3 { margin-bottom: 10px; font-weight: 600; }
.feature .text { color: var(--slate); }
.feature .btn { flex: 0 0 auto; }

/* ==========================================================================
   About
   ========================================================================== */
.services .section-title { margin-bottom: 40px; }
.service-card {
	max-width: 960px;
	margin: 0 auto;
	padding: 40px 44px;
	border: 1px solid var(--warm-gray);
	border-radius: var(--radius);
	background: #fff;
}
.service-card + .service-card { margin-top: 24px; }
.service-card h5 { margin-bottom: 20px; font-size: 20px; font-weight: 500; }
.service-card__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.check-list li { padding: 6px 0; line-height: 1.5; }
.check-list .icon { flex: 0 0 auto; color: var(--steel); font-size: 18px; }

.team .section-title { margin-bottom: 40px; }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.member {
	display: grid;
	grid-template-columns: 34% 1fr;
	align-items: center;
	padding: 28px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
}
.member__name { padding: 8px 24px 8px 0; border-right: 1px solid var(--warm-gray); text-align: center; }
.member__name h5 { margin-bottom: 4px; font-size: 17px; line-height: 1.35; }
.member__role { color: var(--steel); font-size: 14px; font-style: italic; font-weight: 500; }
.member__bio { padding-left: 24px; color: var(--slate); font-size: 15px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-intro .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact-intro h2 { margin-bottom: 6px; }
.contact-quick { display: flex; flex-wrap: wrap; gap: 16px; }
.contact-quick__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 22px 14px 14px;
	border-radius: var(--radius);
	background: var(--off-white);
	color: var(--navy);
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.3;
	transition: background-color 0.2s;
}
.contact-quick__item:hover { background: var(--warm-gray); }
.contact-quick__item small {
	display: block;
	color: var(--steel);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.contact-quick .icon-circle { flex-basis: 42px; width: 42px; height: 42px; background: var(--navy); color: #fff; font-size: 16px; }

.contact-box {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	overflow: hidden;
	border: 1px solid var(--warm-gray);
	border-radius: var(--radius);
}
.contact-box__form { padding: 40px 44px; }
.contact-box__form h2 { margin-bottom: 20px; font-size: 28px; }
.contact-box__note { margin-top: 12px; color: var(--slate); font-size: 12px; }
.contact-box__note a { font-weight: 600; }
.contact-box__info { padding: 40px 36px; background: var(--off-white); }
.contact-box__info h3 { margin-bottom: 8px; font-size: 20px; }
.contact-box__info p { color: var(--slate); }
.contact-box__info p + h3 { margin-top: 28px; }

/* Forminator, restyled to the palette. */
.contact-form .forminator-row { margin-bottom: 18px !important; }
.contact-form .forminator-label { color: var(--slate) !important; font-family: var(--font) !important; font-size: 13px !important; font-weight: 600 !important; }
.contact-form input,
.contact-form textarea { border: 1px solid var(--warm-gray) !important; border-radius: 6px !important; font-family: var(--font) !important; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--steel) !important; box-shadow: 0 0 0 3px rgba(86, 116, 138, 0.15) !important; }
.contact-form textarea { resize: vertical !important; }
.contact-form .forminator-button-submit {
	width: auto !important;
	min-width: 180px;
	padding: 14px 28px !important;
	border-radius: 4px !important;
	background-color: var(--navy) !important;
	font-family: var(--font-heading) !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
}
.contact-form .forminator-button-submit:hover { background-color: var(--slate) !important; }
.contact-form .forminator-button-upload { border-radius: 4px !important; background-color: var(--slate) !important; font-family: var(--font-heading) !important; }
.contact-form .forminator-button-upload:hover { background-color: var(--navy) !important; }
.contact-form .forminator-row.forminator-row-last { margin-bottom: 0 !important; }
.contact-form .forminator-file-upload { display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact-form .forminator-file-upload .forminator-button-upload { width: auto !important; margin: 0 !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--warm-gray); background: var(--off-white); color: var(--slate); }
.site-footer__grid { display: grid; grid-template-columns: 1fr 0.7fr 1.3fr 1.3fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer__brand img { display: block; width: 100%; max-width: 240px; }
.site-footer__brand .social-icon { margin-top: 20px; }
.site-footer h5 { margin-bottom: 18px; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.footer-menu li + li { margin-top: 8px; }
.footer-menu a,
.footer-contact a { transition: color 0.2s; }
.footer-menu a:hover,
.footer-contact a:hover { color: var(--navy); }
.footer-contact li + li { margin-top: 12px; }
.footer-contact a { align-items: flex-start !important; line-height: 1.5; }
.footer-contact .icon-circle { flex-basis: 30px; width: 30px; height: 30px; font-size: 13px; }
.footer-contact .icon-circle + span { padding-top: 4px; }
.site-footer__bottom { padding: 18px var(--gutter); background: var(--navy); color: rgba(255, 255, 255, 0.8); font-size: 14px; text-align: center; }
.site-footer__bottom a { color: #fff; }

.scroll-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--navy);
	box-shadow: var(--shadow);
	color: #fff;
	font-size: 16px;
	opacity: 0;
	cursor: pointer;
	transition: opacity 0.2s, background-color 0.2s;
}
.scroll-top:not(.is-visible) { pointer-events: none; }
.scroll-top.is-visible { opacity: 1; }
.scroll-top:hover { background: var(--slate); }

/* Lightbox */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(17, 27, 41, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 86vw; max-height: 84vh; border-radius: 4px; object-fit: contain; }
.lightbox__count { position: absolute; top: 14px; left: 18px; color: rgba(255, 255, 255, 0.85); font-size: 13px; }
.lightbox button {
	position: absolute;
	padding: 10px 16px;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.9);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.lightbox__close { top: 10px; right: 10px; }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }

/* Generic pages */
.entry { padding: 64px var(--gutter); }
.entry__title { margin-bottom: 24px; }

/* ==========================================================================
   Tablet (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
	:root { --section: 72px; }
	h1 { font-size: 38px; }
	h2 { font-size: 30px; }
	h3 { font-size: 20px; }

	.hero { min-height: 520px; }
	.hero--page { min-height: 320px; }
	.split__inner { gap: 40px; }
	.careers__card { padding: 44px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.team__grid { grid-template-columns: 1fr; }
	.contact-intro .container { flex-direction: column; align-items: flex-start; }
}

/* Navigation collapses before the menu runs out of room. */
@media (max-width: 900px) {
	.site-header__inner { min-height: 72px; }
	.site-logo img { width: 150px; }
	.menu-toggle { display: block; }
	.site-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 8px var(--gutter) 16px;
		background: #fff;
		box-shadow: 0 12px 20px rgba(27, 45, 69, 0.12);
	}
	.site-nav.is-open { display: block; }
	.site-nav .menu { display: block; }
	.site-nav a { padding: 0 14px; line-height: 48px; }
	.site-nav li + li { border-top: 1px solid var(--off-white); }

	.split__inner { grid-template-columns: 1fr; }
	.split--reverse .split__media { order: 0; }
	.offices__grid { grid-template-columns: 1fr; }
	.careers__row { grid-template-columns: 1fr; }
	.careers__media { order: -1; }
	.careers__media img { min-height: 0; aspect-ratio: 16 / 9; }
	.contact-box { grid-template-columns: 1fr; }
	.carousel__slide { flex-basis: calc((100% - 20px) / 2); }
}

/* ==========================================================================
   Mobile (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
	:root { --section: 56px; --gutter: 18px; }
	body { font-size: 15px; }
	h1 { font-size: 28px; }
	h2 { font-size: 24px; }
	h3 { font-size: 19px; }
	.lead { font-size: 16px; }

	.topbar__inner { justify-content: center; gap: 16px; min-height: 40px; font-size: 13px; }
	.topbar__contact { gap: 16px; }

	.hero { min-height: 480px; }
	.hero--page { min-height: 240px; }
	.hero__subtitle { font-size: 14px; letter-spacing: 1px; }
	.hero__buttons { gap: 12px; }
	.btn { padding: 12px 22px; font-size: 13px; }

	.cta__box { padding: 40px 24px; }
	.careers__card { padding: 32px 24px; }
	.carousel__slide { flex-basis: 100%; }
	.office__map iframe { height: 220px; }
	.office__body { padding: 20px; }

	.testimonial__text { font-size: 16px; }
	.marquee--logos .marquee__item { height: 96px; padding: 0 14px; }
	.logo-tile img { max-width: 130px; max-height: 64px; }
	.feature { flex-direction: column; align-items: flex-start; padding: 28px 24px; }

	.service-card { padding: 28px 22px; }
	.service-card__cols { grid-template-columns: 1fr; }
	.member { grid-template-columns: 1fr; padding: 24px; }
	.member__name { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--warm-gray); }
	.member__name br { display: none; }
	.member__bio { padding: 14px 0 0; text-align: center; }

	.contact-quick { flex-direction: column; width: 100%; }
	.contact-box__form,
	.contact-box__info { padding: 28px 22px; }

	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
	.site-footer__bottom { font-size: 13px; }
}
