/*
Theme Name: Aligned-Profits
Author: Aligned-Profits
Description: Custom block theme for Aligned-Profits, an Ottawa marketing agency for local businesses.
Version: 0.4.1
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: aligned-market
*/

:root {
	--am-accent-rgb: 212, 42, 54;
	--am-glow: rgba(var(--am-accent-rgb), 0.22);
	--am-radius: 12px;
	--am-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--wp--preset--color--accent-bright); outline-offset: 3px; }
[id] { scroll-margin-top: 6rem; } /* keep anchor targets clear of the sticky header */
::selection { background: var(--wp--preset--color--accent); color: #fff; }

.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;
}

/* Accent-highlighted words in headings. */
.am-hl {
	background: linear-gradient(100deg, var(--wp--preset--color--accent-bright) 10%, #FF8A65 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

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

/* Full-bleed bands stack directly on each other, without the default block gap. */
.wp-site-blocks > *,
.am-main .wp-block-post-content > .alignfull,
.am-main > .alignfull { margin-block: 0; }

.am-section { padding-block: var(--wp--preset--spacing--70); position: relative; }

.am-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
	border-bottom: 1px solid var(--wp--preset--color--line);
	background:
		radial-gradient(55% 70% at 85% 0%, var(--am-glow), transparent 70%),
		var(--wp--preset--color--base);
}
.am-hero__inner > :not(.am-hero__cols),
.am-hero__cols > .wp-block-column:first-child > * { max-width: 46rem; }
.am-hero h1 { margin-top: 1rem; }
.am-hero__cols { align-items: center !important; gap: var(--wp--preset--spacing--50); }

/* Faint grid + drifting glow behind heroes and dark bands. */
.am-hero::before,
.am-tone-dark::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000 0%, transparent 75%);
}
.am-hero::after,
.am-tone-dark::after {
	content: "";
	position: absolute; z-index: -1;
	width: min(48vw, 640px); aspect-ratio: 1;
	right: -12%; top: -30%;
	/* Multi-stop gradient instead of filter: blur(), which is expensive to repaint while animating. */
	background: radial-gradient(circle, rgba(240, 68, 82, 0.28) 0%, rgba(240, 68, 82, 0.12) 35%, rgba(240, 68, 82, 0.03) 55%, transparent 70%);
	pointer-events: none;
}
.am-motion .am-hero::after,
.am-motion .am-tone-dark::after { animation: am-drift 16s ease-in-out infinite alternate; }

.am-tone-dark {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--wp--preset--color--base);
	border-block: 1px solid var(--wp--preset--color--line);
}
.am-tone-dark::after { left: 50%; right: auto; top: auto; bottom: -45%; transform: translateX(-50%); }

.am-tone-stone {
	background: var(--wp--preset--color--base-alt);
	border-block: 1px solid var(--wp--preset--color--line);
}

.am-lead {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--muted);
	max-width: 44rem;
}

.am-grid:not(:first-child) { margin-top: var(--wp--preset--spacing--50); }

/* Four-up grid (services, process) that steps down to 2 and 1 columns without orphans. */
.am-grid.am-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .am-grid.am-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .am-grid.am-grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Block styles ---------- */

/* Eyebrow: a pill with a pulsing dot. */
.is-style-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: fit-content;
	padding: 0.35rem 0.85rem;
	border: 1px solid rgba(240, 68, 82, 0.35);
	border-radius: 999px;
	background: rgba(var(--am-accent-rgb), 0.08);
	color: var(--wp--preset--color--accent-bright);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.is-style-eyebrow::before {
	content: "";
	flex: none;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-bright);
}
.am-motion .is-style-eyebrow::before { animation: am-pulse 2.4s ease-out infinite; }
.is-style-eyebrow a { color: inherit; text-decoration: none; }

.is-style-card {
	background: linear-gradient(180deg, var(--wp--preset--color--surface), var(--wp--preset--color--base-alt));
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--am-radius);
	padding: var(--wp--preset--spacing--40);
	transition: transform 0.4s var(--am-ease), border-color 0.4s, box-shadow 0.4s;
}
.is-style-card > :first-child { margin-top: 0; }
.is-style-card:hover {
	transform: translateY(-4px);
	border-color: rgba(240, 68, 82, 0.45);
	box-shadow: 0 24px 48px -24px rgba(var(--am-accent-rgb), 0.5);
}
.is-style-card p:not(.am-card-link):not(.am-step-number) { color: var(--wp--preset--color--muted); }

/* Highlighted card (e.g. "Not sure where to start?"). */
.am-card--feature {
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(var(--am-accent-rgb), 0.35), transparent 60%),
		var(--wp--preset--color--surface);
	border-color: rgba(240, 68, 82, 0.4);
}
.am-card--feature p:not(.am-card-link) { color: var(--wp--preset--color--text) !important; }

.am-card-icon {
	display: grid; place-items: center;
	width: 2.75rem; height: 2.75rem;
	border-radius: 10px;
	background: rgba(var(--am-accent-rgb), 0.12);
	border: 1px solid rgba(240, 68, 82, 0.25);
	color: var(--wp--preset--color--accent-bright);
	transition: background 0.3s, color 0.3s, transform 0.4s var(--am-ease);
}
.am-card-icon .am-icon { width: 1.35rem; height: 1.35rem; }
.is-style-card:hover .am-card-icon {
	background: var(--wp--preset--color--accent);
	color: #fff;
	transform: rotate(-6deg) scale(1.05);
}

/* Lists with check-circle markers. */
.is-style-checks { list-style: none; padding-left: 0; }
.is-style-checks li { position: relative; padding-left: 2rem; margin-block: 0.7rem; }
.is-style-checks li::before {
	content: "";
	position: absolute; left: 0; top: 0.2em;
	width: 1.2rem; height: 1.2rem;
	border-radius: 50%;
	border: 1px solid rgba(240, 68, 82, 0.45);
	background: rgba(var(--am-accent-rgb), 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F04452' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* Buttons */
.wp-element-button {
	transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--am-ease), box-shadow 0.25s;
}
.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	box-shadow: 0 10px 30px -10px rgba(var(--am-accent-rgb), 0.7);
}
.wp-block-button > .wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	padding: 0.85rem 1.5rem;
	background: rgba(255, 255, 255, 0.02);
	color: var(--wp--preset--color--text);
	border: 1px solid rgba(255, 255, 255, 0.2);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--accent-bright);
	background: rgba(var(--am-accent-rgb), 0.1);
}
/* "light" was the primary style on dark bands in the earlier palette; it is now the same crimson primary. */

/* ---------- Components ---------- */

.am-card-link { margin-top: auto; }
.am-card-link a { font-weight: 600; text-decoration: none; color: var(--wp--preset--color--text); }
.am-card-link a:hover { color: var(--wp--preset--color--accent-bright); }

.am-step-number {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	background: linear-gradient(180deg, var(--wp--preset--color--accent-bright), rgba(240, 68, 82, 0.25));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Draft content that must be replaced before launch. */
.am-placeholder {
	background: rgba(242, 169, 59, 0.08);
	border: 1px dashed rgba(242, 169, 59, 0.6);
	border-radius: 8px;
	color: #F5D08A;
	padding: 0.85rem 1.1rem;
	font-size: 0.9375rem;
}

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

.am-orbit {
	--bubble: 4rem;
	container-type: inline-size; /* lets the icons use cqw to sit exactly on the ring */
	position: relative;
	width: min(100% - var(--bubble), 500px); /* bubbles overhang the ring by half their size */
	aspect-ratio: 1;
	margin-inline: auto;
}
/* Soft crimson halo behind the whole wheel. */
.am-orbit::before {
	content: "";
	position: absolute; inset: 10%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--am-accent-rgb), 0.28) 0%, rgba(var(--am-accent-rgb), 0.1) 45%, transparent 75%);
}
.am-orbit__ring {
	position: absolute; inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.16);
}
/* A bright arc that sweeps around the outer ring. */
.am-orbit__ring--outer::after {
	content: "";
	position: absolute; inset: -1px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0 70%, rgba(240, 68, 82, 0.15) 80%, #F04452 100%);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}
.am-motion .am-orbit__ring--outer::after { animation: am-spin 5s linear infinite; }
.am-orbit__ring--inner { inset: 22%; border-color: rgba(240, 68, 82, 0.45); border-style: dashed; }
.am-orbit__core {
	position: absolute; inset: 37%;
	display: grid; place-items: center;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #2A1418, var(--wp--preset--color--base));
	border: 1px solid rgba(240, 68, 82, 0.5);
	box-shadow: 0 0 60px rgba(var(--am-accent-rgb), 0.45), inset 0 0 30px rgba(var(--am-accent-rgb), 0.25);
}
.am-orbit__mark {
	width: 34%; aspect-ratio: 1;
	background: var(--wp--preset--color--accent-bright);
	border-radius: 4px;
	transform: rotate(45deg);
	box-shadow: 0 0 24px rgba(240, 68, 82, 0.8);
}
.am-orbit__track { position: absolute; inset: 0; }

/* ---------- Floating service icon (service page heroes) ---------- */

.am-float {
	display: grid; place-items: center;
	width: min(100%, 360px);
	aspect-ratio: 1;
	margin-inline: auto;
	background: radial-gradient(circle, rgba(var(--am-accent-rgb), 0.3), transparent 65%);
}
.am-float__icon {
	display: grid; place-items: center;
	width: 52%; aspect-ratio: 1;
	border-radius: 28%;
	background: linear-gradient(135deg, var(--wp--preset--color--accent-bright), var(--wp--preset--color--accent));
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	box-shadow: 0 30px 60px -20px rgba(var(--am-accent-rgb), 0.8), 0 0 40px rgba(240, 68, 82, 0.35);
}
.am-float__icon .am-icon { width: 48%; height: 48%; }
.am-motion .am-float__icon { animation: am-float 5s ease-in-out infinite; }

@keyframes am-float {
	0%, 100% { transform: translateY(0) rotate(-2deg); }
	50% { transform: translateY(-16px) rotate(2deg); }
}

@media (max-width: 781px) {
	.am-float { width: min(60vw, 220px); margin-top: var(--wp--preset--spacing--40); }
}
.am-orbit__item {
	position: absolute;
	top: 50%; left: 50%;
	width: var(--bubble); height: var(--bubble);
	margin: calc(var(--bubble) / -2);
	transform: rotate(calc(360deg / var(--n) * var(--i))) translateY(-50cqw) rotate(calc(-360deg / var(--n) * var(--i)));
}
.am-orbit__bubble {
	display: grid; place-items: center;
	width: 100%; height: 100%;
	border-radius: 50%;
	background: var(--wp--preset--color--surface-2);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.9);
}
.am-orbit__item:nth-child(odd) .am-orbit__bubble {
	background: linear-gradient(135deg, var(--wp--preset--color--accent-bright), var(--wp--preset--color--accent));
	border-color: rgba(255, 255, 255, 0.25);
	box-shadow: 0 0 28px rgba(240, 68, 82, 0.55);
}
.am-orbit__bubble .am-icon { width: 45%; height: 45%; }

.am-motion .am-orbit__track { animation: am-spin 30s linear infinite; }
.am-motion .am-orbit__bubble { animation: am-spin 30s linear infinite reverse; }
.am-motion .am-orbit__ring--inner { animation: am-spin 90s linear infinite reverse; }
.am-motion .am-orbit__core { animation: am-glow 4s ease-in-out infinite alternate; }

@media (max-width: 781px) {
	.am-orbit { width: min(72vw, 300px); --bubble: 2.75rem; margin-top: var(--wp--preset--spacing--50); }
}

/* ---------- Motion ---------- */

@keyframes am-spin { to { transform: rotate(360deg); } }
@keyframes am-drift {
	from { translate: 0 0; scale: 1; }
	to { translate: -8% 10%; scale: 1.15; }
}
@keyframes am-pulse {
	0% { box-shadow: 0 0 0 0 rgba(240, 68, 82, 0.6); }
	70%, 100% { box-shadow: 0 0 0 7px rgba(240, 68, 82, 0); }
}
@keyframes am-glow {
	from { box-shadow: 0 0 40px rgba(var(--am-accent-rgb), 0.3), inset 0 0 24px rgba(var(--am-accent-rgb), 0.2); }
	to { box-shadow: 0 0 80px rgba(var(--am-accent-rgb), 0.6), inset 0 0 36px rgba(var(--am-accent-rgb), 0.35); }
}
@keyframes am-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

/* Hero entrance (CSS only, so it runs before scripts load). */
.am-motion .am-hero__inner > :not(.am-hero__cols),
.am-motion .am-hero__cols > .wp-block-column:first-child > *,
.am-motion .am-hero__cols > .wp-block-column:last-child {
	animation: am-rise 0.9s var(--am-ease) both;
}
.am-motion .am-hero__inner > :nth-child(2),
.am-motion .am-hero__cols > .wp-block-column:first-child > :nth-child(2) { animation-delay: 0.08s; }
.am-motion .am-hero__inner > :nth-child(3),
.am-motion .am-hero__cols > .wp-block-column:first-child > :nth-child(3) { animation-delay: 0.16s; }
.am-motion .am-hero__inner > :nth-child(4),
.am-motion .am-hero__cols > .wp-block-column:first-child > :nth-child(4) { animation-delay: 0.24s; }
.am-motion .am-hero__cols > .wp-block-column:last-child { animation-duration: 1.4s; animation-delay: 0.2s; }

/* Scroll reveal (classes added by assets/motion.js). */
.am-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s var(--am-ease), transform 0.8s var(--am-ease);
	transition-delay: var(--am-delay, 0s);
}
.am-reveal.is-in { opacity: 1; transform: none; }
/* Cards keep their own hover transition once revealed. */
.is-style-card.am-reveal.is-in {
	transition: opacity 0.8s var(--am-ease) var(--am-delay, 0s), transform 0.4s var(--am-ease), border-color 0.4s, box-shadow 0.4s;
}

/* Looping animations stop while their section is off screen (toggled by assets/motion.js). */
.is-paused,
.is-paused *,
.is-paused::before,
.is-paused::after,
.is-paused *::before,
.is-paused *::after { animation-play-state: paused !important; }

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

/* ---------- Forms (Fluent Forms) ---------- */

/* Give the form's column more room than the sidebar beside it. */
.wp-block-columns > .wp-block-column:has(.fluentform) { flex-grow: 1.8; }

.fluentform .ff-el-group { margin-bottom: 1.35rem; }
.fluentform .ff-el-input--label label {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--wp--preset--color--text);
}
.fluentform .ff-el-is-required.asterisk-right label::after { color: var(--wp--preset--color--accent-bright); }

.fluentform .ff-el-form-control {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	color: var(--wp--preset--color--text);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
	padding: 0.7rem 0.9rem;
	min-height: 3rem;
	box-shadow: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.fluentform .ff-el-form-control::placeholder { color: var(--wp--preset--color--muted); opacity: 0.7; }
.fluentform .ff-el-form-control:focus {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
	border-color: var(--wp--preset--color--accent-bright);
	box-shadow: 0 0 0 3px rgba(var(--am-accent-rgb), 0.25);
	outline: none;
}
.fluentform select.ff-el-form-control:not([size]):not([multiple]) { height: 3rem; }
.fluentform select.ff-el-form-control option { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--text); }

.fluentform .ff-el-form-check { margin-bottom: 0.4rem; }
.fluentform .ff-el-form-check-label { font-size: 0.9375rem; color: var(--wp--preset--color--text); }
.fluentform input[type="checkbox"] { accent-color: var(--wp--preset--color--accent); width: 1rem; height: 1rem; }

.fluentform .ff-el-tc,
.fluentform .ff_t_c { font-size: 0.875rem; color: var(--wp--preset--color--muted); }

.fluentform .ff-btn-submit:not(.ff_btn_no_style) {
	background: var(--wp--preset--color--accent);
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 6px;
	color: #fff;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 0.95rem 1.75rem;
	box-shadow: 0 10px 30px -10px rgba(var(--am-accent-rgb), 0.7);
	transition: background-color 0.25s, transform 0.25s var(--am-ease);
}
.fluentform .ff-btn-submit:not(.ff_btn_no_style):hover {
	background: var(--wp--preset--color--accent-bright);
	opacity: 1;
	transform: translateY(-2px);
}

.fluentform .error.text-danger { color: #FF8A8A; font-size: 0.875rem; }
.ff-message-success {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--line);
	border-left: 3px solid var(--wp--preset--color--accent-bright);
	border-radius: 8px;
	box-shadow: none;
	color: var(--wp--preset--color--text);
	padding: var(--wp--preset--spacing--40);
}

/* ---------- Booking (Fluent Booking) ---------- */

.fcal_cal_wrap {
	--fcal_primary_color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--sans);
}
.am-section .fcal_cal_wrap:not(:first-child) { margin-top: var(--wp--preset--spacing--40); }
/* Selecting a day focuses a time slot while the panel is still widening, which makes the
   browser scroll this hidden-overflow track sideways and clip the month. clip can't scroll. */
.fcal_date_wrapper { overflow: clip !important; }

/* ---------- Header ---------- */

header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
body.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { body.admin-bar header.wp-block-template-part { top: 46px; } }

.am-header {
	/* Nearly opaque instead of backdrop-filter blur, which re-blurs the page on every scroll frame. */
	background: rgba(10, 12, 16, 0.94);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	padding-block: 1rem;
}
/* Logo: rising-diamonds icon + wordmark, the hyphen drawn as a diamond (artwork in brand/). */
.am-logo {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0;
}
.am-logo a {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	color: inherit;
	text-decoration: none;
}
.am-footer .am-logo a { color: var(--wp--preset--color--text); }
.am-logo__mark { flex: none; width: 1.55em; height: 1.55em; }
.am-logo__text { display: inline-flex; align-items: center; white-space: nowrap; }
.am-logo__dash {
	flex: none;
	width: 0.2em; height: 0.2em;
	margin: 0.08em 0.13em 0;
	border-radius: 0.03em;
	background: var(--wp--preset--color--accent-bright);
	transform: rotate(45deg);
}

.am-header .wp-block-navigation { font-size: 0.9375rem; font-weight: 500; gap: 1.75rem; }
.am-header .wp-block-navigation a { text-decoration: none; color: color-mix(in srgb, var(--wp--preset--color--text) 82%, transparent); transition: color 0.2s; }
.am-header .wp-block-navigation a:hover { color: var(--wp--preset--color--text); }
.am-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 10px;
	box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
	padding-block: 0.5rem;
	min-width: 15rem;
}
/* Core forces submenus to black text on white; override for the dark palette. */
.am-header .wp-block-navigation .wp-block-navigation__submenu-container {
	color: var(--wp--preset--color--text) !important;
}
.am-header .wp-block-navigation .wp-block-navigation__submenu-container a {
	padding: 0.45rem 1.1rem;
	color: color-mix(in srgb, var(--wp--preset--color--text) 82%, transparent) !important;
}
.am-header .wp-block-navigation .wp-block-navigation__submenu-container a:hover {
	color: var(--wp--preset--color--accent-bright) !important;
	background: rgba(var(--am-accent-rgb), 0.08);
}
.am-header .wp-block-button__link { padding: 0.6rem 1.15rem; }

.am-header .am-logo { white-space: nowrap; }
.am-header .wp-block-navigation .am-nav-mobile-only { display: none; }
.am-header .wp-block-navigation .is-menu-open .am-nav-mobile-only { display: flex; }

@media (max-width: 781px) {
	.wp-block-buttons.am-header-cta { display: none; }
}

/* Mobile menu overlay. Core navigation styles are very specific, hence the long selectors. */
.am-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--text);
	padding: var(--wp--preset--spacing--40);
}
.am-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.am-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.am-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
	text-align: left;
}
.am-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 3rem;
}
.am-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; }
.am-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.625rem;
	font-weight: 600;
	color: var(--wp--preset--color--text);
}
.am-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none;
	padding: 0.75rem 0 0 1rem !important;
	gap: 0.35rem;
	font-size: 1rem;
}
.am-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container a {
	padding: 0.2rem 0;
	color: var(--wp--preset--color--muted);
}

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

.am-footer {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--base-alt) !important;
}
.am-footer::after { display: none; }
.am-footer .am-footer-heading {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-bright);
}
.am-footer-links { list-style: none; padding-left: 0; }
.am-footer-links li { margin-block: 0.45rem; }
.am-footer a:where(:not(.wp-element-button)) { text-decoration: none; color: var(--wp--preset--color--muted); transition: color 0.2s; }
.am-footer a:where(:not(.wp-element-button)):hover { color: var(--wp--preset--color--text); }
.am-footer-small,
.am-footer-bottom { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.am-footer-bottom {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-top: var(--wp--preset--spacing--50);
	padding-top: 1.5rem;
}
.am-footer-bottom p { margin: 0; }

/* ---------- Posts ---------- */

.am-meta { font-size: 0.875rem; color: var(--wp--preset--color--muted); }
.wp-block-post-template .wp-block-post-title a { text-decoration: none; }
.wp-block-post-template .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-bright); }
