/*
Theme Name: The Hugos
Author: Kitefield
Description: A small block theme for James and Leslie Hugo, a real estate team with Keller Williams Central Oklahoma in Edmond. Plain and printed: Source Serif 4 for reading, Public Sans for working text, the Hugos' own photo, a sales record set like a ledger, white paper, indigo and post-oak green.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 0.3.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hugos
*/

/* Colors, fonts, and sizes live in theme.json. This file holds layout and the
   components the pages use. The pages read like a well-kept file: the two of
   them up front, their record early and set like a ledger, short labeled rows
   for how the work goes, and client words beside the claims they back, set
   larger than the text around them. White
   paper throughout, with sections separated by space rather than bands or
   rules, and no decoration: no tinted bands, colored quote bars or italic
   subtitles. The hero and the record get the most room. */

:root {
	--hg-gutter: clamp(1rem, 4vw, 2.5rem);
	--hg-space: clamp(3rem, 6.5vw, 5.25rem);     /* main sections */
	--hg-space-s: clamp(2.25rem, 4.5vw, 3.5rem); /* hero top, smaller blocks */
	--hg-half: clamp(1.75rem, 3.6vw, 2.9rem);    /* each side of a section: two of these make the gap */
	--hg-wide: 74rem;
	--hg-mid: 60rem;
	--hg-text: 38rem;
	--hg-sans: var(--wp--preset--font-family--sans);
	--hg-serif: var(--wp--preset--font-family--serif);
	/* The names in the Home nameplate. The brokerage line is sized from it. */
	--hg-name: clamp(2.6rem, 1.5rem + 4.2vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wp--preset--color--indigo); outline-offset: 3px; }
.hg-cta :focus-visible, .hg-footer :focus-visible { outline-color: var(--wp--preset--color--paper); }

/* Block gap between blocks inside a section. */
.wp-site-blocks > * + *, .hg-main > * + *, .is-layout-default > * + *, .wp-block-post-content > * + * { margin-block-start: 0; }
.hg-main .wp-block-group > * + * { margin-block-start: var(--wp--style--block-gap); }

/* Small working text: table heads, labels, notes. */
.hg-note, .hg-aside, .hg-ledger th {
	font-family: var(--hg-sans); color: var(--wp--preset--color--stone);
}
.hg-note { font-size: 0.8125rem; line-height: 1.55; }
.hg-aside { font-size: var(--wp--preset--font-size--small); }
.hg-aside a { font-weight: 600; }
.hg-lede { font-size: var(--wp--preset--font-size--large); line-height: 1.45; }

/* ---------- Header ---------- */
.hg-header { border-bottom: 1px solid var(--wp--preset--color--rule); background: var(--wp--preset--color--paper); }
.hg-header-inner {
	max-width: var(--hg-wide); margin: 0 auto;
	padding: 1rem var(--hg-gutter);
	gap: 1.5rem;
}
.hg-wordmark > * + * { margin-top: 0.15rem !important; }
.hg-wordmark-logo { margin: 0; }
.hg-wordmark-logo img { display: block; height: 40px; width: auto; }
/* Oklahoma rule: the brokerage at least half the size of any team name. Its capitals (~10.5px) against the logo's 17.6px letters. */
.hg-wordmark-brokerage { font-family: var(--hg-sans); font-size: 0.9375rem; line-height: 1.3; color: var(--wp--preset--color--ink); }

.hg-nav { font-family: var(--hg-sans); font-size: var(--wp--preset--font-size--small); gap: 1.6rem; }
.hg-nav a { color: var(--wp--preset--color--indigo); text-decoration: none; }
.hg-nav a:hover, .hg-nav .current-menu-item a { text-decoration: underline; }
.hg-nav .hg-nav-call a { color: var(--wp--preset--color--indigo); font-weight: 600; }
.hg-nav .hg-nav-text { display: none !important; }
.hg-nav .wp-block-navigation__responsive-container-open,
.hg-nav .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--ink); }
.hg-nav .wp-block-navigation__responsive-container-open svg,
.hg-nav .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.hg-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem var(--hg-gutter); }
/* The phone menu: big serif links down the left, then call and text. */
.hg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.hg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
.hg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	font-family: var(--hg-serif); font-size: 1.75rem; gap: 1rem; padding-top: 1.5rem;
}
.hg-nav .is-menu-open .hg-nav-call,
.hg-nav .is-menu-open .hg-nav-text {
	display: block !important; font-family: var(--hg-sans); font-size: 1.0625rem; font-weight: 600;
}
.hg-nav .is-menu-open .hg-nav-call { margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--wp--preset--color--rule); }
.hg-nav .is-menu-open .hg-nav-call a, .hg-nav .is-menu-open .hg-nav-text a { color: var(--wp--preset--color--indigo); padding: 0.35rem 0; }
@media (max-width: 599px) {
	.hg-wordmark-logo img { height: 34px; }
	.hg-wordmark-brokerage { font-size: 0.875rem; }
}

/* ---------- Sections ---------- */
.hg-cta { padding: var(--hg-space) var(--hg-gutter); }
.hg-section { padding: var(--hg-half) var(--hg-gutter); }
.wp-block-post-content > .hg-section:last-child, .hg-section:has(+ .hg-cta) { padding-bottom: var(--hg-space); }
/* One left edge for the content: a reading column that starts where the wide content starts. */
.hg-section > *, .hg-cta > * { max-width: var(--hg-text); margin-left: max(0px, calc((100% - var(--hg-mid)) / 2)); margin-right: auto; }
.hg-section h2 + p, .hg-section h2 + ul { margin-top: 1rem; }
.hg-section > .hg-note { margin-top: 1.25rem !important; }

/* Sections whose content runs wider than a reading column. */
.hg-layout-ledger > *, .hg-layout-roles > *, .hg-layout-paths > *, .hg-layout-topics > * { max-width: var(--hg-mid); }
/* Their opening paragraphs line up with the wide content but keep a reading width. */
.hg-layout-ledger > p:not(.hg-note), .hg-layout-roles > p:not(.hg-note), .hg-layout-topics > p:not(.hg-note), .hg-layout-paths > p:not(.hg-note) {
	padding-right: max(0px, min(calc(var(--hg-mid) - var(--hg-text)), calc(100vw - 2 * var(--hg-gutter) - var(--hg-text))));
}



/* ---------- Buttons ---------- */
.wp-block-buttons { gap: 0.75rem; align-items: center; }
.wp-element-button, .wp-block-button__link { text-decoration: none; transition: background-color 0.15s ease; min-height: 2.75rem; display: inline-flex; align-items: center; }
.wp-block-button__link:hover { background-color: #3730A3; }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--wp--preset--color--indigo);
	border: 1px solid currentColor; padding: calc(0.85rem - 1px) calc(1.4rem - 1px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #EEF0FF; }

/* ---------- Home hero: the two of them, with the nameplate ---------- */
.hg-hero { padding: var(--hg-space-s) var(--hg-gutter) var(--hg-half); }
.hg-hero > * { max-width: var(--hg-wide); margin-left: auto; margin-right: auto; }
.hg-hero-words > * + * { margin-top: 1.25rem !important; }
.hg-hero h1 { font-weight: 500; }
.hg-hero .wp-block-buttons { margin-top: 1.75rem !important; }
.hg-hero .hg-aside { margin-top: 1rem !important; }

.hg-hero-home h1 { font-size: var(--hg-name); line-height: 1.02; letter-spacing: -0.02em; }
/* Oklahoma rule: the brokerage at least half the size of the names. Sized from them, so it holds at every width. */
.hg-brokerage-line {
	font-size: calc(var(--hg-name) * 0.55); line-height: 1.15; font-weight: 400; letter-spacing: -0.01em;
	color: var(--wp--preset--color--ink); margin-top: 0.35rem !important;
}
/* The introduction sits directly above the primary actions. */
.hg-hero-home .hg-lede {
	margin-top: 1.25rem !important; max-width: 36rem;
	font-size: clamp(1.375rem, 1.05rem + 1vw, 1.75rem); line-height: 1.3; text-wrap: balance;
}
.hg-hero-home .hg-hero-words > p:is(:not([class]), [class="wp-block-paragraph"]) { max-width: 34rem; }
.hg-hero-photo figure { margin: 0; }
.hg-hero-photo img { width: 100%; object-fit: cover; }
.hg-hero-photo figcaption { margin-top: 0.5rem; }

@media (min-width: 900px) {
	/* The photo runs from the header to the record and off the right edge. */
	.hg-hero-home.has-photo {
		display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
		align-items: stretch; padding: 0; max-width: none;
	}
	.hg-hero-home.has-photo > * { margin: 0 !important; max-width: none; }
	.hg-hero-home .hg-hero-words {
		align-self: center;
		padding: var(--hg-space-s) clamp(2.5rem, 5vw, 5rem) var(--hg-space-s) max(var(--hg-gutter), calc((100vw - var(--hg-wide)) / 2));
	}
	.hg-hero-home .hg-hero-photo figure { height: 100%; display: flex; flex-direction: column; }
	.hg-hero-home .hg-hero-photo img { flex: 1; height: clamp(30rem, 66vh, 42rem); object-position: center 22%; }
	.hg-hero-home .hg-hero-photo figcaption { margin: 0; padding: 0.5rem var(--hg-gutter) 0.6rem 1rem; }
}
@media (max-width: 899px) {
	/* Phones and tablets: the photo first and edge to edge, then the names. */
	.hg-hero-home.has-photo { display: flex; flex-direction: column; padding-top: 0; }
	.hg-hero-home .hg-hero-photo { order: -1; margin: 0 calc(-1 * var(--hg-gutter)) 1.25rem !important; max-width: none; }
	.hg-hero-home .hg-hero-photo img { aspect-ratio: 8 / 5; object-position: center 7%; }
	.hg-hero-home .hg-hero-words { margin-top: 0 !important; width: 100%; }
	.hg-hero-home .hg-hero-photo figcaption { padding: 0 var(--hg-gutter); }
}
@media (min-width: 600px) and (max-width: 899px) {
	.hg-hero-home .hg-hero-photo img { height: 19rem; object-position: center 7%; }
}

/* Inner pages: title and opening paragraph, left-aligned with the content. */
.hg-hero-page .hg-hero-words { max-width: var(--hg-mid); }
.hg-hero-page .hg-hero-words > .hg-lede { max-width: 44rem; }
.hg-hero-page .hg-hero-words > p:is(:not([class]), [class="wp-block-paragraph"]) { max-width: var(--hg-text); }

/* ---------- The record: sales set like a ledger ---------- */
.hg-ledger { margin-top: 2rem !important; overflow-x: auto; }
.hg-ledger table { width: 100%; border-collapse: collapse; font-family: var(--hg-sans); font-size: var(--wp--preset--font-size--small); }
/* Beat the core table block's full cell borders: rules between rows only. */
.hg-ledger.wp-block-table thead { border: 0; }
.hg-ledger.wp-block-table th, .hg-ledger.wp-block-table td { border-width: 0 0 1px; border-style: solid; border-color: var(--wp--preset--color--rule); }
.hg-ledger.wp-block-table th { border-color: var(--wp--preset--color--ink); }
.hg-ledger.wp-block-table tbody tr:last-child td { border-bottom-color: var(--wp--preset--color--ink); }
.hg-ledger th { text-align: left; font-weight: 600; font-size: 0.8125rem; padding: 0 1.25rem 0.6rem 0; }
.hg-ledger td { padding: 1rem 1.25rem 1rem 0; vertical-align: baseline; }
.hg-ledger td:first-child {
	font-family: var(--hg-serif); font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); font-weight: 500;
	font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; letter-spacing: -0.01em;
}
.hg-ledger td:nth-child(2) { font-family: var(--hg-serif); font-size: 1.125rem; }
.hg-ledger td:last-child, .hg-ledger th:last-child { padding-right: 0; text-align: right; white-space: nowrap; }
.hg-ledger td strong { font-weight: 600; }
@media (max-width: 639px) {
	.hg-ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.hg-ledger tbody { display: block; border-top: 1px solid var(--wp--preset--color--ink); }
	.hg-ledger tr { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--wp--preset--color--rule); }
	.hg-ledger tr:last-child { border-bottom-color: var(--wp--preset--color--ink); }
	.hg-ledger.wp-block-table td { padding: 0; border: 0; }
	.hg-ledger td:first-child { grid-column: 1; grid-row: 1; }
	.hg-ledger td:last-child { grid-column: 2; grid-row: 1; align-self: baseline; color: var(--wp--preset--color--stone); }
	.hg-ledger td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; margin-top: 0.25rem; }
	.hg-ledger td:nth-child(3):not(:last-child) { grid-column: 1 / -1; grid-row: 3; color: var(--wp--preset--color--stone); }
}
.hg-ledger + .hg-note, .hg-ledger + p { margin-top: 1.25rem !important; }

/* ---------- Who does what: two columns under a heavy rule ---------- */
.hg-roles { gap: clamp(2rem, 5vw, 4rem) !important; margin-top: 2rem !important; }
.hg-role { border-top: 2px solid var(--wp--preset--color--ink); padding-top: 1.25rem; }
.hg-role h3 { font-size: 1.625rem; font-weight: 500; }
.hg-role > * + * { margin-top: 0.75rem !important; }
.hg-role ul { list-style: none; padding: 0 !important; margin-top: 1rem !important; border-top: 1px solid var(--wp--preset--color--rule); }
.hg-role li { padding: 0.6rem 0; margin: 0 !important; border-bottom: 1px solid var(--wp--preset--color--rule); }
.hg-layout-roles > .hg-pull { margin: 2.25rem auto 0 !important; max-width: var(--hg-mid); }
.hg-layout-roles > .hg-pull p { max-width: 46rem; }

/* ---------- Topics: a short label beside its text ---------- */
.hg-topics { margin-top: 2rem !important; border-top: 1px solid var(--wp--preset--color--ink); }
.hg-topic { padding: 1.75rem 0; border-bottom: 1px solid var(--wp--preset--color--rule); }
.hg-topic + .hg-topic { margin-top: 0 !important; }
.hg-topic h3 { font-size: 1.375rem; font-weight: 500; }
.hg-topic-body { margin-top: 0.75rem !important; }
.hg-topic-body > * + * { margin-top: 1rem !important; }
@media (min-width: 782px) {
	.hg-topic { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; }
	.hg-topic > * { margin: 0 !important; }
	.hg-topic-body { max-width: var(--hg-text); }
}

/* ---------- Client words: larger than the text around them, the client's name in bold ---------- */
.hg-pull.wp-block-quote { margin: 1.75rem 0 0; padding: 0; border: 0; }
.hg-section > .hg-pull.wp-block-quote { margin-left: max(0px, calc((100% - var(--hg-mid)) / 2)); }
.hg-pull p { font-size: clamp(1.3125rem, 1.1rem + 0.7vw, 1.5625rem); line-height: 1.38; letter-spacing: -0.005em; text-indent: -0.42em; max-width: 36rem; }
/* The opening quote mark hangs in the margin so the words line up with the text. */
.hg-pull p::before, .hg-quotes .wp-block-quote p::before, .hg-reviews .wp-block-quote p::before { content: "\201C"; }
.hg-pull p::after, .hg-quotes .wp-block-quote p::after, .hg-reviews .wp-block-quote p::after { content: "\201D"; }
.hg-pull cite, .hg-quotes cite, .hg-reviews cite {
	display: block; margin-top: 0.75rem; font-style: normal;
	font-family: var(--hg-sans); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--stone);
}
.hg-pull cite strong, .hg-quotes cite strong, .hg-reviews cite strong { color: var(--wp--preset--color--ink); font-weight: 600; }
.hg-section > .hg-pull + p { margin-top: 1.25rem !important; }

/* ---------- Reviews on Home: one quote set large, the rest in a row under it ---------- */
.hg-layout-reviews { background: #F4F3FF; padding-block: var(--hg-space); }
.hg-layout-reviews > .hg-reviews { max-width: var(--hg-mid); margin-top: 2.25rem !important; }
.hg-reviews .wp-block-quote { margin: 0; padding: 0; border: 0; }
.hg-review-lead p {
	font-size: clamp(1.875rem, 1.35rem + 2vw, 3.25rem); line-height: 1.14; letter-spacing: -0.02em;
	text-indent: -0.4em; text-wrap: balance;
}
.hg-review-lead cite { margin-top: 1.25rem; font-size: 1rem; }
.hg-review-side, .hg-review-list { border-top: 2px solid var(--wp--preset--color--ink); }
.hg-review-side { padding-top: 1.5rem; border-top-color: var(--wp--preset--color--indigo); }
.hg-review-side > p { margin-top: 1.75rem !important; font-family: var(--hg-sans); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--stone); }
.hg-review-side > p + p { margin-top: 0.5rem !important; }
.hg-review-side > p a { font-weight: 600; }
.hg-review-list { margin-top: 2.5rem !important; }
.hg-review-list .wp-block-quote { padding: 1.25rem 0 1.5rem; border-bottom: 1px solid var(--wp--preset--color--rule); }
.hg-review-list .wp-block-quote + .wp-block-quote { margin-top: 0 !important; }
.hg-review-list p { font-size: 1.25rem; line-height: 1.45; text-indent: -0.4em; }
/* Desktop: the three shorter quotes sit side by side, so neither column runs long beside the big one (Casey, Nov 16). */
@media (min-width: 900px) {
	.hg-review-list { margin-top: 2.75rem !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 3rem); }
	.hg-review-list .wp-block-quote { padding: 1.25rem 0 0; border-bottom: 0; }
	.hg-review-list p { font-size: 1.1875rem; }
}

/* ---------- A set of quotes: two columns under a heavy rule ---------- */
.hg-quotes { display: grid; gap: 0 clamp(2rem, 5vw, 4rem); margin-top: 2rem !important; border-top: 2px solid var(--wp--preset--color--ink); }
.hg-section > .hg-quotes { max-width: var(--hg-mid); }
@media (min-width: 782px) { .hg-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hg-quotes .wp-block-quote { margin: 0; padding: 1.25rem 0 1.5rem; border: 0; border-bottom: 1px solid var(--wp--preset--color--rule); }
.hg-quotes .wp-block-quote p { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4375rem); line-height: 1.4; text-indent: -0.4em; }
.hg-quotes + .hg-note { margin-top: 1.25rem !important; }
.hg-layout-quotes > p:not(.hg-note) + .hg-quotes { margin-top: 1.75rem !important; }
@media (max-width: 599px) { .hg-pull p, .hg-review-lead p, .hg-review-list p, .hg-quotes .wp-block-quote p { text-indent: 0; } }

/* ---------- Selling or buying ---------- */
.hg-paths { gap: 0 !important; margin-top: 2rem !important; }
.hg-path { padding: 0.25rem 0; }
.hg-path > * + * { margin-top: 0.85rem !important; }
.hg-path h3 { font-size: 1.625rem; font-weight: 500; }
@media (min-width: 782px) {
	.hg-path + .hg-path { border-left: 1px solid var(--wp--preset--color--rule); padding-left: clamp(2rem, 4vw, 3.5rem); }
	.hg-path:first-child { padding-right: clamp(2rem, 4vw, 3.5rem); }
}
@media (max-width: 781px) {
	.hg-path + .hg-path { border-top: 1px solid var(--wp--preset--color--rule); padding-top: 2rem; margin-top: 2rem !important; }
}
.hg-path > p:last-child a { font-family: var(--hg-sans); font-size: var(--wp--preset--font-size--small); font-weight: 600; }
.hg-path > p:last-child { margin-top: 1.25rem !important; }

/* ---------- Photo beside words ---------- */
.hg-split { display: grid; gap: clamp(1.75rem, 5vw, 4.5rem); align-items: center; }
.hg-split > * { margin: 0 !important; max-width: none; }
@media (min-width: 900px) {
	.hg-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-width: calc(var(--hg-mid) + 2 * var(--hg-gutter)); margin: 0 auto; }
	.hg-split-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.hg-split-reverse .hg-split-words { order: -1; }
}
.hg-split-photo figure { margin: 0; }
.hg-split-photo img { width: 100%; height: auto; }
/* Third-party photos show whole, as licensed: no cropping. */
.hg-split-words > * + * { margin-top: 1.1rem !important; }
.hg-split-words h2 + p { margin-top: 1rem !important; }
.hg-split-words .wp-block-buttons { margin-top: 1.75rem !important; }
.hg-split-words h3 { font-size: 1.625rem; font-weight: 500; margin-top: 2.25rem !important; }
.hg-split-words h2 + h3 { margin-top: 1.5rem !important; }
.hg-split-words h3 + p { margin-top: 0.75rem !important; }

/* About: the whole photo of the two of them beside both biographies. Same frame and section spacing as the rest of the page (Nov 16). */
.hg-style-portrait.hg-split { align-items: start; }
.hg-style-portrait .hg-split-photo img { aspect-ratio: 4 / 5; object-position: center 30%; }
@media (min-width: 900px) {
	.hg-style-portrait .hg-split-photo { position: sticky; top: 2rem; }
}

/* ---------- Questions ---------- */
.hg-layout-questions .wp-block-details {
	border-top: 1px solid var(--wp--preset--color--rule); padding: 1.1rem 0; margin-top: 0 !important; margin-bottom: 0 !important;
}
.hg-layout-questions .wp-block-details:last-child { border-bottom: 1px solid var(--wp--preset--color--rule); }
.hg-layout-questions h2 + .wp-block-details { margin-top: 1.5rem !important; }
.hg-layout-questions summary {
	cursor: pointer; font-size: 1.1875rem; font-weight: 600; list-style: none; position: relative; padding-right: 2rem;
}
.hg-layout-questions summary::-webkit-details-marker { display: none; }
.hg-layout-questions summary::after {
	content: "+"; position: absolute; right: 0.25rem; top: -0.1rem; font-family: var(--hg-sans); font-weight: 400; font-size: 1.4rem;
}
.hg-layout-questions details[open] summary::after { content: "\2212"; }
.hg-layout-questions details > p { margin-top: 0.75rem; }

/* ---------- Closing invitation ---------- */
.hg-cta { background: var(--wp--preset--color--oak); color: #FFFFFF; }
.hg-cta h2 { color: #FFFFFF; }
.hg-cta a:not(.wp-block-button__link) { color: #D9D8FF; }
.hg-cta > * + * { margin-top: 1.1rem !important; }
.hg-cta .wp-block-buttons { margin-top: 1.75rem !important; }
.hg-cta .hg-aside { color: #DCE3DD; }
.hg-cta .wp-block-button__link { background: #D9D8FF; color: #312E81; }
.hg-cta .wp-block-button__link:hover { background: #EEF0FF; }
.hg-cta .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #D9D8FF; border-color: currentColor; }
.hg-cta .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,0.1); }
.hg-cta + .hg-section, .hg-section + .hg-cta { border-top: 0; }
@media (min-width: 900px) {
	.hg-cta {
		display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 6vw, 6rem);
		align-items: start; padding-left: max(var(--hg-gutter), calc((100% - var(--hg-mid)) / 2)); padding-right: max(var(--hg-gutter), calc((100% - var(--hg-mid)) / 2));
	}
	.hg-cta > * { grid-column: 1; max-width: none; margin-left: 0; margin-right: 0; }
	.hg-cta > .wp-block-buttons { grid-column: 2; grid-row: 1 / span 2; margin-top: 0.5rem !important; flex-direction: column; align-items: stretch; }
	.hg-cta > .wp-block-buttons .wp-block-button__link { width: 100%; justify-content: center; }
	.hg-cta > .hg-aside { grid-column: 2; grid-row: 3; margin-top: 0.75rem !important; }
}

/* ---------- Contact list ---------- */
.hg-contact-list { list-style: none; padding: 0 !important; margin-top: 2rem !important; }
.hg-contact-list li {
	padding: 1rem 0; border-top: 1px solid var(--wp--preset--color--rule); margin: 0 !important;
	display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; align-items: baseline;
}
.hg-contact-list li:last-child { border-bottom: 1px solid var(--wp--preset--color--rule); }
.hg-contact-list strong { font-family: var(--hg-sans); font-size: var(--wp--preset--font-size--small); font-weight: 600; color: var(--wp--preset--color--stone); }
.hg-contact-list a { font-size: 1.375rem; }
@media (max-width: 499px) { .hg-contact-list li { grid-template-columns: 1fr; gap: 0.25rem; } }

/* ---------- Photo captions and credits ---------- */
.wp-block-image figcaption, .wp-element-caption {
	margin: 0.6rem 0 0; font-family: var(--hg-sans); font-size: 0.8125rem; line-height: 1.5;
	color: var(--wp--preset--color--stone); text-align: left;
}
.wp-element-caption a { color: inherit; }

/* ---------- Footer ---------- */
.hg-footer {
	background: var(--wp--preset--color--oak); color: #E6EBE6;
	padding: clamp(2.75rem, 5vw, 4rem) var(--hg-gutter) 2rem;
	font-family: var(--hg-sans); font-size: var(--wp--preset--font-size--small); line-height: 1.6;
	border-top: 1px solid rgba(255,255,255,0.12);
}
.hg-footer a { color: #D9D8FF; }
.hg-footer-inner { max-width: var(--hg-wide); margin: 0 auto; }
.hg-footer h2 {
	font-family: var(--hg-serif); font-size: 1.25rem; font-weight: 500; line-height: 1.25;
	color: #FFFFFF; margin-bottom: 0.75rem;
}
.hg-footer ul { list-style: none; padding: 0; margin: 0; }
.hg-footer li + li { margin-top: 0.35rem; }
.hg-footer-columns { gap: 2.5rem; }
.hg-footer-legal {
	margin-top: 2.5rem !important; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.18);
	font-size: 0.8125rem; color: #C9D2CB; max-width: 60rem;
}
.hg-footer-legal p + p { margin-top: 0.6rem; }
.hg-eho { display: flex; gap: 0.75rem; align-items: flex-start; }
/* Keep the Equal Housing logo full size on phones: fix the flex item, not just the image. */
.hg-eho > .hg-eho-logo { flex: 0 0 34px; width: 34px; margin: 0.15rem 0 0 !important; }
.hg-eho img { width: 34px; height: auto; }
.hg-eho > p { margin: 0 !important; flex: 1 1 auto; }
@media (max-width: 781px) { .hg-footer-columns { gap: 2rem; } }

/* ---------- Contact form (theme/inc/forms.php) ---------- */
.hg-form { margin-top: 1.5rem; }
.hg-form form > p { margin: 0 0 1.4rem; }
.hg-form label { display: block; font-family: var(--hg-sans); font-size: var(--wp--preset--font-size--small); font-weight: 600; line-height: 1.35; }
.hg-form input:not([type="hidden"]), .hg-form select, .hg-form textarea {
	display: block; box-sizing: border-box; width: 100%; margin-top: 0.45rem; padding: 0.75rem 0.85rem;
	font-family: var(--hg-serif); font-size: 1.125rem; color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--stone); border-radius: 2px;
}
.hg-form textarea { min-height: 9rem; resize: vertical; }
.hg-form :is(input, select, textarea):focus-visible { outline: 3px solid var(--wp--preset--color--indigo); outline-offset: 1px; border-color: var(--wp--preset--color--ink); }
.hg-form-submit {
	cursor: pointer; min-height: 2.75rem; padding: 0.85rem 1.6rem; font-family: var(--hg-sans); font-size: 1rem; font-weight: 600;
	color: var(--wp--preset--color--paper); background: var(--wp--preset--color--indigo); border: 0; border-radius: 2px; transition: background-color 0.15s ease;
}
.hg-form-submit:hover, .hg-form-submit:focus-visible { background: #3730A3; }
/* The spam trap stays off screen for people; bots fill it in. */
.hg-form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hg-form-turnstile { margin: 0 0 1.4rem; }
@media (max-width: 359px) { .hg-form-turnstile { margin-inline-end: calc(-1 * var(--hg-gutter)); } }
.hg-form-error { display: block; margin-top: 0.4rem; font-family: var(--hg-sans); font-size: 0.9375rem; color: #8E3B2A; }
.hg-form [aria-invalid="true"] { border-color: #8E3B2A; border-width: 2px; }
.hg-form-response { margin: 1.25rem 0 0; padding: 0.9rem 1.1rem; border: 2px solid var(--wp--preset--color--oak); font-size: 1.0625rem; }
.hg-form-response-error { border-color: #8E3B2A; }

/* Footer: the KW Central Oklahoma logo, white on the green footer. */
.hg-footer-kw { margin: 0 0 1rem; }
.hg-footer-kw img { display: block; width: 220px; max-width: 100%; height: auto; }
