/*
 * AI Beacon site styles: rows, bands, cards, hero, header and footer.
 * Sizes in rem, em, % or vw; the one px value is the row width standard (BRowWidth). KimS+CC 24Nov26
 */

:root {
	--aib-row: clamp(84%, 94vw, 1320px);
	--aib-band-pad: clamp(3rem, 7vw, 5.5rem);
	--aib-gap: clamp(1.25rem, 2.5vw, 2rem);
}

/* Every row on the site shares one width. */
.aib-row,
.aib-header,
.aib-footer,
main.wp-block-group:not(.aib-home) {
	width: var(--aib-row);
	max-width: none;
	margin-left: auto;
	margin-right: auto;
}

/* Header */
.aib-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 0;
}
.aib-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--wp--preset--color--slate);
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1rem, 0.6rem + 1vw, 1.2rem);
}
.aib-logo img {
	width: 3rem;
	height: auto;
	display: block;
}
.aib-header .wp-block-navigation__responsive-container-open,
.aib-header .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--slate);
	padding: 0.5rem;
}
.aib-header .wp-block-navigation__responsive-container-open svg,
.aib-header .wp-block-navigation__responsive-container-close svg {
	width: 2rem;
	height: 2rem;
}
.aib-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--slate);
	padding: clamp(1.5rem, 5vw, 3rem);
}
.aib-header .is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.05rem, 0.8rem + 1.2vw, 1.5rem);
	padding: 0.6em 0;
}

/* Home: bands run edge to edge, their rows keep the row width. */
main.aib-home {
	margin: 0;
	padding: 0;
}
main.aib-home > .entry-content,
main.aib-home > .wp-block-post-content {
	margin: 0;
	max-width: none;
}
main.aib-home > .wp-block-post-content > * {
	max-width: none;
	margin-top: 0;
	margin-bottom: 0;
}
.aib-band {
	padding: var(--aib-band-pad) 0;
}
.aib-band--tint {
	background: var(--wp--preset--color--tint);
}
.aib-band > * {
	width: var(--aib-row);
	max-width: none;
	margin-left: auto;
	margin-right: auto;
}
.aib-band > h2,
.aib-band > .aib-lede,
.aib-band > .wp-block-buttons {
	text-align: center;
	justify-content: center;
}
.aib-band > h2 {
	font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem);
	margin-top: 0;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.aib-band > .wp-block-buttons {
	margin-top: clamp(2rem, 4vw, 3rem);
}
.aib-lede {
	max-width: 52rem;
	width: min(var(--aib-row), 52rem);
	font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
}
.aib-lede--display {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--slate);
	font-size: clamp(1.05rem, 0.8rem + 1.1vw, 1.5rem);
	line-height: 1.4;
}

/* Hero: the heading sits centred over the picture and never breaks inside a word. */
.aib-hero {
	display: grid;
	place-items: center;
	min-height: clamp(20rem, 52vw, 40rem);
	padding: clamp(1.5rem, 5vw, 4rem) 0;
	background-color: var(--wp--preset--color--sky);
	background-image: url("AIBeaconHero.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}
.aib-hero > * {
	width: var(--aib-row);
	max-width: none;
	margin: 0 auto;
}
.aib-hero h1 {
	box-sizing: border-box;
	margin: 0 auto;
	padding: clamp(1rem, 3vw, 2.25rem) clamp(0.75rem, 3vw, 2.5rem);
	background: rgba(255, 255, 255, 0.78);
	text-align: center;
	font-size: clamp(1.25rem, 0.55rem + 3.6vw, 3.6rem);
	line-height: 1.25;
	overflow-wrap: normal;
	word-break: keep-all;
	hyphens: none;
	text-wrap: balance;
}
.aib-intro > h2 {
	font-size: clamp(1.4rem, 0.9rem + 2.4vw, 2.75rem);
}
/* The intro heading breaks after "your" on a desktop, and "clients' content." always stays together,
   so "content." is never left alone on a line (Kim 24Nov26). */
.aib-br-desktop {
	display: none;
}
.aib-nowrap {
	white-space: nowrap;
}
@media (min-width: 52rem) {
	.aib-br-desktop {
		display: inline;
	}
}
/* The intro is one column at the full row width; its button sits centred under the text. */
.aib-intro > .aib-lede {
	width: var(--aib-row);
	max-width: none;
	text-align: left;
}
/* Desktop: the intro keeps the row width and its contents sit 5% in from each side (Kim 24Nov26). */
@media (min-width: 52rem) {
	.aib-intro > *,
	.aib-intro > .aib-lede {
		box-sizing: border-box;
		width: var(--aib-row);
		padding-left: 5%;
		padding-right: 5%;
	}
}

/* Cards */
.aib-grid {
	display: grid;
	gap: var(--aib-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.aib-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.aib-grid--2 {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
}
/* Two columns on a desktop, one on a phone: the four home cards and the questions. */
.aib-grid--pair {
	grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
	.aib-grid--pair {
		grid-template-columns: 1fr 1fr;
	}
}
/* Three columns on a desktop, one on a phone: the Pricing tiers. */
.aib-grid--trio {
	grid-template-columns: 1fr;
}
@media (min-width: 52rem) {
	.aib-grid--trio {
		grid-template-columns: repeat(3, 1fr);
	}
}
.aib-grid > * {
	margin: 0;
}
.aib-card {
	box-sizing: border-box;
	height: 100%;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	background: var(--wp--preset--color--cream);
	border: 0.0625rem solid var(--wp--preset--color--border);
	border-radius: 1.25rem;
	box-shadow: 0 0.125rem 0.5rem rgba(53, 74, 83, 0.1);
}
/* A card grows to 105% under the pointer (Kim 24Nov26); still for people who ask for less motion. */
.aib-card {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.aib-card:hover {
	transform: scale(1.05);
	box-shadow: 0 0.5rem 1.5rem rgba(53, 74, 83, 0.16);
	position: relative;
	z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
	.aib-card {
		transition: none;
	}
	.aib-card:hover {
		transform: none;
	}
}
/* A card's title is centred over its text (Kim 24Nov26). */
.aib-card > h2,
.aib-card > h3 {
	text-align: center;
}
.aib-band--tint .aib-card {
	background: var(--wp--preset--color--base);
}
.aib-card > :first-child {
	margin-top: 0;
}
.aib-card > :last-child {
	margin-bottom: 0;
}
.aib-card h3 {
	font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem);
	margin-bottom: 0.75rem;
}
.aib-card p {
	margin-top: 0.75rem;
}
.aib-grid--pair > .aib-card > h3 {
	font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
	margin-bottom: 1rem;
}
.aib-grid--pair > .aib-card > h2 {
	font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem);
	margin-top: 0;
	margin-bottom: 0.75rem;
}
.aib-grid--trio > .aib-card > h2 {
	font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem);
	margin-top: 0;
	margin-bottom: 0.75rem;
}
.aib-price {
	text-align: center;
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--slate);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.aib-bulk {
	text-align: center;
	margin-top: var(--aib-gap);
}
.aib-card-lede {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--slate);
	font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.25rem);
	line-height: 1.45;
}
.aib-card ul,
.aib-card ol {
	margin: 0.75rem 0 0;
	padding-left: 1.4em;
}
.aib-card li + li {
	margin-top: 0.75rem;
}
.aib-card ol li::marker {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--accent);
}
/* Inner pages: the content fills the row, the same width as the front page's rows (Kim 24Nov26). */
main.wp-block-group:not(.aib-home) > *,
main.wp-block-group:not(.aib-home) > .wp-block-post-content > * {
	max-width: none;
}
/* Inner pages: a centred H1, and room above a closing button. */
main.wp-block-group:not(.aib-home) h1 {
	text-align: center;
	font-size: clamp(1.6rem, 1rem + 2.6vw, 2.9rem);
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
main.wp-block-group:not(.aib-home) .aib-grid + .wp-block-buttons {
	margin-top: clamp(2rem, 4vw, 3rem);
}
.aib-card--wide {
	width: min(var(--aib-row), 56rem);
}
.aib-step {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--accent);
	font-size: 1.5rem;
	line-height: 1;
	margin: 0 0 0.75rem;
}
.aib-note {
	width: min(var(--aib-row), 56rem);
	margin-top: var(--aib-gap);
	color: var(--wp--preset--color--muted);
	text-align: center;
}

/* Footer */
.aib-footer {
	padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
}
.aib-footer p {
	margin: 0.5rem 0;
}
/* The closing line: heading font, a quarter under H3 size, letters 1.5px apart, room under it (Kim 24Nov26). */
.aib-footer .aib-footer-line {
	max-width: 60rem;
	margin: 0 auto clamp(2rem, 4vw, 3.5rem);
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--slate);
	font-size: clamp(1rem, 0.75rem + 0.75vw, 1.3125rem);
	letter-spacing: 0.09375rem;
	line-height: 1.5;
}
.aib-footer a {
	color: var(--wp--preset--color--slate);
}
.aib-footbar {
	margin: 0;
	padding: 1rem 0;
	background: var(--wp--preset--color--footbar);
	color: #d9d9d9;
	text-align: center;
	font-size: var(--wp--preset--font-size--small);
}
.aib-footbar p {
	width: var(--aib-row);
	margin: 0 auto;
}
