/**
 * artorganic.world homepage (front-page.php, brand/mockup-home.html)
 *
 * Enqueued only by front-page.php, after global.css. Everything is scoped to
 * .ao-home; two classes (0,2,0) outrank global.css's "body a" / "body h2"
 * rules without the booster. Colours, fonts and radii come from tokens.css;
 * the mockup's placeholder tints are mixed from those tokens.
 */

.ao-home {
	--ao-gutter: var(--space-3);
	--ao-section-y: clamp(var(--space-6), 6vw, var(--space-10));

	color: var(--ink);
	background-color: var(--paper);
}

.ao-home *,
.ao-home *::before,
.ao-home *::after {
	box-sizing: border-box;
}

.ao-home .ao-container {
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: var(--ao-gutter);
}

.ao-home p {
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Placeholder tints (tiles without an image)                          */
/* ------------------------------------------------------------------ */

.ao-home .ao-tint-1 { background-color: color-mix(in srgb, var(--sand) 60%, var(--paper-2)); }
.ao-home .ao-tint-2 { background-color: var(--sand); }
.ao-home .ao-tint-3 { background-color: color-mix(in srgb, var(--indigo) 16%, var(--paper)); }
.ao-home .ao-tint-4 { background-color: color-mix(in srgb, var(--pigment) 20%, var(--paper)); }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.ao-home .ao-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ao-home .ao-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 1.5px solid var(--indigo);
	border-radius: var(--radius-lg);
	font-size: var(--fs-sm);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ao-home .ao-btn--solid {
	background-color: var(--indigo);
	color: var(--paper);
}

.ao-home .ao-btn--outline {
	background-color: transparent;
	color: var(--indigo);
}

.ao-home .ao-btn:is(:hover, :focus-visible) {
	background-color: var(--ink);
	border-color: var(--ink);
	color: var(--paper);
}

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

.ao-home .ao-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-6);
	padding-block: clamp(var(--space-5), 6vw, 72px) var(--space-6);
}

.ao-home .ao-hero__text {
	flex: 1 1 min(460px, 100%);
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.ao-home .ao-eyebrow {
	font-size: var(--fs-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pigment);
}

.ao-home .ao-hero__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(var(--fs-xl), 3.6vw + 1rem, var(--fs-3xl));
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.ao-home .ao-hero__lead {
	max-width: 520px;
	font-size: clamp(var(--fs-base), 0.4vw + 0.95rem, var(--fs-md));
	line-height: 1.55;
	color: var(--ink-soft);
}

.ao-home .ao-hero__values {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: var(--fs-sm);
	font-weight: 500;
	color: var(--indigo);
}

.ao-home .ao-hero__mosaic {
	flex: 1 1 min(480px, 100%);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-2);
}

.ao-home .ao-hero__tile {
	position: relative;
	display: block;
	height: 300px;
	overflow: hidden;
	border-radius: var(--radius);
}

.ao-home .ao-hero__tile:nth-child(n + 3) {
	height: 220px;
}

/* Staggered columns, as in the mockup. */
.ao-home .ao-hero__tile:nth-child(even) {
	margin-top: var(--space-6);
}

/* ------------------------------------------------------------------ */
/* Images in tiles                                                     */
/* ------------------------------------------------------------------ */

.ao-home :is(.ao-hero__tile, .ao-card__media) img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ao-home a:is(:hover, :focus-visible) :is(.ao-hero__tile, .ao-card__media) img,
.ao-home a.ao-hero__tile:is(:hover, :focus-visible) img {
	transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
	.ao-home :is(.ao-hero__tile, .ao-card__media) img,
	.ao-home .ao-btn {
		transition: none;
	}
}

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

.ao-home .ao-section {
	padding-block: var(--ao-section-y);
}

.ao-home .ao-section--first {
	padding-top: var(--space-3);
}

.ao-home .ao-section__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin-bottom: var(--space-3);
}

.ao-home :is(.ao-section__head, .ao-cta) h2 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(var(--fs-lg), 1.2vw + 1.2rem, var(--fs-xl));
	font-weight: 700;
	line-height: 1.15;
	color: var(--ink);
}

.ao-home .ao-section__head a,
.ao-home .ao-feature > a {
	font-weight: 600;
	color: var(--indigo);
}

.ao-home .ao-section__head a:is(:hover, :focus-visible),
.ao-home .ao-feature > a:is(:hover, :focus-visible) {
	color: var(--pigment);
}

/* ------------------------------------------------------------------ */
/* Grids and cards                                                     */
/* ------------------------------------------------------------------ */

.ao-home .ao-grid {
	display: grid;
	gap: var(--space-3) 20px;
}

.ao-home .ao-grid--cats {
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.ao-home .ao-grid--products {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--space-3);
}

.ao-home .ao-grid--makers {
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: var(--space-3);
}

.ao-home .ao-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	color: var(--ink);
	text-decoration: none;
}

.ao-home .ao-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
}

.ao-home .ao-card__media--square {
	aspect-ratio: 1 / 1;
}

.ao-home .ao-card__media--portrait {
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-sm);
}

.ao-home .ao-card__title {
	font-size: var(--fs-base);
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink);
}

.ao-home .ao-card:is(:hover, :focus-visible) .ao-card__title {
	color: var(--indigo);
}

.ao-home .ao-card__meta {
	font-size: var(--fs-xs);
	line-height: 1.4;
	color: var(--muted);
}

.ao-home .ao-card__sub {
	font-size: var(--fs-sm);
	line-height: 1.4;
	color: var(--ink-soft);
}

.ao-home .ao-card__sub :is(.amount, .woocommerce-Price-amount) {
	color: inherit;
}

.ao-home .ao-card__sub ins {
	text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* Feature cards band                                                  */
/* ------------------------------------------------------------------ */

.ao-home .ao-band {
	background-color: var(--paper-2);
}

.ao-home .ao-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: var(--space-3);
	padding-block: var(--ao-section-y);
}

.ao-home .ao-feature {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: var(--space-4);
	border-radius: var(--radius);
	background-color: var(--paper);
	color: var(--ink-soft);
}

.ao-home .ao-feature svg {
	color: var(--pigment);
}

.ao-home .ao-feature h3 {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--fs-md);
	font-weight: 700;
	line-height: 1.2;
	color: var(--ink);
}

.ao-home .ao-feature p {
	line-height: 1.6;
}

.ao-home .ao-feature > a {
	margin-top: auto;
}

/* ------------------------------------------------------------------ */
/* Dark "fairer place" band                                            */
/* ------------------------------------------------------------------ */

.ao-home .ao-dark {
	background-color: var(--ink);
	color: var(--line);
}

.ao-home .ao-dark__inner {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-6);
	padding-block: var(--space-10);
}

.ao-home .ao-dark__intro {
	flex: 1 1 min(360px, 100%);
}

.ao-home .ao-dark__intro h2 {
	margin: 0 0 var(--space-2);
	font-family: var(--font-display);
	font-size: clamp(var(--fs-lg), 1.6vw + 1.2rem, var(--fs-2xl));
	font-weight: 700;
	line-height: 1.1;
	color: var(--paper);
}

.ao-home .ao-dark__intro p {
	font-size: var(--fs-base);
	line-height: 1.6;
}

.ao-home .ao-dark__points {
	flex: 2 1 min(520px, 100%);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 28px var(--space-4);
}

.ao-home .ao-dark__points p {
	line-height: 1.55;
}

.ao-home .ao-dark__points .ao-dark__point {
	margin-bottom: 6px;
	font-size: var(--fs-base);
	font-weight: 700;
	color: var(--ochre);
}

/* ------------------------------------------------------------------ */
/* Makers                                                              */
/* ------------------------------------------------------------------ */

.ao-home .ao-maker {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
	padding: var(--space-3);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.ao-home .ao-maker:is(:hover, :focus-visible) {
	border-color: var(--indigo);
}

.ao-home .ao-maker__avatar {
	flex: none;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 50%;
}

.ao-home .ao-maker__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ao-home .ao-maker__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

/* ------------------------------------------------------------------ */
/* Closing call to action                                              */
/* ------------------------------------------------------------------ */

.ao-home .ao-cta-wrap {
	padding-bottom: 88px;
}

.ao-home .ao-cta {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 56px var(--space-6);
	border-radius: var(--radius-lg);
	background-color: var(--paper-2);
}

.ao-home .ao-cta h2 {
	margin-bottom: 10px;
}

.ao-home .ao-cta p {
	font-size: var(--fs-base);
	color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Small screens (down to 390px)                                       */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.ao-home .ao-hero__tile {
		height: 220px;
	}

	.ao-home .ao-hero__tile:nth-child(n + 3) {
		height: 160px;
	}

	.ao-home .ao-hero__tile:nth-child(even) {
		margin-top: var(--space-4);
	}

	.ao-home .ao-dark__inner {
		padding-block: var(--space-8);
	}

	.ao-home .ao-cta-wrap {
		padding-bottom: var(--space-8);
	}

	.ao-home .ao-cta {
		padding: var(--space-5) var(--space-3);
	}
}

@media (max-width: 600px) {
	.ao-home {
		--ao-gutter: var(--space-2);
	}

	/* Two columns instead of one wide column of 170px/240px minimums. */
	.ao-home :is(.ao-grid--cats, .ao-grid--products) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px var(--space-2);
	}

	.ao-home .ao-feature {
		padding: var(--space-3);
	}

	.ao-home .ao-actions .ao-btn {
		flex: 1 1 auto;
	}
}
