/* ========================================
   Home — Shop section (home2-section--shop)
   ========================================
   Ported from waterwheel-old/assets/css/home2.css with body.home2 scoping
   stripped. Adds card grid + section head + card hover behaviour shared
   across shop / whats-on / map sections.
*/

.home2-section--shop {
	background: #f2efea !important;
	color: #1a1613;
}

/* ---------- Section head (heading + lede) ---------- */
.home2-section__head {
	margin-bottom: clamp(2rem, 5vh, 3rem);
	width: 100%;
	text-align: center;
}

.home2-section__heading {
	color: #1a1613;
	margin: 0 0 0.75rem;
	font-size: clamp(2.25rem, 4vw, 3.5rem);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.05;
}

.home2-section__lede {
	color: #5a544d;
	margin: 0;
	font-size: var(--wp--preset--font-size--prose);
	font-style: italic;
	line-height: 1.55;
	font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

.home2-section__cta {
	color: #1a1613;
	margin: 2.5rem 0 0;
	font-weight: 500;
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Card row grid ---------- */
.home2-card-row .home2-card-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 700px) {
	.home2-card-row .home2-card-template {
		grid-template-columns: 1fr;
	}
}

.home2-card__image {
	aspect-ratio: 3 / 4;
}

.home2-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.home2-card__title {
	color: #1a1613;
	margin: 0.75rem 0 0;
	font-size: var(--wp--preset--font-size--card-title);
	font-style: italic;
	font-weight: 400;
	line-height: 1.2;
}

/* ---------- Card row container ---------- */
.home2-card-row {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
}

.home2-card-template,
.home2-card-fallback {
	gap: clamp(1rem, 2vw, 1.5rem);
}

/* ---------- Card ---------- */
.home2-card {
	position: relative;
	padding: 0;
	background: transparent;
}

.home2-card__image,
.home2-card__image--demo {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin: 0;
	border-radius: 2px;
	background: #e8e1d4;
}

.home2-card--dark .home2-card__image,
.home2-card--dark .home2-card__image--demo {
	background: #2a241d;
}

.home2-card__image img,
.home2-card__image--demo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 2s cubic-bezier(.2,.8,.2,1);
}

.home2-card:hover .home2-card__image img,
.home2-card:hover .home2-card__image--demo img {
	transform: scale(1.03);
}

/* Plus icon in bottom-right of every card image */
.home2-card__image::after,
.home2-card__image--demo::after {
	content: '';
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 1px solid rgba(26, 22, 19, 0.35);
	background-color: rgba(255, 255, 255, 0.8);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1613' stroke-width='1.5' stroke-linecap='round'><line x1='12' y1='6' x2='12' y2='18'/><line x1='6' y1='12' x2='18' y2='12'/></svg>");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 14px 14px;
	pointer-events: none;
	transition: background-color 0.2s ease;
}

.home2-card--dark .home2-card__image::after,
.home2-card--dark .home2-card__image--demo::after {
	border-color: rgba(255, 255, 255, 0.35);
	background-color: rgba(20, 18, 16, 0.55);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2ede6' stroke-width='1.5' stroke-linecap='round'><line x1='12' y1='6' x2='12' y2='18'/><line x1='6' y1='12' x2='18' y2='12'/></svg>");
}

.home2-card__title a {
	color: inherit;
	text-decoration: none;
}

.home2-card__title a:hover,
.home2-card__title a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Multi-line address (e.g. accom_address with embedded newlines) — preserve
   line breaks but allow normal whitespace collapsing. */
.home2-card__address {
	white-space: pre-line;
}

/* Posts without a featured image emit no <figure>, which makes one card in a
   grid row visually collapse next to a card that has one. Inject a neutral
   placeholder block on the post-template <li> level so every cell occupies
   the same vertical real estate. */
.home2-card-template > li:not(.has-post-thumbnail) .home2-card::before {
	content: '';
	display: block;
	aspect-ratio: 3 / 4;
	background: #e8e1d4;
	border-radius: 2px;
	margin-bottom: 0;
}

.home2-card-template > li:not(.has-post-thumbnail) .home2-card--dark::before {
	background: #2a241d;
}

/* ---------- Display-italic heading override ---------- */
.home2-display-italic {
	font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif !important;
	font-style: italic !important;
	font-weight: 400 !important;
}

.home2-subtitle {
	font-family: 'EB Garamond', Georgia, 'Times New Roman', serif !important;
	font-style: italic !important;
}

/* ---------- Section CTA link ---------- */
.home2-section__cta-link {
	color: inherit;
	text-decoration: none;
	padding-bottom: 2px;
	border-bottom: 1px solid currentColor;
	transition: opacity 0.2s ease;
}

.home2-section__cta-link:hover,
.home2-section__cta-link:focus-visible {
	opacity: 0.7;
	outline: none;
}

/* ---------- Split section head: heading left, link right, hairline below ---------- */
.home2-section__head--split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	text-align: left;
	width: 100%;
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(26, 22, 19, 0.18);
	margin-bottom: clamp(2rem, 5vh, 3rem);
}

.home2-section__head--split .home2-section__heading {
	margin: 0;
	max-width: 14ch;
}

.home2-section__head-link {
	flex-shrink: 0;
	color: inherit;
	text-decoration: none;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--wp--preset--font-size--cap);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding-bottom: 4px;
	border-bottom: 1px solid currentColor;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.home2-section__head-link:hover,
.home2-section__head-link:focus-visible {
	opacity: 0.65;
	outline: none;
}

.home2-section__head--dark {
	border-bottom-color: rgba(242, 237, 230, 0.22);
}

@media (max-width: 700px) {
	.home2-section__head--split {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
}

/* ---------- Card meta row (maker · price) ---------- */
.home2-card__meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	margin-top: 0.4rem;
}

.home2-card__maker {
	color: #5a544d;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--wp--preset--font-size--cap);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.3;
}

.home2-card__price {
	color: #1a1613;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: var(--wp--preset--font-size--cap);
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.home2-card--dark .home2-card__maker {
	color: rgba(242, 237, 230, 0.7);
}

.home2-card--dark .home2-card__price {
	color: #f2ede6;
}

/* What's On reuses the card structure but the second meta slot is a venue
   address, not a price — let it wrap and stack under the date. */
.home2-section--whats-on .home2-card__meta {
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}

.home2-section--whats-on .home2-card__price {
	white-space: normal;
	line-height: 1.4;
}
