/* ==========================================================================
   RAW Studio home page: the six sections of the Canva mockup
   ========================================================================== */

/* 1. Hero (light) ----------------------------------------------------------- */
.home-hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.home-hero__text { text-align: center; }
.home-hero .display { max-width: 16ch; margin-inline: auto; margin-bottom: 0.3em; }
.home-hero .lead { margin-bottom: 0.6rem; }
.home-hero__price { font-size: var(--t-lead); font-weight: 600; margin-bottom: 1.5rem; }
.home-hero__price .price-from { color: var(--ink-2); font-weight: 500; }
.home-hero .actions { justify-content: center; }
.home-hero__media {
	display: block;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--card);
	box-shadow: 0 40px 80px -48px rgba(29, 29, 31, 0.45);
}
/* The label artworks carry printed lettering (country across the top, RAW mark and price in the corners).
   A 2:1 window on the middle of the 7:5 artwork leaves the lettering out. */
.home-hero__img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform 1200ms var(--ease); }
.home-hero__media:hover .home-hero__img { transform: scale(1.015); }

/* 2. Taste (dark) ----------------------------------------------------------- */
.home-taste__media { margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; }
.home-taste__media img { width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; }
@media (max-width: 640px) { .home-taste__media img { aspect-ratio: 2 / 1; } }

/* 3. Favorites (light) ------------------------------------------------------ */
.fav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.fav-grid.is-single { grid-template-columns: minmax(0, 640px); justify-content: center; }
.fav-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	background: var(--card);
	border-radius: var(--radius-lg);
	overflow: hidden;
	min-height: 440px;
	transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.fav-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(29, 29, 31, 0.5); }
.fav-card__media { display: block; position: relative; overflow: hidden; }
/* Full artworks carry print at the edges: the country across the top 15%, the RAW mark bottom right.
   The image box is taller than the frame and shifted up, so roughly 20–87% of the height shows,
   centered, which leaves both out. */
.fav-card__media img { position: absolute; left: 0; top: -30%; width: 100%; height: 150%; object-fit: cover; }
.fav-card__body { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.fav-card__name { font-size: var(--t-title); line-height: 1.15; margin-bottom: 0.35rem; }
.fav-card__name a { color: var(--ink); }
.fav-card__origin { color: var(--brown); font-weight: 600; font-size: var(--t-small); margin-bottom: 0.9rem; }
.fav-card__notes { color: var(--ink-2); margin-bottom: 1.25rem; }
.fav-card__price { margin-top: auto; font-size: 1.5rem; font-weight: 700; color: var(--brown); margin-bottom: 1rem; }
.fav-card__price .price-from { display: block; font-size: var(--t-small); color: var(--ink-2); font-weight: 600; }
.fav-card .actions { gap: 0.75rem 1.25rem; }
@media (max-width: 1000px) {
	.fav-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.fav-card { grid-template-columns: 1fr; min-height: 0; }
	.fav-card__media { aspect-ratio: 4 / 3; }
}

/* 4. Bags (light) ----------------------------------------------------------- */
.bags-row { display: grid; grid-template-columns: 1fr minmax(0, 2.2fr) 1fr; align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.bag-sizes { display: grid; grid-template-columns: 1fr 1fr; }
.bag-size { display: flex; flex-direction: column; padding: 0.5rem clamp(1rem, 3vw, 2.5rem); color: var(--ink); }
.bag-size + .bag-size { border-left: 1px solid var(--line); }
.bag-size:hover { text-decoration: none; }
.bag-size__weight { font-size: calc(clamp(3rem, 6vw, 5.5rem) * var(--hs)); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 1.25rem; }
.bag-size__line { font-size: var(--t-lead); line-height: 1.35; color: var(--ink); margin-bottom: 1.5rem; max-width: 14ch; }
.bag-size__price { font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 600; color: var(--brown); }
.home-bags__roast { text-align: center; font-size: var(--t-lead); font-weight: 500; margin-top: clamp(2.5rem, 5vw, 4rem); }
.home-bags__roast strong { color: var(--brown); }

/* A flat coffee bag in CSS: black pouch, top seal, RAW mark, paper label */
.bag {
	position: relative;
	justify-self: center;
	width: min(100%, 220px);
	aspect-ratio: 3 / 5;
	border-radius: 14px 14px 18px 18px;
	background: linear-gradient(100deg, #1a1918 0%, #2a2826 45%, #161514 100%);
	box-shadow: 0 40px 50px -30px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 22% 12% 0;
	color: var(--brown-hi);
}
.bag--light { transform: rotate(-2deg); }
.bag--medium { transform: rotate(2deg); }
.bag__seal { position: absolute; top: 7%; left: 8%; right: 8%; height: 2px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; }
.bag__mark { width: 72%; color: var(--brown-hi); }
.bag .raw-mark__bean { fill: var(--brown-hi); }
.bag .raw-mark__groove { stroke: #232120; }
.bag__sub { font-size: clamp(0.5rem, 0.8vw, 0.6875rem); letter-spacing: 0.18em; font-weight: 600; margin: 0.6em 0 auto; }
.bag__label {
	display: grid;
	gap: 0.35em;
	width: 100%;
	margin-bottom: 18%;
	padding: 0.9em 0.8em;
	background: #ece4d6;
	color: var(--ink);
	border-radius: 4px;
	text-align: center;
	font-size: clamp(0.5625rem, 0.85vw, 0.75rem);
	line-height: 1.3;
}
.bag__label strong { font-size: 1.15em; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 860px) {
	.bags-row { grid-template-columns: 1fr 1fr; }
	.bag-sizes { grid-column: 1 / -1; grid-row: 1; margin-bottom: 2.5rem; }
	.bag { width: min(100%, 160px); }
}
@media (max-width: 480px) {
	.bag-size { padding-inline: 0.75rem; }
	.bag-size:first-child { padding-left: 0; }
}

/* 5. Origins (dark) --------------------------------------------------------- */
.origin-list {
	list-style: none;
	padding: 0;
	margin: 0 auto 2rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 960px;
	gap: 0.4rem clamp(1.25rem, 3vw, 2.5rem);
}
.origin-list a { color: var(--brown-hi); font-size: clamp(1.25rem, 2.3vw, 2rem); font-weight: 500; letter-spacing: -0.02em; }
/* Country tiles: big count, name, lowest price. Text only: most product photos here are small
   collage cut-outs with a printed price tag, which look poor enlarged. */
.origin-tiles {
	list-style: none;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.origin-tiles a {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 1.5rem 1.25rem 1.25rem;
	border-radius: var(--radius);
	background: var(--night-2);
	color: var(--on-night);
	transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.origin-tiles a:hover { background: #26231f; transform: translateY(-3px); text-decoration: none; }
.origin-tile__count { font-size: calc(clamp(2.5rem, 4vw, 3.5rem) * var(--hs)); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--brown-hi); margin-bottom: 1.5rem; }
.origin-tile__name { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.2rem; }
.origin-tile__price { font-size: var(--t-small); color: var(--on-night-2); }
@media (max-width: 640px) {
	.origin-tiles { grid-template-columns: repeat(2, 1fr); }
}

/* 6. Pay (light) ------------------------------------------------------------ */
.home-pay { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(2.5rem, 6vw, 6rem); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.home-pay > * { max-width: none; margin: 0; }
.home-pay .headline { font-size: calc(clamp(2.5rem, 5.4vw, 4.75rem) * var(--hs)); max-width: 11ch; }
.home-pay .lead { max-width: 30ch; }
.home-pay__ship { font-size: var(--t-lead); font-weight: 600; color: var(--brown); margin-top: 1.5rem; }

.phone {
	justify-self: center;
	width: min(100%, 250px);
	aspect-ratio: 9 / 18.5;
	padding: 10px;
	border-radius: 44px;
	background: #1d1d1f;
	box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #3a3a3c;
}
.phone__screen {
	position: relative;
	height: 100%;
	border-radius: 38px;
	background: var(--card);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 22% 14% 0;
	text-align: center;
}
.phone__island { position: absolute; top: 12px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: #1d1d1f; border-radius: 12px; }
.phone__brand { color: var(--brown); font-weight: 700; font-size: 0.9375rem; }
.phone__hint { font-size: 0.8125rem; color: var(--ink-2); margin: 0.25rem 0 1.5rem; }
.phone__qr { position: relative; width: 100%; padding: 12%; color: var(--ink); }
.phone__qr::before, .phone__qr::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--brown); border-radius: 10px; clip-path: polygon(0 0, 22% 0, 22% 2px, 2px 2px, 2px 22%, 0 22%, 0 78%, 2px 78%, 2px calc(100% - 2px), 22% calc(100% - 2px), 22% 100%, 0 100%); }
.phone__qr::after { transform: scaleX(-1); }
.phone__thanks { margin-top: 1.5rem; font-size: 0.875rem; font-weight: 500; }
@media (max-width: 860px) {
	.home-pay { grid-template-columns: 1fr; text-align: center; }
	.home-pay .headline, .home-pay .lead { margin-inline: auto; }
	.phone { width: min(70%, 240px); }
}
