/* ==========================================================================
   Static pages — About, Contact, FAQ, Legal
   Also carries the shared page hero used by all four.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page hero

   Shorter and quieter than the homepage hero: one column, left-aligned, with
   the awning arc doing the work of separating it from the section below.
   -------------------------------------------------------------------------- */

.af-pagehero {
	position: relative;
	padding-block: clamp(2.25rem, 5.5vw, 4.25rem) clamp(3rem, 6vw, 5rem);
	overflow: hidden;
	isolation: isolate;
}

.af-pagehero--tight {
	padding-block: clamp(2rem, 4.5vw, 3.25rem) clamp(2.5rem, 5vw, 4rem);
}

.af-pagehero__wash {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: linear-gradient(168deg, var(--af-sand) 0%, var(--af-cream-warm) 64%, var(--af-cream) 100%);
}

.af-pagehero__bloom {
	position: absolute;
	top: -55%;
	right: -12%;
	z-index: -1;
	width: 38rem;
	height: 38rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(224, 168, 106, 0.28), transparent 64%);
	pointer-events: none;
}

.af-pagehero__inner {
	position: relative;
	max-width: 44rem;
}

.af-pagehero__title {
	margin: 0;
	font-size: var(--af-text-4xl);
	line-height: 1.04;
	letter-spacing: -0.025em;
}

.af-pagehero__lede {
	margin: var(--af-space-4) 0 0;
	font-size: var(--af-text-lg);
	line-height: var(--af-leading-relaxed);
	color: var(--af-ink-soft);
}

/* Header block on the blog index and archive templates. */
.af-pagehead {
	max-width: 44rem;
	margin-bottom: var(--af-space-6);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.af-about__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.af-about__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

@media (min-width: 900px) {
	/* The glance card follows the reader down the prose column. */
	.af-about__card { position: sticky; top: calc(var(--af-header-h) + 1.5rem); }
}

.af-about__facts { margin: var(--af-space-4) 0 0; }

.af-about__facts li {
	margin: 0;
	padding: var(--af-space-4) 0;
	border-bottom: 1px dashed var(--af-line-strong);
}

.af-about__facts li:last-child { padding-bottom: 0; border-bottom: 0; }

.af-about__facts strong {
	display: block;
	font-family: var(--af-font-display);
	font-size: var(--af-text-xl);
	font-weight: 600;
	line-height: 1.1;
	color: var(--af-cocoa-900);
}

.af-about__facts span {
	display: block;
	margin-top: 0.15rem;
	font-size: var(--af-text-sm);
	color: var(--af-ink-muted);
}

/* --- Values --- */

.af-values {
	display: grid;
	gap: var(--af-space-5);
	margin: 0;
	grid-template-columns: 1fr;
}

@media (min-width: 620px) {
	.af-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
	.af-values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.af-values__item {
	position: relative;
	margin: 0;
	padding: var(--af-space-6);
	background: var(--af-white);
	border: 1px solid var(--af-line-soft);
	border-radius: var(--af-r-lg);
	transition: transform var(--af-dur) var(--af-ease-out),
		box-shadow var(--af-dur) var(--af-ease-out);
}

.af-values__item:hover {
	transform: translateY(-3px);
	box-shadow: var(--af-shadow-md);
}

/* Each card gets a different tint on its icon, cycling through the accents so
   the row does not read as four copies of the same card. */
.af-values__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: var(--af-space-4);
	border-radius: var(--af-r-sm);
	background: var(--af-leaf-soft);
	color: var(--af-leaf-dark);
}

.af-values__item:nth-child(2) .af-values__icon { background: var(--af-terracotta-soft); color: var(--af-terracotta-dark); }
.af-values__item:nth-child(3) .af-values__icon { background: var(--af-honey-soft); color: #7a5a0f; }
.af-values__item:nth-child(4) .af-values__icon { background: var(--af-sand-deep); color: var(--af-cocoa-800); }

.af-values__item h3 { margin: 0; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.af-contact__grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	align-items: start;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.af-contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}

.af-contact__details {
	display: grid;
	gap: var(--af-space-3);
}

.af-contact__form { min-width: 0; }

/* --- Contact cards --- */

.af-contactcard {
	display: flex;
	align-items: center;
	gap: var(--af-space-4);
	padding: var(--af-space-5);
	background: var(--af-white);
	border: 1px solid var(--af-line-soft);
	border-radius: var(--af-r-lg);
	color: inherit;
	text-decoration: none;
	transition: border-color var(--af-dur) var(--af-ease-out),
		transform var(--af-dur) var(--af-ease-out),
		box-shadow var(--af-dur) var(--af-ease-out);
}

/* Only the anchors move; the address card is static. */
a.af-contactcard:hover {
	border-color: var(--af-caramel);
	transform: translateX(3px);
	box-shadow: var(--af-shadow-sm);
}

/* Phone is the fastest route to a human, so it leads visually. */
.af-contactcard--accent {
	background: var(--af-cocoa-900);
	border-color: var(--af-cocoa-900);
	color: var(--af-cream);
}

a.af-contactcard--accent:hover { border-color: var(--af-caramel); }

.af-contactcard--static { background: var(--af-cream-warm); }

.af-contactcard__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: var(--af-r-sm);
	background: var(--af-sand);
	color: var(--af-cocoa-700);
}

.af-contactcard--accent .af-contactcard__icon {
	background: rgba(224, 168, 106, 0.2);
	color: var(--af-caramel);
}

.af-contactcard__body { flex: 1; min-width: 0; }

.af-contactcard__body small {
	display: block;
	font-size: var(--af-text-2xs);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--af-ink-muted);
}

.af-contactcard--accent .af-contactcard__body small { color: var(--af-caramel); }

.af-contactcard__body strong {
	display: block;
	margin-top: 0.2rem;
	font-size: var(--af-text-md);
	font-weight: 700;
	line-height: 1.35;
}

.af-contactcard__body > span {
	display: block;
	margin-top: 0.15rem;
	font-size: var(--af-text-sm);
	color: var(--af-ink-muted);
}

.af-contactcard--accent .af-contactcard__body > span { color: var(--af-ink-inverse-soft); }

/* Trailing chevron. */
.af-contactcard > svg {
	flex-shrink: 0;
	color: var(--af-ink-faint);
	transition: transform var(--af-dur) var(--af-ease-out);
}

.af-contactcard--accent > svg { color: var(--af-caramel); }
a.af-contactcard:hover > svg { transform: translateX(3px); }

/* Honeypot. Positioned off-screen rather than display:none, which some bots
   check for before deciding whether to fill a field in. */
.af-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.af-faq__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
	grid-template-columns: 1fr;
}

@media (min-width: 960px) {
	.af-faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}

@media (min-width: 960px) {
	.af-faq__intro { position: sticky; top: calc(var(--af-header-h) + 1.5rem); }
}

.af-faq__intro .af-sechead { margin-bottom: var(--af-space-5); }

.af-faq__list {
	min-width: 0;
	border-top: 1px solid var(--af-line);
}

/* --------------------------------------------------------------------------
   Legal
   -------------------------------------------------------------------------- */

.af-legal__grid {
	display: grid;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
	grid-template-columns: 1fr;
}

@media (min-width: 960px) {
	.af-legal__grid { grid-template-columns: 15rem minmax(0, 1fr); }
}

/* On narrow screens the contents list is noise above a long document, so it is
   hidden rather than collapsed. */
.af-legal__toc { display: none; }

@media (min-width: 960px) {
	.af-legal__toc {
		display: block;
		position: sticky;
		top: calc(var(--af-header-h) + 1.5rem);
	}
}

.af-toc .af-eyebrow { margin-bottom: var(--af-space-3); }

.af-toc ul {
	margin: 0;
	border-left: 2px solid var(--af-line);
}

.af-toc li { margin: 0; }

.af-toc a {
	display: block;
	margin-left: -2px;
	padding: 0.4rem 0 0.4rem 0.85rem;
	border-left: 2px solid transparent;
	font-size: var(--af-text-sm);
	font-weight: 600;
	line-height: var(--af-leading-snug);
	color: var(--af-ink-muted);
	text-decoration: none;
	transition: color var(--af-dur-fast) var(--af-ease-out),
		border-color var(--af-dur-fast) var(--af-ease-out);
}

.af-toc a:hover,
.af-toc a.is-current {
	border-left-color: var(--af-caramel);
	color: var(--af-cocoa-900);
}

.af-legal__body {
	min-width: 0;
	max-width: 44rem;
}

/* Scroll margin keeps the sticky header off a heading jumped to from the
   contents list. */
.af-legal__body h2 {
	margin-top: var(--af-space-9);
	padding-top: var(--af-space-5);
	border-top: 1px solid var(--af-line);
	scroll-margin-top: calc(var(--af-header-h) + 1.5rem);
}

.af-legal__body > :first-child { margin-top: 0; }

.af-legal__body h2:first-of-type {
	padding-top: 0;
	border-top: 0;
}

/* --------------------------------------------------------------------------
   Blog and archives
   -------------------------------------------------------------------------- */

.af-postcard {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.af-postcard__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--af-cream-warm);
}

.af-postcard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.af-postcard__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--af-space-5);
}

.af-postcard__body h2 { margin: 0; line-height: 1.25; }
.af-postcard__body h2 a { color: var(--af-ink); text-decoration: none; }
.af-postcard__body h2 a:hover { color: var(--af-terracotta-dark); }

/* Push the read-more link to the bottom so cards of differing text length still
   line up along their base. */
.af-postcard__body .af-textlink { margin-top: auto; }

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.af-pagination .nav-links,
.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}

.woocommerce-pagination li { margin: 0; border: 0; }

.af-pagination .page-numbers,
.woocommerce-pagination a,
.woocommerce-pagination span {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding-inline: 0.7rem;
	background: var(--af-white);
	border: 1.5px solid var(--af-line);
	border-radius: var(--af-r-md);
	font-size: var(--af-text-base);
	font-weight: 700;
	color: var(--af-cocoa-800);
	text-decoration: none;
	transition: border-color var(--af-dur-fast) var(--af-ease-out),
		background-color var(--af-dur-fast) var(--af-ease-out);
}

.af-pagination a.page-numbers:hover,
.woocommerce-pagination a:hover {
	border-color: var(--af-clay-300);
	background: var(--af-cream);
}

.af-pagination .page-numbers.current,
.woocommerce-pagination .current {
	background: var(--af-cocoa-700);
	border-color: var(--af-cocoa-700);
	color: var(--af-cream);
}

.af-pagination .page-numbers.dots,
.woocommerce-pagination .dots {
	background: transparent;
	border-color: transparent;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.af-404__art {
	max-width: 17rem;
	margin: 0 auto var(--af-space-6);
}

.af-404__art svg {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 16px 24px rgba(61, 35, 23, 0.16));
}
