/* ==========================================================================
   Eric Ayers — site layout (header, menus, banners, contact band, footer)
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	left: 1rem;
	top: 1rem;
	z-index: 1000;
	background: #fff;
	color: var(--ea-navy);
	padding: 0.75rem 1rem;
	border-radius: 8px;
}

.ea-container {
	width: min(100% - 2 * clamp(1rem, 4vw, 2rem), 1200px);
	margin-inline: auto;
}

.ea-icon {
	flex: none;
	display: block;
}

/* --------------------------------------------------------------------------
   Top contact bar
   -------------------------------------------------------------------------- */
.ea-topbar {
	background: var(--ea-navy);
	color: #fff;
	font-size: 0.85rem;
}

.ea-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 38px;
}

.ea-topbar__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
}

.ea-contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: inherit;
	text-decoration: none;
	padding: 0.35rem 0;
}

.ea-contact-link .ea-icon {
	width: 15px;
	height: 15px;
}

.ea-topbar .ea-contact-link:hover {
	color: var(--ea-lime);
}

.ea-social {
	display: flex;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ea-social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #fff;
	transition: background 0.2s, color 0.2s;
}

.ea-social a:hover,
.ea-social a:focus {
	background: var(--ea-lime);
	color: var(--ea-ink);
}

.ea-social .ea-icon {
	width: 17px;
	height: 17px;
}

@media (max-width: 599px) {
	.ea-topbar .ea-social {
		display: none;
	}
	.ea-topbar__inner {
		justify-content: center;
	}
	.ea-topbar__contact {
		justify-content: center;
		gap: 0 1rem;
	}
}

/* --------------------------------------------------------------------------
   Header + main menu
   -------------------------------------------------------------------------- */
.ea-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.97);
	backdrop-filter: saturate(160%) blur(8px);
	border-bottom: 1px solid rgba(0, 84, 165, 0.08);
	transition: box-shadow 0.25s;
}

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

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

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

.ea-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(11, 22, 48, 0.1);
}

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

.ea-header__brand {
	display: flex;
	align-items: center;
	flex: none;
}

.ea-header__brand .custom-logo-link,
.ea-header__brand .custom-logo-link img {
	display: block;
}

.ea-header__brand .custom-logo {
	width: auto;
	max-height: 54px;
	transition: max-height 0.25s;
}

.ea-header.is-scrolled .custom-logo {
	max-height: 44px;
}

.ea-text-logo {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	line-height: 1;
}

.ea-text-logo__name {
	font-family: var(--wp--preset--font-family--baloo);
	font-weight: 800;
	font-size: 1.6rem;
	color: var(--ea-navy);
}

.ea-text-logo__name span {
	color: var(--ea-blue);
}

.ea-text-logo__tag {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ea-teal);
	font-weight: 600;
	margin-top: 0.15rem;
}

.ea-nav {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

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

.ea-menu li {
	position: relative;
}

.ea-menu a {
	display: block;
	padding: 0.5rem 0.75rem;
	font-family: var(--wp--preset--font-family--baloo);
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--ea-navy);
	text-decoration: none;
	border-radius: 999px;
	transition: background 0.2s, color 0.2s;
}

.ea-menu a:hover,
.ea-menu a:focus {
	background: rgba(46, 163, 242, 0.1);
	color: var(--ea-blue);
}

.ea-menu .current-menu-item > a,
.ea-menu .current_page_item > a {
	background: var(--ea-lime);
	color: var(--ea-ink);
}

.ea-menu .sub-menu,
.ea-menu .children {
	list-style: none;
	margin: 0;
	padding: 0.5rem;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border-radius: 14px;
	box-shadow: var(--ea-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

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

.ea-header__cta {
	font-size: 0.95rem !important;
	padding: 0.6em 1.2em !important;
	white-space: nowrap;
	text-decoration: none;
	display: inline-block;
}

.ea-nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 0.5rem;
	color: var(--ea-navy);
	cursor: pointer;
	border-radius: 10px;
}

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

.ea-nav-toggle__close {
	display: none;
}

.ea-nav-toggle[aria-expanded="true"] .ea-nav-toggle__open {
	display: none;
}

.ea-nav-toggle[aria-expanded="true"] .ea-nav-toggle__close {
	display: block;
}

@media (max-width: 1023px) {
	.ea-nav-toggle {
		display: block;
	}

	.ea-header__inner {
		min-height: 64px;
	}

	.ea-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		padding: 1rem clamp(1rem, 4vw, 2rem) 1.5rem;
		background: #fff;
		box-shadow: 0 18px 30px rgba(11, 22, 48, 0.15);
		border-top: 1px solid #eef2f6;
		max-height: calc(100vh - 100px);
		overflow-y: auto;
		display: none;
	}

	.ea-nav.is-open {
		display: flex;
	}

	.ea-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0.15rem;
	}

	.ea-menu a {
		padding: 0.85rem 1rem;
		font-size: 1.2rem;
		border-radius: 12px;
	}

	.ea-menu .sub-menu,
	.ea-menu .children {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		padding: 0 0 0 1rem;
	}

	.ea-header__cta {
		text-align: center;
		font-size: 1.1rem !important;
		padding: 0.85em 1.2em !important;
	}
}

/* --------------------------------------------------------------------------
   Content wrapper + page banner
   -------------------------------------------------------------------------- */
.entry-content > .alignfull,
.entry-content > :first-child {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.entry-content > .alignfull + .alignfull {
	margin-top: 0 !important;
}

.entry-content > :last-child:not(.alignfull) {
	margin-bottom: var(--ea-section-pad);
}

.entry-content > :not(.alignfull):first-child {
	margin-top: var(--ea-section-pad) !important;
}

.ea-banner {
	position: relative;
	text-align: center;
	padding-top: clamp(2.5rem, 6vw, 4rem) !important;
	padding-bottom: clamp(2.5rem, 6vw, 4rem) !important;
}

.ea-banner::after,
.ea-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 6px;
	background: var(--ea-stripe);
}

.ea-banner::after {
	bottom: 0;
}

.ea-banner__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
}

.ea-banner__subtitle {
	margin: 0.6rem auto 0;
	max-width: 640px;
	font-size: 1.15rem;
	color: rgba(255, 255, 255, 0.92);
}

/* --------------------------------------------------------------------------
   Portfolio band (inner pages) + contact band
   -------------------------------------------------------------------------- */
.ea-portfolio-band__title {
	text-align: center;
	margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}

.ea-contact-band__inner {
	display: grid;
	gap: clamp(1.5rem, 4vw, 3rem);
	align-items: start;
}

@media (min-width: 900px) {
	.ea-contact-band__inner {
		grid-template-columns: 5fr 7fr;
	}
}

.ea-contact-band h2 {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--x-large);
}

.ea-contact-band__intro p {
	font-size: 1.1rem;
	color: var(--ea-ink);
}

.ea-contact-band__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.ea-pill {
	background: #fff;
	color: var(--ea-navy) !important;
	padding: 0.7rem 1.1rem !important;
	border-radius: 999px;
	font-weight: 600;
	box-shadow: 0 4px 14px rgba(11, 22, 48, 0.12);
	transition: transform 0.2s;
}

.ea-pill:hover,
.ea-pill:focus {
	transform: translateY(-2px);
}

.ea-contact-band__form {
	background: rgba(255, 255, 255, 0.35);
	border-radius: var(--ea-radius);
	padding: clamp(1rem, 3vw, 2rem);
	backdrop-filter: blur(4px);
}

.ea-contact-band__form:empty {
	display: none;
}

/* Generic styling for WPForms / Contact Form 7 / Fluent Forms inside the band */
.ea-contact-band input[type="text"],
.ea-contact-band input[type="email"],
.ea-contact-band input[type="tel"],
.ea-contact-band input[type="url"],
.ea-contact-band input[type="number"],
.ea-contact-band select,
.ea-contact-band textarea {
	width: 100% !important;
	max-width: 100% !important;
	border: 2px solid transparent !important;
	border-radius: 12px !important;
	padding: 0.85rem 1rem !important;
	background: #fff !important;
	font: inherit !important;
	color: var(--ea-ink) !important;
	box-shadow: none !important;
}

.ea-contact-band input:focus,
.ea-contact-band select:focus,
.ea-contact-band textarea:focus {
	border-color: var(--ea-navy) !important;
	outline: none;
}

.ea-contact-band label {
	color: var(--ea-ink) !important;
	font-weight: 600;
}

.ea-contact-band button[type="submit"],
.ea-contact-band input[type="submit"] {
	background: var(--ea-navy) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 0.85rem 2rem !important;
	font-family: var(--wp--preset--font-family--baloo) !important;
	font-weight: 700 !important;
	font-size: 1.05rem !important;
	cursor: pointer;
	height: auto !important;
}

.ea-contact-band button[type="submit"]:hover,
.ea-contact-band input[type="submit"]:hover {
	background: var(--ea-ink) !important;
}

.ea-admin-hint {
	color: var(--ea-ink);
}

.ea-admin-hint p {
	margin: 0.5rem 0 1rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.ea-footer {
	position: relative;
	background: var(--ea-navy);
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
	padding: 2.5rem 0 2rem;
}

.ea-footer::before {
	top: 0;
}

.ea-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.ea-footer__wheel {
	display: block;
	border-radius: 50%;
	transition: rotate 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ea-footer__wheel:hover,
.ea-footer__wheel:focus {
	rotate: 30deg;
}

.ea-wheel-logo {
	display: block;
	width: 88px;
	height: auto;
}

.ea-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ea-footer__menu a {
	color: #fff;
	text-decoration: none;
}

.ea-footer__menu a:hover {
	color: var(--ea-lime);
}

.ea-footer__credit {
	margin: 0;
	font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Archive / cards / misc
   -------------------------------------------------------------------------- */
.ea-archive {
	padding-block: var(--ea-section-pad);
}

.ea-card-grid {
	display: grid;
	gap: 1.75rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.ea-card {
	background: #fff;
	border-radius: var(--ea-radius);
	box-shadow: var(--ea-shadow);
	overflow: hidden;
}

.ea-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.ea-card__body {
	padding: 1.25rem 1.5rem 1.5rem;
}

.ea-card__title {
	font-size: 1.35rem;
	margin: 0 0 0.25rem;
}

.ea-card__title a {
	text-decoration: none;
}

.ea-card__meta {
	font-size: 0.85rem;
	color: #888;
	margin: 0 0 0.5rem;
}

.ea-single__media {
	margin-top: 2rem;
}

.ea-single__media img {
	border-radius: var(--ea-radius);
	width: 100%;
}

.ea-comments {
	padding-block: 2rem 4rem;
	max-width: 780px;
}

.ea-404 {
	padding-block: var(--ea-section-pad);
}

.ea-search {
	display: flex;
	gap: 0.5rem;
	max-width: 480px;
}

.ea-search input[type="search"] {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 2px solid #dfe6ee;
	border-radius: 999px;
	font: inherit;
}

.ea-empty {
	text-align: center;
	font-size: 1.15rem;
}

/* Content wrapper: full-width sections bleed edge to edge and carry their own
   padding; everything else gets the content/wide width plus side gutters. */
.entry-content > :not(.alignfull):not(.alignwide) {
	max-width: min(var(--wp--style--global--content-size, 780px), calc(100% - var(--wp--style--root--padding-left, 1rem) - var(--wp--style--root--padding-right, 1rem)));
	margin-left: auto !important;
	margin-right: auto !important;
}

.entry-content > .alignwide {
	max-width: min(var(--wp--style--global--wide-size, 1200px), calc(100% - var(--wp--style--root--padding-left, 1rem) - var(--wp--style--root--padding-right, 1rem)));
	margin-left: auto !important;
	margin-right: auto !important;
}

.entry-content > .alignfull {
	max-width: none;
	margin-left: 0 !important;
	margin-right: 0 !important;
}
