/*
 * Theme styles for markup without a source equivalent and functional states.
 * Source utility classes and the compiled base layer live in app.css.
 */

/* The hidden attribute must win over any display utility. */
[hidden] {
	display: none !important;
}

/* Fixed header offset for inner pages (the home hero sits under the header). */
.site-main-inner {
	padding-top: 5rem;
}

@media (min-width: 1024px) {
	.site-main-inner {
		padding-top: 6rem;
	}
}

/* Admin bar offset for the fixed header. */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* The header state hook; colours come from the source utility classes. */
.site-header.is-solid {
	position: fixed;
}

/* Logo size is fixed exactly as in the design. */
.site-logo-img {
	height: 64px !important;
	width: auto !important;
	display: block;
}

.site-logo-text {
	line-height: 64px;
	display: block;
}

/* Keep the About image card clear of the fixed header for logged-in users:
   shift the sticky offset by the admin bar height, keeping the design gap. */
@media (min-width: 1024px) {
	body.admin-bar .about-sticky {
		top: calc(7rem + 32px);
	}
}

/* Scroll reveals must never hide content without JavaScript or in the preview. */
html:not(.js-ready) .reveal,
body.is-customizer .reveal {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
}

/* Service row hover motion (the source uses a motion library). */
.theme-service-overlay {
	opacity: 0;
	transition: opacity 0.4s;
}

.theme-service-row:hover .theme-service-overlay {
	opacity: 1;
}

.theme-service-bar {
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 0.5s ease-out;
}

.theme-service-row:hover .theme-service-bar {
	transform: scaleY(1);
}

.theme-service-icon {
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-service-row:hover .theme-service-icon {
	transform: rotate(-8deg) scale(1.08);
}

/* Team drawer open and close. */
[data-theme-team-drawer] {
	transform: translateX(100%);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme-team-drawer].is-open {
	transform: translateX(0);
}

[data-theme-team-overlay] {
	opacity: 0;
	transition: opacity 0.3s ease;
}

[data-theme-team-overlay].is-open {
	opacity: 1;
}

/* FAQ accordion. */
[data-theme-faq-panel] {
	height: 0;
	opacity: 0;
	overflow: hidden;
	transition: height 0.3s ease, opacity 0.25s ease;
}

[data-theme-faq-panel].is-open {
	opacity: 1;
}

/* Submit button motion from the source form. */
[data-theme-contact-form] button[type="submit"] {
	transition: transform 0.2s ease, filter 0.2s ease;
}

[data-theme-contact-form] button[type="submit"]:hover {
	transform: scale(1.02);
}

[data-theme-contact-form] button[type="submit"]:active {
	transform: scale(0.98);
}

/* Locked submit button while a request is in flight. */
.theme-btn-loading {
	opacity: 0.6;
	pointer-events: none;
	cursor: wait;
}

/* WordPress-generated navigation lists keep the source flex behaviour. */
.theme-nav-list,
.theme-nav-list > li {
	display: contents;
}

/* Editor content on pages that have no source design. */
.theme-page-pad {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.site-brand-text {
	margin-left: 0.75rem;
}

.theme-title-link {
	transition: color 0.2s;
}

.theme-title-link:hover {
	color: var(--purple);
}

.entry-content {
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.7;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--royal-deep);
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.entry-content h2 {
	font-size: 2rem;
	line-height: 1.15;
}

.entry-content h3 {
	font-size: 1.5rem;
	line-height: 1.2;
}

.entry-content h4 {
	font-size: 1.25rem;
	line-height: 1.3;
}

.entry-content p {
	margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25rem 1.5rem;
}

.entry-content ul {
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content li {
	margin-bottom: 0.5rem;
}

.entry-content a {
	color: var(--purple);
	text-decoration: underline;
}

.entry-content blockquote {
	border-left: 3px solid var(--gold);
	padding-left: 1.25rem;
	font-style: italic;
	color: var(--muted-foreground);
	margin: 1.5rem 0;
}

.entry-content img {
	border-radius: var(--radius-xl);
	max-width: 100%;
	height: auto;
}

/* Pagination for the fallback loop. */
.navigation.pagination {
	margin-top: 2rem;
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	background-color: var(--secondary);
	color: var(--royal-deep);
	font-family: var(--font-sans);
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
	background-color: var(--royal-deep);
	color: #fff;
}

/* Accessibility helper. */
.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;
	width: 1px;
	word-wrap: normal !important;
}
