/**
 * Insights Child — local-offers.css
 *
 * Styles for /local-offers/. Lifted from insights-local-offer-v1.html
 * (Andre's mockup) with topbar/menu/footer stripped because the WP
 * child theme already provides those globally. Scoped under
 * .local-offers-main so it can't bleed into other templates.
 *
 * Enqueued conditionally on page-templates/template-local-offers.php only.
 */

:root {
	--crimson: #8B1A1A;
	--crimson-bright: #E8192C;
	--ink: #1a1a1a;
	--text-dim: rgba(26, 26, 26, 0.68);
	--text-mute: rgba(26, 26, 26, 0.5);
	--line: rgba(26, 26, 26, 0.08);
	--line-hi: rgba(26, 26, 26, 0.14);
	--paper: #FAFAFA;
}

.local-offers-main { background: #FFFFFF; }

/* ──────────────────────────────────────────────────────────────
 * Inner hero — photo + heading panel (Showcase tier)
 * ────────────────────────────────────────────────────────────── */
.local-offers-main .inner-hero { padding: 32px 0 0; position: relative; }
.local-offers-main .inner-hero-wrap {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	width: calc(100% - 64px);
	aspect-ratio: 16 / 7;
	background-color: #2D1010;
	overflow: hidden;
	border-radius: 32px;
	box-shadow: 0 24px 64px -24px rgba(26, 26, 26, 0.18);
}
.local-offers-main .inner-hero-img {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 1;
}
.local-offers-main .inner-hero-wrap::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(26, 26, 26, 0.45) 0%, rgba(26, 26, 26, 0.30) 40%, rgba(26, 26, 26, 0.40) 70%, rgba(26, 26, 26, 0.75) 100%),
		radial-gradient(ellipse at center, rgba(26, 26, 26, 0.35) 0%, transparent 65%);
	pointer-events: none; z-index: 2;
}
.local-offers-main .inner-hero-text {
	position: absolute; inset: 0; z-index: 3;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 60px 48px;
}
.local-offers-main .inner-hero-eyebrow {
	font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
	color: #FFFFFF; font-weight: 700; margin-bottom: 22px;
	text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7);
}
.local-offers-main .inner-hero-eyebrow::before {
	content: ""; display: block; width: 48px; height: 2px;
	background: var(--crimson-bright); margin: 0 auto 16px;
}
.local-offers-main .inner-hero-title {
	font-family: 'Jost', sans-serif;
	font-size: clamp(40px, 5.5vw, 76px);
	font-weight: 500; letter-spacing: -0.025em; line-height: 1.04;
	color: #FFFFFF; max-width: 920px; margin: 0;
	text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
.local-offers-main .inner-hero-title em {
	font-style: italic; color: rgba(255, 255, 255, 0.88); font-weight: 400;
}

/* ──────────────────────────────────────────────────────────────
 * Intro — italic editorial copy
 * ────────────────────────────────────────────────────────────── */
.local-offers-main .lo-intro { padding: 80px 0 0; }
.local-offers-main .lo-intro-inner {
	max-width: 860px; margin: 0 auto; padding: 0 32px; text-align: center;
}
.local-offers-main .lo-intro p {
	font-family: 'Jost', sans-serif;
	font-size: clamp(18px, 1.8vw, 22px);
	line-height: 1.55; color: var(--text-dim);
	font-style: italic; font-weight: 400;
}
.local-offers-main .lo-intro p em { color: var(--crimson); font-weight: 500; }

/* ──────────────────────────────────────────────────────────────
 * Borough grid
 * ────────────────────────────────────────────────────────────── */
.local-offers-main .boroughs { padding: 64px 0 96px; }
.local-offers-main .boroughs-inner {
	max-width: 1320px; margin: 0 auto; padding: 0 32px;
}
.local-offers-main .boroughs-head {
	display: flex; justify-content: space-between; align-items: flex-end;
	margin-bottom: 28px; gap: 24px; flex-wrap: wrap;
}
.local-offers-main .boroughs-head h2 {
	font-family: 'Jost', sans-serif;
	font-size: clamp(28px, 3.2vw, 42px);
	font-weight: 400; letter-spacing: -0.01em; color: var(--ink); margin: 0;
}
.local-offers-main .boroughs-head h2 em { font-style: italic; color: var(--crimson); font-weight: 500; }
.local-offers-main .bh-count {
	font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--text-mute); font-weight: 600;
}
.local-offers-main .boroughs-filter { margin-bottom: 32px; }
.local-offers-main .bf-search {
	width: 100%;
	padding: 16px 22px;
	font-family: 'Jost', sans-serif;
	font-size: 16px; font-weight: 400;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 4px;
	color: var(--ink);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.local-offers-main .bf-search::placeholder { color: var(--text-mute); font-style: italic; }
.local-offers-main .bf-search:focus {
	outline: none;
	border-color: var(--crimson);
	background: #FFFFFF;
	box-shadow: 0 4px 18px -8px rgba(139, 26, 26, 0.25);
}

.local-offers-main .boroughs-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 1fr; /* equalize every row's tile height */
	gap: 18px;
}
.local-offers-main .borough-tile {
	display: flex; flex-direction: column; justify-content: space-between;
	gap: 20px;
	padding: 24px 22px 20px;
	background: #FFFFFF;
	border: 1px solid var(--line);
	border-radius: 6px;
	text-decoration: none; color: inherit;
	min-height: 168px;
	height: 100%; /* fill the grid cell — keeps siblings the same height */
	transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}
.local-offers-main .borough-tile:hover {
	transform: translateY(-3px);
	border-color: var(--crimson-bright);
	box-shadow: 0 18px 40px -16px rgba(232, 25, 44, 0.28);
}
.local-offers-main .bt-tag {
	font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
	color: var(--crimson); font-weight: 700;
}
.local-offers-main .borough-tile h3 {
	font-family: 'Jost', sans-serif;
	font-size: 19px; font-weight: 500;
	letter-spacing: -0.01em; line-height: 1.2;
	color: var(--ink); margin: 0;
}
.local-offers-main .bt-arrow {
	font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--ink); font-weight: 600;
	display: inline-flex; align-items: center; gap: 8px;
	transition: gap 0.25s ease;
}
.local-offers-main .bt-arrow::after { content: "↗"; font-size: 12px; }
.local-offers-main .borough-tile:hover .bt-arrow { gap: 14px; color: var(--crimson); }

/* "Not listed?" note */
.local-offers-main .not-listed {
	margin-top: 48px;
	padding: 28px 32px;
	background: var(--paper);
	border-left: 3px solid var(--crimson);
	border-radius: 4px;
}
.local-offers-main .not-listed p {
	font-size: 14px; line-height: 1.6;
	color: var(--text-dim); margin: 0;
}
.local-offers-main .not-listed em { font-style: italic; color: var(--ink); }

/* ──────────────────────────────────────────────────────────────
 * Where Next — 2-card panel (style mirrors other templates)
 * ────────────────────────────────────────────────────────────── */
.local-offers-main .lo-where-next {
	background: var(--paper);
	padding: 96px 0 112px;
	border-top: 1px solid var(--line);
}
.local-offers-main .where-next-inner {
	max-width: 1320px; margin: 0 auto; padding: 0 32px;
}
.local-offers-main .where-next-head { margin-bottom: 40px; }
.local-offers-main .where-next-head .tag {
	font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--crimson); font-weight: 700; margin-bottom: 14px;
}
.local-offers-main .where-next-head h2 {
	font-family: 'Jost', sans-serif;
	font-size: clamp(32px, 3.6vw, 48px);
	font-weight: 400; letter-spacing: -0.015em; color: var(--ink); margin: 0;
}
.local-offers-main .where-next-head h2 em { font-style: italic; color: var(--crimson); font-weight: 500; }

.local-offers-main .where-next-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.local-offers-main .wn-card {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 0;
	background: #FFFFFF;
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none; color: inherit;
	transition: transform 0.3s ease, border-color 0.25s ease, box-shadow 0.3s ease;
	min-height: 200px;
}
.local-offers-main .wn-card:hover {
	transform: translateY(-3px);
	border-color: var(--crimson-bright);
	box-shadow: 0 22px 50px -22px rgba(232, 25, 44, 0.22);
}
.local-offers-main .wn-card-img {
	background-color: #ECECEC;
	background-size: cover;
	background-position: center;
}
.local-offers-main .wn-card-content { padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.local-offers-main .wn-card-content .tag {
	font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--crimson); font-weight: 700;
}
.local-offers-main .wn-card-content h3 {
	font-family: 'Jost', sans-serif;
	font-size: 22px; font-weight: 500;
	letter-spacing: -0.01em; line-height: 1.18;
	color: var(--ink); margin: 0;
}
.local-offers-main .wn-card-content p {
	font-size: 14px; line-height: 1.55;
	color: var(--text-dim); margin: 0;
}
.local-offers-main .wn-card-content .arrow {
	margin-top: auto;
	font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--crimson); font-weight: 700;
	display: inline-flex; align-items: center; gap: 8px;
	transition: gap 0.25s ease;
}
.local-offers-main .wn-card-content .arrow::after { content: "→"; font-size: 13px; }
.local-offers-main .wn-card:hover .wn-card-content .arrow { gap: 14px; }

/* ──────────────────────────────────────────────────────────────
 * Reveals
 * ────────────────────────────────────────────────────────────── */
.local-offers-main .reveal {
	opacity: 0; transform: translateY(28px);
	transition: opacity 0.85s cubic-bezier(0.2, 0.6, 0.2, 1),
	            transform 0.85s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.local-offers-main .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
	.local-offers-main .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ──────────────────────────────────────────────────────────────
 * Responsive
 * ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	.local-offers-main .boroughs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
	.local-offers-main .boroughs-grid { grid-template-columns: repeat(2, 1fr); }
	.local-offers-main .where-next-cards { grid-template-columns: 1fr; }
	.local-offers-main .wn-card { grid-template-columns: 1fr; }
	.local-offers-main .wn-card-img { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 760px) {
	.local-offers-main .inner-hero-wrap { aspect-ratio: 5 / 4; width: calc(100% - 32px); border-radius: 18px; }
	.local-offers-main .inner-hero-text { padding: 40px 24px; }
	.local-offers-main .inner-hero-title { font-size: clamp(28px, 7.5vw, 44px); }
	.local-offers-main .lo-intro { padding-top: 48px; }
	.local-offers-main .boroughs { padding: 40px 0 64px; }
	.local-offers-main .borough-tile {
		padding: 18px 18px 16px;
		min-height: 0;
		height: auto;
	}
	.local-offers-main .borough-tile h3 { font-size: 17px; }
}
/* True-mobile breakpoint — single-column stack so every tile gets the
   full viewport width and the borough name reads on one line. */
@media (max-width: 640px) {
	.local-offers-main .boroughs-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: auto;
		gap: 12px;
	}
	.local-offers-main .borough-tile {
		min-height: 0;
		height: auto;
		gap: 10px;
		padding: 18px 20px 16px;
	}
	.local-offers-main .borough-tile h3 { font-size: 19px; }
	.local-offers-main .not-listed { padding: 20px 22px; }
	.local-offers-main .lo-where-next { padding: 56px 0 72px; }
}
