/*
Theme Name: Great Falls Woods
Theme URI: https://greatfallswoods.org
Author: Great Falls Woods HOA
Description: A modern custom theme for the Great Falls Woods Homeowners Association, with a home page, a documents library, and contact details managed from the Customizer.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gfw
*/

/* ---------- Tokens ---------- */

:root {
	--gfw-forest: #1e3a2a;
	--gfw-forest-2: #2b4f3a;
	--gfw-forest-deep: #142a1e;
	--gfw-moss: #6b8f5e;
	--gfw-sage: #e3ebdc;
	--gfw-cream: #f8f5ee;
	--gfw-sand: #efe8d8;
	--gfw-brass: #b5853a;
	--gfw-brass-dark: #94692a;
	--gfw-brass-soft: #f5ead3;
	--gfw-ink: #1c2420;
	--gfw-muted: #56615a;
	--gfw-line: #e2dccd;
	--gfw-white: #fff;

	--gfw-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--gfw-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

	--gfw-radius: 14px;
	--gfw-radius-sm: 8px;
	--gfw-shadow: 0 1px 2px rgba(20, 42, 30, .06), 0 8px 24px rgba(20, 42, 30, .08);
	--gfw-shadow-lg: 0 2px 4px rgba(20, 42, 30, .06), 0 18px 40px rgba(20, 42, 30, .14);
	--gfw-max: 1180px;
	--gfw-gutter: 20px;
}

/* ---------- Base ---------- */

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

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

body {
	margin: 0;
	background: var(--gfw-white);
	color: var(--gfw-ink);
	font-family: var(--gfw-sans);
	font-size: 1.125rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--gfw-forest-2);
}

a:hover {
	color: var(--gfw-brass-dark);
}

:focus-visible {
	outline: 3px solid var(--gfw-brass);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--gfw-serif);
	font-weight: 600;
	line-height: 1.2;
	color: var(--gfw-forest);
	margin: 0 0 .5em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p {
	margin: 0 0 1em;
}

[hidden] {
	display: none !important;
}

.icon {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	vertical-align: -.2em;
}

.container {
	width: 100%;
	max-width: calc(var(--gfw-max) + var(--gfw-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gfw-gutter);
}

.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 {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--gfw-forest);
	color: var(--gfw-white);
	border-radius: var(--gfw-radius-sm);
}

.skip-link:focus {
	top: 12px;
}

.eyebrow {
	margin: 0 0 .75rem;
	font-family: var(--gfw-sans);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gfw-brass-dark);
}

.eyebrow-light {
	color: #e8c98f;
}

/* ---------- Buttons & links ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .8em 1.5em;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--gfw-sans);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--gfw-brass);
	color: var(--gfw-white);
}

.btn-primary:hover {
	background: var(--gfw-brass-dark);
	color: var(--gfw-white);
}

.btn-ghost {
	border-color: rgba(255, 255, 255, .7);
	color: var(--gfw-white);
}

.btn-ghost:hover {
	background: var(--gfw-white);
	border-color: var(--gfw-white);
	color: var(--gfw-forest);
}

.btn-outline {
	border-color: var(--gfw-forest);
	color: var(--gfw-forest);
}

.btn-outline:hover {
	background: var(--gfw-forest);
	color: var(--gfw-white);
}

.btn-small {
	padding: .55em 1.1em;
	font-size: .92rem;
}

.btn-block {
	display: flex;
	width: 100%;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-weight: 700;
	color: var(--gfw-forest-2);
	text-decoration: none;
}

.text-link:hover {
	color: var(--gfw-brass-dark);
}

.text-link .icon {
	transition: transform .2s;
}

.text-link:hover .icon {
	transform: translateX(3px);
}

/* ---------- Utility bar ---------- */

.utility-bar {
	background: var(--gfw-forest-deep);
	color: #c7d3c6;
	font-size: .9rem;
}

.utility-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 42px;
}

.utility-bar a {
	color: #e4ebe2;
	text-decoration: none;
}

.utility-bar a:hover {
	color: #e8c98f;
}

.utility-contact,
.utility-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 20px;
}

.utility-contact a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.utility-label {
	color: #93a693;
	font-weight: 600;
}

/* ---------- Header & navigation ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--gfw-line);
	backdrop-filter: saturate(1.4) blur(8px);
}

.admin-bar .site-header {
	top: 32px;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--gfw-forest);
}

.brand-mark {
	width: 46px;
	height: 46px;
	color: var(--gfw-forest);
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.brand-name {
	font-family: var(--gfw-serif);
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--gfw-forest);
}

.brand-tagline {
	margin-top: 4px;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gfw-muted);
}

.custom-logo {
	display: block;
	max-height: 64px;
	width: auto;
}

.site-nav .menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .menu > li {
	position: relative;
}

.site-nav .menu a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--gfw-radius-sm);
	color: var(--gfw-ink);
	font-weight: 600;
	font-size: 1.02rem;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

.site-nav .menu a:hover {
	background: var(--gfw-sage);
	color: var(--gfw-forest);
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_parent > a {
	color: var(--gfw-forest);
	box-shadow: inset 0 -3px 0 var(--gfw-brass);
	border-radius: var(--gfw-radius-sm) var(--gfw-radius-sm) 0 0;
}

.site-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--gfw-white);
	border: 1px solid var(--gfw-line);
	border-radius: var(--gfw-radius);
	box-shadow: var(--gfw-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}

.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.site-nav .sub-menu a {
	font-weight: 500;
	font-size: .98rem;
	box-shadow: none;
}

.nav-toggle,
.mobile-quick-links {
	display: none;
}

/* ---------- Announcement ---------- */

.announcement {
	background: var(--gfw-brass-soft);
	border-bottom: 1px solid #e8d6b0;
	color: #5a4114;
}

.announcement-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	padding-top: 12px;
	padding-bottom: 12px;
	text-align: center;
}

.announcement p {
	margin: 0;
	font-weight: 600;
}

.announcement-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: #5a4114;
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(460px, 72vh, 680px);
	background-color: var(--gfw-forest);
	background-position: center;
	background-size: cover;
	color: var(--gfw-white);
	isolation: isolate;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgba(16, 33, 23, .88) 0%, rgba(16, 33, 23, .62) 45%, rgba(16, 33, 23, .15) 100%);
}

.hero-inner {
	display: flex;
	align-items: stretch;
	gap: clamp(40px, 6vw, 80px);
	padding-top: 72px;
	padding-bottom: 72px;
}

/* The photo spans exactly the height of the text column: its top meets the
   top of the eyebrow and its bottom meets the bottom of the buttons. The
   image is positioned out of flow so it never sets the height itself. */
.hero-media {
	position: relative;
	flex: 0 0 clamp(200px, 26vw, 340px);
	margin: 0;
}

.hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border: 3px solid rgba(248, 245, 238, .9);
	border-radius: var(--gfw-radius);
	box-shadow: 0 24px 50px rgba(8, 20, 13, .45);
}

.hero-content {
	flex: 0 1 640px;
	min-width: 0;
}

.hero h1 {
	color: var(--gfw-white);
	font-size: clamp(2.5rem, 5.5vw, 4.25rem);
	line-height: 1.08;
	text-wrap: balance;
}

.hero-text {
	max-width: 560px;
	margin-bottom: 2rem;
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	color: #e3ebe0;
}

.hero-actions,
.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Sections ---------- */

.section {
	padding: clamp(56px, 8vw, 96px) 0;
}

.section-tight {
	padding: clamp(40px, 6vw, 72px) 0;
}

.section-alt {
	background: var(--gfw-cream);
}

.section-head {
	max-width: 640px;
	margin: 0 auto 48px;
	text-align: center;
}

/* ---------- Welcome ---------- */

.welcome {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 80px);
	align-items: center;
}

.lead {
	font-size: 1.2rem;
	color: var(--gfw-muted);
}

.welcome-text {
	min-width: 0;
}

.quick-chips {
	padding: 32px;
	background: var(--gfw-cream);
	border: 1px solid var(--gfw-line);
	border-radius: var(--gfw-radius);
}

.quick-chips h3 {
	margin-bottom: 14px;
	font-family: var(--gfw-sans);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--gfw-muted);
}

.quick-chips ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.quick-chips a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--gfw-sage);
	color: var(--gfw-forest);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

.quick-chips a .icon {
	color: var(--gfw-brass-dark);
	transition: transform .2s, color .15s;
}

.quick-chips a:hover {
	background: var(--gfw-forest);
	color: var(--gfw-white);
}

.quick-chips a:hover .icon {
	color: #e8c98f;
	transform: translateX(3px);
}

/* ---------- Tiles ---------- */

.tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.tile {
	display: flex;
	flex-direction: column;
	padding: 32px 28px;
	background: var(--gfw-white);
	border: 1px solid var(--gfw-line);
	border-radius: var(--gfw-radius);
	box-shadow: var(--gfw-shadow);
	color: var(--gfw-ink);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}

.tile:hover {
	transform: translateY(-4px);
	box-shadow: var(--gfw-shadow-lg);
	border-color: #cfc5ad;
	color: var(--gfw-ink);
}

.tile-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--gfw-sage);
	color: var(--gfw-forest);
}

.tile-icon .icon {
	width: 26px;
	height: 26px;
}

.tile p {
	flex: 1;
	color: var(--gfw-muted);
	font-size: 1rem;
}

.tile-more {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	font-weight: 700;
	color: var(--gfw-brass-dark);
}

/* ---------- Post cards ---------- */

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--gfw-white);
	border: 1px solid var(--gfw-line);
	border-radius: var(--gfw-radius);
	box-shadow: var(--gfw-shadow);
	overflow: hidden;
}

.card-media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--gfw-sage);
	overflow: hidden;
}

.card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}

.card:hover .card-media img {
	transform: scale(1.04);
}

.card-placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	background: linear-gradient(135deg, var(--gfw-forest-2), var(--gfw-moss));
	color: rgba(255, 255, 255, .55);
}

.card-placeholder .icon {
	width: 56px;
	height: 56px;
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px 26px 28px;
}

.card-meta {
	margin-bottom: .5rem;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gfw-brass-dark);
}

.card-title {
	font-size: 1.35rem;
}

.card-title a {
	color: var(--gfw-forest);
	text-decoration: none;
}

.card-title a:hover {
	color: var(--gfw-brass-dark);
}

.card-excerpt {
	flex: 1;
	color: var(--gfw-muted);
	font-size: 1rem;
}

/* ---------- CTA band ---------- */

.cta-band {
	position: relative;
	padding: clamp(48px, 7vw, 80px) 0;
	background:
		radial-gradient(circle at 85% 20%, rgba(181, 133, 58, .25), transparent 45%),
		linear-gradient(120deg, var(--gfw-forest-deep), var(--gfw-forest-2));
	color: #dce6d9;
}

.cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.cta-band h2 {
	color: var(--gfw-white);
}

.cta-band p {
	max-width: 620px;
	margin: 0;
	font-size: 1.15rem;
}

.cta-actions {
	flex: none;
}

/* ---------- Inner page hero ---------- */

.page-hero {
	position: relative;
	padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 6vw, 72px);
	background:
		url("assets/images/hero-forest.svg") right bottom / cover no-repeat,
		var(--gfw-forest);
	color: var(--gfw-white);
	isolation: isolate;
}

.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgba(16, 33, 23, .94) 0%, rgba(16, 33, 23, .8) 55%, rgba(16, 33, 23, .45) 100%);
}

.page-hero h1 {
	max-width: 820px;
	margin: 0;
	color: var(--gfw-white);
	text-wrap: balance;
}

.page-hero-sub {
	max-width: 640px;
	margin: 1rem 0 0;
	font-size: 1.2rem;
	color: #dbe5d8;
}

/* ---------- Page content ---------- */

.prose {
	max-width: 820px;
}

.prose > * + h2,
.prose > * + h3 {
	margin-top: 1.6em;
}

.prose img {
	border-radius: var(--gfw-radius-sm);
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: .35em;
}

.prose blockquote {
	margin: 1.5em 0;
	padding: .5em 0 .5em 1.25em;
	border-left: 4px solid var(--gfw-brass);
	color: var(--gfw-muted);
	font-style: italic;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
}

.prose th,
.prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--gfw-line);
	text-align: left;
}

.prose figure {
	margin: 1.5em 0;
}

.prose figcaption,
.wp-caption-text {
	font-size: .9rem;
	color: var(--gfw-muted);
	text-align: center;
}

.post-feature img {
	width: 100%;
	border-radius: var(--gfw-radius);
}

.wp-block-file {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px 20px;
	background: var(--gfw-cream);
	border: 1px solid var(--gfw-line);
	border-radius: var(--gfw-radius-sm);
}

.wp-block-file a:not(.wp-block-file__button) {
	font-weight: 700;
}

.wp-block-file .wp-block-file__button {
	padding: .5em 1.1em;
	border-radius: 999px;
	background: var(--gfw-forest);
	color: var(--gfw-white);
	font-weight: 700;
	text-decoration: none;
}

.wp-block-button__link {
	border-radius: 999px;
	background: var(--gfw-forest);
	font-weight: 700;
}

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ---------- Documents ---------- */

.doc-toolbar {
	margin-bottom: 40px;
}

.doc-search {
	position: relative;
	display: block;
	max-width: 520px;
}

.doc-search .icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--gfw-muted);
}

.doc-search input,
.search-form .search-field {
	width: 100%;
	padding: 14px 18px 14px 50px;
	border: 1px solid #cfc7b4;
	border-radius: 999px;
	background: var(--gfw-white);
	font: inherit;
	font-size: 1.05rem;
	color: var(--gfw-ink);
}

.doc-search input:focus,
.search-form .search-field:focus {
	outline: none;
	border-color: var(--gfw-forest-2);
	box-shadow: 0 0 0 4px rgba(43, 79, 58, .15);
}

.doc-group + .doc-group {
	margin-top: 48px;
}

.doc-group-head {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--gfw-sand);
}

.doc-group-head h2 {
	margin: 0;
	font-size: 1.6rem;
}

.doc-group-head p {
	margin: .25rem 0 0;
	color: var(--gfw-muted);
}

.doc-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.doc-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	background: var(--gfw-white);
	border: 1px solid var(--gfw-line);
	border-radius: var(--gfw-radius-sm);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}

.doc-item:hover {
	border-color: #cbbf9f;
	box-shadow: var(--gfw-shadow);
	transform: translateY(-2px);
}

.doc-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--gfw-sage);
	color: var(--gfw-forest);
}

.doc-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.doc-title {
	font-weight: 700;
	color: var(--gfw-forest);
	text-decoration: none;
	line-height: 1.35;
}

/* Make the whole row clickable. */
.doc-title::after {
	content: "";
	position: absolute;
	inset: 0;
}

.doc-desc {
	margin-top: 2px;
	font-size: .95rem;
	color: var(--gfw-muted);
	line-height: 1.4;
}

.doc-type {
	flex: none;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--gfw-brass-soft);
	color: #7a561d;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .06em;
}

.doc-empty,
.doc-help {
	margin-top: 40px;
	color: var(--gfw-muted);
}

/* ---------- Contact ---------- */

.contact-layout {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}

.contact-main {
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

.contact-card {
	padding: 32px;
	background: var(--gfw-cream);
	border: 1px solid var(--gfw-line);
	border-radius: var(--gfw-radius);
}

.contact-card h2 {
	font-size: 1.5rem;
}

.contact-list {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	line-height: 1.45;
}

.contact-list li > .icon {
	margin-top: 3px;
	color: var(--gfw-brass-dark);
}

.contact-list strong {
	display: block;
}

.contact-list small {
	display: block;
	color: var(--gfw-muted);
	font-size: .85rem;
}

.contact-pending {
	color: var(--gfw-muted);
}

.admin-hint {
	padding: 10px 12px;
	border: 1px dashed var(--gfw-brass);
	border-radius: var(--gfw-radius-sm);
	font-size: .9rem;
}

/* Common contact form plugins. */
.prose input[type="text"],
.prose input[type="email"],
.prose input[type="tel"],
.prose textarea,
.prose select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cfc7b4;
	border-radius: var(--gfw-radius-sm);
	font: inherit;
	background: var(--gfw-white);
}

.prose input[type="submit"],
.prose button[type="submit"] {
	padding: .8em 1.6em;
	border: 0;
	border-radius: 999px;
	background: var(--gfw-forest);
	color: var(--gfw-white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.prose input[type="submit"]:hover,
.prose button[type="submit"]:hover {
	background: var(--gfw-brass-dark);
}

/* ---------- Misc ---------- */

.empty-state {
	max-width: 560px;
	margin: 0 auto;
	text-align: center;
	color: var(--gfw-muted);
}

.search-form {
	position: relative;
	display: flex;
	gap: 8px;
	margin: 24px 0;
}

.search-form label {
	flex: 1;
}

.search-form .search-field {
	padding-left: 18px;
}

.search-form .search-submit {
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--gfw-forest);
	color: var(--gfw-white);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.pagination {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--gfw-line);
	border-radius: 999px;
	color: var(--gfw-forest);
	font-weight: 700;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--gfw-forest);
	border-color: var(--gfw-forest);
	color: var(--gfw-white);
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--gfw-forest-deep);
	color: #b9c7b8;
	font-size: 1rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	gap: 40px;
	padding-top: 72px;
	padding-bottom: 56px;
}

.site-footer h2 {
	margin-bottom: 18px;
	font-size: 1.15rem;
	color: var(--gfw-white);
}

.site-footer a {
	color: #dfe7dd;
	text-decoration: none;
}

.site-footer a:hover {
	color: #e8c98f;
}

.brand-footer {
	margin-bottom: 18px;
}

.brand-footer .brand-mark {
	color: var(--gfw-forest-2);
}

.brand-footer .brand-name {
	color: var(--gfw-white);
}

.brand-footer .brand-tagline {
	color: #93a693;
}

.footer-col .menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col .menu li + li {
	margin-top: 10px;
}

.footer-contact .contact-list li {
	padding: 6px 0;
}

.footer-contact .contact-list li > .icon {
	color: #e8c98f;
}

.footer-contact .contact-list small,
.footer-contact .contact-pending {
	color: #93a693;
}

.footer-contact .btn-outline {
	border-color: rgba(255, 255, 255, .5);
	color: var(--gfw-white);
}

.footer-contact .btn-outline:hover {
	background: var(--gfw-white);
	color: var(--gfw-forest);
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .9rem;
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.footer-bottom p {
	margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 960px) {
	.utility-links {
		display: none;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 10px 16px;
		border: 1px solid var(--gfw-line);
		border-radius: 999px;
		background: var(--gfw-white);
		color: var(--gfw-forest);
		font: inherit;
		font-weight: 700;
		cursor: pointer;
	}

	.nav-toggle .icon {
		width: 22px;
		height: 22px;
	}

	.nav-toggle-close,
	.nav-toggle[aria-expanded="true"] .nav-toggle-open {
		display: none;
	}

	.nav-toggle[aria-expanded="true"] .nav-toggle-close {
		display: inline-flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: calc(100vh - 84px);
		overflow-y: auto;
		padding: 12px var(--gfw-gutter) 28px;
		background: var(--gfw-white);
		border-bottom: 1px solid var(--gfw-line);
		box-shadow: var(--gfw-shadow-lg);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav .menu {
		flex-direction: column;
		align-items: stretch;
	}

	.site-nav .menu a {
		padding: 14px 12px;
		font-size: 1.1rem;
	}

	.site-nav .current-menu-item > a,
	.site-nav .current_page_item > a,
	.site-nav .current-menu-ancestor > a,
	.site-nav .current_page_parent > a {
		box-shadow: inset 4px 0 0 var(--gfw-brass);
		border-radius: 0 var(--gfw-radius-sm) var(--gfw-radius-sm) 0;
	}

	.site-nav .menu-item-has-children > a::after {
		display: none;
	}

	.site-nav .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 0 0 16px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.mobile-quick-links {
		display: flex;
		flex-direction: column;
		margin-top: 16px;
		padding: 16px 12px 0;
		border-top: 1px solid var(--gfw-line);
	}

	.mobile-quick-title {
		margin: 0 0 6px;
		font-size: .8rem;
		font-weight: 700;
		letter-spacing: .14em;
		text-transform: uppercase;
		color: var(--gfw-muted);
	}

	.mobile-quick-links a {
		padding: 8px 0;
		color: var(--gfw-forest-2);
		font-weight: 600;
		text-decoration: none;
	}

	.welcome,
	.contact-layout,
	.tiles {
		grid-template-columns: 1fr;
	}

	.card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

	.doc-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 0;
	}
}

@media (max-width: 640px) {
	.hero-inner {
		flex-direction: column;
	}

	.hero-content {
		flex-basis: auto;
	}

	/* On phones the photo stacks under the text; a landscape crop keeps the tall photo from filling the screen. */
	.hero-media {
		flex: none;
		width: 100%;
		max-width: 560px;
		aspect-ratio: 4 / 3;
	}

	body {
		font-size: 1.0625rem;
	}

	.utility-bar {
		display: none;
	}

	.header-inner {
		min-height: 72px;
	}

	.brand-mark {
		width: 40px;
		height: 40px;
	}

	.brand-name {
		font-size: 1.2rem;
	}

	.brand-tagline {
		font-size: .62rem;
	}

	.nav-toggle-label {
		display: none;
	}

	.site-nav {
		max-height: calc(100vh - 72px);
	}

	.hero {
		min-height: 520px;
	}

	.hero::before {
		background: linear-gradient(180deg, rgba(16, 33, 23, .55) 0%, rgba(16, 33, 23, .88) 100%);
	}

	.hero-actions .btn,
	.cta-actions .btn {
		flex: 1 1 100%;
	}

	.tiles,
	.card-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.contact-card {
		padding: 24px;
	}

	.quick-chips {
		padding: 24px;
	}

	.doc-type {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
