/* ==========================================================================
   Aliciainc Counsel
   ========================================================================== */

/* The original Aliciainc site's fonts: Plus Jakarta Sans headings, Inter text. */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/plus-jakarta-sans-italic-latin.woff2") format("woff2");
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
}

:root {
	--color-stone: #efebe3;
	--color-sand: #e2dcd0;
	--color-sand-deep: #d2c8b6;
	--color-ink: #1e2421;
	--color-muted: #4b524e;
	--color-green: #2f6f62;
	--color-green-deep: #24584e;
	--color-copper: #b87333;
	--color-copper-text: #8a4e24;
	--color-copper-light: #d9a06b;
	--color-rule: #c9c1b2;
	--color-night-rule: #3a423e;
	--color-night-text: #a9b0ab;

	--font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--weight-display: 600;

	--gutter: clamp(20px, 5vw, 72px);
	--wrap: 1440px;
	--radius-lg: 24px;
	--section-space: clamp(72px, 9vw, 120px);
}

/* Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-stone);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--color-green);
	outline-offset: 3px;
}

/* On the dark footer and the green ESL section the focus ring turns light. */
:is(.site-footer, .esl-feature) :focus-visible {
	outline-color: var(--color-stone);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	z-index: 100;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 12px 20px;
	margin: 0;
	clip: auto;
	background: var(--color-ink);
	color: var(--color-stone);
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Shared elements
   ========================================================================== */

/* Large headings split into even lines instead of leaving one word (or one
   Chinese character) alone on the last line. */
:is(.hero__title, .page-title, .entry-content > h1, .section-title, .band__title, .esl-feature__title, .footer-cta__title) {
	text-wrap: balance;
}

.eyebrow {
	margin: 0;
	color: var(--color-copper-text);
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2308;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 18px 30px;
	border-radius: 999px;
	background: var(--color-green);
	color: #fff;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.button:hover {
	background: var(--color-green-deep);
}

.button--small {
	padding: 13px 24px;
	font-size: 0.9375rem;
	line-height: 1.2;
}

.button--light {
	padding: 20px 32px;
	background: var(--color-stone);
	color: var(--color-ink);
}

.button--light:hover {
	background: #fff;
}

.text-link {
	display: inline-block;
	padding-bottom: 3px;
	border-bottom: 1.5px solid var(--color-copper);
	color: var(--color-ink);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
	border-color: var(--color-green);
	color: var(--color-green);
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	padding-bottom: 40px;
}

.section-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.375rem, 4vw, 3.5rem);
	font-weight: var(--weight-display);
	line-height: 1.07;
	letter-spacing: -0.012em;
}

.section-note {
	flex-shrink: 0;
	width: min(380px, 100%);
	margin: 0;
	color: var(--color-muted);
	font-size: 1rem;
	line-height: 1.625;
}

/* Header
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 20;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(20px, 2.2vw, 32px);
	padding-block: 32px;
}

.site-logo {
	flex-shrink: 0;
}

.site-logo .custom-logo-link {
	display: block;
}

.site-logo .custom-logo {
	display: block;
	width: auto;
	height: 56px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.4vw, 40px);
}

.site-nav__menu {
	display: flex;
	gap: clamp(20px, 2.4vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__menu a {
	display: block;
	padding-block: 4px;
	white-space: nowrap;
	border-bottom: 1.5px solid transparent;
	color: var(--color-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.site-nav__menu a:hover,
.site-nav__menu .current-menu-item > a,
.site-nav__menu .current_page_item > a {
	border-bottom-color: var(--color-copper);
}

/* Language dropdown, after the navigation links. */
.lang-switch {
 position: relative;
 flex-shrink: 0;
 white-space: nowrap;
}

.lang-switch summary {
 display: flex;
 align-items: center;
 gap: 8px;
 padding: 10px 12px;
 border: 1px solid var(--color-rule);
 border-radius: 8px;
 font-size: 0.875rem;
 font-weight: 600;
 cursor: pointer;
 list-style: none;
}

.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: "▾"; }
.lang-switch[open] summary::after { content: "▴"; }

.lang-switch ul {
 position: absolute;
 top: calc(100% + 8px);
 right: 0;
 z-index: 30;
 min-width: 160px;
 margin: 0;
 padding: 8px;
 list-style: none;
 background: var(--color-stone);
 border: 1px solid var(--color-rule);
 border-radius: 8px;
 box-shadow: 0 8px 24px rgb(30 36 33 / 12%);
}

.lang-switch a,
.lang-switch__current {
 display: block;
 padding: 10px 12px;
 border-radius: 4px;
 font-size: 0.9375rem;
 font-weight: 600;
 line-height: 1.4;
 text-decoration: none;
}

.lang-switch a:hover,
.lang-switch__current {
 color: var(--color-green-deep);
 background: var(--color-sand);
}

.site-header__toggle {
	display: none;
	flex-shrink: 0;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
	padding: 10px 18px;
	border: 1px solid var(--color-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--color-ink);
	font: 600 0.9375rem/1.2 var(--font-body);
	cursor: pointer;
}

.site-header__toggle-icon,
.site-header__toggle-icon::before {
	display: block;
	width: 16px;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.2s ease;
}

.site-header__toggle-icon {
	position: relative;
	transform: translateY(-3px);
}

.site-header__toggle-icon::before {
	content: "";
	position: absolute;
	top: 6px;
}

.nav-open .site-header__toggle-icon {
	transform: rotate(45deg);
}

.nav-open .site-header__toggle-icon::before {
	top: 0;
	transform: rotate(-90deg);
}

/* Home: hero
   ========================================================================== */

.hero {
	padding-top: 56px;
	padding-bottom: 112px;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
	align-items: center;
	gap: clamp(40px, 5vw, 72px);
}

.hero__copy {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.hero__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.75rem, 5.4vw, 4.75rem);
	font-weight: var(--weight-display);
	line-height: 1.02;
	letter-spacing: -0.02em;
}

.hero__lead {
	max-width: 520px;
	margin: 0;
	color: var(--color-muted);
	font-size: 1.1875rem;
	line-height: 1.6316;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 28px;
}

.hero__media {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	aspect-ratio: 560 / 640;
	/* Semicircular top at any width: 50% of the width, 280/640 of the height. */
	border-radius: 50% 50% var(--radius-lg) var(--radius-lg) / 43.75% 43.75% var(--radius-lg) var(--radius-lg);
	background: var(--color-green);
}

/* The photo includes its own green backdrop and fills the arch. */
.hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: bottom;
}

/* Home: services
   ========================================================================== */

.services {
	padding-bottom: var(--section-space);
}

.service-list {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--color-rule);
	list-style: none;
}

.service {
	display: grid;
	grid-template-columns: 64px minmax(0, 460px) minmax(0, 1fr);
	align-items: start;
	gap: 40px;
	padding-block: 32px;
	border-top: 1px solid var(--color-rule);
}

.service__number,
.reason__number {
	color: var(--color-copper-text);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.375rem;
	font-style: italic;
	line-height: 1.2727;
}

.service__name {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 2.6vw, 2.25rem);
	font-weight: var(--weight-display);
	line-height: 1.12;
}

.service__name a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.service__name a:hover {
	color: var(--color-green);
}

.service__description {
	margin: 0;
	padding-top: 4px;
	color: var(--color-muted);
	font-size: 1rem;
	line-height: 1.625;
}

/* Home: ESL training feature
   ========================================================================== */

.esl-feature {
	padding-block: clamp(72px, 8vw, 112px);
	background: var(--color-green);
	color: var(--color-stone);
}

.esl-feature__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(40px, 7vw, 104px);
}

.esl-feature .eyebrow {
	color: var(--color-stone);
}

.esl-feature__title {
	margin: 20px 0 24px;
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 3.9vw, 3.5rem);
	font-weight: var(--weight-display);
	line-height: 1.05;
	letter-spacing: -0.015em;
}

.esl-feature__text {
	max-width: 520px;
	margin: 0 0 36px;
	color: #e4ece8;
	font-size: 1.125rem;
	line-height: 1.6667;
}

.esl-feature .button--light:hover {
	background: #fff;
}

.esl-feature__label {
	margin: 0 0 20px;
	color: #e4ece8;
	font-size: 1rem;
	line-height: 1.625;
}

.esl-topics {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(239, 235, 227, 0.28);
	list-style: none;
}

.esl-topics li {
	padding-block: 18px;
	border-top: 1px solid rgba(239, 235, 227, 0.28);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.5rem, 2.2vw, 1.875rem);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

/* Home: about band
   ========================================================================== */

.band {
	padding-block: clamp(72px, 8vw, 112px);
	background: var(--color-sand);
}

.band__inner {
	display: grid;
	grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
	align-items: center;
	gap: clamp(40px, 6vw, 80px);
}

.band__media {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	aspect-ratio: 520 / 620;
	border-radius: var(--radius-lg);
	background: var(--color-sand-deep);
}

.band__media img {
	display: block;
	width: auto;
	max-width: none;
	height: 90%;
}

.band__copy {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.band__copy > * {
	margin: 0;
}

.band__title {
	font-family: var(--font-display);
	font-size: clamp(2.25rem, 3.7vw, 3.25rem);
	font-weight: var(--weight-display);
	line-height: 1.12;
	letter-spacing: -0.012em;
}

.band__text {
	max-width: 620px;
	color: var(--color-muted);
	font-size: 1.0625rem;
	line-height: 1.6471;
}

.band__copy .eyebrow + .band__title {
	margin-top: -4px;
}

/* Home: why choose us
   ========================================================================== */

.reasons {
	padding-block: var(--section-space);
}

.reasons__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.reason {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 28px;
	border-top: 1px solid var(--color-rule);
}

.reason__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.625rem, 2.2vw, 1.875rem);
	font-weight: var(--weight-display);
	line-height: 1.17;
	letter-spacing: -0.01em;
}

.reason p {
	margin: 0;
	color: var(--color-muted);
	font-size: 1rem;
	line-height: 1.625;
}

/* Client logo slideshow
   ========================================================================== */

.clients {
	padding-top: 72px;
	padding-bottom: var(--section-space);
	border-top: 1px solid var(--color-rule);
}

.reasons + .clients {
	border-top: 0;
	padding-top: 0;
}

.clients__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 48px;
}

.clients__title {
	margin: 12px 0 0;
	font-family: var(--font-display);
	font-size: clamp(1.875rem, 3vw, 2.5rem);
	font-weight: var(--weight-display);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.marquee-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border: 0;
	background: none;
	color: var(--color-muted);
	font: 600 0.875rem/1.2857 var(--font-body);
	cursor: pointer;
}

.marquee-toggle:hover {
	color: var(--color-ink);
}

/* Pause icon: two bars. Play icon: a triangle. */
.marquee-toggle__icon {
	width: 10px;
	height: 12px;
	border-inline: 3px solid currentColor;
}

.marquee-toggle.is-paused .marquee-toggle__icon {
	width: 0;
	height: 0;
	border-block: 6px solid transparent;
	border-inline: 10px solid currentColor;
	border-inline-end: 0;
}

.marquee {
	--logo-gap: 72px;
	--marquee-duration: 60s;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* The track carries the page colour so the logos' white backgrounds can
   blend into it (the animated track is its own compositing group). */
.marquee__track {
	display: flex;
	width: max-content;
	background: var(--color-stone);
	animation: aliciainc-marquee var(--marquee-duration) linear infinite;
}

.marquee:hover .marquee__track,
.marquee.is-paused .marquee__track {
	animation-play-state: paused;
}

.marquee__group {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-around;
	gap: var(--logo-gap);
	min-width: 100vw;
	margin: 0;
	padding: 8px calc(var(--logo-gap) / 2);
	list-style: none;
}

.marquee__item {
	flex: 0 0 auto;
}

.marquee__logo {
	display: block;
	width: auto;
	max-width: 260px;
	height: calc(var(--logo-height, 60px) * var(--logo-scale, 1));
	object-fit: contain;
	border-radius: 6px;
	mix-blend-mode: multiply;
}

@keyframes aliciainc-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* Footer
   ========================================================================== */

.site-footer {
	padding-top: clamp(72px, 9vw, 112px);
	padding-bottom: 40px;
	background: var(--color-ink);
	color: var(--color-stone);
}

.footer-cta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
	padding-bottom: 72px;
}

.footer-cta__title {
	max-width: 780px;
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.625rem, 5vw, 4.5rem);
	font-weight: var(--weight-display);
	line-height: 1.06;
	letter-spacing: -0.015em;
}

.footer-cta__text {
	max-width: 560px;
	margin: 24px 0 0;
	color: var(--color-night-text);
	font-size: 1.0625rem;
	line-height: 1.6471;
}

.footer-contact {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	margin: 0;
	padding-block: 32px 48px;
	border-top: 1px solid var(--color-night-rule);
}

.site-footer--compact {
	padding-top: 56px;
}

.site-footer--compact .footer-contact {
	padding-top: 0;
	border-top: 0;
}

.footer-contact dt {
	margin-bottom: 8px;
	color: var(--color-copper-light);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2308;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.footer-contact dd {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.375rem;
	line-height: 1.3636;
	overflow-wrap: anywhere;
}

.footer-contact a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-contact a:hover {
	color: var(--color-copper-light);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid var(--color-night-rule);
	color: var(--color-night-text);
	font-size: 0.875rem;
	line-height: 1.2857;
}

.footer-bottom p {
	margin: 0;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a {
	display: inline-block;
	padding-block: 3px;
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--color-stone);
}

/* Pages
   ========================================================================== */

.page-hero {
	padding-top: 40px;
	padding-bottom: 24px;
}

.page-title {
	max-width: 980px;
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(2.75rem, 5.4vw, 5rem);
	font-weight: var(--weight-display);
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.entry-content {
	padding-bottom: var(--section-space);
}

.entry-content > * {
	max-width: 760px;
	margin-top: 0;
	margin-bottom: 24px;
}

.entry-content > h1 {
	max-width: 980px;
	margin-bottom: 28px;
	font-family: var(--font-display);
	font-size: clamp(2.75rem, 5.4vw, 5rem);
	font-weight: var(--weight-display);
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	letter-spacing: -0.01em;
}

.entry-content h2 {
	font-size: clamp(1.875rem, 3vw, 2.5rem);
	line-height: 1.12;
}

.entry-content h3 {
	margin-top: 32px;
	margin-bottom: 12px;
	font-size: 1.625rem;
	line-height: 1.2;
}

.entry-content p,
.entry-content li {
	color: var(--color-muted);
}

.entry-content a {
	color: var(--color-green);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--color-green-deep);
}

.entry-content strong {
	color: var(--color-ink);
}

.entry-content .is-style-lead {
	max-width: 640px;
	margin-bottom: 64px;
	color: var(--color-muted);
	font-size: 1.25rem;
	line-height: 1.6;
}

.entry-content .is-style-eyebrow {
	margin-bottom: 8px;
	color: var(--color-copper-text);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2308;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.entry-content > .wp-block-image {
	max-width: none;
	margin-bottom: 96px;
}

.entry-content > .wp-block-image img {
	display: block;
	width: 100%;
	height: clamp(260px, 38vw, 540px);
	object-fit: cover;
	border-radius: var(--radius-lg);
}

/* A titled section: heading in the left lane, content in the right lane,
   aligned with the service rows on the home page. */
.entry-content > .counsel-section {
	display: grid;
	grid-template-columns: minmax(0, 564px) minmax(0, 1fr);
	column-gap: 40px;
	max-width: none;
	margin-bottom: 0;
	padding-block: 40px 56px;
	border-top: 1px solid var(--color-rule);
}

.entry-content > .counsel-section:last-child {
	border-bottom: 1px solid var(--color-rule);
}

/* Classic themes wrap group content in an inner container; let its children
   take part in the section grid directly. */
.counsel-section > .wp-block-group__inner-container {
	display: contents;
}

.counsel-section > h2,
.counsel-section > .wp-block-group__inner-container > h2 {
	grid-column: 1;
	grid-row: 1 / span 20;
	max-width: 460px;
	margin: 0;
	scroll-margin-top: 24px;
}

.counsel-section > :not(h2, .wp-block-group__inner-container),
.counsel-section > .wp-block-group__inner-container > :not(h2) {
	grid-column: 2;
	margin-top: 0;
	margin-bottom: 20px;
}

.counsel-section > :last-child,
.counsel-section > .wp-block-group__inner-container > :last-child {
	margin-bottom: 0;
}

.counsel-section > h3,
.counsel-section > .wp-block-group__inner-container > h3 {
	margin-top: 16px;
	margin-bottom: 8px;
}

/* Sub-headings that follow other content in a section get room above them. */
.counsel-section > :not(h2) + h3,
.counsel-section > .wp-block-group__inner-container > :not(h2) + h3 {
	margin-top: 40px;
}

.counsel-section ul.wp-block-list {
	columns: 2;
	column-gap: 40px;
	padding: 0;
	list-style: none;
}

.counsel-section ul.wp-block-list li {
	padding-block: 12px;
	border-top: 1px solid var(--color-rule);
	color: var(--color-ink);
	font-size: 1rem;
	line-height: 1.5;
	break-inside: avoid;
}

/* A one-column list of explained items, e.g. accessibility features. */
.counsel-section ul.counsel-features {
	columns: 1;
}

.counsel-section ul.counsel-features li {
	color: var(--color-muted);
	line-height: 1.625;
}

.counsel-features strong {
	color: var(--color-ink);
}

/* Mission, vision and values. */
.entry-content > .counsel-pillars.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	max-width: none;
	margin-bottom: 0;
	padding-block: 40px 16px;
	border-top: 1px solid var(--color-rule);
}

.counsel-pillars h3 {
	margin-top: 0;
	font-size: clamp(1.625rem, 2.2vw, 1.875rem);
}

.counsel-pillars p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.625;
}

/* Contact details. */
.counsel-contact.wp-block-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px 40px;
	margin: 8px 0 0;
}

.counsel-contact p:not(.is-style-eyebrow) {
	margin: 0;
	color: var(--color-ink);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.375rem;
	line-height: 1.3636;
	overflow-wrap: anywhere;
}

.counsel-contact a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1.5px solid var(--color-copper);
}

.counsel-contact a:hover {
	color: var(--color-green);
	border-color: var(--color-green);
}

/* FAQ. */
.entry-content > .counsel-faq {
	max-width: 980px;
	border-bottom: 1px solid var(--color-rule);
}

.counsel-faq .wp-block-details {
	margin: 0;
	padding-block: 28px;
	border-top: 1px solid var(--color-rule);
}

.counsel-faq summary {
	position: relative;
	display: block;
	padding-right: 48px;
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	line-height: 1.2;
	list-style: none;
	cursor: pointer;
}

.counsel-faq summary::-webkit-details-marker {
	display: none;
}

.counsel-faq summary::after {
	content: "+";
	content: "+" / "";
	position: absolute;
	top: 0.1em;
	right: 0;
	color: var(--color-copper-text);
	font-family: var(--font-body);
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.2s ease;
}

.counsel-faq details[open] summary::after {
	transform: rotate(45deg);
}

.counsel-faq summary:hover {
	color: var(--color-green);
}

.counsel-faq details p {
	max-width: 680px;
	margin: 16px 0 0;
}

/* Buttons placed in page content. */
.entry-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 72px;
}

.entry-content .wp-block-button__link {
	display: inline-flex;
	padding: 18px 30px;
	border-radius: 999px;
	background: var(--color-green);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.entry-content .wp-block-button__link:hover {
	background: var(--color-green-deep);
	color: #fff;
}

.counsel-section .wp-block-buttons {
	margin-bottom: 0;
}

/* Comparison tables. */
.counsel-section .wp-block-table {
	margin: 8px 0 20px;
	overflow-x: auto;
}

.counsel-section .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.counsel-section .wp-block-table :is(th, td) {
	padding: 14px 16px 14px 0;
	border: 0;
	border-top: 1px solid var(--color-rule);
	text-align: left;
	vertical-align: top;
}

.counsel-section .wp-block-table thead {
	border-bottom: 1.5px solid var(--color-ink);
}

.counsel-section .wp-block-table th {
	color: var(--color-copper-text);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.counsel-section .wp-block-table td {
	color: var(--color-muted);
}

.counsel-section .wp-block-table td:first-child {
	color: var(--color-ink);
	font-weight: 600;
}

/* Small print, such as disclaimers. */
.entry-content .counsel-note {
	max-width: 760px;
	margin-top: 40px;
	color: var(--color-muted);
	font-size: 0.875rem;
	line-height: 1.5714;
}

.page-actions {
	display: flex;
	gap: 24px;
}

.page-actions .button {
	color: #fff;
}

/* Blog fallback. */
.post-list {
	padding-bottom: var(--section-space);
}

.post-summary {
	padding-block: 32px;
	border-top: 1px solid var(--color-rule);
}

.post-summary__title {
	margin: 12px 0;
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: var(--weight-display);
	line-height: 1.15;
}

.post-summary__title a {
	text-decoration: none;
}

.post-summary__excerpt {
	max-width: 720px;
	color: var(--color-muted);
}

/* Simplified Chinese
   ========================================================================== */

/* Latin text keeps the theme fonts; Chinese characters fall back to the
   system's CJK fonts. Chinese reads better without tight tracking. */
.lang-zh {
	--font-display: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
	--font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
	line-break: strict;
}

.lang-zh :is(h1, h2, h3, .esl-topics li, .footer-contact dd) {
	letter-spacing: 0;
}

.lang-zh :is(.eyebrow, .footer-contact dt, .entry-content .is-style-eyebrow) {
	letter-spacing: 0.08em;
}

.lang-zh .hero__title,
.lang-zh .page-title,
.lang-zh .entry-content > h1 {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	line-height: 1.18;
}

.lang-zh :is(.section-title, .band__title, .esl-feature__title, .footer-cta__title) {
	line-height: 1.25;
}

.lang-zh :is(p, dd, .entry-content li) {
	line-height: 1.8;
}

/* Responsive
   ========================================================================== */

/* Header: below this width the navigation moves into the Menu panel. With
   three languages and longer French labels, the full bar needs ~1180px. */
@media (max-width: 1180px) {
	.site-header__inner {
		gap: 16px;
		padding-block: 20px;
	}

	.lang-switch ul { position: static; margin-top: 8px; }

	.site-header__toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 0 var(--gutter) 32px;
		background: var(--color-stone);
		border-bottom: 1px solid var(--color-rule);
	}

	.nav-open .site-nav {
		display: flex;
	}

	.site-nav__menu {
		flex-direction: column;
		gap: 0;
	}

	.site-nav__menu a {
		padding-block: 16px;
		border-bottom: 1px solid var(--color-rule);
		font-size: 1.125rem;
		line-height: 1.3333;
	}

	.site-nav__menu a:hover,
	.site-nav__menu .current-menu-item > a,
	.site-nav__menu .current_page_item > a {
		border-bottom-color: var(--color-rule);
		color: var(--color-green);
	}
}

@media (max-width: 1100px) {
	.service {
		grid-template-columns: 48px minmax(0, 320px) minmax(0, 1fr);
		gap: 32px;
	}

	.entry-content > .counsel-section {
		grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.site-logo .custom-logo {
		height: 44px;
	}

	.hero {
		padding-top: 24px;
		padding-bottom: 72px;
	}

	.hero__inner,
	.band__inner,
	.esl-feature__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__media,
	.band__media {
		width: 100%;
		max-width: 480px;
	}

	.hero__copy {
		gap: 28px;
	}

	.section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.service {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 8px 16px;
	}

	.service__description {
		grid-column: 2;
	}

	.reasons__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-cta {
		flex-direction: column;
		align-items: flex-start;
		gap: 32px;
	}

	.footer-contact {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.entry-content > .counsel-section {
		grid-template-columns: minmax(0, 1fr);
		padding-block: 32px 40px;
	}

	.counsel-section > h2,
	.counsel-section > .wp-block-group__inner-container > h2 {
		grid-row: auto;
		margin-bottom: 20px;
	}

	.counsel-section > :not(h2, .wp-block-group__inner-container),
	.counsel-section > .wp-block-group__inner-container > :not(h2) {
		grid-column: 1;
	}

	.entry-content > .counsel-pillars.wp-block-columns,
	.counsel-contact.wp-block-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 440px) {
	.site-logo .custom-logo {
		height: 36px;
	}

	.site-header__toggle {
		gap: 8px;
		padding: 8px 14px;
	}
}

@media (max-width: 600px) {
	.hero__title {
		font-size: clamp(2.625rem, 11vw, 3.125rem);
	}

	.hero__lead {
		font-size: 1.125rem;
		line-height: 1.6111;
	}

	.counsel-section ul.wp-block-list {
		columns: 1;
	}

	/* Long words (common in French) must not push headings off narrow screens. */
	:is(h1, h2, h3) {
		hyphens: auto;
		overflow-wrap: break-word;
	}

	.page-title,
	.entry-content > h1 {
		font-size: clamp(2.25rem, 10vw, 2.75rem);
	}

	/* Tables: each row's first cell becomes a full-width title above the rest. */
	.counsel-section .wp-block-table tr {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 16px;
	}

	.counsel-section .wp-block-table :is(th, td) {
		padding-right: 0;
	}

	.counsel-section .wp-block-table th:first-child {
		display: none;
	}

	.counsel-section .wp-block-table td:first-child {
		grid-column: 1 / -1;
		padding-bottom: 0;
	}

	.counsel-section .wp-block-table td:not(:first-child) {
		border-top: 0;
	}

	.clients__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.marquee {
		--logo-gap: 48px;
	}

	.marquee__logo {
		--logo-scale: 0.75;
		max-width: 200px;
	}
}

@media (max-width: 360px) {
	.site-header__inner {
		gap: 12px;
	}

	.site-logo .custom-logo {
		height: 32px;
	}

	.site-header__toggle {
		padding: 10px 12px;
	}

	.site-header__toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}

/* Reduced motion: the logos sit still in rows instead of scrolling, and
   colour and icon transitions are switched off. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
	}

	.marquee {
		overflow: visible;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.marquee__track {
		width: 100%;
		animation: none;
	}

	.marquee__group {
		flex: 1 1 auto;
		flex-wrap: wrap;
		justify-content: center;
		min-width: 0;
		row-gap: 32px;
		padding-inline: var(--gutter);
	}

	.marquee__group[aria-hidden="true"],
	.marquee-toggle {
		display: none;
	}
}

/* Windows High Contrast and other forced-colour modes drop background
   colours, so buttons get a visible border there. */
@media (forced-colors: active) {
	.button,
	.entry-content .wp-block-button__link {
		border: 1px solid ButtonText;
	}
}

/* Keep the translated Spanish navigation within the existing desktop header. */
@media (min-width: 1181px) {
 html[lang="es"] .site-header__inner { gap: 16px; }
 html[lang="es"] .site-nav,
 html[lang="es"] .site-nav__menu { gap: clamp(12px, 1.2vw, 20px); }
}
