/**
 * SB Toeic — site chrome (header + footer) + global layout cap.
 *
 * Editorial ledger voice: hairline rules, tabular brand mark, thin-stroke
 * icons, locked teal/amber tokens. CSS-only mobile menu (checkbox hack).
 * Loads on every page via the child theme (functions.php enqueue).
 */

:root {
	--sb-primary: #0d9488;
	/* teal  */
	--sb-accent: #d97706;
	/* amber */
	--sb-ink: #0f172a;
	--sb-muted: #64748b;
	--sb-line: #e7ebf0;
	--sb-bg: #ffffff;
	--sb-shell: 1440px;
	/* global content cap */
	--sb-gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ─────────────────────────────────────────────────────────────
   Global layout cap — pages were stretching edge-to-edge.
   Constrain Elementor content + our chrome to 1440px, centered.
   ───────────────────────────────────────────────────────────── */
.sbh__inner,
.sbf__inner,
.sbf__base {
	width: 100%;
	max-width: var(--sb-shell);
	margin-inline: auto;
	padding-inline: var(--sb-gutter);
	box-sizing: border-box;
}

/* Elementor full-width sections: keep the section background full-bleed but
   pull the inner content back to the 1440px shell.
   - Legacy sections (this site): .elementor-section-full_width > .elementor-container
   - New flexbox containers: .e-con-full > .e-con-inner
   Target the inner wrapper only so section backgrounds stay edge-to-edge. */
.elementor-section.elementor-section-full_width>.elementor-container,
.e-con-full>.e-con-inner,
.e-con.e-parent>.e-con-inner {
	max-width: var(--sb-shell);
	margin-inline: auto;
}

/* Boxed sections already cap content, but normalise their ceiling to the
   same shell so wide monitors don't over-stretch boxed rows either. */
.elementor-section.elementor-section-boxed>.elementor-container {
	max-width: var(--sb-shell);
}

/* Non-Elementor pages (default WP content). */
.sbh-main>.entry-content,
.page-content {
	max-width: var(--sb-shell);
	margin-inline: auto;
	padding-inline: var(--sb-gutter);
	box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────
   Header
   ───────────────────────────────────────────────────────────── */
.sbh-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: .6rem 1rem;
	background: var(--sb-ink);
	color: #fff;
	border-radius: 0 0 8px 0;
	font: 600 .9rem/1 'Inter', system-ui, sans-serif;
}

.sbh-skip:focus {
	left: 0;
}

.sbh {
	position: sticky;
	top: 0;
	z-index: 900;
	background: color-mix(in srgb, var(--sb-bg) 88%, transparent);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--sb-line);
	font-family: 'Inter', system-ui, sans-serif;
}

.sbh__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 72px;
}

.sbh__brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	color: var(--sb-ink);
	flex-shrink: 0;
}

.sbh__mark {
	display: grid;
	place-items: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 10px;
	color: var(--sb-primary);
	background: color-mix(in srgb, var(--sb-primary) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--sb-primary) 22%, transparent);
}

.sbh__mark svg {
	width: 20px;
	height: 20px;
}

.sbh__word {
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -.02em;
}

.sbh__word strong {
	color: var(--sb-primary);
	font-weight: 800;
}

.sbh__cbx {
	display: none;
}

.sbh__nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.sbh-menu {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sbh-menu a {
	position: relative;
	text-decoration: none;
	color: var(--sb-muted);
	font-size: .95rem;
	font-weight: 600;
	padding: .25rem 0;
	transition: color .18s ease;
}

.sbh-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -.35rem;
	height: 2px;
	background: var(--sb-primary);
	transition: right .22s ease;
}

.sbh-menu a:hover {
	color: var(--sb-ink);
}

.sbh-menu a:hover::after {
	right: 0;
}

.sbh__cta {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	text-decoration: none;
	background: var(--sb-primary);
	color: #fff;
	font-size: .92rem;
	font-weight: 700;
	padding: .6rem 1.1rem;
	border-radius: 999px;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sbh__cta svg {
	width: 16px;
	height: 16px;
	transition: transform .18s ease;
}

.sbh__cta:hover {
	background: color-mix(in srgb, var(--sb-primary) 88%, #000);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -14px var(--sb-primary);
}

.sbh__cta:hover svg {
	transform: translateX(3px);
}

.sbh__burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	padding: .5rem;
	margin: -.5rem;
}

.sbh__burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--sb-ink);
	border-radius: 2px;
	transition: transform .22s ease, opacity .22s ease;
}

/* ── Mobile ── */
@media (max-width: 860px) {
	.sbh__burger {
		display: flex;
	}

	.sbh__nav {
		position: fixed;
		inset: 72px 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1.25rem;
		padding: 1.5rem var(--sb-gutter) 2rem;
		background: var(--sb-bg);
		border-bottom: 1px solid var(--sb-line);
		box-shadow: 0 24px 40px -28px rgba(15, 23, 42, .5);
		transform: translateY(-120%);
		transition: transform .28s cubic-bezier(.4, 0, .2, 1);
	}

	.sbh-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}

	.sbh__cbx:checked~.sbh__nav {
		transform: translateY(0);
	}

	.sbh__cbx:checked~.sbh__burger span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.sbh__cbx:checked~.sbh__burger span:nth-child(2) {
		opacity: 0;
	}

	.sbh__cbx:checked~.sbh__burger span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
}

/* ─────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────── */
.sbf {
	margin-top: 4rem;
	background: #fbfcfd;
	border-top: 1px solid var(--sb-line);
	font-family: 'Inter', system-ui, sans-serif;
	color: var(--sb-muted);
}

.sbf__inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 2.5rem;
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.sbf__brand {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
	color: var(--sb-ink);
	margin-bottom: 1rem;
}

.sbf__mark {
	display: grid;
	place-items: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 10px;
	color: var(--sb-primary);
	background: color-mix(in srgb, var(--sb-primary) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--sb-primary) 22%, transparent);
}

.sbf__mark svg {
	width: 19px;
	height: 19px;
}

.sbf__word {
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -.02em;
}

.sbf__word strong {
	color: var(--sb-primary);
	font-weight: 800;
}

.sbf__tag {
	margin: 0;
	max-width: 32ch;
	font-size: .95rem;
	line-height: 1.6;
}

.sbf__col {
	display: flex;
	flex-direction: column;
	gap: .7rem;
}

.sbf__head {
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sb-ink);
	margin: 0 0 .3rem;
}

.sbf__col a {
	text-decoration: none;
	color: var(--sb-muted);
	font-size: .95rem;
	font-weight: 500;
	transition: color .16s ease;
}

.sbf__col a:hover {
	color: var(--sb-primary);
}

.sbf__base {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.25rem;
	border-top: 1px solid var(--sb-line);
	font-size: .85rem;
}

.sbf__by {
	color: var(--sb-muted);
}

@media (max-width: 720px) {
	.sbf__inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.sbf__base {
		flex-direction: column;
		align-items: flex-start;
	}
}