/* ==========================================================================
   Bloomazz — homepage-only sections
   ========================================================================== */

/* ==========================================================================
   Hero — asymmetric split (ink copy panel + full-bleed image panel)
   ========================================================================== */
.bz-hero {
	display: grid;
	grid-template-columns: 0.85fr 1fr;
	min-height: 88vh;
	position: relative;
}

.bz-hero-panel {
	position: relative;
}

.bz-hero-copy {
	background: var(--bz-ink);
	color: var(--bz-white);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 4rem clamp(2rem, 6vw, 5rem);
	z-index: 2;
}
.bz-hero-copy .bz-eyebrow {
	color: var(--bz-lavender);
}
.bz-hero-copy h1 {
	font-size: clamp(2.4rem, 4.2vw, 3.6rem);
	color: var(--bz-white);
	max-width: 12ch;
	font-style: italic;
	font-weight: 400;
}
.bz-hero-copy p {
	max-width: 38ch;
	font-size: 1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.78);
	margin: 0 0 2.2rem;
}
.bz-hero-actions {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.bz-hero-media {
	overflow: hidden;
}
.bz-hero-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 15%;
}
.bz-placeholder--hero {
	min-height: 100%;
	border-radius: 0;
}

/* The "cut fabric edge" seam between the two hero panels. */
.bz-hero::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0.85fr;
	left: calc(0.85 / 1.85 * 100%);
	width: 1px;
	background-image: repeating-linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.55) 0,
		rgba(255, 255, 255, 0.55) 2px,
		transparent 2px,
		transparent 12px
	);
	z-index: 3;
	pointer-events: none;
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.bz-trust {
	border-bottom: 1px solid var(--bz-border);
}
.bz-trust-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 1.8rem 20px;
}
.bz-trust-item {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	justify-content: center;
	color: var(--bz-ink);
	font-size: 0.82rem;
	font-weight: 600;
	text-align: center;
}
.bz-trust-item svg {
	flex-shrink: 0;
	color: var(--bz-lavender-deep);
}

/* ==========================================================================
   Category tiles — organic "petal" clip on alternating tiles
   ========================================================================== */
.bz-categories {
	padding: 5rem 0 1rem;
}
.bz-categories-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}
.bz-category-tile {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
}
.bz-category-tile--0,
.bz-category-tile--2 {
	border-radius: 62% 38% 54% 46% / 46% 42% 58% 54%;
	margin-top: 0;
}
.bz-category-tile--1,
.bz-category-tile--3 {
	border-radius: 6% 46% 6% 46% / 6% 30% 6% 30%;
	margin-top: 2.2rem;
}
.bz-category-tile .bz-placeholder,
.bz-category-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Scrim so the label stays legible over any photo, regardless of its
   own contrast. */
.bz-category-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(33, 31, 46, 0.55), transparent 55%);
	pointer-events: none;
}
.bz-category-copy {
	position: absolute;
	left: 50%;
	bottom: 1.6rem;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 80%;
	max-width: 220px;
	text-align: center;
	color: var(--bz-white);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
	z-index: 1;
}
.bz-category-copy strong {
	font-family: var(--bz-font-display);
	font-size: 1.3rem;
	font-weight: 500;
}
.bz-category-copy em {
	font-style: normal;
	font-size: 0.78rem;
	opacity: 0.85;
	margin-top: 0.2rem;
}

/* ==========================================================================
   Bloom Edit manifesto — signature section
   ========================================================================== */
.bz-manifesto {
	position: relative;
	background: var(--bz-ink);
	color: var(--bz-white);
	padding: 7rem 0;
	overflow: hidden;
	text-align: center;
}
.bz-manifesto-mark {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--bz-lavender);
	opacity: 0.14;
	pointer-events: none;
}
.bz-manifesto-mark svg {
	width: clamp(280px, 34vw, 460px);
	height: auto;
}
.bz-manifesto-mark .bz-lotus-petal {
	stroke-dasharray: 260;
	stroke-dashoffset: 260;
}
.bz-manifesto.is-visible .bz-lotus-petal {
	animation: bz-draw 1.8s ease forwards;
}
.bz-manifesto-mark .bz-lotus-petal:nth-child(2) { animation-delay: 0.1s; }
.bz-manifesto-mark .bz-lotus-petal:nth-child(3) { animation-delay: 0.25s; }
.bz-manifesto-mark .bz-lotus-petal:nth-child(4) { animation-delay: 0.4s; }
.bz-manifesto-mark .bz-lotus-petal:nth-child(5) { animation-delay: 0.55s; }
.bz-manifesto-mark .bz-lotus-petal:nth-child(6) { animation-delay: 0.7s; }

@keyframes bz-draw {
	to { stroke-dashoffset: 0; }
}

.bz-manifesto-inner {
	position: relative;
	z-index: 2;
	max-width: 640px;
	margin: 0 auto;
}
.bz-manifesto .bz-eyebrow {
	color: var(--bz-lavender);
}
.bz-manifesto-quote {
	font-family: var(--bz-font-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	line-height: 1.4;
	margin: 0 0 1.5rem;
}
.bz-manifesto-body {
	font-size: 0.95rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 auto 2.2rem;
	max-width: 54ch;
}

/* ==========================================================================
   Lookbook banner
   ========================================================================== */
.bz-lookbook {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 70vh;
}
.bz-lookbook-media {
	background: var(--bz-linen);
}
.bz-lookbook-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bz-lookbook-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem clamp(2rem, 6vw, 5rem);
}
.bz-lookbook-copy h2 {
	font-size: clamp(1.8rem, 2.8vw, 2.6rem);
	max-width: 14ch;
}
.bz-lookbook-copy p {
	max-width: 40ch;
	line-height: 1.7;
	color: #504c5e;
	margin: 0 0 2rem;
}

/* ==========================================================================
   #bloomwithgreen — one tree planted per order. An asymmetric overlap
   (not another even split like the hero/Lookbook) with a stitched swing
   tag pinned to the photo, echoing the seam motif at a smaller scale.
   ========================================================================== */
.bz-mission {
	background: var(--bz-linen);
	padding: 6rem 0;
	overflow: visible;
}
.bz-mission-inner {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	align-items: center;
}
.bz-mission-media {
	position: relative;
}
.bz-mission-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 20%;
}
.bz-mission-tag {
	position: absolute;
	top: 28px;
	left: -18px;
}
.bz-mission-card {
	position: relative;
	z-index: 2;
	margin-left: -70px;
	background: var(--bz-white);
	padding: 3rem clamp(1.75rem, 3vw, 3rem);
	box-shadow: 0 24px 60px rgba(33, 31, 46, 0.12);
}
.bz-mission-stat {
	display: flex;
	align-items: baseline;
	gap: 0.7rem;
	margin: 0.6rem 0 1.2rem;
}
.bz-mission-stat strong {
	font-family: var(--bz-font-display);
	font-size: clamp(3.5rem, 6vw, 5rem);
	font-weight: 500;
	line-height: 1;
	color: var(--bz-ink);
}
.bz-mission-stat em {
	font-family: var(--bz-font-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	color: var(--bz-ink);
	max-width: 8ch;
	line-height: 1.25;
}
.bz-mission-copy {
	max-width: 42ch;
	line-height: 1.7;
	color: #504c5e;
	margin: 0 0 1.6rem;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.bz-testimonials {
	background: var(--bz-linen);
	padding: 5.5rem 0;
}
.bz-testimonial-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}
.bz-testimonial-card {
	position: relative;
	background: var(--bz-white);
	padding: 2.4rem 2rem 2rem;
	margin: 0;
}
.bz-testimonial-quote-mark {
	position: absolute;
	top: 0.6rem;
	left: 1.4rem;
	font-family: var(--bz-font-display);
	font-size: 3.5rem;
	color: var(--bz-lavender);
	opacity: 0.35;
	line-height: 1;
}
.bz-testimonial-card blockquote {
	margin: 0.8rem 0 1.5rem;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--bz-ink);
}
.bz-testimonial-card figcaption {
	display: flex;
	flex-direction: column;
	font-size: 0.82rem;
}
.bz-testimonial-card figcaption span {
	color: #7d7889;
	margin-top: 0.15rem;
}

/* ==========================================================================
   Instagram strip
   ========================================================================== */
.bz-instagram {
	padding: 5.5rem 0 6rem;
}
.bz-instagram-head {
	text-align: center;
	margin-bottom: 2.5rem;
}
.bz-instagram-cta {
	display: flex;
	justify-content: center;
	margin-top: 2.75rem;
}
.bz-instagram-strip {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.4rem;
	padding: 0 20px;
}
.bz-instagram-tile {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.bz-instagram-tile .bz-placeholder {
	background: linear-gradient(155deg, color-mix(in srgb, var(--bz-accent) 35%, white) 0%, var(--bz-accent) 100%);
}
.bz-instagram-tile img.bz-placeholder--product {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.bz-instagram-tile:hover img.bz-placeholder--product {
	transform: scale(1.05);
}
.bz-instagram-handle {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	background: rgba(33, 31, 46, 0.45);
	color: var(--bz-white);
	font-size: 0.78rem;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.bz-instagram-tile:hover .bz-instagram-handle,
.bz-instagram-tile:focus-visible .bz-instagram-handle {
	opacity: 1;
}

/* ==========================================================================
   From the Journal — same card language as assets/css/blog.css's grid
   card (landscape image, category eyebrow, serif title, meta line), but
   its own rules rather than shared classes: same independent-file
   pattern as the shop/blog banners, so either can drift without
   touching the other later.
   ========================================================================== */
.bz-journal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}
.bz-journal-card {
	display: block;
	color: inherit;
}
.bz-journal-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--bz-white);
	overflow: hidden;
	border-radius: var(--bz-radius);
	margin-bottom: 1.1rem;
}
.bz-journal-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.bz-journal-card:hover .bz-journal-card-media img {
	transform: scale(1.04);
}
.bz-journal-card-body {
	display: flex;
	flex-direction: column;
}
.bz-journal-card-cat {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bz-champagne);
	margin-bottom: 0.5rem;
}
.bz-journal-card-title {
	font-family: var(--bz-font-display);
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--bz-ink);
	margin-bottom: 0.5rem;
}
.bz-journal-card:hover .bz-journal-card-title {
	color: var(--bz-lavender-deep);
}
.bz-journal-card-meta {
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #8a8694;
}
.bz-journal-card-meta span {
	margin: 0 0.4em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.bz-categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.bz-testimonial-grid {
		grid-template-columns: 1fr;
		max-width: 480px;
		margin: 0 auto;
	}
	.bz-instagram-strip {
		grid-template-columns: repeat(3, 1fr);
	}
	.bz-journal-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 780px) {
	.bz-hero {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.bz-hero-media {
		min-height: 50vh;
	}
	.bz-hero::after {
		display: none;
	}
	.bz-trust-inner {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.4rem;
	}
	/* Desktop's 5rem/6rem/7rem section padding, stacked one section
	   after another, reads as a wall of empty space on a narrow phone —
	   most noticeable right before "Loved on repeat" (.bz-shelf,
	   reduced separately in main.css), which follows straight after
	   this section's own bottom padding and the seam divider. */
	.bz-categories {
		padding: 2.5rem 0 0.5rem;
	}
	.bz-lookbook {
		grid-template-columns: 1fr;
	}
	.bz-lookbook-media {
		min-height: 45vh;
	}
	.bz-category-tile--1,
	.bz-category-tile--3 {
		margin-top: 0;
	}
	.bz-manifesto {
		padding: 3.5rem 0;
	}
	.bz-mission {
		padding: 3.5rem 0;
	}
	.bz-mission-inner {
		grid-template-columns: 1fr;
	}
	.bz-mission-image {
		aspect-ratio: 1 / 1;
	}
	.bz-mission-card {
		margin-left: 24px;
		margin-right: 24px;
		margin-top: -50px;
	}
	/* The stat row's label ("tree, every order.") was wrapping across 3
	   cramped lines inside its own 8ch max-width, which — combined with
	   align-items: baseline only ever aligning to a wrapped item's
	   *first* line — made it read as floating in the middle of the "1"
	   rather than sitting with it. Bottom-aligning the two instead of
	   baseline-aligning them holds up regardless of how many lines the
	   label wraps to, and a wider max-width means it only ever needs 2
	   fairly balanced ones on a phone-width card. */
	.bz-mission-stat {
		align-items: flex-end;
	}
	.bz-mission-stat em {
		max-width: 16ch;
	}
	.bz-testimonials {
		padding: 3rem 0;
	}
	.bz-instagram {
		padding: 3rem 0 3.5rem;
	}
}

@media (max-width: 560px) {
	.bz-categories-grid {
		grid-template-columns: 1fr;
	}
	.bz-instagram-strip {
		grid-template-columns: repeat(2, 1fr);
	}
	.bz-journal-grid {
		grid-template-columns: 1fr;
	}
	.bz-mission-tag {
		left: -8px;
		top: 18px;
	}
	.bz-mission-card {
		margin-left: 12px;
		margin-right: 12px;
	}
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.bz-manifesto-mark .bz-lotus-petal {
		stroke-dashoffset: 0;
		animation: none !important;
	}
	.bz-placeholder--product,
	.bz-wishlist,
	.bz-quick-add {
		transition: none !important;
	}
}
