/**
 * Colibri Diamonds — marketing homepage (scoped).
 * Loaded only on the front page; catalog chrome stays in app.css.
 */

body.colibri-home {
	--home-ivory: #f5f1ea;
	--home-warm: #faf9f6;
	--home-champagne: #d8c8af;
	--home-beige: #b6a58d;
	--home-charcoal: #292723;
	--home-muted: #77716a;
	--home-ink-soft: #5c554e;
	--home-line: #e4dcd2;
	--home-line-strong: #d2c7ba;
	--home-accent: #b08a62;
	--home-accent-hover: #966f4b;
	--home-paper: #fffcf8;
	--home-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--home-sans: "Outfit", Inter, "Segoe UI", Helvetica, Arial, sans-serif;
	--home-shell: 1280px;
	--home-pad: clamp(1.25rem, 4vw, 3.25rem);
	--home-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--home-fast: 180ms;
	--home-med: 360ms;

	background:
		radial-gradient(1100px 480px at 6% -10%, rgba(255, 252, 248, 0.92), transparent 55%),
		radial-gradient(900px 420px at 100% 0%, rgba(176, 138, 98, 0.07), transparent 48%),
		var(--home-ivory);
	color: var(--home-charcoal);
	font-family: var(--home-sans);
}

body.colibri-home .site-header {
	background: color-mix(in srgb, var(--home-ivory) 94%, transparent);
	backdrop-filter: blur(12px);
}

body.colibri-home .home-page {
	overflow-x: clip;
}

.home-shell {
	width: min(100% - (var(--home-pad) * 2), var(--home-shell));
	margin-inline: auto;
}

.home-eyebrow {
	margin: 0 0 0.85rem;
	font-family: var(--home-sans);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--home-accent);
}

.home-eyebrow--on-dark {
	color: var(--home-champagne);
}

.home-section {
	padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.home-section__header {
	max-width: 38rem;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.home-section__header--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	max-width: none;
}

.home-section__header--row > div {
	max-width: 38rem;
}

.home-section__title,
.home-hero__title,
.home-cta__title {
	margin: 0;
	font-family: var(--home-serif);
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.12;
	color: var(--home-charcoal);
}

.home-section__title {
	font-size: clamp(2rem, 4.2vw, 3rem);
}

.home-section__text,
.home-hero__text,
.home-cta__text {
	margin: 0.9rem 0 0;
	max-width: 36rem;
	color: var(--home-ink-soft);
	font-weight: 300;
	font-size: 1.05rem;
	line-height: 1.65;
}

.home-btn,
a.home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: 0.95rem 1.55rem;
	border: 1px solid transparent;
	font-family: var(--home-sans);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none !important;
	color: inherit;
	transition:
		background var(--home-med) var(--home-ease),
		color var(--home-med) var(--home-ease),
		border-color var(--home-med) var(--home-ease);
}

.home-btn--primary,
a.home-btn--primary {
	background: var(--home-charcoal);
	color: var(--home-paper) !important;
}

.home-btn--primary:hover,
a.home-btn--primary:hover {
	background: var(--home-accent);
	color: var(--home-paper) !important;
}

.home-btn--ghost,
a.home-btn--ghost {
	background: transparent;
	border-color: var(--home-line-strong);
	color: var(--home-charcoal) !important;
}

.home-btn--ghost:hover,
a.home-btn--ghost:hover {
	border-color: var(--home-charcoal);
	background: var(--home-paper);
}

.home-btn--light,
a.home-btn--light {
	background: var(--home-paper);
	color: var(--home-charcoal) !important;
}

.home-btn--light:hover,
a.home-btn--light:hover {
	background: var(--home-champagne);
}

.home-btn--ghost-light,
a.home-btn--ghost-light {
	background: transparent;
	border-color: rgba(255, 252, 248, 0.72);
	color: var(--home-paper) !important;
}

.home-btn--ghost-light:hover,
a.home-btn--ghost-light:hover {
	border-color: var(--home-paper);
	background: rgba(255, 252, 248, 0.12);
	color: var(--home-paper) !important;
}

/* Hero CTAs: force contrast on dark photography */
.home-hero .home-btn--light,
.home-hero a.home-btn--light {
	background: var(--home-paper);
	border-color: var(--home-paper);
	color: var(--home-charcoal) !important;
}

.home-hero .home-btn--light:hover,
.home-hero a.home-btn--light:hover {
	background: var(--home-champagne);
	border-color: var(--home-champagne);
	color: var(--home-charcoal) !important;
}

.home-hero .home-btn--ghost-light,
.home-hero a.home-btn--ghost-light {
	background: transparent;
	border-color: rgba(255, 252, 248, 0.85);
	color: #fffcf8 !important;
}

.home-hero .home-btn--ghost-light:hover,
.home-hero a.home-btn--ghost-light:hover {
	background: rgba(255, 252, 248, 0.14);
	border-color: #fffcf8;
	color: #fffcf8 !important;
}

.home-btn:focus-visible,
.home-shape:focus-visible,
.home-type:focus-visible,
.home-accordion__trigger:focus-visible {
	outline: 2px solid var(--home-charcoal);
	outline-offset: 3px;
}

/* Hero */
.home-hero {
	position: relative;
	min-height: min(88vh, 820px);
	display: grid;
	align-items: end;
	color: var(--home-paper);
	overflow: hidden;
}

.home-hero__media,
.home-cta__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.home-hero__media picture,
.home-hero__media img,
.home-cta__media picture,
.home-cta__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-hero__veil,
.home-cta__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(41, 39, 35, 0.18) 0%, rgba(41, 39, 35, 0.55) 55%, rgba(41, 39, 35, 0.78) 100%),
		linear-gradient(90deg, rgba(41, 39, 35, 0.45) 0%, rgba(41, 39, 35, 0.12) 55%, transparent 100%);
}

.home-hero__inner,
.home-cta__inner {
	position: relative;
	z-index: 2;
	padding: clamp(5rem, 12vw, 8rem) 0 clamp(3rem, 6vw, 4.5rem);
	/* Match .home-shell width so copy aligns with the next section */
	max-width: none;
	text-align: left;
	justify-self: stretch;
	width: min(100% - (var(--home-pad) * 2), var(--home-shell));
	margin-inline: auto;
}

.home-hero__inner > .home-eyebrow,
.home-hero__inner > .home-hero__title,
.home-hero__inner > .home-hero__text,
.home-hero__inner > .home-hero__actions,
.home-cta__inner > .home-eyebrow,
.home-cta__inner > .home-cta__title,
.home-cta__inner > .home-cta__text,
.home-cta__inner > .home-hero__actions {
	max-width: 34rem;
}

.home-hero .home-eyebrow {
	color: var(--home-champagne);
}

.home-hero__title {
	font-size: clamp(2.6rem, 6vw, 4.25rem);
	color: var(--home-paper);
	max-width: 14ch;
}

.home-hero__text,
.home-cta__text {
	color: rgba(255, 252, 248, 0.86);
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.75rem;
}

/* Types — two equal columns across the shell */
.home-types__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
	width: 100%;
	max-width: none;
}

.home-type {
	display: grid;
	grid-template-rows: auto auto;
	background: var(--home-paper);
	color: inherit;
	text-decoration: none;
	border: 1px solid var(--home-line);
	min-height: 100%;
	overflow: hidden;
	transition:
		border-color var(--home-med) var(--home-ease),
		transform var(--home-med) var(--home-ease);
}

.home-type:hover {
	border-color: var(--home-beige);
}

.home-type__media {
	display: block;
	overflow: hidden;
	background: var(--home-ivory);
	aspect-ratio: 16 / 10;
	height: auto;
	min-height: 0;
}

.home-type__media picture,
.home-type__media img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform 700ms var(--home-ease);
}

.home-type:hover .home-type__media img {
	transform: scale(1.03);
}

.home-type__body {
	display: grid;
	gap: 0.4rem;
	padding: 1.25rem 1.35rem 1.4rem;
}

.home-type__title {
	font-family: var(--home-serif);
	font-size: clamp(1.35rem, 2vw, 1.7rem);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.home-type__text {
	color: var(--home-muted);
	font-weight: 300;
	line-height: 1.5;
	font-size: 0.98rem;
}

.home-type__cta {
	margin-top: 0.35rem;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--home-accent);
}

/* Shapes */
.home-shapes__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.85rem;
}

.home-shape {
	display: grid;
	justify-items: center;
	gap: 0.85rem;
	padding: 1.35rem 0.75rem;
	border: 1px solid var(--home-line);
	background: var(--home-warm);
	text-decoration: none;
	color: var(--home-charcoal);
	transition:
		border-color var(--home-med) var(--home-ease),
		background var(--home-med) var(--home-ease);
}

.home-shape:hover {
	border-color: var(--home-beige);
	background: var(--home-paper);
}

.home-shape__icon {
	display: inline-flex;
	width: 3.25rem;
	height: 3.25rem;
	align-items: center;
	justify-content: center;
	color: var(--home-charcoal);
}

.home-shape__icon svg {
	width: 100%;
	height: 100%;
}

.home-shape__label {
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Custom */
.home-custom__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.75rem, 5vw, 4rem);
	align-items: center;
}

.home-custom__media {
	overflow: hidden;
	background: var(--home-ivory);
	border: 1px solid var(--home-line);
}

.home-custom__media img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Featured */
.home-featured__grid {
	margin-top: 0.5rem;
}

.home-featured .diamond-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
}

.home-featured__empty {
	color: var(--home-muted);
	font-weight: 300;
	max-width: 36rem;
}

.home-featured__cta {
	flex-shrink: 0;
}

/* Four Cs + FAQ accordion */
.home-fourcs__layout,
.home-faq__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}

.home-accordion {
	border-top: 1px solid var(--home-line);
}

.home-accordion__item {
	border-bottom: 1px solid var(--home-line);
}

.home-accordion__heading {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}

.home-accordion__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	font-family: var(--home-serif);
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--home-charcoal);
}

.home-accordion__icon {
	position: relative;
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

.home-accordion__icon::before,
.home-accordion__icon::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto;
	height: 1px;
	background: var(--home-charcoal);
	transition: transform var(--home-fast) var(--home-ease), opacity var(--home-fast) var(--home-ease);
}

.home-accordion__icon::after {
	transform: rotate(90deg);
}

.home-accordion__item.is-open .home-accordion__icon::after {
	opacity: 0;
	transform: rotate(0deg);
}

.home-accordion__panel {
	padding: 0 0 1.25rem;
}

.home-accordion__panel p {
	margin: 0;
	max-width: 40rem;
	color: var(--home-ink-soft);
	font-weight: 300;
	line-height: 1.65;
}

/* Why */
.home-why__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
}

.home-why__item {
	padding: 1.4rem 1.2rem;
	border-top: 1px solid var(--home-champagne);
	background: transparent;
}

.home-why__title {
	margin: 0 0 0.65rem;
	font-family: var(--home-serif);
	font-size: 1.35rem;
	font-weight: 500;
}

.home-why__text {
	margin: 0;
	color: var(--home-muted);
	font-weight: 300;
	font-size: 0.95rem;
	line-height: 1.6;
}

/* Closing CTA */
.home-cta {
	position: relative;
	min-height: min(62vh, 560px);
	display: grid;
	align-items: center;
	overflow: hidden;
	color: var(--home-paper);
}

.home-cta__title {
	font-size: clamp(2.2rem, 5vw, 3.5rem);
	color: var(--home-paper);
}

.home-cta__inner {
	padding-block: clamp(4rem, 10vw, 6.5rem);
}

/* Reveal */
[data-home-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition:
		opacity 700ms var(--home-ease),
		transform 700ms var(--home-ease);
}

[data-home-reveal].is-visible {
	opacity: 1;
	transform: none;
}

.home-hero[data-home-reveal] {
	opacity: 1;
	transform: none;
}

.home-hero[data-home-reveal] .home-hero__media {
	opacity: 0;
	transform: scale(1.04);
	transition:
		opacity 900ms var(--home-ease),
		transform 1.1s var(--home-ease);
}

.home-hero[data-home-reveal].is-visible .home-hero__media {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	[data-home-reveal],
	.home-hero[data-home-reveal] .home-hero__media,
	.home-type__media img,
	.home-btn,
	a.home-btn {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* Responsive */
@media (max-width: 1100px) {
	.home-featured .diamond-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-why__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-shapes__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.home-types__grid,
	.home-custom__layout,
	.home-fourcs__layout,
	.home-faq__layout {
		grid-template-columns: 1fr;
	}

	.home-type__media {
		aspect-ratio: 16 / 9;
	}

	.home-hero {
		min-height: min(78vh, 700px);
	}

	.home-hero__title {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.home-shapes__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.home-featured .diamond-grid,
	.home-why__grid {
		grid-template-columns: 1fr;
	}

	.home-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.home-btn,
	a.home-btn {
		width: 100%;
	}

	.home-section__header--row .home-featured__cta {
		width: 100%;
	}
}
