/*
 * Global styles: base, layout helpers, buttons, header and footer.
 * Block-specific styles live in blocks/<slug>/style.css.
 */

:root {
	--ua-wide: 1280px;
	--ua-gutter: clamp(1rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

/* Accessibility helpers */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link:focus {
	z-index: 1000;
	top: 0.5rem;
	left: 0.5rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	clip-path: none;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

/* Layout helpers */

.ua-container {
	width: 100%;
	max-width: var(--ua-wide);
	margin-inline: auto;
	padding-inline: var(--ua-gutter);
}

.ua-section {
	padding-block: clamp(3.5rem, 6.5vw, 5.5rem);
}

.ua-section-title {
	margin: 0 auto clamp(1.75rem, 3.5vw, 2.75rem);
	font-size: var(--wp--preset--font-size--x-large);
	text-align: center;
	text-wrap: balance;
}

.ua-section-intro {
	margin: 0;
	text-align: center;
}

.ua-eyebrow {
	margin: 0 0 1.125rem;
	color: var(--wp--preset--color--accent);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ua-icon {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
}

.ua-block-placeholder {
	padding: 2rem;
	border: 1px dashed var(--wp--preset--color--line);
	text-align: center;
}

/* Buttons */

.ua-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3.125rem;
	padding: 0.75rem 1.5rem;
	border: 1.5px solid transparent;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ua-btn .ua-icon {
	width: 1rem;
	height: 1rem;
}

.ua-btn .ua-icon--chevron {
	stroke-width: 2.25;
}

.ua-btn--primary {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.ua-btn--primary:hover,
.ua-btn--primary:focus-visible {
	background: var(--wp--preset--color--accent-dark);
	color: var(--wp--preset--color--white);
}

.ua-btn--outline {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
}

.ua-btn--outline:hover,
.ua-btn--outline:focus-visible {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.ua-btn--large {
	min-height: 3.5rem;
	padding: 0.9rem 2.5rem;
	font-size: 1.0625rem;
}

/* Top bar */

.ua-topbar {
	padding: 0.55rem var(--ua-gutter);
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	font-size: 0.8125rem;
	font-weight: 500;
	text-align: center;
}

.ua-topbar p {
	margin: 0;
}

/* Header */

.ua-header {
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--cream);
}

.admin-bar .ua-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

.ua-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	min-height: 5.5rem;
}

.ua-header__logo {
	flex: none;
	display: block;
}

.ua-header__logo img {
	display: block;
	width: clamp(150px, 14vw, 196px);
}

.ua-nav__list {
	display: flex;
	gap: clamp(1.25rem, 2.6vw, 2.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ua-nav__list a {
	display: block;
	padding-block: 0.4rem;
	border-bottom: 2px solid transparent;
	color: var(--wp--preset--color--ink);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

@media (min-width: 1024px) and (max-width: 1199px) {
	.ua-header__inner {
		gap: 1.5rem;
	}

	.ua-nav__list {
		gap: 1.125rem;
	}
}

.ua-nav__list a:hover,
.ua-nav__list .current-menu-item > a {
	border-bottom-color: currentColor;
}

.ua-header__actions {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-left: auto;
}

.ua-header__call {
	min-height: 2.875rem;
	padding-inline: 1.375rem;
}

.ua-header__call-short {
	display: none;
}

.ua-nav-toggle {
	display: none;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}

.ua-nav-toggle .ua-icon {
	width: 1.375rem;
	height: 1.375rem;
	stroke-width: 1.75;
}

.ua-nav-toggle .ua-icon--close,
.ua-nav-toggle[aria-expanded="true"] .ua-icon--menu {
	display: none;
}

.ua-nav-toggle[aria-expanded="true"] .ua-icon--close {
	display: block;
}

@media (max-width: 1023px) {
	.ua-header__inner {
		gap: 1rem;
		min-height: 4.25rem;
	}

	.ua-header__logo img {
		width: 140px;
	}

	.ua-nav-toggle {
		display: grid;
	}

	.ua-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 0.5rem var(--ua-gutter) 1.25rem;
		border-bottom: 1px solid var(--wp--preset--color--line);
		background: var(--wp--preset--color--cream);
		box-shadow: 0 16px 24px rgb(22 38 45 / 0.08);
	}

	.ua-nav.is-open {
		display: block;
	}

	.ua-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.ua-nav__list a {
		padding-block: 0.85rem;
		border-bottom: 1px solid var(--wp--preset--color--line);
		font-size: 1.0625rem;
	}

	.ua-nav__list a:hover,
	.ua-nav__list .current-menu-item > a {
		border-bottom-color: var(--wp--preset--color--line);
		color: var(--wp--preset--color--accent);
	}
}

@media (max-width: 599px) {
	.ua-header__call {
		min-height: 2.75rem;
		padding-inline: 1rem;
		font-size: 0.875rem;
	}

	.ua-header__call .ua-icon,
	.ua-header__call-full {
		display: none;
	}

	.ua-header__call-short {
		display: inline;
	}
}

/* Page title band */

.ua-page-hero {
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--sand);
	text-align: center;
}

.ua-page-hero__inner {
	max-width: 52rem;
	padding-block: clamp(3rem, 7vw, 5.5rem);
}

.ua-page-hero .ua-eyebrow {
	margin-bottom: 0.875rem;
}

.ua-page-hero .ua-eyebrow a {
	color: inherit;
	text-decoration: none;
}

.ua-page-hero__title {
	margin: 0;
	font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.ua-page-hero__intro {
	max-width: 38rem;
	margin: 1.25rem auto 0;
	font-size: var(--wp--preset--font-size--large);
}

.ua-page-hero__meta {
	margin: 1rem 0 0;
	font-size: 0.9375rem;
}

/* Page and post content */

.ua-entry__image {
	margin-block: clamp(2rem, 5vw, 3.5rem) 0;
}

.ua-entry__image--post {
	max-width: calc(920px + 2 * var(--ua-gutter));
}

.ua-entry__image img {
	display: block;
	width: 100%;
	max-height: 560px;
	border-radius: 10px;
	object-fit: cover;
}

.ua-entry__content {
	padding-block: clamp(2.5rem, 5vw, 4rem);
	font-size: 1.0625rem;
	line-height: 1.75;
}

/* Full-width section blocks sit flush against each other and the footer. */
.ua-entry__content > .ua-block {
	margin-block-start: clamp(3rem, 6vw, 5rem);
}

.ua-entry__content > .ua-block:first-child,
.ua-entry__content > .ua-block + .ua-block {
	margin-block-start: 0;
}

.ua-entry__content:has(> .ua-block:last-child) {
	padding-bottom: 0;
}

.ua-entry__content:has(> .ua-block:first-child) {
	padding-top: 0;
}

.is-layout-constrained > :is(h2, h3) {
	margin-block-start: 2.25em;
}

.is-layout-constrained > :is(h2, h3) + * {
	margin-block-start: 0.75em;
}

.is-layout-constrained > :first-child {
	margin-block-start: 0;
}

.ua-entry__content :where(p, li) a {
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.ua-entry__content :where(ul, ol):not([class*="ua-"]) {
	padding-left: 1.25rem;
}

.ua-entry__content :where(ul, ol):not([class*="ua-"]) li + li {
	margin-top: 0.4em;
}

.ua-entry__content ul:not([class*="ua-"]) li::marker {
	color: var(--wp--preset--color--accent);
}

.has-large-font-size {
	line-height: 1.6;
}

.wp-block-quote p {
	margin: 0;
}

.wp-block-quote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.875rem;
	font-style: normal;
}

.wp-block-details summary {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	cursor: pointer;
}

.wp-block-details summary::marker {
	color: var(--wp--preset--color--accent);
}

.wp-block-details > :not(summary) {
	margin-block: 0.75rem 0;
}

.wp-block-group.has-background {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: 10px;
}

.wp-block-group.ua-form-card {
	margin-block: clamp(2rem, 4vw, 3rem);
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 10px 30px rgb(22 38 45 / 0.06);
}

.ua-form-card > h2:first-child {
	margin-block: 0 1.25rem;
	font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}

/* Gravity Forms (Orbital theme): use the site font. */
.gform_wrapper.gform-theme--framework {
	--gf-font-family-base: var(--wp--preset--font-family--sans);
	--gf-font-family-primary: var(--wp--preset--font-family--sans);
	--gf-font-family-secondary: var(--wp--preset--font-family--sans);
	--gf-font-family-tertiary: var(--wp--preset--font-family--sans);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1.5px solid var(--wp--preset--color--accent);
	background: transparent;
	color: var(--wp--preset--color--ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.wp-block-table th,
.wp-block-table td {
	padding: 0.65rem 0.85rem;
	border-color: var(--wp--preset--color--line);
}

.ua-entry__footer {
	max-width: calc(760px + 2 * var(--ua-gutter));
	margin-inline: auto;
	padding: 0 var(--ua-gutter) clamp(3rem, 6vw, 4.5rem);
}

.ua-help-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	padding: clamp(1.5rem, 3vw, 2rem);
	border-radius: 10px;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
}

.ua-help-card__title {
	margin: 0 0 0.25rem;
	color: inherit;
	font-size: 1.5rem;
}

.ua-help-card p {
	margin: 0;
}

.ua-back-link {
	display: inline-block;
	margin-top: 1.75rem;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	text-decoration: none;
}

.ua-back-link:hover {
	color: var(--wp--preset--color--accent);
}

/* Blog listing */

.ua-section--tight {
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.ua-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.ua-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background: var(--wp--preset--color--surface);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ua-post-card:hover,
.ua-post-card:focus-within {
	box-shadow: 0 14px 30px rgb(22 38 45 / 0.1);
	transform: translateY(-2px);
}

.ua-post-card__media {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--line);
}

.ua-post-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ua-post-card__media .ua-icon {
	width: 3rem;
	height: 3rem;
}

.ua-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem 1.375rem 1.5rem;
}

.ua-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.75rem;
	margin: 0 0 0.6rem;
	font-size: 0.8125rem;
}

.ua-post-card__meta span {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ua-post-card__title {
	margin: 0 0 0.6rem;
	font-size: 1.5rem;
	line-height: 1.2;
}

.ua-post-card__title a {
	color: inherit;
	text-decoration: none;
}

/* The title link covers the whole card. */
.ua-post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ua-post-card__title a:focus-visible {
	outline: none;
}

.ua-post-card:focus-within {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

.ua-post-card__excerpt {
	flex: 1;
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.ua-post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--wp--preset--color--accent);
	font-size: 0.9375rem;
	font-weight: 600;
}

.ua-post-card__more .ua-icon {
	width: 0.9rem;
	height: 0.9rem;
	stroke-width: 2.25;
}

.ua-related {
	border-top: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--sand);
}

.ua-related .ua-post-card__title {
	font-size: 1.375rem;
}

.ua-empty {
	padding-block: 2rem;
	text-align: center;
}

.ua-empty p {
	margin: 0 0 1.5rem;
}

.pagination {
	margin-top: clamp(2rem, 4vw, 3rem);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding-inline: 0.85rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 6px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	border-color: var(--wp--preset--color--accent);
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
}

.pagination .page-numbers.dots {
	border: 0;
	background: none;
}

/* Footer */

.ua-footer {
	border-top: 1px solid var(--wp--preset--color--line);
	background: var(--wp--preset--color--cream);
}

.ua-footer__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(2rem, 4vw, 3rem);
	padding-block: 2.5rem;
}

.ua-footer__logo img {
	display: block;
	width: 210px;
}

.ua-footer__contact {
	padding-left: clamp(2rem, 4vw, 3rem);
	border-left: 1px solid var(--wp--preset--color--line);
}

.ua-footer__text {
	margin: 0 0 0.25rem;
	color: var(--wp--preset--color--ink);
	font-size: 0.9375rem;
}

.ua-footer__phone {
	color: var(--wp--preset--color--ink);
	font-size: 1.375rem;
	font-weight: 600;
	text-decoration: none;
}

.ua-footer__phone:hover {
	color: var(--wp--preset--color--accent);
}

.ua-footer__copyright {
	margin: 0;
	padding: 0 var(--ua-gutter) 1.5rem;
	font-size: 0.8125rem;
	text-align: center;
}

@media (max-width: 767px) {
	.ua-footer__inner {
		flex-direction: column;
		gap: 1.5rem;
		text-align: center;
	}

	.ua-footer__logo img {
		width: 180px;
	}

	.ua-footer__contact {
		padding-left: 0;
		border-left: 0;
	}
}

/* Mobile action bar */

.ua-action-bar {
	display: none;
}

@media (max-width: 767px) {
	.ua-action-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 30;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
		padding: 0.75rem var(--ua-gutter) calc(0.75rem + env(safe-area-inset-bottom));
		border-top: 1px solid var(--wp--preset--color--line);
		background: var(--wp--preset--color--cream);
		box-shadow: 0 -8px 20px rgb(22 38 45 / 0.06);
	}

	.ua-action-bar .ua-btn {
		min-height: 2.875rem;
		padding-inline: 0.75rem;
		font-size: 0.9375rem;
		white-space: nowrap;
	}

	body:has(.ua-action-bar) {
		padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
	}
}
