/* DOMESTICA — elevated content pages (offers, our-story). Loaded after theme.css. */

/* ===========================================================================
   SHARED — widen the reading column for these two pages only (theme.css hard-
   caps .wp-block-post-content to 72ch for static pages; our layouts need the
   full stage). Selector is more specific than the theme.css rule AND repeats
   !important solely to beat its !important, per house rule.
   =========================================================================== */
.page:not(.woocommerce-page) .wp-block-post-content:has(.dom-story2-shell),
.page:not(.woocommerce-page) .wp-block-post-content:has(.dom-offers2-shell),
.page:not(.woocommerce-page) .wp-block-post-content:has(.dom-loc2-shell) {
	max-width: var(--content-max, 1320px) !important;
}
/* Store Locator title matches its wide stage (theme.css narrows non-.dom-stores titles) */
.page:not(.woocommerce-page) main:has(.dom-loc2-shell) .wp-block-post-title {
	max-width: var(--content-max, 1320px);
	margin-inline: auto !important;
}

/* Full-bleed BACKGROUND for dark bands. The margin/left breakout fails inside
   WP constrained layouts (children get margin-inline:auto !important), so we
   keep the element in-flow and extend only its background via the
   box-shadow + clip-path spread trick — content stays on the content column. */
.dom-story2-bleed,
.dom-offers2-bleed {
	position: relative;
	box-shadow: 0 0 0 100vmax var(--c-ink);
	clip-path: inset(0 -100vmax);
}

/* ===========================================================================
   OUR STORY — /about-us/ (dom-story2-*)
   =========================================================================== */
.dom-story2-shell { display: block; }
.dom-story2-shell > * + * { margin-top: var(--wp--preset--spacing--80, 4rem); }

/* --- Lead: serif intro statement --- */
.dom-story2-lead {
	max-width: 46rem;
	margin-inline: auto;
	text-align: left;
}
.dom-story2-lead .dom-eyebrow { margin-bottom: 0.75rem; }
.dom-story2-lede {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--c-ink);
	margin: 0 0 1.25rem;
}
.dom-story2-lead p:not(.dom-eyebrow) {
	font-size: var(--fs-md);
	line-height: 1.6;
	color: var(--c-ink-2);
	max-width: 62ch;
}

/* --- Heritage stats band: dark ink, full-bleed --- */
.dom-story2-heritage {
	background: var(--c-ink);
	color: var(--c-base);
}
.dom-story2-heritage__inner {
	max-width: var(--content-max, 1320px);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--70, 3rem) var(--wp--preset--spacing--60, 2rem);
	text-align: center;
}
.dom-story2-heritage__kicker {
	color: color-mix(in srgb, var(--c-base) 70%, transparent);
	margin: 0 0 1.5rem;
	display: block;
}
.dom-story2-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(1.25rem, 4vw, 2.5rem);
	flex-wrap: wrap;
}
.dom-story2-stat { display: flex; flex-direction: column; gap: 0.35rem; }
.dom-story2-stat__num {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1;
	color: var(--c-base);
	font-variant-numeric: tabular-nums;
}
.dom-story2-stat__label {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: color-mix(in srgb, var(--c-base) 62%, transparent);
}
.dom-story2-stat__sep {
	width: 1px;
	height: 2.75rem;
	background: color-mix(in srgb, var(--c-base) 22%, transparent);
}

/* --- Island-wide delivery: dark ink, full-bleed, centered feature --- */
.dom-story2-delivery {
	background: var(--c-ink);
	color: var(--c-base);
	border-top: 1px solid color-mix(in srgb, var(--c-base) 12%, transparent);
}
.dom-story2-delivery__inner {
	max-width: 46rem;
	margin-inline: auto;
	padding: var(--wp--preset--spacing--80, 4rem) var(--wp--preset--spacing--60, 2rem);
	text-align: center;
}
.dom-story2-delivery__icon {
	width: 2.25rem;
	height: 2.25rem;
	margin: 0 auto 1.25rem;
	color: var(--c-base);
	display: block;
}
.dom-story2-delivery__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: clamp(1.5rem, 3vw, 2rem);
	letter-spacing: -0.01em;
	color: var(--c-base);
	margin: 0 0 1rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.dom-story2-delivery__copy {
	font-size: var(--fs-md);
	line-height: 1.6;
	color: color-mix(in srgb, var(--c-base) 85%, transparent);
	margin: 0;
}

/* --- Store Locator + Careers bento --- */
.dom-story2-bento {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: var(--wp--preset--spacing--50, 1.5rem);
	align-items: stretch;
}
.dom-story2-bento__card {
	border-radius: var(--r-md);
	padding: var(--wp--preset--spacing--70, 3rem);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 320px;
	transition: border-color var(--t, 200ms) var(--ease-out), background-color var(--t, 200ms) var(--ease-out);
}
.dom-story2-bento__card--locator {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
}
.dom-story2-bento__card--locator:hover { border-color: var(--c-ink-2); }
.dom-story2-bento__card--careers {
	background: var(--c-ink);
	color: var(--c-base);
}
.dom-story2-bento__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--fs-xl, 2rem);
	letter-spacing: -0.01em;
	margin: 0 0 0.85rem;
	color: inherit;
}
.dom-story2-bento__card--careers .dom-story2-bento__title { font-size: var(--fs-lg, 1.5rem); }
.dom-story2-bento__copy {
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: var(--c-ink-2);
	max-width: 38ch;
	margin: 0 0 1.75rem;
}
.dom-story2-bento__card--careers .dom-story2-bento__copy { color: color-mix(in srgb, var(--c-base) 82%, transparent); }
.dom-story2-bento__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	align-self: flex-start;
	font-weight: 600;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	color: var(--c-ink);
	min-height: 44px;
	cursor: pointer;
}
.dom-story2-bento__card--careers .dom-story2-bento__cta { color: var(--c-base); }
.dom-story2-bento__cta svg { width: 1rem; height: 1rem; transition: transform var(--t, 200ms) var(--ease-out); }
.dom-story2-bento__cta:hover svg { transform: translateX(3px); }

/* --- Closing CTA row --- */
.dom-story2-closing { max-width: 40rem; margin-inline: auto; text-align: center; }
.dom-story2-closing__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--fs-xl, 2rem);
	letter-spacing: -0.01em;
	color: var(--c-ink);
	margin: 0 0 0.85rem;
}
.dom-story2-closing__copy { font-size: var(--fs-md); color: var(--c-ink-2); margin: 0 0 1.75rem; }
.dom-story2-closing__cta { display: inline-block; text-decoration: none; cursor: pointer; }
.dom-story2-closing__note {
	margin: 1.5rem 0 0;
	font-size: var(--fs-sm);
	color: var(--c-muted);
}

@media (max-width: 781px) {
	.dom-story2-shell > * + * { margin-top: var(--wp--preset--spacing--60, 2rem); }
	.dom-story2-heritage__inner,
	.dom-story2-delivery__inner { padding: var(--wp--preset--spacing--60, 2rem) var(--wp--preset--spacing--50, 1.5rem); }
	.dom-story2-stats { gap: 1.5rem; }
	.dom-story2-stat__sep:nth-of-type(2) { display: none; }
	.dom-story2-bento { grid-template-columns: 1fr; }
	.dom-story2-bento__card { min-height: 0; padding: var(--wp--preset--spacing--60, 2rem); }
}

@media (prefers-reduced-motion: no-preference) {
	.dom-story2-bento__card--locator:hover,
	.dom-story2-bento__card--careers:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) {
	.dom-story2-bento__card { transition: border-color var(--t, 200ms) var(--ease-out), background-color var(--t, 200ms) var(--ease-out), transform var(--t, 200ms) var(--ease-out); }
}

/* ===========================================================================
   OFFERS — /offers/ (dom-offers2-*)
   =========================================================================== */
.dom-offers2-shell { display: block; }
.dom-offers2-shell > * + * { margin-top: var(--wp--preset--spacing--70, 3rem); }

.dom-offers2-section-head { margin-bottom: var(--wp--preset--spacing--50, 1.5rem); }
.dom-offers2-section-head .dom-eyebrow { margin: 0 0 0.5rem; display: block; }
.dom-offers2-section-head h2 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--fs-xl, 2rem);
	letter-spacing: -0.01em;
	color: var(--c-ink);
	margin: 0;
}

/* Hero pair: two on-sale shortcode products, given breathing room + a hairline base */
.dom-offers2-hero {
	padding-bottom: var(--wp--preset--spacing--60, 2rem);
	border-bottom: 1px solid var(--c-line);
}
/* The featured pair splits the full row (container widths only — card internals owned elsewhere) */
.dom-offers2-hero ul.products.columns-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--gutter, 1.5rem);
	width: 100%;
}
.dom-offers2-hero ul.products.columns-2 li.product { width: 100%; margin: 0; }
@media (max-width: 781px) {
	.dom-offers2-hero ul.products.columns-2 { grid-template-columns: 1fr; }
}

/* Full grid: paginated on-sale shortcode products */
.dom-offers2-grid { }

/* Quiet urgency strip — static, hairline framed, uppercase tracked. NOT a marquee. */
.dom-offers2-strip {
	background: var(--c-surface);
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
}
.dom-offers2-strip__inner {
	max-width: var(--content-max, 1320px);
	margin-inline: auto;
	padding: 1.1rem var(--wp--preset--spacing--60, 2rem);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	text-align: center;
}
.dom-offers2-strip__item {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--c-ink-2);
	white-space: nowrap;
}
.dom-offers2-strip__sep { color: var(--c-muted); }

@media (max-width: 781px) {
	.dom-offers2-shell > * + * { margin-top: var(--wp--preset--spacing--60, 2rem); }
	.dom-offers2-strip__item { white-space: normal; }
}

/* Beat the theme's blue content-link rule (high specificity) — editorial ink voice */
.page .wp-block-post-content .dom-story2-bento__cta { color: var(--c-ink) !important; }
.page .wp-block-post-content .dom-story2-bento__card--careers .dom-story2-bento__cta { color: var(--c-base) !important; }
.page .wp-block-post-content .dom-story2-closing__cta,
.page .wp-block-post-content a.wp-element-button { color: var(--c-base) !important; background: var(--c-ink); }

/* ===========================================================================
   STORE LOCATOR — /store-locator/ (dom-loc2-*) editorial dealer gazetteer
   =========================================================================== */
.dom-loc2-shell { display: block; }
.dom-loc2-shell > * + * { margin-top: var(--wp--preset--spacing--70, 3rem); }

/* Reuse the bands' background-bleed technique */
.dom-loc2-bleed {
	position: relative;
	box-shadow: 0 0 0 100vmax var(--c-ink);
	clip-path: inset(0 -100vmax);
}

/* --- Flagship hero band --- */
.dom-loc2-flag { background: var(--c-ink); color: var(--c-base); }
.dom-loc2-flag__inner {
	max-width: var(--content-max, 1320px);
	margin-inline: auto;
	padding: var(--wp--preset--spacing--80, 4rem) 0;
}
.dom-loc2-flag__kicker {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: color-mix(in srgb, var(--c-base) 65%, transparent);
	margin: 0 0 1rem;
}
.dom-loc2-flag__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: clamp(1.9rem, 4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--c-base);
	margin: 0 0 0.9rem;
	max-width: 18ch;
}
.dom-loc2-flag__addr {
	font-style: normal;
	font-size: var(--fs-md, 1.125rem);
	color: color-mix(in srgb, var(--c-base) 80%, transparent);
	margin: 0 0 1.75rem;
}
.dom-loc2-flag__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.dom-loc2-flag__tel {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: clamp(1.35rem, 2.6vw, 1.9rem);
	letter-spacing: 0.01em;
	font-variant-numeric: tabular-nums;
	color: var(--c-base) !important;
	text-decoration: none;
}
.dom-loc2-flag__tel:hover { text-decoration: underline; text-underline-offset: 5px; }
.dom-loc2-flag__dir {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0 1.5rem;
	background: var(--c-base);
	color: var(--c-ink) !important;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-decoration: none;
	border-radius: var(--r-sm);
	cursor: pointer;
}
.dom-loc2-flag__dir:hover { background: var(--c-surface-2); }
.dom-loc2-flag__dir svg, .dom-loc2-row__dir svg { width: 0.85em; height: 0.85em; }
.dom-loc2-flag__mail {
	font-size: var(--fs-sm, 0.875rem);
	color: color-mix(in srgb, var(--c-base) 70%, transparent) !important;
	text-decoration: none;
}
.dom-loc2-flag__mail:hover { color: var(--c-base) !important; text-decoration: underline; }

/* --- West->east region rail (the signature) --- */
.dom-loc2-rail { display: flex; align-items: center; gap: 1rem; }
.dom-loc2-rail__edge {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--c-muted);
	flex: 0 0 auto;
}
.dom-loc2-rail__list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	gap: 0.5rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.dom-loc2-rail__list::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 5px;
	height: 1px;
	background: var(--c-line);
}
.dom-loc2-rail__item a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	padding: 0 0.75rem 0.4rem;
	min-height: 44px;
	text-decoration: none;
	color: var(--c-ink) !important;
}
.dom-loc2-rail__dot {
	width: 11px; height: 11px;
	border-radius: 50%;
	background: var(--c-base);
	border: 2px solid var(--c-ink);
	position: relative;
	z-index: 1;
	transition: background-color 180ms ease;
}
.dom-loc2-rail__item a:hover .dom-loc2-rail__dot,
.dom-loc2-rail__item a:focus-visible .dom-loc2-rail__dot { background: var(--c-ink); }
.dom-loc2-rail__name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1;
}
.dom-loc2-rail__count {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--c-muted);
}

/* --- Region directory sections --- */
.dom-loc2-region { scroll-margin-top: 6rem; }
.dom-loc2-region__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	border-bottom: 2px solid var(--c-ink);
	padding-bottom: 0.7rem;
	margin-bottom: 0;
}
.dom-loc2-region__title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--c-ink);
}
.dom-loc2-region__count {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--c-muted);
	white-space: nowrap;
}
.dom-loc2-region__rows { display: block; }

/* --- Directory rows: name | address | contact | directions --- */
.dom-loc2-row {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, 1.2fr) auto;
	gap: 0.5rem 2rem;
	align-items: baseline;
	padding: 1.1rem 0;
	border-bottom: 1px solid var(--c-line);
	transition: background-color 180ms ease;
}
.dom-loc2-row:hover { background: var(--c-surface); }
.dom-loc2-row__name {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.3;
	margin: 0;
	color: var(--c-ink);
}
.dom-loc2-row__addr {
	font-style: normal;
	font-size: var(--fs-sm, 0.875rem);
	line-height: 1.5;
	color: var(--c-ink-2);
}
.dom-loc2-row__contact {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	column-gap: 1rem;
	row-gap: 0.2rem;
	font-size: var(--fs-sm, 0.875rem);
}
.dom-loc2-row__tel a {
	color: var(--c-ink) !important;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}
.dom-loc2-row__tel a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dom-loc2-row__mail {
	color: var(--c-muted) !important;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.dom-loc2-row__mail:hover { color: var(--c-ink) !important; text-decoration: underline; }
.dom-loc2-row__dir {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	align-self: center;
	min-height: 44px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--c-ink) !important;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.dom-loc2-row__dir svg { transition: transform 180ms ease; }
.dom-loc2-row__dir:hover svg { transform: translate(2px, -2px); }

@media (max-width: 900px) {
	.dom-loc2-row {
		grid-template-columns: 1fr auto;
		grid-template-areas: "name dir" "addr dir" "contact dir";
		gap: 0.25rem 1rem;
	}
	.dom-loc2-row__name { grid-area: name; }
	.dom-loc2-row__addr { grid-area: addr; }
	.dom-loc2-row__contact { grid-area: contact; }
	.dom-loc2-row__dir { grid-area: dir; }
}
@media (max-width: 781px) {
	.dom-loc2-shell > * + * { margin-top: var(--wp--preset--spacing--60, 2rem); }
	.dom-loc2-flag__inner { padding: var(--wp--preset--spacing--60, 2.5rem) 0; }
	.dom-loc2-rail__edge { display: none; }
	.dom-loc2-rail__name { font-size: 0.9375rem; }
}
@media (prefers-reduced-motion: reduce) {
	.dom-loc2-row, .dom-loc2-rail__dot, .dom-loc2-row__dir svg { transition: none; }
}

/* Specificity fixes: beat theme content-heading margins + WP auto-centering */
.page .wp-block-post-content .dom-loc2-flag__title { margin: 0 0 0.9rem; }
.page .wp-block-post-content .dom-loc2-region__title,
.page .wp-block-post-content .dom-loc2-row__name { margin: 0; }
.page .wp-block-post-content:has(.dom-loc2-shell) > .dom-lead {
	margin-left: 0 !important;
	margin-right: auto !important;
}
