/* =========================================================================
   JO'S LIQUOR — HOME PAGE SECTIONS
   Recreates the reference's section rhythm, adapted to a bottle shop.
   Depends on tokens + components in design-system.css.
   ========================================================================= */

/* ---------- HERO -------------------------------------------------------- */
.jos-hero {
	background: var(--c-rust);
	position: relative;
	overflow: clip;
	padding-block: clamp(2rem, 1rem + 4vw, 5rem) 0;
	text-align: center;
}
/* Full-bleed hero: let the giant headline span nearly edge-to-edge (reference). */
.jos-hero .jos-container { max-width: 1560px; }
.jos-hero__eyebrow { color: var(--c-gold); }
.jos-hero__title {
	font-size: var(--fs-display);
	line-height: 0.82;
	margin: 0.1em 0 0;
	position: relative;
	z-index: 1;
}
.jos-hero__divider { max-width: 1320px; margin: 1.2rem auto; }
.jos-hero__sub {
	font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
	font-size: clamp(1.8rem, 0.8rem + 6vw, 5rem); line-height: 0.9;
	color: rgba(250, 174, 51, 0.28);
	margin: 0;
	position: relative;
	z-index: 0;
}
.jos-hero__media {
	position: relative;
	margin-top: -3.5vw;
	z-index: 2;
}
.jos-hero__media img {
	margin-inline: auto;
	max-height: 78vh;
	width: auto;
	filter: drop-shadow(0 40px 60px rgba(0,0,0,0.45));
}
.jos-hero__intro {
	position: absolute; left: var(--gutter); bottom: clamp(1.5rem, 4vw, 4rem);
	max-width: 280px; text-align: left; z-index: 3;
}
.jos-hero__intro p { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; line-height: 1.5; }

/* ---------- PINNED ROTATING BOTTLE ------------------------------------- */
/* Contained section (no pinned 220vh track → no big empty scroll gap).
   The giant heading sits behind the bottle; the bottle spins on scroll. */
.jos-rotate { background: var(--c-rust); position: relative; overflow: clip; padding-block: var(--section-y); }
.jos-rotate__track { position: relative; }
.jos-rotate__sticky {
	position: relative;
	min-height: 70vh;
	display: grid; place-items: center;
}
.jos-rotate__bottle {
	position: relative; z-index: 2;
	max-height: 62vh; width: auto;
	will-change: transform;
	filter: drop-shadow(0 30px 50px rgba(0,0,0,0.45));
}
.jos-rotate__heading {
	position: absolute; z-index: 1; top: 50%; left: 0; transform: translateY(-50%);
	width: 100%; text-align: center;
	font-size: var(--fs-h2); line-height: 0.86; color: var(--c-gold);
	pointer-events: none; padding-inline: var(--gutter);
}
.jos-rotate__caption {
	position: relative; z-index: 3; max-width: 420px; margin: var(--s-4) auto 0;
	text-align: center; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; line-height: 1.6; color: var(--c-gold);
}

/* ---------- SPLIT PANEL (features + magenta product) ------------------- */
.jos-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.jos-split__text { background: var(--c-brown-dark); color: var(--c-gold); display: flex; flex-direction: column; justify-content: center; padding: var(--section-y) var(--gutter); }
.jos-split__text .eyebrow { max-width: 26ch; }
.jos-split__media { background: var(--c-magenta); display: grid; place-items: center; padding: var(--s-5); overflow: clip; }
.jos-split__media img { max-height: 80vh; width: auto; }

.jos-features { display: flex; flex-direction: column; gap: var(--s-4); margin-top: var(--s-4); max-width: 460px; }
.jos-feature { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; }
.jos-feature__icon {
	width: 56px; height: 56px; border-radius: var(--r-pill);
	border: 2px solid var(--c-gold); display: grid; place-items: center;
}
.jos-feature__icon svg { width: 26px; height: 26px; color: var(--c-gold); }
.jos-feature__title { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; margin: 0 0 0.2em; }
.jos-feature p { margin: 0; font-size: 0.92rem; opacity: 0.9; }

/* ---------- STORY (amber, polaroids, numbered steps) ------------------- */
.jos-story { background: var(--c-amber); color: var(--c-ink); position: relative; overflow: clip; }
.jos-story__title { color: var(--c-brown-dark); font-size: var(--fs-h2); }
.jos-story__intro { max-width: 38ch; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-brown-dark); }
/* Robust grid of polaroids (no fragile absolute positioning that left a void).
   Row 1 = 3 photos (slightly tilted, staggered); row 2 = the numbered steps. */
.jos-polaroids {
	display: grid; grid-template-columns: repeat(3, 1fr);
	gap: var(--s-5); margin-top: var(--s-6); align-items: start;
}
.jos-polaroid {
	background: #fff; padding: 10px 10px 14px; border-radius: 6px;
	box-shadow: 0 24px 50px rgba(40,16,6,0.25);
	width: 100%;
}
.jos-polaroid img { border-radius: 3px; aspect-ratio: 4/5; object-fit: cover; width: 100%; display: block; }
.jos-step { display: flex; gap: 0.75rem; align-items: center; align-self: center; }
.jos-step__num {
	width: 40px; height: 40px; border-radius: var(--r-pill);
	background: var(--c-brown-dark); color: var(--c-gold);
	display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
}
.jos-step__label { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82rem; color: var(--c-brown-dark); }

/* Desktop: slight tilt + stagger (in flow). Mobile: clean single column. */
@media (min-width: 901px) {
	.jos-polaroid--1 { transform: rotate(-3deg); }
	.jos-polaroid--2 { transform: rotate(2deg); margin-top: var(--s-5); }
	.jos-polaroid--3 { transform: rotate(4deg); }
}
@media (max-width: 900px) {
	.jos-polaroids { grid-template-columns: 1fr; gap: var(--s-4); justify-items: center; }
	.jos-polaroid { max-width: 360px; transform: none !important; margin-top: 0 !important; }
	.jos-step { margin-top: var(--s-2); }
}

/* ---------- BENEFITS (3 cards) ----------------------------------------- */
.jos-benefits { background: var(--c-amber); color: var(--c-ink); }
.jos-benefits__head { text-align: center; max-width: 720px; margin: 0 auto var(--s-6); }
.jos-benefits__head h2 { color: var(--c-brown-dark); }
.jos-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.jos-benefit__icon { width: 60px; height: 60px; border-radius: var(--r-pill); border: 2px solid var(--c-brown-dark); display: grid; place-items: center; margin-bottom: var(--s-3); }
.jos-benefit__icon svg { width: 28px; height: 28px; color: var(--c-brown-dark); }
.jos-benefit h3 { color: var(--c-brown-dark); font-size: 1.05rem; letter-spacing: 0.06em; margin-bottom: 0.4em; }
.jos-benefit p { font-size: 0.92rem; color: var(--c-ink); }
.jos-benefit__img { margin-top: var(--s-4); border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4/3; }
.jos-benefit__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- SHOP COLLECTION ------------------------------------------- */
.jos-shop { background: var(--c-rust); text-align: center; }
.jos-shop__badge { width: 56px; height: 56px; border-radius: var(--r-pill); border: 2px solid var(--c-gold); display: grid; place-items: center; margin: 0 auto var(--s-4); }
.jos-shop__title { font-size: var(--fs-display); line-height: 0.84; }
.jos-shop__cta { margin-top: var(--s-4); }
.jos-product-grid {
	display: grid; gap: var(--s-4); margin-top: var(--s-6);
	grid-template-columns: repeat(var(--cols-desktop, 3), 1fr);
}
.jos-product-card { background: var(--c-brown); border-radius: var(--r-card); overflow: hidden; text-align: left; border: 1px solid rgba(250,174,51,0.14); }
.jos-product-card__media { aspect-ratio: 4/5; background: var(--c-brown-dark); overflow: hidden; }
.jos-product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.jos-product-card__body { padding: var(--s-3); }
.jos-product-card__title { font-family: var(--font-body); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--c-gold); margin: 0 0 0.3em; }
.jos-product-card__price { color: var(--c-gold-soft); font-weight: 600; }

/* ---------- NEWSLETTER ------------------------------------------------- */
.jos-newsletter { display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch; }
.jos-newsletter__text { background: var(--c-amber); color: var(--c-ink); padding: var(--section-y) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.jos-newsletter__text h2 { color: var(--c-brown-dark); }
.jos-newsletter__media { background: var(--c-magenta); display: grid; place-items: center; overflow: clip; }
.jos-newsletter__media img { max-height: 50vh; }
.jos-signup { display: flex; gap: 0.6rem; flex-wrap: wrap; max-width: 480px; margin-top: var(--s-3); }
.jos-signup input[type="email"] {
	flex: 1; min-width: 0; padding: 0.95em 1.4em; border-radius: var(--r-pill);
	border: 2px solid var(--c-brown-dark); background: transparent; color: var(--c-ink);
	font-family: var(--font-body); font-size: 1rem;
}
.jos-signup input::placeholder { color: rgba(42,20,8,0.6); }
.jos-signup__legal { font-size: 0.72rem; margin-top: 0.75rem; color: var(--c-brown-dark); }
.jos-signup__legal a { text-decoration: underline; }

/* ---------- RESPONSIVE ------------------------------------------------- */
@media (max-width: 900px) {
	.jos-split,
	.jos-newsletter { grid-template-columns: 1fr; }
	.jos-split__media { min-height: 60vh; }
	.jos-benefit-grid { grid-template-columns: 1fr; }
	.jos-product-grid { grid-template-columns: repeat(var(--cols-mobile, 2), 1fr); }
	.jos-rotate__sticky { min-height: 56vh; }
	.jos-rotate__caption { max-width: none; }
}
