/* Emerson Capital — main styles.
   Brand tokens are also defined in theme.json (block editor + presets);
   these mirror them for the theme's own chrome and section components. */

:root {
	--maxw: 1120px;
	--content: 720px;
	--bg: #F4F0E6;      /* cream */
	--surface: #EDE8DA; /* warm surface */
	--ink: #1C241E;     /* near-black pine */
	--muted: #5F6B60;   /* muted green-gray */
	--pine: #23402F;    /* brand green */
	--gold: #A98B5C;    /* antique gold accent */
	--sage: #8FA08C;    /* mountains */
	--line: #E2DBCB;    /* hairline on cream */
	--space: clamp(1.25rem, 4vw, 2rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: "EB Garamond", Georgia, "Times New Roman", serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.65;
}

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

.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: var(--space);
}

/* ---------- Header ---------- */
.site-header {
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.1rem;
}

.site-brand { display: inline-flex; }

.site-brand__img,
.site-brand .custom-logo {
	height: 44px;
	width: auto;
	display: block;
}

.site-nav__menu {
	display: flex;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__menu a {
	color: var(--muted);
	text-decoration: none;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.site-nav__menu a:hover { color: var(--pine); }

/* ---------- Full-width section plumbing ---------- */
.entry-content { overflow-x: clip; }

.entry-content .alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: auto;
}

/* Cap section content to --maxw and center it (background stays full-bleed),
   so left/right-pinned content doesn't drift to the viewport edges. */
.ec-top,
.ec-contact {
	padding-inline: max(var(--space), calc((100vw - var(--maxw)) / 2));
}

/* ---------- Intro: brand lockup (left) + approach (right) ---------- */
.ec-top {
	background: var(--bg);
	padding-block: clamp(4rem, 9vw, 7rem);
}

.ec-top__row {
	max-width: 1040px;
	margin-inline: auto;
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: center;
}

/* Left column — brand lockup + tagline (tight, cohesive) */
.ec-top__brand { text-align: left; }
.ec-top__brand > * { margin-top: 0; } /* reset column block-gap; set rhythm below */

.ec-hero__logo img { width: 400px; }

.ec-hero__tagline {
	font-size: clamp(1.5rem, 2.8vw, 2.05rem);
	color: var(--pine);
	font-weight: 500;
	max-width: 26ch;
	line-height: 1.25;
	margin-top: 1.5rem;
}

/* ---------- Eyebrow (section label) ---------- */
.ec-eyebrow {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 0.76rem;
	color: var(--gold);
	margin: 0 0 0.85rem;
}

/* ---------- Right column — approach (tidy right-aligned block) ---------- */
.ec-top__approach { text-align: right; }
.ec-top__approach > * { margin-left: auto; margin-right: 0; margin-top: 0; } /* reset block-gap */

.ec-eyebrow { margin-bottom: 0; max-width: 500px; }

.ec-approach__lead {
	font-size: clamp(1.4rem, 2.4vw, 1.95rem);
	color: var(--pine);
	max-width: 500px;
	line-height: 1.25;
	font-weight: 500;
	margin-top: 1rem;
}

/* Center the label + lead over the three criteria columns (matches their 500px block) */
.ec-top__approach .ec-eyebrow,
.ec-top__approach .ec-approach__lead {
	text-align: center;
}

/* Hide the empty lede paragraph so it doesn't add a gap */
.ec-lede:empty { display: none; }

.ec-lede {
	font-size: 1.08rem;
	color: var(--ink);
	max-width: 42ch;
	line-height: 1.6;
	margin-top: 1.5rem;
}

.ec-criteria {
	max-width: 500px;
	margin-top: 2.5rem;
	margin-left: auto;
	gap: 1.5rem;
}

.ec-criteria__item {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: 1.18rem;
	line-height: 1.3;
	color: var(--pine);
	text-align: right;
	margin: 0;
	padding-top: 0.9rem;
	border-top: 1px solid var(--gold);
}

/* Stack the two intro columns on narrower screens */
@media (max-width: 960px) {
	.ec-top__row { flex-wrap: wrap; }
	.ec-top__row > .wp-block-column {
		flex-basis: 100% !important;
		max-width: 100% !important;
	}
	.ec-top__approach { text-align: left; margin-top: 2.5rem; }
	.ec-top__approach > * { margin-left: 0; margin-right: auto; }
	.ec-criteria__item { text-align: left; }
}

/* ---------- Contact (dark) ---------- */
.ec-contact {
	text-align: center;
	padding-block: clamp(3.5rem, 8vw, 6rem);
	background: var(--pine);
	color: var(--bg);
}

.ec-contact__emblem { margin-inline: auto; }
.ec-contact__emblem img { width: 72px; }

.ec-contact__title {
	color: var(--bg) !important;
	margin-top: 1rem;
	font-size: clamp(1.4rem, 3vw, 2rem);
}

.ec-contact__email {
	font-size: 1.35rem;
	margin: 1.1rem 0 0.35rem;
}

.ec-contact__email a {
	color: var(--gold);
	text-decoration: none;
}

.ec-contact__email a:hover { text-decoration: underline; }

.ec-contact__addr {
	color: #CBD4C7;
	font-size: 1.02rem;
	margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--pine);
	color: #E7E9E0;
}

.site-footer__inner {
	padding-block: clamp(2.75rem, 5vw, 4rem);
}

.site-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem 3rem;
}

.site-footer__brand { display: inline-flex; }

.site-footer__brand img {
	height: 92px;
	width: auto;
	display: block;
}

.site-footer__contact {
	font-style: normal;
	text-align: right;
	font-size: 1.15rem;
	line-height: 1.65;
	color: #E7E9E0;
}

.site-footer__contact p { margin: 0; }

.site-footer__contact a {
	color: #E7E9E0;
	text-decoration: none;
}

.site-footer__contact a:hover { color: var(--gold); }

.site-footer__rule {
	border: 0;
	border-top: 1px solid var(--gold);
	margin: clamp(1.75rem, 4vw, 2.5rem) 0;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 2rem;
}

.site-footer__copy {
	margin: 0;
	font-size: 0.95rem;
	color: #AFC0AB;
}

.site-footer__disclaimer {
	margin: 0;
	max-width: 62ch;
	text-align: right;
	font-size: 0.8rem;
	line-height: 1.55;
	color: #86977F;
}

@media (max-width: 700px) {
	.site-footer__contact,
	.site-footer__disclaimer { text-align: left; }
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.site-brand__img,
	.site-brand .custom-logo { height: 38px; }
	.ec-criteria__item { border-top: 0; padding-top: 0.25rem; }
}
