/* ==========================================================================
   PurOstill V2 — home page
   ========================================================================== */

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

.v2-hero {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 1.5rem;
	min-height: 460px;
	margin: 1.5rem 0 0;
	padding: 3rem 1.5rem;
	border-radius: var(--v2-radius-lg);
	text-align: center;
	color: #fff;
	background-color: var(--v2-dark-2);
	background-image: linear-gradient(140deg, var(--v2-dark-2), rgba(var(--v2-accent-rgb), .55));
	background-size: cover;
	background-position: 50%;
}

.v2-hero__content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.v2-hero__copy { display: flex; flex-direction: column; gap: 1rem; max-width: 640px; }
.v2-hero__copy h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -.033em; }
.v2-hero__copy p { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255, 255, 255, .85); }

/* Category tiles ---------------------------------------------------------- */

.v2-cats__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(140px, 1fr));
	gap: 1rem;
}
@media (min-width: 768px) { .v2-cats__grid { grid-template-columns: repeat(3, minmax(160px, 1fr)); } }
@media (min-width: 1024px) { .v2-cats__grid { grid-template-columns: repeat(5, minmax(160px, 1fr)); } }

.v2-cat {
	display: flex; flex-direction: column; align-items: center; gap: .75rem;
	padding: 1.5rem;
	border: 1px solid var(--v2-line);
	border-radius: var(--v2-radius);
	background: var(--v2-surface);
	text-align: center;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.v2-cat:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(var(--v2-ink-rgb), .12); border-color: rgba(var(--v2-accent-rgb), .35); }

.v2-cat__icon {
	width: 56px; height: 56px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: .75rem;
	background: rgba(var(--v2-accent-rgb), .12);
	color: var(--v2-accent);
}
.v2-cat__text h3 { margin: 0; font-size: 1rem; color: var(--v2-ink); }
.v2-cat__text p { margin: .35rem 0 0; font-size: .875rem; color: var(--v2-muted); font-weight: 400; }

/* Why choose -------------------------------------------------------------- */

/* Two columns, fixed: the photograph on the left, the copy on the right.
   auto-fit would collapse to one column as soon as the gap ate the space. */
.v2-why__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	align-items: center;
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: var(--v2-radius-lg);
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--v2-accent) 12%, var(--v2-surface)),
		color-mix(in srgb, var(--v2-accent) 4%, var(--v2-surface)));
}

.v2-why__media {
	border-radius: 1.25rem; overflow: hidden;
	/* The source artwork is 512x512, so a square slot keeps it sharp instead
	   of upscaling and cropping it into a portrait box. */
	aspect-ratio: 1 / 1;
	background: var(--v2-tint);
}
.v2-why__media img { width: 100%; height: 100%; object-fit: cover; }

.v2-why__body { display: flex; flex-direction: column; gap: 1.5rem; }
.v2-why__points { display: flex; flex-direction: column; gap: 1.25rem; }
.v2-why__point { display: flex; gap: 1rem; align-items: flex-start; }

.v2-why__icon {
	width: 48px; height: 48px; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px;
	background: rgba(var(--v2-accent-rgb), .1);
	color: var(--v2-accent);
}
.v2-why__point h3 { margin: 0; font-size: 1.1rem; }
.v2-why__point p { margin: .35rem 0 0; color: var(--v2-muted); font-size: .95rem; line-height: 1.5; }
.v2-why__btn { align-self: flex-start; }

/* Testimonials ------------------------------------------------------------ */

.v2-quotes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

.v2-quote {
	display: flex; flex-direction: column; gap: 1rem;
	padding: 1.5rem;
	border: 1px solid var(--v2-line);
	border-radius: 1.25rem;
	background: var(--v2-surface);
}
.v2-quote__text { margin: 0; font-style: italic; color: var(--v2-ink); line-height: 1.6; }
.v2-quote__meta { display: flex; gap: .75rem; align-items: center; margin-top: auto; }
.v2-quote__meta img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.v2-quote__author { margin: 0; font-weight: 700; }
.v2-quote__role { margin: .15rem 0 0; font-size: .85rem; color: var(--v2-muted); }

@media (max-width: 820px) {
	.v2-why__grid { grid-template-columns: minmax(0, 1fr); }
	.v2-why__media { aspect-ratio: 16 / 10; }
}

/* Reveal ------------------------------------------------------------------ */

/* Scoped to html.js: without JavaScript nothing ever adds .is-in, and the
   content would stay invisible. */
@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
	.js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
	.v2-hero {
		min-height: 340px;
		padding: 2.25rem 1.1rem;
		margin-top: 1rem;
		border-radius: 1.25rem;
	}
	.v2-hero__copy h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
	.v2-hero__copy p { font-size: 1rem; }
	.v2-hero__btn { width: 100%; }

	/* Two tiles across stays readable; one would make the section endless. */
	.v2-cats__grid { gap: .75rem; }
	.v2-cat { padding: 1.1rem .8rem; }
	.v2-cat__icon { width: 48px; height: 48px; }
	.v2-cat__icon .v2-icon--lg { font-size: 32px; }
	.v2-cat__text p { display: none; }

	.v2-why__grid { padding: 1.25rem; gap: 1.25rem; border-radius: 1.25rem; }
	.v2-why__media { aspect-ratio: 16 / 10; }
	.v2-why__btn { width: 100%; }

	.v2-quotes__grid { gap: 1rem; }
	.v2-quote { padding: 1.25rem; }
}
