/* ==========================================================================
   Affordable Marble Restoration — component stylesheet
   Foundational scaffold matching the approved Figma design. Colors/spacing
   mirror theme.json; kept as plain CSS vars here too so this file works
   standalone in the editor/preview without relying on block-editor output.

   Deliberately contains ONLY classed .amr-* component rules — this file is
   also loaded into the block-editor iframe via add_editor_style() so blocks
   preview WYSIWYG. Bare-tag resets (body/p/h1-h4/img/a) live in reset.css,
   which is front-end-only, so they never leak onto ACF's own field UI.
   ========================================================================== */

:root {
	--amr-bg: #FAF8F4;
	--amr-surface: #FFFFFF;
	--amr-surface-alt: #F9F7F3;
	--amr-text: #1C1917;
	--amr-text-muted: #6B6560;
	--amr-accent: #00758A;
	--amr-accent-dark: #00505F;
	--amr-bronze: #B77830;
	--amr-border: #E7E2DA;
	--amr-on-accent: #FFFFFF;
	--amr-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	/* Fixed at 1312px (the 1440px-viewport design) up to 1440px, then scales
	   at the same ratio (1312/1440 ≈ 91.1vw) instead of staying frozen at
	   1312px and just padding out with empty space on wide screens — capped
	   at 1440px so forms/grids don't keep stretching on ultra-wide monitors
	   (was 1760px, which visibly sprawled at 1920px+). */
	--amr-content-width: clamp(1312px, 91.1vw, 1440px);
	--amr-radius: 12px;
}

.amr-container {
	max-width: var(--amr-content-width);
	margin: 0 auto;
	padding: 0 24px;
}
.amr-section { padding: 40px 0; }
.amr-section--alt { background: var(--amr-surface-alt); }
.amr-section--sm { padding: 36px 0; }
.amr-section--md { padding: 40px 0; }
.amr-section--lg { padding: 40px 0; }
.amr-text-muted { color: var(--amr-text-muted); margin: 10px 0 0; }

.amr-block-placeholder {
	margin: 24px;
	padding: 16px;
	border: 1px dashed var(--amr-border);
	color: var(--amr-text-muted);
	font-size: 13px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.amr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	border: none;
	cursor: pointer;
}
.amr-btn--white { background: #fff; color: var(--amr-accent-dark); }
.amr-btn--accent { background: var(--amr-accent); color: #fff; }
.amr-btn--outline { background: transparent; color: var(--amr-text); border: 1px solid var(--amr-border); }
.amr-btn--outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }

/* ── Site header ──────────────────────────────────────────────────────── */
.amr-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--amr-surface);
	border-bottom: 1px solid var(--amr-border);
}
/* A hero can float a transparent header over itself by wrapping both in
   a container and adding this modifier via JS/template logic if desired.
   `position:sticky` doesn't work while it's also floating out of flow, so
   it starts absolute (transparent, over the hero) and initHeaderScroll()
   (assets/js/main.js) flips it to fixed + solid — i.e. "stuck" — once the
   visitor scrolls past the very top. */
.amr-site-header--floating {
	position: absolute;
	top: 0; left: 0; right: 0;
	background: transparent;
	border-bottom: none;
}
.amr-site-header--floating .amr-site-header__logo {
	color: #fff;
}
.amr-site-header--floating .amr-nav a {
	color: rgba(255,255,255,0.85);
}
.amr-site-header--floating .amr-site-header__phone {
	color: #fff;
}
.amr-site-header--floating.is-scrolled {
	position: fixed;
	background: var(--amr-surface);
	border-bottom: 1px solid var(--amr-border);
	box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.amr-site-header--floating.is-scrolled .amr-site-header__logo {
	color: var(--amr-text);
}
.amr-site-header--floating.is-scrolled .amr-nav a {
	color: var(--amr-text-muted);
}
.amr-site-header--floating.is-scrolled .amr-site-header__phone {
	color: var(--amr-accent);
}
.amr-site-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
}
.amr-site-header__logo { font-weight: 700; font-size: 15px; letter-spacing: 0.02em; }
.amr-site-header__logo--image img { height: 44px; width: auto; display: block; }
.amr-nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.amr-nav > li { position: relative; }
.amr-nav a { font-size: 14px; font-weight: 500; color: var(--amr-text-muted); display: flex; align-items: center; gap: 5px; }
.amr-nav .menu-item-has-children > a::after {
	content: '';
	width: 6px; height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
	opacity: 0.65;
}
/* Dropdown — CSS-only (hover + :focus-within for keyboard users), matches
   the "Services"/"Stone Types" nav items that now list every real
   published entry instead of only linking to the archive. */
.amr-nav .sub-menu {
	position: absolute;
	top: 100%; left: 0;
	margin: 14px 0 0;
	padding: 8px;
	list-style: none;
	min-width: 200px;
	background: var(--amr-surface);
	border: 1px solid var(--amr-border);
	border-radius: 12px;
	box-shadow: 0 16px 32px rgba(0,0,0,0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 60;
}
.amr-nav .menu-item-has-children:hover > .sub-menu,
.amr-nav .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.amr-nav .sub-menu a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 13.5px; color: var(--amr-text); white-space: nowrap; }
.amr-nav .sub-menu a:hover { background: var(--amr-surface-alt); color: var(--amr-accent-dark); }
/* 3rd level (e.g. Stone Types → Marble → Polishing) — the 2nd-level <li>
   needs its own positioning context so its own .sub-menu flies out to the
   right instead of inheriting the top-level <li>'s "open below" position. */
.amr-nav .sub-menu .menu-item-has-children { position: relative; }
.amr-nav .sub-menu .menu-item-has-children > a { display: flex; align-items: center; }
.amr-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-left: auto; }
.amr-nav .sub-menu .sub-menu { top: -8px; left: 100%; margin: 0 0 0 4px; }
/* Phone popover — the header phone opens a small Call/WhatsApp choice
   instead of dialing directly, since WhatsApp uses a different real number
   than the main toll-free line (see amr_whatsapp_number() in inc/setup.php). */
.amr-phone-popover { position: relative; display: flex; align-items: center; }
.amr-site-header__phone {
	display: flex; align-items: center; gap: 8px;
	font-weight: 600; font-size: 14px; color: var(--amr-accent);
	background: none; border: none; padding: 0; font-family: inherit; cursor: pointer;
}
.amr-site-header__phone-icon { flex: none; }
.amr-phone-popover__panel {
	position: absolute; top: calc(100% + 14px); right: 0; z-index: 60;
	width: 250px;
	background: var(--amr-surface);
	border: 1px solid var(--amr-border);
	border-radius: 12px;
	box-shadow: 0 16px 32px rgba(0,0,0,0.14);
	padding: 8px;
	display: flex; flex-direction: column; gap: 2px;
}
/* The unconditional display:flex above (needed for the open state) is
   author-origin CSS, so it silently wins over the browser's own
   [hidden]{display:none} regardless of source order — same class of bug as
   .amr-location-list__city (see style.css history). This restores it. */
.amr-phone-popover__panel[hidden] { display: none; }
.amr-phone-popover__option { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--amr-text); text-decoration: none; transition: background 0.2s ease; }
.amr-phone-popover__option:hover { background: var(--amr-surface-alt); }
.amr-phone-popover__option-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,117,138,0.1); color: var(--amr-accent); }
.amr-phone-popover__option--whatsapp .amr-phone-popover__option-icon { background: rgba(37,211,102,0.12); color: #25D366; }
.amr-phone-popover__option-text { display: flex; flex-direction: column; line-height: 1.35; }
.amr-phone-popover__option-text strong { font-size: 14px; }
.amr-phone-popover__option-text small { font-size: 12.5px; color: var(--amr-text-muted); }

/* Mobile-panel-only pieces of .amr-site-header__nav (logo/close row, divider,
   contact links) — hidden above the 900px breakpoint, where that div is just
   the desktop inline nav wrapper and these would otherwise show up as extra
   content in the header alongside the normal menu. */
.amr-site-header__nav-top,
.amr-site-header__nav-divider,
.amr-site-header__nav-contact { display: none; }

/* Hamburger toggle + backdrop — hidden above the 900px breakpoint, where
   .amr-nav is still the inline/hover-dropdown nav; below it, initMobileNav()
   (assets/js/main.js) drives the open/close state these rules render. */
.amr-site-header__nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 36px; height: 36px; border: none; background: transparent; cursor: pointer; padding: 0; flex: none; }
.amr-site-header__nav-toggle-bar { display: block; width: 20px; height: 2px; background: var(--amr-text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.amr-site-header--floating .amr-site-header__nav-toggle-bar { background: #fff; }
.amr-site-header--floating.is-scrolled .amr-site-header__nav-toggle-bar { background: var(--amr-text); }
.amr-site-header__nav-toggle[aria-expanded="true"] .amr-site-header__nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.amr-site-header__nav-toggle[aria-expanded="true"] .amr-site-header__nav-toggle-bar:nth-child(2) { opacity: 0; }
.amr-site-header__nav-toggle[aria-expanded="true"] .amr-site-header__nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
html.amr-no-scroll, html.amr-no-scroll body { overflow: hidden; }

.amr-site-header__actions { display: flex; align-items: center; gap: 14px; }
.amr-site-header__search { display: flex; align-items: center; }
.amr-site-header__search-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: transparent; color: var(--amr-text-muted); cursor: pointer; border-radius: 50%; padding: 0; transition: background 0.2s ease, color 0.2s ease; }
.amr-site-header__search-toggle:hover { background: var(--amr-surface-alt); color: var(--amr-text); }
.amr-site-header--floating .amr-site-header__search-toggle { color: rgba(255,255,255,0.85); }
.amr-site-header--floating.is-scrolled .amr-site-header__search-toggle { color: var(--amr-text-muted); }
/* :hover and .amr-site-header--floating have equal specificity (2 classes
   each), so without this the floating white color always won regardless of
   source order intent — the hover background is light, so a still-white
   icon vanished into it. */
.amr-site-header--floating .amr-site-header__search-toggle:hover { color: var(--amr-text); }
.amr-site-header__search-panel { position: absolute; top: calc(100% + 14px); right: 0; z-index: 60; width: 380px; background: var(--amr-surface); border: 1px solid var(--amr-border); border-radius: 12px; box-shadow: 0 16px 32px rgba(0,0,0,0.14); padding: 14px; }
.amr-site-header__search-panel .amr-search-form { max-width: none; }

/* ── Search form (header toggle, 404, Blog, search.php no-results) ─────── */
.amr-search-form { display: flex; align-items: center; gap: 10px; max-width: 420px; }
.amr-search-form__field-wrap { position: relative; flex: 1; }
.amr-search-form__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--amr-text-muted); pointer-events: none; }
.amr-search-form__input { width: 100%; border: 1px solid var(--amr-border); border-radius: 999px; padding: 12px 16px 12px 40px; font-size: 14px; font-family: inherit; background: var(--amr-surface); color: var(--amr-text); }
.amr-search-form__input:focus { outline: none; border-color: var(--amr-accent); }
.amr-search-form__submit { border: none; background: var(--amr-accent); color: #fff; border-radius: 999px; padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; flex: none; }
.amr-search-form__submit:hover { background: var(--amr-accent-dark); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.amr-hero {
	position: relative;
	height: 85vh; /* fallback for browsers without dvh support */
	height: 85dvh; /* real visible viewport height — 100vh sizes against the
		browser's toolbar-hidden maximum on mobile, not what's actually on
		screen, leaving genuine extra scrollable space below the footer */
	min-height: 640px;
	background-size: cover;
	background-position: center;
	color: #fff;
	display: flex;
	align-items: flex-end;
}
.amr-hero__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.05) 100%);
}
.amr-hero__inner {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
	padding-top: 130px;
	padding-bottom: 140px;
	flex-wrap: wrap;
	width: 100%;
	height: 100%;
}
/* The headline/CTA column sits at the bottom of the hero; the quote form
   sits near the top instead of matching it — without this they'd share one
   flex line sized to the taller form, which pins the shorter text column's
   "bottom" right next to the form regardless of how tall the hero actually
   is, leaving a large dead gap above both and reading as everything being
   crammed toward the bottom edge. */
.amr-hero__content { max-width: 680px; align-self: center; }
.amr-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Real third-party certification badges (BBB / HomeAdvisor / Angie's List —
   see amr_seed_homepage_content()) — white chips so each logo's own colors
   stay legible over the hero photo, regardless of what's behind them. */
.amr-hero__trust-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.amr-hero__trust-badge { height: 56px; width: auto; border-radius: 8px; padding: 4px 8px; display: block; }
.amr-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.amr-hero__badge { padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.amr-hero__badge--bronze { background: var(--amr-bronze); color: #fff; }
.amr-hero__badge--translucent { background: rgba(255,255,255,0.15); color: #fff; }
.amr-hero__overline { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.7; text-transform: uppercase; margin: 0 0 8px; }
.amr-hero__headline { font-size: 48px; font-weight: 800; line-height: 1.1; margin: 0 0 16px; }
.amr-hero__sub { font-size: 16px; opacity: 0.9; max-width: 560px; margin: 0; }
.amr-hero__actions { display: flex; align-items: center; gap: 20px; row-gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.amr-hero__actions .amr-btn { flex-shrink: 0; white-space: nowrap; }
.amr-hero__phone { font-weight: 500; opacity: 0.85; color: inherit; text-decoration: none; }
.amr-hero__form { width: 360px; max-width: 100%; align-self: flex-start; }
.amr-hero__watch { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: none; color: rgba(255,255,255,0.9); font-size: 14px; font-weight: 500; font-family: inherit; cursor: pointer; padding: 0; text-align: left; }
.amr-hero__watch-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255,255,255,0.2); }
.amr-hero__watch-icon::before,
.amr-hero__watch-icon::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.7);
	animation: amr-watch-pulse 2.2s ease-out infinite;
}
.amr-hero__watch-icon::after { animation-delay: 1.1s; }
@keyframes amr-watch-pulse {
	0% { transform: scale(1); opacity: 0.8; }
	100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.amr-hero__watch-icon::before,
	.amr-hero__watch-icon::after,
	.amr-before-after__handle::before,
	.amr-before-after__handle::after { animation: none; }
}
.amr-hero__press-mention { font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.75; margin: 14px 0 0; }

/* "Sub" size — shorter breadcrumb-topped banner for Service/Stone-Type/detail pages */
.amr-hero--sub { height: auto; min-height: 460px; align-items: center; }
.amr-hero--sub .amr-hero__overlay { background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.38) 100%); }
.amr-hero--sub .amr-hero__inner { padding-top: 88px; padding-bottom: 40px; align-items: flex-start; }
.amr-hero--sub .amr-hero__content { margin-top: 0; max-width: 760px; }
.amr-hero--sub .amr-hero__headline { font-size: 42px; }
.amr-hero__breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.amr-hero__breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.amr-hero__breadcrumb-sep { color: rgba(255,255,255,0.55); }
.amr-hero__breadcrumb-current { color: #fff; }

/* Blog listing Sub-Hero — flat accent color, no photo (archive.php) */
.amr-blog-hero { background: var(--amr-accent); color: #fff; }
.amr-blog-hero__inner { padding-top: 88px; padding-bottom: 44px; }
.amr-blog-hero__title { font-size: 34px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; }
.amr-blog-hero__sub { font-size: 15px; color: rgba(255,255,255,0.85); margin: 0 0 24px; }
.amr-blog-hero__search .amr-search-form { max-width: 420px; }

/* 404 page — same flat teal treatment as the Blog Sub-Hero, centered */
.amr-404-hero { background: var(--amr-accent); color: #fff; min-height: 460px; display: flex; align-items: center; }
.amr-404-hero__inner { text-align: center; max-width: 620px; padding: 130px 24px 64px; }
.amr-404-hero__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin: 0 0 12px; }
.amr-404-hero__title { font-size: 40px; font-weight: 800; line-height: 1.15; margin: 0 0 14px; }
.amr-404-hero__sub { font-size: 16px; opacity: 0.9; margin: 0 0 28px; }
.amr-404-hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.amr-404-hero__search { display: flex; justify-content: center; margin: 0 0 24px; }
.amr-404-hero__search .amr-search-form { max-width: 420px; width: 100%; }
.amr-inline-phone-note { margin: 20px 0 0; font-size: 14px; color: var(--amr-text-muted); }
.amr-inline-phone-note a { color: var(--amr-accent); font-weight: 600; }

.amr-video-lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.amr-video-lightbox[hidden] { display: none; }
.amr-video-lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.85); }
.amr-video-lightbox__box { position: relative; width: min(900px, 92vw); }
.amr-video-lightbox__video { width: 100%; border-radius: 8px; display: block; }
.amr-video-lightbox__video[hidden] { display: none; }
.amr-video-lightbox__yt-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; }
.amr-video-lightbox__yt-wrap[hidden] { display: none; }
.amr-video-lightbox__yt-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.amr-video-lightbox__close { position: absolute; top: -40px; right: 0; background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }

/* Global "Get a Free Quote" popup (template-parts/modals/quote-modal.php) —
   same fixed-overlay pattern as .amr-video-lightbox above. Scrolls its own
   backdrop (not just the panel) so a tall form + trust row still reaches a
   short mobile viewport instead of clipping off-screen. */
.amr-quote-modal { position: fixed; inset: 0; z-index: 100; display: flex; overflow-y: auto; padding: 40px 20px; }
.amr-quote-modal[hidden] { display: none; }
.amr-quote-modal__backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); cursor: pointer; }
.amr-quote-modal__panel { position: relative; width: min(420px, 100%); margin: auto; }
.amr-quote-modal__close { position: absolute; top: -36px; right: 0; background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }

/* ── Quote form card ──────────────────────────────────────────────────── */
.amr-quote-card {
	background: rgba(255,255,255,0.96);
	border-radius: 16px;
	padding: 28px;
	color: var(--amr-text);
	box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.amr-quote-card__title { font-size: 18px; font-weight: 700; line-height: 1.2; margin: 0 0 4px; }
.amr-quote-card__subtitle { font-size: 13px; color: var(--amr-text-muted); margin: 0 0 16px; }
.amr-quote-card__form input,
.amr-quote-card__form select,
.amr-quote-card__form textarea {
	width: 100%;
	padding: 12px 16px;
	margin-bottom: 12px;
	border: 1px solid var(--amr-border);
	border-radius: 6px;
	background: var(--amr-surface-alt);
	font-family: inherit;
	font-size: 14px;
	color: var(--amr-text);
	box-sizing: border-box;
}
/* Reset the native OS/browser select widget (which was rendering at its own
   intrinsic size — narrower/shorter than the other fields, with its own
   colored dropdown-arrow control — instead of picking up the width/padding/
   height above) and draw a matching custom arrow instead. */
.amr-quote-card__form select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B6560' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}
.amr-quote-card__form button,
.amr-quote-card__form input[type="submit"] {
	width: 100%;
	padding: 14px;
	border: none;
	border-radius: 6px;
	background: var(--amr-accent);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
}
.amr-quote-card__form button:disabled { opacity: 0.6; cursor: not-allowed; }
.amr-quote-card__status { font-size: 13px; margin: 10px 0 0; min-height: 1.2em; }
.amr-quote-card__status.is-success { color: #1a7f4b; }
.amr-quote-card__status.is-error { color: #c0392b; }
.amr-quote-card__form input.is-invalid { border-color: #c0392b; box-shadow: 0 0 0 1px #c0392b; }
.amr-quote-card__disclaimer { font-size: 11px; color: var(--amr-text-muted); margin: 12px 0 0; }
.amr-quote-card__offer { background: var(--amr-bronze); color: #fff; text-align: center; font-size: 12px; font-weight: 700; padding: 10px; border-radius: 8px; margin-bottom: 18px; }
.amr-quote-card__trust { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.amr-quote-card__trust-rating { font-size: 11.5px; font-weight: 600; color: #D98E1F; white-space: nowrap; }
.amr-quote-card__trust img { height: 16px; width: auto; }

/* Standalone placement (Figma "Quote Form (contextual)") — centered card
   with a visible border/shadow, since it's no longer floating on a photo */
.amr-quote-form-standalone { max-width: 560px; margin: 0 auto; }
.amr-quote-form-standalone .amr-quote-card { background: var(--amr-surface); border: 1px solid var(--amr-border); box-shadow: 0 8px 32px rgba(0,0,0,0.06); padding: 40px; text-align: center; }
.amr-quote-form-standalone .amr-quote-card__title { font-size: 24px; }
.amr-quote-form-standalone .amr-quote-card__subtitle { margin-bottom: 20px; }
.amr-quote-form-standalone .amr-quote-card__form input,
.amr-quote-form-standalone .amr-quote-card__form select,
.amr-quote-form-standalone .amr-quote-card__form textarea { background: var(--amr-surface-alt); text-align: left; }
/* Split variant — added when related_pills/related_links are set (see
   quote-form.php), merging the "We also serve: / Explore by stone type:"
   cross-links content into a second column instead of the form sitting
   alone in a mostly-empty section, with those links further down the page.
   Overrides the centered-single-card layout above (same specificity, later
   in the cascade — both classes are present together on the wrapper). */
.amr-quote-form-standalone--split { display: flex; align-items: stretch; gap: 48px; max-width: none; }
.amr-quote-form-standalone--split .amr-quote-card { flex: 1 1 50%; }
.amr-quote-form-standalone--split .amr-cross-links { flex: 1 1 50%; }

/* ── Cards / grid ─────────────────────────────────────────────────────── */
.amr-card-grid-head { text-align: center; margin-bottom: 32px; }
.amr-card-grid-head h2, .amr-card-grid-head h3 { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0; }
.amr-card-grid-head p { font-size: 15px; margin: 10px 0 0; }
.amr-card-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.amr-card-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.amr-card-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.amr-card-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
/* Confirmed via real measurement (not a layout bug): .amr-container's own
   24px side padding was symmetric on both edges all along — just far more
   visible on the right for these specific "Browse by Category" photos,
   whose darker content near that edge contrasts against the page background
   more than the lighter marble tones near the left edge. Removing the side
   padding just for this one grid (the only "overlay" variant usage
   site-wide) so photos reach the block's true edges on both mobile and
   desktop, per direct request — every other card-grid keeps the standard
   .amr-container padding. */
.amr-card-grid--bleed { padding-left: 16px; padding-right: 16px; }
.amr-card {
	display: block;
	background: var(--amr-surface);
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--amr-border);
	color: inherit;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.amr-card[hidden] { display: none; }
.amr-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px rgba(0,0,0,0.12); border-color: transparent; }
/* aspect-ratio, not a fixed height — the card's own width already flexes
   with its grid column (which itself now flexes with the wider container,
   see --amr-content-width), so a flat px height turned photos into an
   increasingly letterboxed strip on wide screens instead of scaling with
   the card. Ratio matches this variant's real proportions at the original
   1440px design width, so nothing changes there — only wider screens. */
.amr-card__image { aspect-ratio: 1.7; height: auto; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.amr-card:hover .amr-card__image { transform: scale(1.06); }
.amr-card__cta { transition: color 0.2s ease; }
.amr-card__body { padding: 16px; }
.amr-card__meta { font-size: 11px; font-weight: 600; color: var(--amr-accent); text-transform: uppercase; margin: 0 0 4px; }
.amr-card__header {
display: flex;
justify-content: space-between;
width: 100%;
align-items: center;
}
.amr-card__header svg {
    width: 20px; height: 15px;
}
.amr-card__header svg g {
    fill: var(--amr-text);
}
.amr-card--overlay .amr-card__header svg g {
    fill: #fff;
}
.amr-card__title { font-size: 16px; font-weight: 600; line-height: 1.2; margin: 0 0 6px; }
.amr-card__text { font-size: 13px; color: var(--amr-text-muted); margin: 0; }
.amr-card__cta { display: block; font-size: 12.5px; font-weight: 600; color: var(--amr-accent); margin-top: 8px; }
/* "button" variant (cta_style field) — a real button-styled affordance for
   card grids where a plain text link reads as too quiet (e.g. "{Stone}
   Services" on Stone Type pages). Still just a <span>, not a second <a> —
   the whole card is already the clickable element (see card-grid.php). */
.amr-card__cta--button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: fit-content;
	background: var(--amr-accent);
	color: #fff;
	padding: 8px 16px;
	border-radius: 15px;
	margin: 12px auto 0;
	transition: background 0.2s ease, transform 0.2s ease;
}
.amr-card:hover .amr-card__cta--button { background: var(--amr-accent-dark); }

/* Icon cards (no photo — e.g. "Commercial / Residential / Yachts" on the
   homepage) — centered icon-in-circle + centered copy, since there's no
   image to left-align text against. */
.amr-card--icon .amr-card__body { text-align: center; padding-top: 28px; }
.amr-card__icon-wrap { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(0,117,138,0.1); margin: 0 auto 16px; }
.amr-card__icon { width: 32px; height: 32px; }

/* Blog Preview uses a "flat" card — no border/background, just stacked content.
   Skip the lift+shadow hover (nothing to cast it from) but keep the image zoom. */
.amr-card--flat { background: none; border: none; border-radius: 0; }
.amr-card--flat:hover { transform: none; box-shadow: none; }
.amr-card--flat .amr-card__image { aspect-ratio: 1.855; height: auto; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.amr-card--flat .amr-card__body { padding: 0; }

/* "Overlay" variant — title+CTA sit over the image with a dark gradient
   (Figma "Browse by Category" on the Gallery page) */
.amr-card--overlay { position: relative; border: none; width: 100%; aspect-ratio: 1.855; height: auto; }
/* Confirmed via real headless-Chrome measurement: .amr-card__image's base
   rule (below) sets aspect-ratio:1.7, which was never cancelled here. With
   height:100% also set, the browser computed width from that height using
   the leftover 1.7 ratio (~458px of a 500px-wide card) instead of
   stretching to inset:0's implied 100% width — the real cause of the
   photo not reaching the card's right edge. width:100% + aspect-ratio:auto
   forces a true stretch-to-fill on both axes. */
.amr-card--overlay .amr-card__image {
	position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
	background-color: #ccc; /* fallback while the image loads */
}
/* No featured image at all (e.g. Location archive entries — no real per-city
   photography, see amr_seed_locations()) — a brand-color gradient instead of
   plain gray, so the tile still looks intentional rather than broken. */
.amr-card__image--placeholder { background: linear-gradient(135deg, var(--amr-accent), var(--amr-accent-dark)); }
.amr-card--overlay .amr-card__image::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
}
.amr-card--overlay .amr-card__body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; }
.amr-card--overlay .amr-card__title { color: #fff; font-size: 17px; }
.amr-card--overlay .amr-card__cta { color: rgba(255,255,255,0.8); margin-top: 2px; }

/* "Compact" variant — smaller image + name-only pill, used for "Stone We
   Restore in Your Home" on Service/Stone-Type pages */
.amr-card--compact { border-radius: 12px; }
.amr-card--compact .amr-card__image { aspect-ratio: 2.348; height: auto; }
.amr-card--compact .amr-card__body { padding: 0 12px; height: 40px; display: flex; align-items: center; background: var(--amr-surface-alt); }
.amr-card--compact .amr-card__title { font-size: 13px; margin: 0; }
.amr-card-grid__show-more { display: flex; justify-content: center; margin-top: 32px; }
.amr-card-grid__footer { display: flex; align-items: baseline; gap: 10px; margin-top: 28px; font-size: 14px; }
.amr-card-grid__footer-label { font-weight: 600; color: var(--amr-text); white-space: nowrap; }
.amr-card-grid__footer-text { color: var(--amr-text-muted); }

/* ── Photo Gallery (filterable grid + lightbox) ──────────────────────────── */
.amr-gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.amr-gallery-filter { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--amr-border); background: var(--amr-surface); font-family: inherit; font-size: 13px; font-weight: 600; color: var(--amr-text-muted); cursor: pointer; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.amr-gallery-filter:hover { border-color: var(--amr-accent); color: var(--amr-accent); }
.amr-gallery-filter.is-active { background: var(--amr-accent); border-color: var(--amr-accent); color: #fff; }
.amr-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.amr-gallery-grid__item { aspect-ratio: 1; border-radius: var(--amr-radius); overflow: hidden; border: none; padding: 0; cursor: pointer; transition: transform 0.3s ease; }
.amr-gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amr-gallery-grid__item:hover { transform: scale(1.03); }
.amr-gallery-grid__item[hidden] { display: none; }

.amr-photo-lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.amr-photo-lightbox[hidden] { display: none; }
.amr-photo-lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }
.amr-photo-lightbox__img { position: relative; max-width: 88vw; max-height: 85vh; object-fit: contain; border-radius: 8px; display: block; }
.amr-photo-lightbox__close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; z-index: 1; }
.amr-photo-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 30px; line-height: 1; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; z-index: 1; }
.amr-photo-lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.amr-photo-lightbox__nav--prev { left: 24px; }
.amr-photo-lightbox__nav--next { right: 24px; }
@media (max-width: 560px) {
	.amr-photo-lightbox__nav { width: 40px; height: 40px; font-size: 22px; }
	.amr-photo-lightbox__nav--prev { left: 8px; }
	.amr-photo-lightbox__nav--next { right: 8px; }
}

/* ── Video Gallery (thumbnail grid → shared video lightbox) ─────────────── */
.amr-video-gallery__heading { text-align: center; font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 32px; }
.amr-video-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.amr-video-gallery__item { display: flex; flex-direction: column; gap: 10px; border: none; background: none; padding: 0; cursor: pointer; text-align: left; font-family: inherit; }
.amr-video-gallery__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--amr-radius); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform 0.3s ease; }
.amr-video-gallery__item:hover .amr-video-gallery__thumb { transform: scale(1.03); }
.amr-video-gallery__thumb::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.25); transition: background 0.2s ease; }
.amr-video-gallery__item:hover .amr-video-gallery__thumb::after { background: rgba(0,0,0,0.4); }
.amr-video-gallery__play { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--amr-accent); display: flex; align-items: center; justify-content: center; font-size: 18px; padding-left: 3px; }
.amr-video-gallery__title { font-size: 14px; font-weight: 600; color: var(--amr-text); line-height: 1.4; }

/* ── Before / After slider ────────────────────────────────────────────── */
.amr-before-after__frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--amr-radius);
	width: 100%;
	aspect-ratio: 2 / 1;
	max-height: 100vh;
	background: #111;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	touch-action: none;
}
.amr-before-after__img {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	-webkit-user-drag: none;
	user-drag: none;
	pointer-events: none;
}
/* The before-image wrap stays the FULL frame width at all times — reveal is
   done with clip-path, not by shrinking the wrap's own width. That's what
   used to cause the wrap's child <img> to briefly render squeezed at the
   wrong size until JS measured the frame and corrected it in a visible jump;
   clip-path needs no JS measurement, so it's correct from first paint. */
.amr-before-after__before-wrap {
	position: absolute; inset: 0;
	width: 100%;
	overflow: hidden;
	clip-path: inset( 0 50% 0 0 );
}
.amr-before-after__handle {
	position: absolute; top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 48px; height: 48px;
	background: #fff; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.25);
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}
/* Same expanding-ring pulse already used on the hero's "Watch it happen"
   play button (see amr-watch-pulse) — draws the eye to the fact that this
   handle is draggable, since nothing else about a plain circle suggests it. */
.amr-before-after__handle::before,
.amr-before-after__handle::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.8);
	animation: amr-watch-pulse 2.2s ease-out infinite;
}
.amr-before-after__handle::after { animation-delay: 1.1s; }
.amr-before-after__tag {
	position: absolute; top: 16px;
	font-size: 24px; font-weight: 700; color: #fff;
	letter-spacing: 0.04em;
}
.amr-before-after__tag--before { left: 16px; }
.amr-before-after__tag--after { right: 16px; }
.amr-before-after__caption { margin-top: 12px; font-size: 13px; color: var(--amr-text-muted); }
.amr-before-after__intro { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.amr-before-after__intro-heading { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; }
.amr-before-after__intro-sub { font-size: 15px; color: var(--amr-text-muted); margin: 0; }
/* Split layout — set when `steps` is populated (see before-after-slider.php):
   the slider on the left, the "Restoration Process" steps list (that used to
   be its own separate block right above this one) on the right, instead of
   the slider sitting alone full-width with the process list stacked above it. */
/* ── Before / After gallery grid ──────────────────────────────────────────
   Several pairs side by side (Gallery page). The frame, handle and tags are
   the shared .amr-before-after markup, so only what changes at half width is
   restated here: the 24px corner tags and the 48px handle are sized for a
   full-width slider and crowd the frame when two sit in a row. */
.amr-ba-gallery__intro { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.amr-ba-gallery__heading { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; }
.amr-ba-gallery__sub { font-size: 15px; color: var(--amr-text-muted); margin: 0; }
.amr-ba-gallery__grid { display: grid; gap: 32px 28px; }
/* minmax(0,1fr), not 1fr: a grid track's default min-width is auto, so the
   image inside would refuse to shrink below its intrinsic width and push the
   row wider than the container. */
.amr-ba-gallery__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.amr-ba-gallery__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.amr-ba-gallery__item { margin: 0; }
.amr-ba-gallery__item .amr-before-after__tag { top: 12px; font-size: 15px; letter-spacing: 0.06em; text-shadow: 0 1px 3px rgba(0,0,0,0.45); }
.amr-ba-gallery__item .amr-before-after__tag--before { left: 12px; }
.amr-ba-gallery__item .amr-before-after__tag--after { right: 12px; }
.amr-ba-gallery__item .amr-before-after__handle { width: 40px; height: 40px; }
.amr-ba-gallery__meta { margin-top: 12px; }
.amr-ba-gallery__cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amr-accent); margin-bottom: 4px; }
.amr-ba-gallery__title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0; }
.amr-ba-gallery__caption { font-size: 13px; color: var(--amr-text-muted); line-height: 1.45; margin: 4px 0 0; }

.amr-before-after-split { display: flex; align-items: center; gap: 48px; }
.amr-before-after-split .amr-before-after { flex: 1 1 50%; }
.amr-before-after-split__steps { flex: 1 1 50%; }
.amr-before-after-split__steps h2, .amr-before-after-split__steps h3 { font-size: 28px; font-weight: 700; line-height: 1.2; margin: 0 0 24px; }
.amr-before-after-split__list { display: flex; flex-direction: column; gap: 20px; }
.amr-before-after-split__step { display: flex; align-items: flex-start; gap: 14px; }
.amr-before-after-split__step-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--amr-accent); color: #fff; font-weight: 700; font-size: 13px; }
.amr-before-after-split__step-icon img { width: 20px; height: 20px; filter: brightness(0) invert(1); object-fit: contain; }
.amr-before-after-split__step-text { display: flex; flex-direction: column; }
.amr-before-after-split__step-title { font-size: 16px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.amr-before-after-split__step-desc { font-size: 14px; color: var(--amr-text-muted); line-height: 1.45; }

/* ── Stats bar ────────────────────────────────────────────────────────── */
.amr-stats-bar {
	display: flex;
	justify-content: center;
	gap: 96px;
	padding: 48px 24px;
	flex-wrap: wrap;
}
.amr-stats-bar__item { text-align: center; }
.amr-stats-bar__number { font-size: 32px; font-weight: 800; color: var(--amr-accent); }
.amr-stats-bar__label { font-size: 12px; color: var(--amr-text-muted); font-weight: 500; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.amr-faq__heading { text-align: center; font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 32px; }
.amr-faq__list { max-width: 880px; margin: 0 auto; }

/* accordion layout — collapsed <details>, first item open */
.amr-faq__item { border-bottom: 1px solid var(--amr-border); padding: 18px 0; }
.amr-faq__question { cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 500; list-style: none; transition: color 0.2s ease; }
.amr-faq__question:hover { color: var(--amr-accent); }
.amr-faq__question::-webkit-details-marker { display: none; }
.amr-faq__icon { display: inline-block; flex-shrink: 0; margin-left: 16px; color: var(--amr-accent); transition: transform 0.2s ease; }
.amr-faq__item[open] .amr-faq__icon { transform: rotate(45deg); }
.amr-faq__answer { padding-top: 12px; color: var(--amr-text-muted); font-size: 14px; line-height: 1.6; }

/* open layout — every question/answer expanded, questions as real headings */
.amr-faq__item.amr-faq__item--open {
	background: var(--amr-surface-alt);
	border: 1px solid var(--amr-border);
	border-left: 3px solid var(--amr-accent);
	border-radius: 0 var(--amr-radius) var(--amr-radius) 0;
	padding: 20px 24px;
	margin-bottom: 16px;
	transition: box-shadow 0.2s ease;
}
.amr-faq__item.amr-faq__item--open:last-child { margin-bottom: 0; }
.amr-faq__item.amr-faq__item--open:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.amr-faq__item--open .amr-faq__question {
	cursor: default;
	display: flex;
	justify-content: flex-start;
	align-items: baseline;
	gap: 10px;
	color: var(--amr-accent-dark);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 10px;
}
.amr-faq__item--open .amr-faq__question::before {
	content: 'Q';
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--amr-accent);
	color: var(--amr-on-accent);
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}
.amr-faq__item--open .amr-faq__answer {
	margin-left: 30px;
	padding: 2px 0 2px 16px;
	border-left: 2px solid var(--amr-border);
	color: var(--amr-text);
	font-size: 15px;
	line-height: 1.65;
}
.amr-faq__item--open .amr-faq__answer p:last-child { margin-bottom: 0; }

/* ── Testimonials ─────────────────────────────────────────────────────── */
.amr-testimonials__heading { text-align: center; font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 32px; }
.amr-testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.amr-review-card { background: var(--amr-surface); border: 1px solid var(--amr-border); border-radius: 14px; padding: 28px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.amr-review-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px rgba(0,0,0,0.1); }
.amr-review-card__badge { display: block; height: 36px; width: auto; margin: 0 auto 12px; }
.amr-review-card__stars { color: #D98E1F; font-size: 13px; margin: 0 0 8px; }
.amr-review-card__quote { font-size: 13.5px; color: var(--amr-text-muted); margin: 0 0 12px; }
.amr-review-card__name { font-size: 13px; font-weight: 600; margin: 0; }

/* "Quote" layout — single large centered pull-quote (Figma "Testimonial (real)") */
.amr-testimonial-quote { max-width: 800px; margin: 0 auto; text-align: center; }
.amr-testimonial-quote__stars { color: #D98E1F; font-size: 15px; font-weight: 600; margin: 0 0 24px; }
.amr-testimonial-quote__text { font-size: 24px; font-weight: 600; line-height: 1.38; color: var(--amr-text); margin: 0 0 24px; }
.amr-testimonial-quote__name { font-size: 13px; font-weight: 500; color: var(--amr-text-muted); margin: 0; }

/* ── Tips card (Care Guide) ────────────────────────────────────────────── */
.amr-tips-card-section { background: var(--amr-accent); }
.amr-tips-card { background: rgba(255,255,255,0.08); border-radius: 16px; padding: 48px; color: #fff; }
.amr-tips-card__head { margin-bottom: 32px; }
.amr-tips-card__heading { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 6px; }
.amr-tips-card__subheading { font-size: 14px; opacity: 0.8; margin: 0; }
.amr-tips-card__row { display: flex; gap: 24px; flex-wrap: wrap; }
.amr-tips-card__item { flex: 1 1 260px; max-width: 300px; }
.amr-tips-card__item-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.amr-tips-card__item-text { font-size: 13px; line-height: 1.45; opacity: 0.75; margin: 0; }
/* Service pages: the Hero's CTA pair repeated in the card's empty right side. */
.amr-tips-card--with-cta { display: flex; align-items: center; gap: 40px; }
.amr-tips-card--with-cta .amr-tips-card__main { flex: 1 1 auto; min-width: 0; }
.amr-tips-card__cta { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.amr-tips-card__cta .amr-btn { white-space: nowrap; }
.amr-tips-card__phone { color: #fff; font-weight: 500; opacity: 0.85; text-decoration: none; white-space: nowrap; }
.amr-tips-card__phone:hover { opacity: 1; }
@media (max-width: 1180px) {
	.amr-tips-card--with-cta { flex-direction: column; align-items: flex-start; gap: 28px; }
	.amr-tips-card--with-cta .amr-tips-card__main { width: 100%; }
	.amr-tips-card__cta { flex-direction: row; flex-wrap: wrap; gap: 20px; }
}

/* Inline CTA — dropped directly into a blog post's content (no section/container wrapper) */
.amr-inline-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	background: var(--amr-surface);
	border: 1px solid var(--amr-border);
	border-radius: 12px;
	padding: 22px 28px;
	margin: 32px 0;
}
.amr-inline-cta__title { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.amr-inline-cta__sub { font-size: 13px; color: var(--amr-text-muted); margin: 0; }
.amr-inline-cta__btn { flex-shrink: 0; background: var(--amr-accent); color: #fff; font-size: 13px; font-weight: 600; padding: 11px 20px; border-radius: 6px; text-decoration: none; }

/* ── Cross links ───────────────────────────────────────────────────────── */
.amr-cross-links { padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.amr-cross-links__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.amr-cross-links__label { font-size: 14px; font-weight: 600; color: var(--amr-text-muted); }
.amr-cross-links__pill { border: 1px solid var(--amr-accent); color: var(--amr-accent); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 16px; text-decoration: none; }
.amr-cross-links__link { font-size: 13px; font-weight: 600; color: var(--amr-accent); text-decoration: none; }
/* Embedded in the quote-form split layout (see .amr-quote-form-standalone--split
   above) instead of standing alone as its own full-width centered strip. */
/* Embedded in the quote-form split layout (see .amr-quote-form-standalone--split
   above) as its own card — grouped/divided rows with an uppercase label,
   real pill buttons, and an arrow-icon link list — instead of the plain
   wrapped-text row the standalone Cross Links block above renders. */
.amr-cross-links--column { align-items: stretch; text-align: left; gap: 0; padding: 32px; background: var(--amr-surface); border: 1px solid var(--amr-border); border-radius: var(--amr-radius); box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.amr-cross-links__group { padding: 20px 0; }
.amr-cross-links__group:first-child { padding-top: 0; }
.amr-cross-links__group:last-child { padding-bottom: 0; }
.amr-cross-links__group + .amr-cross-links__group { border-top: 1px solid var(--amr-border); }
.amr-cross-links--column .amr-cross-links__label { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amr-text-muted); margin: 0 0 14px; }
.amr-cross-links__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.amr-cross-links--column .amr-cross-links__pill { padding: 9px 18px; font-size: 14px; }
.amr-cross-links__links { display: flex; flex-direction: column; gap: 12px; }
.amr-cross-links--column .amr-cross-links__link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; width: fit-content; }
.amr-cross-links--column .amr-cross-links__link svg { transition: transform 0.2s ease; }
.amr-cross-links--column .amr-cross-links__link:hover svg { transform: translateX(3px); }

/* ── Blog listing ─────────────────────────────────────────────────────── */
.amr-archive { padding: 64px 24px; }
.amr-post-list__item { display: flex; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--amr-border); }
.amr-post-list__image { flex: 0 0 280px; align-self: flex-start; overflow: hidden; border-radius: var(--amr-radius); }
/* width/height:auto override the img's own width/height attributes (640×480),
   which otherwise left a 480px-tall thumbnail in a 280px column. */
.amr-post-list__image img { width: 100%; height: auto; border-radius: var(--amr-radius); aspect-ratio: 280/170; object-fit: cover; display: block; transition: transform 0.5s ease; }
.amr-post-list__item:hover .amr-post-list__image img { transform: scale(1.06); }
.amr-post-list__meta { font-size: 12px; color: var(--amr-accent); font-weight: 600; margin: 0; }
.amr-post-list__title { font-size: 20px; font-weight: 700; line-height: 1.2; margin: 10px 0; transition: color 0.2s ease; }
.amr-post-list__item:hover .amr-post-list__title { color: var(--amr-accent); }
.amr-post-list__excerpt { color: var(--amr-text-muted); font-size: 14px; margin: 0; }
.amr-post-list__excerpt p { margin: 0; }
.amr-post-list__link { font-size: 13px; font-weight: 600; color: var(--amr-accent); }

/* ── Search results ───────────────────────────────────────────────────── */
.amr-archive__header h1 span { color: var(--amr-accent); }
.amr-search-empty { text-align: center; max-width: 480px; margin: 0 auto 48px; }
.amr-search-empty p { color: var(--amr-text-muted); margin: 0 0 20px; }
.amr-search-empty .amr-search-form { margin: 0 auto; }

/* ── Article (single post) ────────────────────────────────────────────── */
.amr-article__header { padding: 56px 24px 32px; }
.amr-breadcrumb { font-size: 13px; color: var(--amr-text-muted); margin-bottom: 16px; }
.amr-article__meta { font-size: 12px; font-weight: 600; color: var(--amr-accent); text-transform: uppercase; margin: 0; }
.amr-article__title { font-size: 38px; font-weight: 700; line-height: 1.2; max-width: 760px; margin: 8px 0 0; }
.amr-article__hero img { width: 100%; max-height: 480px; object-fit: cover; }
.amr-article__body { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.amr-legal-content { max-width: 760px; }
/* The 760px column is a reading measure for Privacy Policy / Terms. Service and
   stone pages use the same block for marketing copy with lists and tables, so
   the --rich variant takes the site's normal container width instead of sitting
   in a narrow strip while every section around it runs full width. */
.amr-legal-content--rich { max-width: var(--amr-content-width); }
.amr-article__content { font-size: 16px; line-height: 1.75; }
.amr-article__content p { margin-bottom: 1.4em; }
.amr-article__content h2 { font-size: 26px; margin: 1.6em 0 0.6em; }
.amr-article__content h3 { font-size: 20px; margin: 1.4em 0 0.5em; }
.amr-article__content h2:first-child, .amr-article__content h3:first-child { margin-top: 0; }
.amr-article__content ul, .amr-article__content ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.amr-article__content li { margin-bottom: 0.5em; }
.amr-article__content li:last-child { margin-bottom: 0; }
.amr-article__content a { color: var(--amr-accent); text-decoration: underline; text-underline-offset: 2px; }
.amr-article__content strong { font-weight: 700; }
.amr-article__content hr { border: none; border-top: 1px solid var(--amr-border); margin: 2em 0; }
.amr-article__content blockquote { margin: 0 0 1.4em; padding: 4px 20px; border-left: 3px solid var(--amr-accent); color: var(--amr-text-muted); }
.amr-article__content blockquote p:last-child { margin-bottom: 0; }
.amr-article__content img { max-width: 100%; height: auto; border-radius: var(--amr-radius); margin: 0.4em 0 1.4em; display: block; }
.amr-article__content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: 14.5px; }
.amr-article__content th, .amr-article__content td { text-align: left; padding: 10px 14px; border: 1px solid var(--amr-border); }
.amr-article__content th { background: var(--amr-surface-alt); font-weight: 600; }
/* Wide tables scroll sideways on phones instead of overflowing the page
   (legal-content.php wraps every <table>); the hint shows only on narrow screens. */
.amr-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.4em; }
.amr-table-scroll table { margin-bottom: 0; min-width: 560px; }
.amr-table-scroll::after { content: "Swipe sideways to see the whole table \2192"; display: none; font-size: 12px; color: var(--amr-text-muted); margin-top: 6px; }
@media (max-width: 640px) { .amr-table-scroll::after { display: block; } }

/* Rich variant — long-form service/stone-type descriptions get color and
   hover interaction that a legal page (Privacy Policy, Terms) shouldn't have;
   see the post-type check in legal-content.php. */
.amr-legal-content--rich .amr-article__content h2 { color: var(--amr-accent-dark); border-left: 4px solid var(--amr-accent); padding-left: 16px; }
.amr-legal-content--rich .amr-article__content h3 { color: var(--amr-accent-dark); }
.amr-legal-content--rich .amr-article__content ul { list-style: none; padding-left: 0; }
.amr-legal-content--rich .amr-article__content ul li { position: relative; padding-left: 24px; }
.amr-legal-content--rich .amr-article__content ul li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--amr-bronze); }
.amr-legal-content--rich .amr-article__content table { border: 1px solid var(--amr-border); border-radius: var(--amr-radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.amr-legal-content--rich .amr-article__content th { background: var(--amr-accent-dark); color: #fff; border-color: var(--amr-accent-dark); }
.amr-legal-content--rich .amr-article__content tbody tr { transition: background 0.2s ease; }
.amr-legal-content--rich .amr-article__content tbody tr:nth-child(even) { background: var(--amr-surface-alt); }
.amr-legal-content--rich .amr-article__content tbody tr:hover { background: rgba(0,117,138,0.08); }
.amr-legal-content--rich .amr-article__content .amr-faq-item { background: var(--amr-surface-alt); border-left: 3px solid var(--amr-accent); border-radius: 0 var(--amr-radius) var(--amr-radius) 0; padding: 14px 18px; margin-bottom: 14px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.amr-legal-content--rich .amr-article__content .amr-faq-item:hover { transform: translateX(4px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.amr-legal-content--rich .amr-article__content .amr-faq-item p { margin-bottom: 0; }
.amr-legal-content--rich .amr-article__content .amr-faq-item strong { color: var(--amr-accent-dark); }
.amr-article__share { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--amr-border); font-size: 13px; }
.amr-article__share a { width: 30px; height: 30px; border-radius: 50%; background: var(--amr-surface-alt); display: inline-flex; align-items: center; justify-content: center; }

/* ── Site footer ──────────────────────────────────────────────────────── */
.amr-site-footer { background: #1c1815; color: #fff; }
.amr-site-footer__main { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 32px; padding: 64px 24px 40px; }
.amr-site-footer__heading { font-size: 12px; font-weight: 600; opacity: 0.55; text-transform: uppercase; margin: 0 0 12px; }
.amr-site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.amr-site-footer__col a { font-size: 14px; opacity: 0.85; }
.amr-site-footer__logo { margin-bottom: 12px; }
.amr-site-footer__logo img { height: 48px; width: auto; display: block; }
.amr-site-footer__name { font-weight: 700; margin: 0 0 8px; }
.amr-site-footer__tagline { font-size: 13px; opacity: 0.6; margin: 0; }
.amr-site-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.amr-site-footer__social a { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; transition: background 0.2s ease; }
.amr-site-footer__social a:hover { background: var(--amr-accent); }
.amr-site-footer__contact { display: flex; justify-content: space-between; padding: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; opacity: 0.85; }
.amr-site-footer__legal { background: rgba(0,0,0,0.3); }
.amr-site-footer__legal-inner { display: flex; justify-content: space-between; padding: 16px 24px; font-size: 12px; opacity: 0.5; }
.amr-site-footer__legal-inner nav { display: flex; gap: 20px; }

/* ── Checklist ────────────────────────────────────────────────────────── */
.amr-checklist__head { text-align: center; margin-bottom: 40px; }
.amr-checklist__head h2, .amr-checklist__head h3 { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; }
.amr-checklist__col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.amr-checklist__col li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.amr-checklist__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amr-bronze); flex: none; }
/* "Split" layout (e.g. "Signs Your Stone Needs Restoration") — a real photo
   next to a 3-column grid of icon-badge cards, instead of a plain bullet
   list (or later, a same-icon-everywhere card list) sitting alone on the
   section background, which read as too flat/empty/generic. */
.amr-checklist--split { display: flex; align-items: center; gap: 48px; }
.amr-checklist--split .amr-checklist__photo { flex: 1 1 42%; aspect-ratio: 4 / 5; border-radius: 16px; background-size: cover; background-position: center; }
.amr-checklist--split .amr-checklist__content { flex: 1 1 58%; }
.amr-checklist--split .amr-checklist__head { text-align: left; margin-bottom: 28px; }
.amr-checklist__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.amr-checklist__items li { display: flex; align-items: flex-start; gap: 12px; background: var(--amr-surface); border: 1px solid var(--amr-border); border-radius: var(--amr-radius); padding: 14px 16px; font-weight: 500; font-size: 14px; line-height: 1.4; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.amr-checklist__items li:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); border-color: transparent; }
.amr-checklist__icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; margin-top: 1px; border-radius: 50%; background: rgba(183,120,48,0.12); color: var(--amr-bronze); }

/* "Groups" layout — independent lists side by side, each with its own
   sub-heading (Figma "Issues and Benefits") */
.amr-checklist-groups { display: flex; gap: 80px; justify-content: center; flex-wrap: wrap; }
.amr-checklist-groups__col { flex: 1 1 400px; max-width: 600px; }
.amr-checklist-groups__heading { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 18px; }
.amr-checklist-groups .amr-checklist__col { gap: 14px; }
.amr-checklist-groups .amr-checklist__col li { font-size: 15px; }
.amr-checklist-groups .amr-checklist__dot { background: var(--amr-accent); width: 7px; height: 7px; }

/* ── Promo banner ─────────────────────────────────────────────────────── */
.amr-promo-banner { background: var(--amr-accent); padding: 28px 0; }
.amr-promo-banner__inner { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.amr-promo-banner__text { margin: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.amr-promo-banner__eyebrow { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7); }
.amr-promo-banner__headline { font-size: 20px; font-weight: 700; color: #fff; }
.amr-promo-banner__cta { background: #fff; color: var(--amr-accent-dark); font-weight: 600; font-size: 14px; padding: 10px 22px; border-radius: 6px; white-space: nowrap; text-decoration: none; }

/* ── Services split ───────────────────────────────────────────────────── */
.amr-services-split { display: flex; align-items: center; gap: 48px; }
.amr-services-split__photo { flex: 1 1 50%; aspect-ratio: 7 / 6; border-radius: 16px; background-size: cover; background-position: center; }
.amr-services-split__content { flex: 1 1 50%; }
/* heading_level defaults to h3 (amr_section_heading_level()) and the seed
   content never overrides it, so this rule silently never matched anything —
   the heading rendered at the browser's bare h3 size, which read as "lost"
   next to the tall photo. */
/* Both headings are centered — the rows/steps below are their own centered,
   equal-width card list (see .amr-services-split__row/__step below), so a
   centered heading sits coherently above them instead of jumping against a
   flush-left edge. */
.amr-services-split__content h2, .amr-services-split__content h3 { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 24px; text-align: center; }
.amr-services-split__rows { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
/* Each row is now a card with a badge instead of bare text — the plain
   label+dash+description line had no visual anchor and got visually lost
   against the tall photo. Padding/badge size are shared with
   .amr-services-split__step below so both lists' left edges line up exactly
   instead of the badges starting at two different X positions. */
/* flex-wrap intentionally NOT set here — the icon must stay a fixed left
   column with the text always beside it; only .amr-services-split__text /
   __step-text (below) wrap their own content, so long descriptions never
   slide underneath the icon on a new, unindented line. */
.amr-services-split__row, .amr-services-split__step { margin: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--amr-surface-alt); border-radius: var(--amr-radius); }
.amr-services-split__index, .amr-services-split__step-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 50%; font-weight: 700; font-size: 13px; }
.amr-services-split__text, .amr-services-split__step-text { flex: 1 1 auto; min-width: 0; }
.amr-services-split__index { background: rgba(183,120,48,0.12); color: var(--amr-bronze); }
/* Optional compact step list (e.g. "How It Works") — sits inside this same
   text column, right under the rows above, rather than as its own full-width
   section further down the page. */
.amr-services-split__steps-heading { font-size: 22px; font-weight: 700; color: var(--amr-text); margin: 0 0 16px; text-align: center; }
.amr-services-split__steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.amr-services-split__step-icon { background: rgba(0,117,138,0.1); color: var(--amr-accent); }
.amr-services-split__step-icon img { width: 18px; height: 18px; object-fit: contain; }
.amr-services-split__text, .amr-services-split__step-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.amr-services-split__step-title { font-size: 15px; font-weight: 600; }
.amr-services-split__step-desc { font-size: 14px; color: var(--amr-text-muted); }
.amr-services-split__label { font-size: 18px; font-weight: 600; }
.amr-services-split__desc { font-size: 15px; color: var(--amr-text-muted); }
.amr-services-split__featured { display: flex; align-items: center; justify-content: center; gap: 20px; }
.amr-services-split__featured-label { font-size: 12px; font-weight: 600; color: var(--amr-text-muted); }
.amr-services-split__featured img { height: 26px; width: auto; opacity: 0.7; }
/* Plain-paragraph mode (text field) — alternative to the checkmark __rows
   list, e.g. for a simple intro block with a CTA instead of a bulleted list. */
.amr-services-split__intro-text { font-size: 16px; line-height: 1.6; color: var(--amr-text-muted); text-align: center; margin: 0 0 24px; }
.amr-services-split__cta { display: flex; width: fit-content; margin: 0 auto 32px; }

/* ── Feature icons ────────────────────────────────────────────────────── */
.amr-feature-icons__heading { text-align: center; font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 48px; }
/* Grid, not flex-with-a-fixed-max-width — items were overflowing their row at
   widths where e.g. 4 × 280px + 3 × 56px gaps didn't quite fit, stranding the
   last item alone on its own line even though there was room to shrink
   everyone slightly instead. auto-fit/minmax divides the real available
   width evenly, however many items there are. */
.amr-feature-icons__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); justify-content: center; justify-items: center; gap: 40px 56px; }
.amr-feature-icons__item--column { max-width: 280px; }
.amr-feature-icons__item--column .amr-feature-icons__icon { width: 32px; height: 32px; margin-bottom: 10px; }
.amr-feature-icons__title { font-size: 17px; font-weight: 600; line-height: 1.2; margin: 0 0 8px; }
.amr-feature-icons__text { font-size: 14px; line-height: 1.45; color: var(--amr-text-muted); margin: 0; }

/* "Row" layout — larger accent-circle icon beside the text (Figma "Advantages") */
.amr-feature-icons__row--row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); justify-items: start; gap: 40px 64px; }
.amr-feature-icons__item--row { display: flex; align-items: flex-start; gap: 16px; max-width: 300px; text-align: left; }
.amr-feature-icons__item--row .amr-feature-icons__icon-wrap { flex: none; width: 44px; height: 44px; border-radius: 22px; background: var(--amr-accent); display: flex; align-items: center; justify-content: center; }
.amr-feature-icons__item--row .amr-feature-icons__icon { width: 22px; height: 22px; filter: brightness(0) invert(1); }

/* ── Steps ────────────────────────────────────────────────────────────── */
.amr-steps__heading { text-align: center; font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 40px; }
/* Grid, not flex+justify-content:center — with a variable item count (5
   steps on one page, 7 on another) a shorter last row used to center itself
   independently under the middle of the row above instead of lining up with
   any column. Grid keeps every row's items aligned to the same columns. */
.amr-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); justify-content: center; gap: 32px 24px; }
.amr-steps__item { max-width: 260px; }
/* Same 36px circle footprint as .amr-steps__icon below — most Steps blocks
   mix items with a real icon and items without one (only ~half the steps in
   a given process have a matching icon asset), so the numbered fallback has
   to match the icon's size/spacing exactly or the row's titles drift out of
   vertical alignment depending on which items got an icon. */
.amr-steps__number { width: 36px; height: 36px; border-radius: 18px; background: var(--amr-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.amr-steps__icon { width: 36px; height: 36px; border-radius: 18px; background: var(--amr-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.amr-steps__icon img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.amr-steps__title { font-size: 16px; font-weight: 700; line-height: 1.2; margin: 0 0 6px; }
.amr-steps__text { font-size: 13px; line-height: 1.45; color: var(--amr-text-muted); margin: 0; }

/* ── Social feed ──────────────────────────────────────────────────────── */
.amr-social-feed { display: flex; align-items: center; gap: 48px; margin-bottom: 32px; }
.amr-social-feed__content { flex: 1 1 50%; }
.amr-social-feed__badge { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amr-accent); background: var(--amr-surface-alt); border-radius: 20px; padding: 6px 14px; margin: 0 0 14px; }
.amr-social-feed__heading { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 10px; }
.amr-social-feed__sub { color: var(--amr-text-muted); margin: 0 0 20px; }
.amr-social-feed__follow { display: inline-flex; align-items: center; gap: 10px; background: var(--amr-accent); color: #fff; font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 30px; text-decoration: none; transition: background 0.2s ease; }
.amr-social-feed__follow:hover { background: var(--amr-accent-dark); }
.amr-social-feed__hero { flex: 1 1 50%; }
.amr-social-feed__hero a, .amr-social-feed__hero div { display: block; aspect-ratio: 1.1; border-radius: var(--amr-radius); background-size: cover; background-position: center; }
.amr-social-feed__strip { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.amr-social-feed__item { width: 140px; height: 140px; border-radius: 8px; background-size: cover; background-position: center; display: block; }

/* ── Photo banner (Service Areas / Final CTA) ─────────────────────────── */
.amr-photo-banner { position: relative; background-size: cover; background-position: center; color: #fff; display: flex; align-items: center; }
.amr-photo-banner--medium { min-height: 360px; }
.amr-photo-banner--tall { min-height: 420px; }
.amr-photo-banner__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.amr-photo-banner__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.amr-photo-banner__heading { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0; }
.amr-photo-banner__subtext { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.85); max-width: 900px; margin: 0; }
.amr-photo-banner__phone { font-size: 14px; color: rgba(255,255,255,0.8); margin: 0; }
.amr-photo-banner__phone a { font-weight: 600; color: #fff; text-decoration: none; }

/* ── Image banner (promo/ad slots between content sections) ──────────── */
.amr-image-banner { margin: 0; }
.amr-image-banner__link { display: block; }
.amr-image-banner__img { display: block; width: 100%; height: auto; border-radius: var(--amr-radius); }

/* ── Locations map ────────────────────────────────────────────────────── */
/* Photo/text split (matches .amr-services-split) — map on the right, content
   on the left, instead of a centered heading over a full-width map. */
.amr-locations-map { display: flex; align-items: center; gap: 48px; }
.amr-locations-map__content { flex: 1 1 50%; }
.amr-locations-map__map { flex: 1 1 50%; }
.amr-locations-map h2, .amr-locations-map h3 { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 12px; }
.amr-locations-map__subheading { font-size: 16px; color: var(--amr-text-muted); margin: 0 0 24px; }
.amr-locations-map__trust { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.amr-locations-map__trust li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; }
.amr-locations-map__trust-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: rgba(0,117,138,0.1); color: var(--amr-accent); }
.amr-locations-map__trust-icon img { width: 16px; height: 16px; object-fit: contain; }
.amr-locations-map__frame { height: 460px; border-radius: 20px; background: var(--amr-surface-alt); overflow: hidden; }

/* ── Office address cards (shared: Locations Map text column, Location List
   under its map) — data from amr_offices(), see template-parts/office-cards.php */
.amr-office-cards { display: grid; gap: 12px; }
.amr-office-cards--stack { grid-template-columns: 1fr 1fr; margin: 0 0 24px; } /* side by side in the map block's text column too */
.amr-office-cards--row { grid-template-columns: 1fr 1fr; margin-top: 16px; }
.amr-office-card { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border: 1px solid var(--amr-border); border-radius: 12px; color: inherit; text-decoration: none; min-width: 0; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.amr-office-card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(0,0,0,0.08); border-color: transparent; }
.amr-office-card__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,117,138,0.1); color: var(--amr-accent); }
.amr-office-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-style: normal; }
.amr-office-card__label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amr-accent); }
.amr-office-card__line { font-size: 15px; font-weight: 500; color: var(--amr-text); line-height: 1.4; overflow-wrap: break-word; }
/* Map column becomes a column flexbox so the frame keeps filling the height
   above the address row instead of the row pushing the section taller. */
.amr-location-list__map { display: flex; flex-direction: column; }
.amr-location-list__frame { flex: 1 1 auto; }

/* ── Lead magnet ──────────────────────────────────────────────────────── */
.amr-lead-magnet { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--amr-surface); border: 1px solid var(--amr-border); border-radius: 16px; padding: 40px 48px; flex-wrap: wrap; }
.amr-lead-magnet__content { max-width: 640px; }
.amr-lead-magnet__content h3 { font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; }
.amr-lead-magnet__content p { font-size: 15px; color: var(--amr-text-muted); margin: 0; }

/* ── Location list (Find Your City) ───────────────────────────────────── */
.amr-location-list__head { text-align: center; margin-bottom: 28px; }
.amr-location-list__head h2 { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 6px; }
.amr-location-list__panel { border: 1px solid var(--amr-border); border-radius: 16px; overflow: hidden; max-width: 700px; margin: 0 auto; }
.amr-location-list__search-wrap { position: relative; }
.amr-location-list__search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--amr-text-muted); pointer-events: none; }
.amr-location-list__search { width: 100%; border: none; border-bottom: 1px solid var(--amr-border); padding: 20px 20px 20px 46px; font-size: 14px; font-family: inherit; background: var(--amr-surface); }
.amr-location-list__search:focus { outline: none; background: var(--amr-surface-alt); }
.amr-location-list__groups { max-height: 480px; overflow-y: auto; padding: 12px 0; }
.amr-location-list__group-label { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--amr-text-muted); opacity: 0.8; text-transform: uppercase; margin: 12px 0 6px; padding: 0 20px; }
.amr-location-list__city { display: flex; align-items: center; height: 40px; padding: 0 20px; font-size: 14px; color: var(--amr-text); text-decoration: none; }
.amr-location-list__city:hover { background: var(--amr-surface-alt); }
/* The unconditional display:flex above beats the browser's default
   [hidden]{display:none} at equal specificity (author origin always wins
   over user-agent origin) — so the search JS's city.hidden = true silently
   did nothing. Without this, every city stayed visible no matter what was
   typed. */
.amr-location-list__city[hidden] { display: none; }
/* Split layout — set when `pins` is populated (see location-list.php):
   the search/list panel on the left, a real Google Map on the right, instead
   of the panel sitting alone full-width. This is the original Figma
   "Locator" pattern (list paired with a map) that had been split into two
   separate blocks on the page until a real map component existed to pair it
   with. align-items:stretch matches both columns' height to the taller one. */
.amr-location-list--split { display: flex; align-items: stretch; gap: 48px; }
.amr-location-list--split .amr-location-list__col { flex: 1 1 50%; }
.amr-location-list--split .amr-location-list__head { text-align: left; }
.amr-location-list--split .amr-location-list__panel { max-width: none; margin: 0; }
.amr-location-list__stat { font-size: 14px; font-weight: 600; color: var(--amr-accent); margin: 10px 0 0; }
.amr-location-list__map { flex: 1 1 50%; }
.amr-location-list__frame { height: 100%; min-height: 420px; border-radius: 20px; background: var(--amr-surface-alt); overflow: hidden; }

/* ── Contact main ──────────────────────────────────────────────────────── */
.amr-contact-main { display: flex; gap: 48px; align-items: center; }
.amr-contact-main__form { flex: 1 1 460px; max-width: 500px; }
.amr-contact-main__form .amr-quote-card { background: none; box-shadow: none; padding: 0; text-align: left; }
.amr-contact-main__form .amr-quote-card__title { font-size: 26px; }
.amr-contact-main__info { flex: 1 1 500px; display: flex; flex-direction: column; gap: 16px; }
.amr-contact-main__offices { display: flex; gap: 16px; flex-wrap: wrap; }
/* flex intentionally omitted from the base rule — it's reused both inside a
   ROW (.amr-contact-main__offices, where a flex-basis correctly sizes WIDTH)
   and a COLUMN (.amr-contact-main__info, where the same flex-basis number
   would instead size HEIGHT, forcing the compact phone/email cards to be
   that tall for just one line of text). Each context sets its own flex
   value below instead of sharing one that only makes sense in one of them. */
.amr-contact-info-card { border: 1px solid var(--amr-border); border-radius: 12px; padding: 20px 24px; min-width: 0; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.amr-contact-info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(0,0,0,0.08); border-color: transparent; }
.amr-contact-info-card--half { flex: 1 1 240px; }
.amr-contact-info-card--compact { display: flex; align-items: center; gap: 14px; padding: 14px 18px; color: inherit; text-decoration: none; }
.amr-contact-info-card--compact .amr-contact-info-card__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,117,138,0.1); color: var(--amr-accent); }
.amr-contact-info-card--compact .amr-contact-info-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.amr-contact-info-card--compact .amr-contact-info-card__label { margin: 0; }
.amr-contact-info-card--compact .amr-contact-info-card__value { font-weight: 600; }
.amr-contact-info-card__label { font-size: 13px; font-weight: 600; color: var(--amr-accent); margin: 0 0 6px; }
.amr-contact-info-card__value { font-size: 15px; color: var(--amr-text); margin: 0; overflow-wrap: break-word; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.amr-site-header__nav-toggle { display: flex; }
	/* Icon-only on narrow headers — the full number next to the search icon
	   and hamburger got tight on phones; the popover still shows it (and the
	   WhatsApp option) once tapped. */
	.amr-site-header__phone-text { display: none; }
	.amr-phone-popover__panel { width: 230px; }
	/* Full-screen takeover — logo (centered) + close button, then the menu,
	   a divider, and real contact info (phone/email) at the bottom, instead
	   of a narrow off-canvas drawer sitting next to a still-visible header. */
	.amr-site-header__nav {
		position: fixed;
		inset: 0;
		z-index: 90;
		background: var(--amr-surface);
		padding: 20px 24px 40px;
		overflow-y: auto;
		display: flex;
		flex-direction: column;
		transform: translateX(100%);
		transition: transform 0.25s ease;
	}
	.amr-site-header__nav.is-open { transform: translateX(0); }
	.amr-site-header__nav-top { position: relative; display: flex; align-items: center; justify-content: center; padding: 10px 0 28px; flex: none; }
	.amr-site-header__nav-logo { color: var(--amr-text); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; text-decoration: none; }
	.amr-site-header__nav-logo img { height: 40px; width: auto; display: block; }
	.amr-site-header__nav-close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: transparent; color: var(--amr-text); cursor: pointer; padding: 0; }
	.amr-site-header__nav-divider { height: 1px; background: rgba(28,25,23,0.14); margin: 28px 0; flex: none; }
	.amr-site-header__nav-contact { display: flex; flex-direction: column; gap: 14px; flex: none; margin-top: 10px;}
	.amr-site-header__nav-contact-heading { font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amr-text-muted); margin: 0; }
	.amr-site-header__nav-contact-link { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--amr-text); text-decoration: none; } /* 44px tap target (audit 2.5) */
	.amr-site-header__nav-contact-link svg { flex: none; color: var(--amr-accent); }
	.amr-site-header__nav-contact-link:hover { color: var(--amr-accent); }
	.amr-site-header__nav-social { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
	.amr-site-header__nav-social a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--amr-surface-alt); color: var(--amr-text); transition: background 0.2s ease, color 0.2s ease; }
	.amr-site-header__nav-social a:hover { background: var(--amr-accent); color: #fff; }
	.amr-site-header__nav-social-letter { font-size: 13px; font-weight: 700; }
	.amr-nav { display: flex; flex-direction: column; gap: 2px; }
	.amr-nav > li { width: 100%; }
	.amr-nav a { width: 100%; font-size: 16px; padding: 13px 4px; color: var(--amr-text); }
	/* .amr-site-header--floating .amr-nav a (higher specificity — 2 classes)
	   sets white text for the desktop transparent-over-hero header; without
	   this override it still wins here even though the mobile panel is
	   always a solid white full-screen background, making the links
	   invisible on any page whose hero opens full-bleed. */
	.amr-site-header--floating .amr-nav a { color: var(--amr-text); }
	.amr-nav .menu-item-has-children > a::after { margin-left: auto; transition: transform 0.2s ease; }
	.amr-nav .menu-item-has-children.is-open > a::after { transform: rotate(225deg); }
	/* Hover has no equivalent on touch, so the dropdown becomes a tap-to-expand
	   accordion here instead (toggled via .is-open on the <li>, added by
	   initMobileNav()) rather than the desktop hover/focus-within reveal. */
	.amr-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; margin: 0; padding: 0 0 4px 14px; min-width: 0; display: none; }
	.amr-nav .menu-item-has-children.is-open > .sub-menu { display: block; }
	.amr-nav .sub-menu a { padding: 10px 4px; font-size: 15px; }
	.amr-site-header__search-panel { width: 100%; }
	/* iOS Safari auto-zooms the whole page on focus when an input's font-size
	   is under 16px — this must stay at or above that regardless of the
	   desktop 14px value above. */
	.amr-search-form__input { font-size: 16px; }
	.amr-search-form__submit { padding: 12px 14px; }
	.amr-hero, .amr-hero--sub { height: auto; min-height: 0; }
	.amr-hero__inner { flex-direction: column; align-items: stretch; padding-top: 100px; }
	.amr-hero__form { width: 100%; }
	.amr-testimonials__grid,
	.amr-card-grid--cols-3,
	.amr-card-grid--cols-4,
	.amr-card-grid--cols-5 { grid-template-columns: repeat(2, 1fr); }
	.amr-site-footer__main { grid-template-columns: 1fr 1fr; }
	.amr-post-list__item { flex-direction: column; }
	.amr-post-list__image { flex: none; }
	.amr-checklist--split { flex-direction: column; }
	.amr-checklist--split .amr-checklist__photo { width: 100%; aspect-ratio: 16 / 9; }
	.amr-checklist--split .amr-checklist__head { text-align: center; }
	.amr-checklist__items { grid-template-columns: repeat(2, 1fr); }
	.amr-services-split { flex-direction: column; }
	.amr-services-split__photo { width: 100%; }
	.amr-locations-map { flex-direction: column; }
	.amr-locations-map__map { width: 100%; }
	.amr-quote-form-standalone--split { flex-direction: column; }
	.amr-before-after-split { flex-direction: column; }
	.amr-ba-gallery__grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.amr-location-list--split { flex-direction: column; }
	.amr-location-list__frame { flex: none; }
	.amr-feature-icons__row { gap: 32px; }
	.amr-lead-magnet { flex-direction: column; align-items: flex-start; }
	/* .amr-contact-main uses align-items:flex-start for the desktop two-column
	   layout, so once it collapses to a single column its children no longer
	   stretch to the container's width — they shrink-to-fit their own content
	   instead, which overflows on an unbreakable string like the email
	   address. align-self:stretch restores full-width columns here only. */
	.amr-contact-main { flex-direction: column; }
	.amr-contact-main__form,
	.amr-contact-main__info { align-self: stretch; max-width: 100%; }
	.amr-checklist-groups { gap: 40px; }
	/* Legal bar: nav links first (full width), then the copyright/credit line
	   below — swapped from the desktop space-between row, which otherwise
	   squeezes the long copyright string against the links on a narrow phone. */
	.amr-site-footer__legal-inner { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
	.amr-site-footer__legal-inner nav { justify-content: space-between; }
}
@media (max-width: 560px) {
	.amr-hero__headline { font-size: 32px; }
	/* The overline city list (e.g. "Miami · Fort Lauderdale · Boca Raton ·
	   West Palm Beach") is long enough to wrap to 2 lines on narrow phones —
	   a smaller size/tighter tracking keeps that wrap looking intentional
	   instead of an oversized desktop line just breaking awkwardly. */
	.amr-hero__overline { font-size: 10.5px; letter-spacing: 0.06em; line-height: 1.4; }
	.amr-testimonials__grid,
	.amr-card-grid--cols-3,
	.amr-card-grid--cols-4,
	.amr-card-grid--cols-5 { grid-template-columns: 1fr; }
	.amr-site-footer__main { grid-template-columns: 1fr; }
	.amr-site-footer__contact { flex-direction: column; gap: 8px; }
	.amr-promo-banner__inner { flex-direction: column; text-align: center; }
	.amr-steps { grid-template-columns: 1fr; }
	.amr-checklist__items { grid-template-columns: 1fr; }
	.amr-social-feed { flex-direction: column; align-items: flex-start; gap: 24px; }
	.amr-social-feed__hero { width: 100%; }
	/* 2-column grid instead of a full vertical stack: 4 items lay out 2x2,
	   and 3 items lay out as 2 + 1, with that last odd-one-out centered on
	   its own row instead of sitting flush left with empty space beside it. */
	.amr-stats-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; padding: 40px 24px; }
	.amr-stats-bar__item:last-child:nth-child(odd) { grid-column: 1 / -1; }	
	.amr-ba-gallery__grid { grid-template-columns: minmax(0, 1fr); }
	.amr-ba-gallery__heading { font-size: 26px; }
	.amr-before-after__tag {font-size: 16px; max-width: 37%;}
	.amr-before-after__tag--after {text-align: right;}
}

@media (max-width: 560px) {
	.amr-office-cards--row,
	.amr-office-cards--stack { grid-template-columns: 1fr; }
}
