/*
 * Price Beat Program page (/price-match-program/) — hand-written, enqueued only
 * by page-price-match-program.php. Lives outside the Vite build for the same
 * reason as about-page.css: dist/assets/style.css is prebuilt, so new utility
 * classes would not exist in it.
 *
 * Shares the About page palette and rhythm (copper accents, blush cards,
 * 1200 content width) so the two pages read as one family.
 *   base  → mobile  (16px gutter, 48px section padding, 24px headings)
 *   768+  → tablet  (24px gutter, 64px section padding, 30px headings)
 *   1024+ → desktop (multi-column layouts, 80px section padding)
 */

.dm-pm {
	--pm-copper: #b97230;
	--pm-cashmere: #e6bf9a;
	--pm-blush: #f8f1f0;
	--pm-ink: #262626;
	--pm-muted: #4d4d4d;
	--pm-heading: #120b0c;
	--pm-line: rgba(185, 114, 48, .2);
	display: block;
	color: var(--pm-ink);
	font-size: 16px;
	line-height: 24px;
}

.dm-pm p { margin: 0; }

.dm-pm__container {
	width: 100%;
	max-width: 1248px; /* 1200 content + 2×24 gutter */
	margin-inline: auto;
	padding-inline: 16px;
}

.dm-pm__section { padding-block: 48px; }
.dm-pm__section--flush { padding-top: 0; }

/* In-page anchors land below the sticky header. */
.dm-pm__anchor { scroll-margin-top: 72px; }

.dm-pm__head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 32px; text-align: center; }

.dm-pm__h2 {
	margin: 0;
	color: var(--pm-heading);
	font-size: 24px;
	font-weight: 400;
	line-height: 36px;
}

.dm-pm__divider { display: block; width: 24px; height: 2px; background: var(--pm-ink); }
.dm-pm__divider--copper { background: var(--pm-copper); }

.dm-pm__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 24px;
	border: 1px solid;
	border-radius: 9999px;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: .02em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s, color .2s, border-color .2s;
}
.dm-pm__btn--copper { border-color: var(--pm-copper); background: var(--pm-copper); color: #fff; }
.dm-pm__btn--copper:hover { background: transparent; color: var(--pm-copper); }
.dm-pm__btn--outline { border-color: #000; background: transparent; color: #000; }
.dm-pm__btn--outline:hover { background: #000; color: #fff; }
.dm-pm__btn:focus-visible { outline: 2px solid var(--pm-copper); outline-offset: 3px; }

/* Copper icon tile — same treatment as the About page "why" icons. */
.dm-pm__tile {
	display: flex;
	flex-shrink: 0;
	padding: 4px;
	border: 1px solid var(--pm-cashmere);
	border-radius: 14px;
	background: var(--pm-copper);
}
.dm-pm__tile > svg,
.dm-pm__tile > img { display: block; width: 40px; height: 40px; }

/* ── Hero ─────────────────────────────────────────────── */
.dm-pm-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(to bottom, #fdf7f2, #f3dfcb);
}
/* Decorative lines, as on the About contact band — desktop only. */
.dm-pm-hero__lines {
	position: absolute;
	right: -220px;
	bottom: -260px;
	display: none;
	width: 1020px;
	height: 512px;
	max-width: none;
	pointer-events: none;
}
.dm-pm-hero__inner { position: relative; padding-block: 16px 48px; }

.dm-pm-hero__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	color: rgba(18, 11, 12, .6);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
}
.dm-pm-hero__crumbs a { color: var(--pm-heading); text-decoration: none; transition: color .2s; }
.dm-pm-hero__crumbs a:hover { color: var(--pm-copper); }
.dm-pm-hero__crumbs svg { width: 16px; height: 16px; color: var(--pm-copper); }

.dm-pm-hero__grid { display: flex; flex-direction: column; gap: 40px; padding-top: 32px; }

.dm-pm-hero__content { display: flex; flex-direction: column; align-items: flex-start; }
.dm-pm-hero__eyebrow {
	margin-bottom: 12px;
	color: var(--pm-copper);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.dm-pm-hero__title { margin: 0 0 16px; color: var(--pm-heading); font-size: 36px; font-weight: 400; line-height: 44px; }
.dm-pm-hero__text { max-width: 540px; color: var(--pm-ink); line-height: 26px; }
.dm-pm-hero__actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 32px; }

/* Framed product shot (About "authentic products" frame) with an inset second brand. */
.dm-pm-hero__media { width: 100%; max-width: 440px; margin-inline: auto; padding-left: 24px; }
.dm-pm-hero__frame {
	position: relative;
	padding: 12px;
	border: 1px solid var(--pm-copper);
	border-radius: 24px;
}
.dm-pm-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	border-radius: 14px;
	object-fit: cover;
	object-position: 50% 72%;
}
/* Overhangs the frame's bottom-left corner so it never covers the main box. */
.dm-pm-hero__inset {
	position: absolute;
	bottom: -20px;
	left: -20px;
	width: 34%;
	height: auto;
	aspect-ratio: 1;
	border: 4px solid #fff;
	border-radius: 14px;
	box-shadow: 0 16px 32px -16px rgba(18, 11, 12, .35);
	object-fit: cover;
	object-position: 50% 68%;
}
.dm-pm-hero__tag { position: absolute; top: -20px; right: 24px; box-shadow: 0 12px 24px -12px rgba(185, 114, 48, .6); }

/* ── How it works ─────────────────────────────────────── */
.dm-pm-steps {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.dm-pm-step {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--pm-line);
	border-radius: 16px;
	background: #fff;
}
.dm-pm-step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dm-pm-step__num { color: var(--pm-cashmere); font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.dm-pm-step__title { margin: 0; color: var(--pm-heading); font-size: 18px; font-weight: 700; line-height: 28px; }
.dm-pm-step p { color: var(--pm-muted); }

/* ── Eligibility & limitations ────────────────────────── */
.dm-pm-terms { display: grid; gap: 16px; }
.dm-pm-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px 20px;
	border-radius: 16px;
}
.dm-pm-card--eligible { background: var(--pm-blush); }
.dm-pm-card--limits { border: 1px solid var(--pm-cashmere); background: #fff; }
.dm-pm-card__head { display: flex; align-items: center; gap: 12px; }
.dm-pm-card__head > img { flex-shrink: 0; width: 32px; height: 32px; }

.dm-pm-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.dm-pm-list li { display: flex; gap: 14px; padding-block: 16px; border-top: 1px solid var(--pm-line); color: var(--pm-muted); }
.dm-pm-list li:first-child { padding-top: 0; border-top: 0; }
.dm-pm-list li:last-child { padding-bottom: 0; }
.dm-pm-list__icon { flex-shrink: 0; width: 24px; height: 24px; }
.dm-pm-list__label { display: block; margin-bottom: 2px; color: var(--pm-heading); font-weight: 700; }

.dm-pm-card__note {
	margin-top: auto;
	padding: 14px 16px;
	border-left: 2px solid var(--pm-copper);
	border-radius: 0 8px 8px 0;
	background: rgba(255, 255, 255, .7);
	color: var(--pm-muted);
	font-size: 14px;
	font-style: italic;
	line-height: 22px;
}

/* ── Request a price beat (About contact band, as a card) ── */
.dm-pm-cta {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 40px 20px;
	overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(to bottom, #f1d8c1, #fdf7f2);
}
.dm-pm-cta__lines {
	position: absolute;
	right: -160px;
	bottom: -300px;
	display: none;
	width: 1020px;
	height: 512px;
	max-width: none;
	pointer-events: none;
}
.dm-pm-cta__copy { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.dm-pm-cta__title { color: var(--pm-copper); }
.dm-pm-cta__copy > p { max-width: 480px; }
.dm-pm-cta__copy > .dm-pm__btn { margin-top: 8px; }

.dm-pm-cta__channels {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0;
	padding: 24px 20px;
	border: 1px solid rgba(185, 114, 48, .25);
	border-radius: 16px;
	background: rgba(255, 255, 255, .6);
	list-style: none;
}
.dm-pm-cta__channels li { display: flex; align-items: center; gap: 16px; }
.dm-pm-cta__channels img { flex-shrink: 0; width: 24px; height: 24px; }
.dm-pm-cta__value { display: block; color: var(--pm-ink); font-size: 18px; font-weight: 700; line-height: 28px; text-decoration: none; overflow-wrap: anywhere; }
a.dm-pm-cta__value { transition: color .2s; }
a.dm-pm-cta__value:hover { color: var(--pm-copper); }

/* ── ≥768px: tablet ───────────────────────────────────── */
@media (min-width: 768px) {
	.dm-pm__container { padding-inline: 24px; }
	.dm-pm__section { padding-block: 64px; }
	.dm-pm__section--flush { padding-top: 0; }
	.dm-pm__head { margin-bottom: 40px; }
	.dm-pm__h2 { font-size: 30px; line-height: 45px; }

	.dm-pm-hero__inner { padding-block: 20px 64px; }
	.dm-pm-hero__eyebrow { font-size: 16px; line-height: 24px; }
	.dm-pm-hero__title { font-size: 48px; line-height: 60px; }
	.dm-pm-hero__text { font-size: 18px; line-height: 28px; }
	.dm-pm-hero__actions { flex-direction: row; width: auto; }
	.dm-pm-hero__media { max-width: 520px; }
	.dm-pm-hero__frame { padding: 16px; border-radius: 32px; }

	.dm-pm-step { padding: 32px; }

	.dm-pm-card { padding: 40px; }
	.dm-pm-card__head > img { width: 40px; height: 40px; }

	.dm-pm-cta { padding: 48px; }
	.dm-pm-cta__channels { padding: 32px; }
}

/* ── ≥1024px: desktop ─────────────────────────────────── */
@media (min-width: 1024px) {
	.dm-pm__section { padding-block: 80px; }
	.dm-pm__section--flush { padding-top: 0; }

	.dm-pm-hero__lines { display: block; }
	.dm-pm-hero__inner { padding-bottom: 80px; }
	.dm-pm-hero__grid { flex-direction: row; align-items: center; gap: 64px; padding-top: 24px; }
	.dm-pm-hero__content { flex: 1 1 0; min-width: 0; }
	.dm-pm-hero__media { flex: 0 0 auto; width: 46%; max-width: 540px; margin: 0; padding: 24px 0 0 32px; }
	.dm-pm-hero__frame { padding: 20px; border-radius: 40px; }
	.dm-pm-hero__img { border-radius: 20px; }
	.dm-pm-hero__inset { bottom: -28px; left: -32px; border-radius: 18px; }
	.dm-pm-hero__tag { right: 36px; }

	.dm-pm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

	.dm-pm-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

	.dm-pm-cta { flex-direction: row; align-items: center; gap: 48px; padding: 64px; }
	.dm-pm-cta__lines { display: block; }
	.dm-pm-cta__channels { flex: 0 0 440px; }
}

/* Desktop header (top bar + nav) is taller than the mobile one. */
@media (min-width: 1280px) {
	.dm-pm__anchor { scroll-margin-top: 150px; }
}
