/* ==========================================================================
   JM Monument — Design System
   Palette: navy + gold "stele" identity (from brand/01_horizontal_lockup.svg)
   Type: Cinzel (display, Trajan-style) + Source Sans 3 (body, high legibility)
   Audience skews older — base type is 18px, touch targets >=48px, high contrast.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-900: #12203a;
  --navy-800: #1b2a4a;
  --navy-700: #253860;
  --gold-500: #c8a84b;
  --gold-400: #d6bc70;
  --gold-100: #f3e9cf;
  --cream-50: #f5f0e6;
  --cream-100: #ede7d9;

  /* Neutrals (granite) */
  --stone-900: #1c1c1e;
  --stone-700: #47474b;
  --stone-500: #6f6f74;
  --stone-300: #a9a9ad;
  --stone-100: #e4e3e0;
  --white: #ffffff;

  /* Semantic */
  --color-bg: var(--cream-50);
  --color-surface: var(--white);
  --color-text: var(--stone-900);
  --color-text-muted: var(--stone-700);
  --color-heading: var(--navy-800);
  --color-accent: var(--gold-500);
  --color-border: var(--stone-100);
  --color-focus: #2f6fed;

  /* Type */
  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.95rem);
  --step-0: clamp(1.125rem, 1.1rem + 0.15vw, 1.2rem);
  --step-1: clamp(1.35rem, 1.25rem + 0.4vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.5rem + 0.8vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.8rem + 1.4vw, 3rem);
  --step-4: clamp(2.6rem, 2.1rem + 2.2vw, 4rem);

  /* Spacing (8px rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --container: 1240px;
  --shadow-card: 0 8px 24px rgba(18, 32, 58, 0.12);
  --shadow-lift: 0 16px 40px rgba(18, 32, 58, 0.22);
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; } /* keeps #links clear of the sticky header */
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-heading); line-height: 1.25; margin: 0 0 var(--space-2); font-weight: 600; }
p { margin: 0 0 var(--space-2); max-width: 68ch; }
ul { margin: 0; padding: 0; }
button { font: inherit; }

/* Visible focus ring everywhere — critical for an older, keyboard/switch-using audience */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.skip-link {
  position: absolute;
  left: 0; top: 0;
  transform: translateY(-120%);
  background: var(--navy-800);
  color: var(--white);
  padding: var(--space-2) var(--space-3);
  z-index: 200;
  border-radius: 0 0 var(--radius-md) 0;
  transition: transform 150ms ease;
}
.skip-link:focus { transform: translateY(0); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--space-3); }
@media (min-width: 768px) { .container { padding-inline: var(--space-4); } }

section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-5); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: var(--step--1);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.section-head { max-width: 62ch; margin-bottom: var(--space-4); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-accent); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-400); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline-dark:hover { background: var(--navy-800); color: var(--white); }
.btn-block { width: 100%; }

/* ---- Top utility bar ---------------------------------------------------------- */
.utility-bar {
  background: var(--navy-900);
  color: var(--cream-100);
  font-size: var(--step--1);
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-block: 0.5rem;
  flex-wrap: wrap;
}
.utility-bar a { text-decoration: none; }
.utility-bar a:hover { color: var(--gold-400); }
.utility-bar__left, .utility-bar__right { display: flex; gap: var(--space-3); flex-wrap: wrap; }

.sale-banner { background: var(--gold-500); color: var(--navy-900); text-align: center; font-size: var(--step--1); padding-block: 0.55rem; }
.sale-banner a { color: var(--navy-900); font-weight: 700; }
[data-gs-price] s { opacity: 0.6; font-size: 0.8em; margin-right: 0.15em; }

/* Free-shipping promo (Memorial Day etc.) — banner, promo box, test-site preview pill */
.sale-banner--promo { border-bottom: 3px solid var(--navy-800); }
.sale-banner--promo .container { display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.sale-banner--promo strong { font-family: var(--font-display); letter-spacing: 0.04em; }
.promo-star { width: 14px; height: 14px; flex-shrink: 0; fill: currentColor; }
@media (max-width: 600px) { .sale-banner--promo .promo-star { display: none; } }

[data-promo][hidden] { display: none; }
.promo-slot { padding-top: var(--space-5); }
.promo-slot--inline { padding-top: 0; margin-bottom: var(--space-5); }
.promo-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4);
  background: var(--navy-800); color: var(--cream-50);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: var(--space-4) var(--space-5);
  border-top: 4px solid var(--gold-500);
  position: relative; overflow: hidden;
}
.promo-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(200,168,75,0.06) 22px 24px);
}
.promo-card > * { position: relative; z-index: 1; }
.promo-card__stars { display: flex; gap: 0.35rem; color: var(--gold-500); }
.promo-card__stars .promo-star { width: 22px; height: 22px; }
.promo-card__stars .promo-star:nth-child(2) { width: 30px; height: 30px; margin-top: -6px; }
.promo-card__eyebrow { font-family: var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; font-size: var(--step--1); color: var(--gold-400); margin: 0 0 0.3rem; }
.promo-card__title { color: var(--white); font-size: var(--step-2); margin: 0 0 0.4rem; }
.promo-card p:last-child { margin: 0; color: var(--cream-100); }
@media (max-width: 860px) {
  .promo-card { grid-template-columns: 1fr; text-align: center; padding: var(--space-4) var(--space-3); gap: var(--space-2); }
  .promo-card__stars { justify-content: center; }
  .promo-card p { margin-inline: auto; }
}

.preview-pill {
  position: fixed; left: 16px; bottom: 16px; z-index: 300; max-width: calc(100% - 32px);
  background: var(--stone-900); color: var(--white); font-size: var(--step--1);
  padding: 0.6rem 0.9rem; border-radius: 999px; box-shadow: var(--shadow-lift);
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
@media (max-width: 600px) { .preview-pill { left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 0.4rem 0.4rem 0.4rem 0.8rem; gap: 0.5rem; font-size: 0.8rem; flex-wrap: nowrap; } }
.preview-pill button { background: var(--gold-500); color: var(--navy-900); border: 0; border-radius: 999px; padding: 0.35rem 0.8rem; font-weight: 700; cursor: pointer; min-height: 32px; }

.ship-was { opacity: 0.6; margin-right: 0.25em; }
.ship-free { color: #1f6b3a; font-weight: 700; }

/* ---- Header / nav ---------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.brand-logo { display: block; height: 76px; width: auto; flex-shrink: 0; }
.brand-logo img { height: 100%; width: auto; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: var(--space-3); list-style: none; }
.main-nav a {
  display: inline-block;
  padding: 0.5rem 0.1rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: var(--color-accent); }

.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: var(--navy-800);
  cursor: pointer;
  flex-shrink: 0;
}
.cart-toggle svg { width: 26px; height: 26px; }
.cart-toggle__count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(18,32,58,0.5);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.cart-backdrop.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100dvh;
  width: min(420px, 100vw);
  background: var(--white);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 250ms ease;
  box-shadow: var(--shadow-lift);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer__head h2 { margin: 0; font-size: var(--step-1); }
.cart-drawer__close {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer; color: var(--navy-800);
}
.cart-drawer__close svg { width: 20px; height: 20px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: var(--space-3); display: grid; gap: var(--space-3); align-content: start; }
.cart-drawer__foot { padding: var(--space-3); border-top: 1px solid var(--color-border); display: grid; gap: var(--space-2); }
.cart-drawer__subtotal { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-size: var(--step-1); color: var(--navy-800); }

.cart-item { display: flex; justify-content: space-between; gap: var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); }
.cart-item__name { font-weight: 700; margin: 0; }
.cart-item__meta { font-size: var(--step--1); color: var(--color-text-muted); margin: 0.2em 0; }
.cart-item__price { font-size: var(--step--1); margin: 0; }
.cart-item__controls { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.cart-item__remove { background: none; border: none; color: var(--color-text-muted); text-decoration: underline; cursor: pointer; font-size: var(--step--1); padding: 0.3rem; }

.qty-stepper { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.qty-btn { width: 32px; height: 32px; border: none; background: var(--cream-100); cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--navy-800); }
.qty-value { min-width: 1.5em; text-align: center; font-weight: 600; }

/* Cart page */
.cart-page-grid { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .cart-page-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
.summary-card { position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 0.4rem 0; }
.summary-total { font-family: var(--font-display); font-size: var(--step-1); color: var(--navy-800); border-top: 1px solid var(--color-border); margin-top: var(--space-2); padding-top: var(--space-2); }
.checkout-confirm { text-align: center; padding: var(--space-4); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--navy-800);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  background: var(--white);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  display: block;
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 1px solid var(--color-border);
  min-height: 48px;
}
.mobile-nav a[aria-current] { color: var(--gold-500); }

/* The full menu shows from 1000px wide, so an iPad turned sideways (1024px and up) gets it too; narrower screens use the menu button */
.main-nav a { white-space: nowrap; }
@media (min-width: 1000px) {
  .main-nav { display: block; }
  .nav-toggle, .mobile-nav { display: none !important; }
}
/* iPad landscape to small laptop: the two long titles wrap onto two centred lines, a smaller logo and tighter gaps */
@media (min-width: 1000px) and (max-width: 1239px) {
  .brand-logo { height: 60px; }
  .site-header .container { gap: var(--space-2); }
  .main-nav ul { gap: 1.1rem; align-items: center; }
  .main-nav a { white-space: normal; text-align: center; line-height: 1.2; max-width: 7.2em; }
}

/* ---- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(200,168,75,0.18), transparent 60%),
    repeating-linear-gradient(115deg, #17233d 0px, #17233d 2px, #142035 2px, #142035 4px),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, var(--navy-700));
  overflow: clip;
}
.hero__inner {
  padding-block: var(--space-5) var(--space-6);
  display: grid;
  gap: var(--space-5);
}
.hero__crest {
  width: 76px;
  height: auto;
  opacity: 0.9;
  margin-bottom: var(--space-3);
}
.hero h1 { color: var(--white); font-size: var(--step-4); max-width: 16ch; }
.hero__lede { font-size: var(--step-1); max-width: 46ch; color: var(--cream-100); }
.hero__ctas { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }

.hero__proof {
  position: relative;
  justify-self: start;
  background: var(--white);
  color: var(--stone-900);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  max-width: 360px;
}
.hero__proof img { border-radius: var(--radius-sm); }
.hero__proof-images { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hero__proof-item { position: relative; display: block; }
.hero__proof-item img { height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.hero__proof-tag {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2em 0.55em;
  border-radius: 3px;
}
.hero__proof-caption { padding-top: var(--space-1); font-size: var(--step--1); color: var(--color-text-muted); }
.hero__proof-caption strong { color: var(--navy-800); }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; padding-block: var(--space-6); }
}

/* Page (interior) header banner, used on product/about/contact pages */
.page-banner {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding-block: var(--space-5);
}
.page-banner h1 { color: var(--white); margin-bottom: var(--space-1); }
.page-banner p { color: var(--cream-100); margin: 0; }
.breadcrumb { font-size: var(--step--1); color: var(--gold-400); margin-bottom: var(--space-2); }
.breadcrumb a { color: var(--gold-400); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Trust bar ---------------------------------------------------------- */
.trust-bar { background: var(--navy-800); color: var(--white); padding-block: var(--space-3); }
.trust-bar .container {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.trust-item svg { width: 28px; height: 28px; color: var(--gold-400); }
.trust-item span { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; }
@media (min-width: 700px) { .trust-bar .container { grid-template-columns: repeat(4, 1fr); } }

/* ---- Category tiles (Polaris-style routing row) ---------------------------------------------------------- */
.tile-row { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 760px) { .tile-row { grid-template-columns: repeat(3, 1fr); } }

.tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  isolation: isolate;
}
.tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(18,32,58,0.92) 0%, rgba(18,32,58,0.35) 55%, rgba(18,32,58,0.05) 100%);
  z-index: 1;
}
.tile:hover img { transform: scale(1.05); }

/* Product-style tile: isolated cutout photos over the brand gradient, for tiles with no full-bleed photo */
.tile--product { background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 60%, var(--navy-700)); }
.tile--product .tile__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
  padding: 14% 8% 34%;
}
.tile--product .tile__cutout {
  position: static;
  width: 48%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.5));
  transition: transform 400ms ease;
}
.tile--product .tile__cutout--a { transform: rotate(-4deg); }
.tile--product .tile__cutout--b { transform: rotate(4deg); margin-top: 10%; }
.tile--product:hover .tile__cutout--a { transform: rotate(-4deg) scale(1.04); }
.tile--product:hover .tile__cutout--b { transform: rotate(4deg) scale(1.04); }
.tile__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-3); }
.tile__eyebrow { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-400); font-weight: 700; }
.tile h3 { color: var(--white); font-size: var(--step-1); margin: 0.2em 0 0.4em; }
.tile p { color: var(--cream-100); font-size: var(--step--1); margin-bottom: 0.6em; }
.tile__link { font-weight: 700; font-size: var(--step--1); display: inline-flex; align-items: center; gap: 0.35em; }
.tile:focus-visible { outline-offset: 4px; }

/* ---- Founder / story ---------------------------------------------------------- */
.story {
  display: grid;
  gap: var(--space-4);
}
.story img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.story blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--navy-800);
  line-height: 1.5;
}
.story blockquote::before { content: "\201C"; color: var(--gold-500); }
.story blockquote::after { content: "\201D"; color: var(--gold-500); }
.story cite { display: block; margin-top: var(--space-2); font-style: normal; font-weight: 700; color: var(--color-text-muted); font-size: var(--step--1); letter-spacing: 0.03em; }
@media (min-width: 860px) { .story { grid-template-columns: 0.85fr 1.15fr; align-items: center; } }

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: repeating-linear-gradient(135deg, var(--stone-100), var(--stone-100) 10px, #ecebe6 10px, #ecebe6 20px);
  border: 2px dashed var(--stone-300);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: var(--step--1);
  padding: var(--space-3);
  aspect-ratio: 4 / 3;
}

/* ---- Stories page (John's posts from the old site) ---------------------------------------------------------- */
.stories-toc { display: grid; gap: var(--space-2); grid-template-columns: 1fr; list-style: none; }
@media (min-width: 760px) { .stories-toc { grid-template-columns: repeat(2, 1fr); } }
.stories-toc a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
}
.stories-toc a:hover { box-shadow: var(--shadow-card); }
.story-post:nth-of-type(even) { background: var(--cream-100); }
.story-post .story { align-items: start; }
.story-post .story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-post__date { font-size: var(--step--1); color: var(--color-text-muted); font-weight: 600; margin-bottom: var(--space-1); }
.story-post h2 { margin-bottom: var(--space-1); }
.story-post .story-post__sub { font-family: var(--font-display); color: var(--gold-500); font-size: var(--step-0); }
.story-post blockquote { margin: 0 0 var(--space-2); padding-left: var(--space-2); border-left: 4px solid var(--gold-500); font-family: var(--font-body); font-size: var(--step-0); font-style: italic; max-width: 68ch; }
.story-post .back-top { font-size: var(--step--1); font-weight: 600; color: var(--navy-700); }

/* ---- Cards ---------------------------------------------------------- */
.card-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 760px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-card);
}
.card img { border-radius: var(--radius-sm); margin-bottom: var(--space-2); aspect-ratio: 4/3; object-fit: cover; }
.card h3 { font-size: var(--step-1); margin-bottom: 0.4em; }

/* Pricing / SKU card */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-family: var(--font-display); font-size: var(--step-2); color: var(--navy-800); margin: 0.2em 0 0.6em; }
.price-card ul { list-style: none; margin: 0 0 var(--space-3); display: grid; gap: 0.5rem; }
.price-card li { display: flex; gap: 0.6rem; align-items: flex-start; }
.price-card li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--gold-500); margin-top: 0.15em; }
.price-card .btn { margin-top: auto; }
.price-card .fine-print { font-size: var(--step--1); color: var(--color-text-muted); margin-top: var(--space-1); }

/* Steps (how it works) */
.steps { display: grid; gap: var(--space-3); counter-reset: step; }
@media (min-width: 700px) { .steps.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-left: 3rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

/* Before / after */
.compare { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare figure { margin: 0; }
.compare img { border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.compare figcaption { text-align: center; margin-top: var(--space-1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: var(--step--1); color: var(--color-text-muted); }

/* Embedded videos */
.video-grid { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 900px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption { margin-top: var(--space-1); text-align: center; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }

/* Before / after slider */
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 3; width: 100%; max-width: 760px; margin-inline: auto; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-card); background: var(--stone-100); touch-action: pan-y; user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba > img:first-child { transform: scale(1.12) translate(-1.9%, 1.4%); }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; bottom: 0.7rem; padding: 0.25em 0.7em; border-radius: 3px;
  background: var(--navy-900); color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none;
}
.ba__tag--before { left: 0.7rem; }
.ba__tag--after { right: 0.7rem; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 6px rgba(0,0,0,0.4); pointer-events: none; }
.ba__knob {
  position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 50%; background: var(--gold-500); color: var(--navy-900); border: 3px solid var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.45); pointer-events: none;
}
.ba__knob svg { width: 26px; height: 26px; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:focus-within .ba__knob { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.ba-caption { text-align: center; margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--step--1); }
.hero__proof .ba { box-shadow: none; max-width: none; border-radius: var(--radius-sm); }
.hero__proof .ba__knob { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.hero__proof .ba__knob svg { width: 20px; height: 20px; }

/* Service-area band */
.service-band { background: var(--cream-100); text-align: center; }
.service-band h2 { margin-bottom: var(--space-1); }

/* ---- Grave Saver size finder ---------------------------------------------------------- */
.size-finder { max-width: 760px; margin-inline: auto; }
.sf-hint { color: var(--color-text-muted); margin: 0.25rem 0 var(--space-2); }

.field-row { display: grid; gap: var(--space-2); grid-template-columns: 1fr; margin-bottom: var(--space-3); }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(3, 1fr); } }
.field label { display: block; font-weight: 600; margin-bottom: 0.35em; font-size: var(--step--1); }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 0.6em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.edge-fieldset { border: none; padding: 0; margin: 0 0 var(--space-2); }
.edge-fieldset legend { font-weight: 700; font-family: var(--font-display); color: var(--navy-800); padding: 0; margin-bottom: 0.5rem; }
.edge-option {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.4em 0;
  cursor: pointer;
}
.edge-option input { width: 20px; height: 20px; accent-color: var(--navy-800); flex-shrink: 0; }

.size-finder__result { display: flex; flex-direction: column; justify-content: center; gap: 0.6rem; margin-top: var(--space-3); padding: var(--space-3); border: 2px solid var(--color-border); border-radius: var(--radius-md); }
.size-finder__result.is-ok { border-color: var(--gold-500); background: var(--white); }
.size-finder__result.is-warning { border-color: #b3541e; background: #fdf3ec; }
.size-finder__result.is-empty { display: none; } /* shown once a marker is measured */
.sf-result__eyebrow { font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.sf-result__model { font-family: var(--font-display); font-size: var(--step-2); color: var(--navy-800); margin: 0; }
.sf-result__desc { margin: 0; }
.sf-result__warning-text { color: #8a3d15; font-weight: 600; margin: 0; }
.sf-result .hero__ctas { margin-top: var(--space-1); }

.model-grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 560px) { .model-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .model-grid { grid-template-columns: repeat(4, 1fr); } }

.model-card {
  display: block;
  cursor: pointer;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: var(--space-2);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.model-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.model-card__body { display: flex; flex-direction: column; gap: 0.3rem; }
.model-card__name { font-family: var(--font-display); font-weight: 700; color: var(--navy-800); font-size: var(--step-0); }
.model-card__dims { font-weight: 700; color: var(--color-text-muted); }
.model-card__desc { font-size: var(--step--1); color: var(--color-text-muted); }
.model-card__price { font-family: var(--font-display); color: var(--gold-500); font-size: var(--step-1); margin-top: 0.3rem; }
.model-card:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.model-card:has(input:checked) { border-color: var(--gold-500); box-shadow: var(--shadow-card); background: var(--gold-100); }

/* ---- Custom designer ---------------------------------------------------------- */
.designer { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 960px) { .designer { grid-template-columns: 1fr 1.1fr; } }
.designer__controls { display: grid; gap: var(--space-3); }
.designer fieldset { border: none; padding: 0; margin: 0; }
.designer legend { font-family: var(--font-display); font-weight: 700; color: var(--navy-800); margin-bottom: 0.5rem; padding: 0; }
.designer select, .designer input[type="text"] {
  width: 100%; min-height: 48px; padding: 0.5em 0.7em;
  border: 1px solid var(--stone-300); border-radius: var(--radius-sm); font: inherit; background: var(--white);
}
.designer label.field-label { display: block; font-weight: 600; margin-bottom: 0.3em; font-size: var(--step--1); }
.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0.4em 1em;
  border: 2px solid var(--color-border); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; font-weight: 600;
}
.seg input:checked + span { border-color: var(--gold-500); background: var(--gold-100); }
.seg input:focus-visible + span { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--stone-300); flex-shrink: 0; }
.designer__preview { position: sticky; top: 100px; }
.preview-stage {
  background: linear-gradient(180deg, #cfd8c4, #a9b99a 70%, #8fa27f);
  border-radius: var(--radius-md); padding: var(--space-3); box-shadow: var(--shadow-card);
}
.preview-stage svg { width: 100%; height: auto; display: block; }
.preview-summary { margin-top: var(--space-2); }
.preview-summary dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0 0 var(--space-2); }
.preview-summary dt { font-weight: 700; color: var(--color-text-muted); }
.preview-summary dd { margin: 0; }

/* Photo viewer inside a card (footstones page) */
.mini-gallery { margin-bottom: var(--space-2); }
.mini-gallery__stage { position: relative; background: var(--cream-100); border-radius: var(--radius-sm); overflow: hidden; }
.card .mini-gallery__stage img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin: 0; border-radius: 0; display: block; }
.mini-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(18,32,58,0.75); color: var(--white); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.mini-gallery__nav:hover { background: var(--navy-900); }
.mini-gallery__nav--prev { left: 8px; }
.mini-gallery__nav--next { right: 8px; }
.mini-gallery__count { text-align: center; font-size: var(--step--1); font-weight: 700; color: var(--color-text-muted); margin: 0.5rem auto; }
.mini-gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.mini-gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); background: none; cursor: pointer; overflow: hidden; }
.mini-gallery__thumbs button[aria-current="true"] { border-color: var(--gold-500); }
.card .mini-gallery__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; border-radius: 0; display: block; }

/* Photo gallery: 6-col grid so 3 + 2 rows fill evenly */
.gallery { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(6, 1fr); } .gallery figure { grid-column: span 3; } }
@media (min-width: 960px) { .gallery figure { grid-column: span 2; } .gallery figure:nth-child(4) { grid-column: 2 / span 2; } .gallery figure:nth-child(5) { grid-column: 4 / span 2; } }
@media (min-width: 960px) { .gallery--even figure:nth-child(4), .gallery--even figure:nth-child(5) { grid-column: span 2; } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.gallery figcaption { margin-top: var(--space-1); text-align: center; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }

/* Wholesale request form */
.wholesale-form { max-width: 820px; margin-inline: auto; display: grid; gap: var(--space-4); }
.wholesale-form fieldset { border: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.wholesale-form legend { font-family: var(--font-display); font-weight: 700; color: var(--navy-800); font-size: var(--step-1); padding: 0; margin-bottom: var(--space-1); }
.wholesale-form .field label { display: block; font-weight: 600; margin-bottom: 0.3em; }
.wholesale-form input[type="text"], .wholesale-form input[type="email"], .wholesale-form input[type="tel"],
.wholesale-form input[type="number"], .wholesale-form input[type="date"], .wholesale-form select, .wholesale-form textarea {
  width: 100%; min-height: 48px; padding: 0.55em 0.7em; font: inherit;
  border: 1px solid var(--stone-300); border-radius: var(--radius-sm); background: var(--white);
}
.wholesale-form [aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.field-grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-grid { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.qty-grid { display: grid; gap: var(--space-2); grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .qty-grid { grid-template-columns: repeat(4, 1fr); } }
.qty-grid label .field-hint { display: block; font-weight: 400; }
.field-hint { font-size: var(--step--1); color: var(--color-text-muted); margin: 0.3em 0 0; }
.field-error { color: #b3261e; font-weight: 600; font-size: var(--step--1); margin: 0.35em 0 0; }
.error-summary { border: 2px solid #b3261e; background: #fdf1f0; border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); }
.error-summary h3 { font-size: var(--step-0); color: #8a1c15; margin: 0 0 0.5em; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: #8a1c15; }

/* Contact / CTA band */
.cta-band { background: var(--navy-800); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--cream-100); margin-inline: auto; }
.cta-band .hero__ctas { justify-content: center; }

/* Contact page layout */
.contact-grid { display: grid; gap: var(--space-4); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-detail { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.contact-detail svg { width: 26px; height: 26px; color: var(--gold-500); flex-shrink: 0; }
.contact-detail h3 { font-size: var(--step-0); margin-bottom: 0.2em; }
.placeholder-note { font-size: var(--step--1); color: var(--color-text-muted); font-style: italic; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: var(--cream-100); padding-block: var(--space-5) var(--space-3); }
.footer-grid { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h3 { color: var(--white); font-size: var(--step-0); margin-bottom: var(--space-2); }
.footer-grid ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-grid a { color: var(--cream-100); text-decoration: none; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-brand img { height: 56px; width: auto; margin-bottom: var(--space-2); padding: 6px 12px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-1);
  font-size: var(--step--1);
  color: var(--stone-300);
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Cremation memorial style picker (headstones.html) */
.style-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: var(--space-2); }
.style-filter { min-height: 44px; padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--navy-800); background: var(--white); color: var(--navy-800); font-weight: 600; cursor: pointer; }
.style-filter:hover { background: var(--gold-100); }
.style-filter[aria-pressed="true"] { background: var(--navy-800); color: var(--white); }
.style-count { text-align: center; color: var(--color-text-muted); font-size: var(--step--1); margin: 0 auto var(--space-3); }
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-3); }
.style-card { background: var(--white); border: 2px solid transparent; border-radius: var(--radius-md); box-shadow: var(--shadow-card); display: flex; flex-direction: column; overflow: hidden; transition: border-color 150ms ease; }
.style-card[hidden] { display: none; }
.style-card.is-selected { border-color: var(--gold-500); }
.style-card__img { display: block; width: 100%; aspect-ratio: 4 / 3; padding: var(--space-2); background: var(--white); border: 0; border-bottom: 1px solid var(--color-border); cursor: zoom-in; overflow: hidden; }
.style-card__img img { width: 100%; height: 100%; object-fit: contain; }
.style-card__body { padding: var(--space-2); display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.style-card__code { font-family: var(--font-display); font-weight: 700; color: var(--navy-800); letter-spacing: 0.04em; margin: 0; }
.style-card__desc { font-size: var(--step--1); color: var(--color-text-muted); margin: 0 0 var(--space-1); flex: 1; }
.style-card__badge { float: right; font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0; background: var(--gold-100); color: var(--navy-800); border-radius: 999px; padding: 0.15rem 0.55rem; }
.style-card__badge[hidden] { display: none; }
.style-dialog { border: 0; border-radius: var(--radius-md); padding: 0; max-width: min(900px, calc(100vw - 32px)); width: 100%; box-shadow: var(--shadow-lift); }
.style-dialog::backdrop { background: rgba(18, 32, 58, 0.7); }
.style-dialog img { width: 100%; max-height: 70vh; object-fit: contain; background: var(--white); padding: var(--space-3); }
.style-dialog__body { display: flex; gap: var(--space-2); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: var(--space-2) var(--space-3) var(--space-3); border-top: 1px solid var(--color-border); }
.style-dialog__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--navy-800); color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }
/* "Add Grave Saver to this quote" under foot-marker items on cart.html */
.gs-addon { display: flex; gap: 0.75rem; align-items: flex-start; margin: var(--space-2) 0 0; padding: 0.75rem 1rem; background: var(--gold-100); border: 1px solid var(--gold-500); border-radius: var(--radius-sm); cursor: pointer; line-height: 1.45; }
.gs-addon input { width: 26px; height: 26px; margin: 0.1rem 0 0; flex-shrink: 0; accent-color: var(--navy-800); cursor: pointer; }
.gs-addon:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.gs-addon[hidden] { display: none; }
.gs-addon--none { display: block; background: var(--cream-100); border-color: var(--color-border); cursor: default; }

/* Granite chooser (designer.html): current choice + a pamphlet-style sample sheet in a dialog */
.granite-current { display: flex; gap: var(--space-2); align-items: center; }
.granite-current img { width: 132px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--color-border); flex-shrink: 0; background: var(--stone-300); }
.granite-current__name { font-weight: 700; font-size: var(--step-1); margin: 0; color: var(--navy-800); }
.granite-current__aka { margin: 0.1rem 0 0; font-size: var(--step--1); color: var(--color-text-muted); }
.granite-current .btn { margin-top: 0.5rem; }
.granite-dialog { border: 0; padding: 0; width: min(1100px, 100vw); max-width: 100vw; height: min(92vh, 100dvh); max-height: 100dvh; border-radius: var(--radius-md); box-shadow: var(--shadow-lift); background: #fbfaf7; overflow: hidden; }
.granite-dialog[open] { display: flex; flex-direction: column; }
.granite-dialog::backdrop { background: rgba(18, 32, 58, 0.75); }
.granite-dialog__bar { position: relative; z-index: 3; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0.75rem var(--space-3); background: #111; color: #fff; }
.granite-dialog__bar h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 3vw, 1.8rem); color: #fff; text-transform: none; letter-spacing: 0; }
.granite-dialog__close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.15); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
.granite-dialog__close:hover { background: rgba(255,255,255,0.3); }
.granite-dialog__scroll { overflow-y: auto; padding: var(--space-2) var(--space-3) var(--space-3); flex: 1; }
.granite-dialog__intro { max-width: 70ch; margin: 0 0 var(--space-2); }
.granite-dialog__foot { font-family: Georgia, serif; font-style: italic; text-align: center; margin: var(--space-3) 0 0; }
.granite-group { font-size: var(--step-1); margin: var(--space-3) 0 var(--space-2); padding-bottom: 0.3rem; border-bottom: 2px solid var(--gold-500); }
.granite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--space-3) var(--space-2); }
.granite-card { background: #fff; padding: 0.6rem 0.6rem 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,0.12); border: 3px solid transparent; border-radius: 4px; display: flex; flex-direction: column; }
.granite-card.is-selected { border-color: var(--gold-500); }
.granite-card__img { position: relative; display: block; padding: 0; border: 0; background: var(--stone-300); cursor: zoom-in; aspect-ratio: 16 / 9; overflow: hidden; }
.granite-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 200ms ease; }
.granite-card__img:hover img { transform: scale(1.04); }
.granite-card__img:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.granite-card__zoom { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,0.65); color: #fff; font-size: 0.85rem; padding: 0.2rem 0.5rem; border-radius: 999px; }
.granite-card__row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.5rem; flex: 1; }
.granite-card__name { font-family: Georgia, 'Times New Roman', serif; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.02em; margin: 0; }
.granite-card__pick { min-height: 48px; padding-inline: 1rem; flex-shrink: 0; white-space: nowrap; }
.granite-card.is-selected .granite-card__pick { background: var(--gold-100); border-color: var(--gold-500); }
.granite-zoom { position: absolute; inset: 72px 0 0 0; display: flex; flex-direction: column; background: #111; z-index: 2; }
.granite-zoom[hidden] { display: none; }
.granite-zoom img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.granite-zoom__body { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between; padding: var(--space-2) var(--space-3); background: #fbfaf7; }
.granite-zoom__name { font-family: Georgia, serif; text-transform: uppercase; font-size: var(--step-1); margin: 0; }
.granite-zoom__aka { margin: 0.15rem 0 0; color: var(--color-text-muted); }
.granite-zoom__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 600px) {
  .granite-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .granite-dialog__scroll { padding: var(--space-2); }
  .granite-grid { grid-template-columns: 1fr; gap: var(--space-2); }
  .granite-card { padding: 0.4rem 0.4rem 0.5rem; }
  .granite-card__zoom { font-size: 0.75rem; }
  .granite-zoom__actions, .granite-zoom__actions .btn { width: 100%; }
  .granite-current img { width: 100px; height: 66px; }
}

/* Price guide line (typical ranges from js/settings.js) */
.price-guide { font-size: var(--step-1); max-width: 60ch; margin: 0.5rem auto var(--space-2); text-align: center; }
.price-guide strong { color: var(--navy-800); white-space: nowrap; }
.price-guide--left { text-align: left; margin-inline: 0; }
.price-guide--banner { color: inherit; font-size: var(--step-0); margin: 0.75rem 0 0; text-align: left; }
.price-guide--banner strong { color: var(--gold-500); }

.price-table-wrap { max-width: 560px; margin: var(--space-2) auto var(--space-3); }
.price-table-wrap--left { margin-inline: 0; }
.price-table-note { font-size: var(--step--1); color: var(--color-text-muted); margin: 0.6rem 0 0; text-align: left; }
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); font-size: var(--step-0); }
.price-table caption { text-align: left; font-weight: 700; color: var(--navy-800); padding: 0 0 0.4rem; }
.price-table th, .price-table td { padding: 0.65rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.price-table thead th { background: var(--navy-800); color: var(--white); font-weight: 600; }
.price-table tbody th { font-weight: 400; }
.price-table td { white-space: nowrap; font-weight: 700; color: var(--navy-800); text-align: right; }
.price-table thead th:last-child { text-align: right; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }

/* Monument builder (builder.html) */
.builder [hidden], .granite-dialog [hidden] { display: none !important; }
.b-progress { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0 0 var(--space-3); }
.b-progress li > * { display: inline-block; padding: 0.35rem 0.8rem; border-radius: 999px; font-size: var(--step--1); border: 1px solid var(--color-border); background: var(--white); color: var(--color-text-muted); font: inherit; font-size: var(--step--1); }
.b-progress li.is-done button, .b-progress li a { cursor: pointer; color: var(--navy-800); border-color: var(--navy-800); text-decoration: none; }
.b-progress li.is-done button:hover, .b-progress li a:hover { background: var(--gold-100); }
.b-progress li.is-current > * { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); font-weight: 700; }
.b-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-4); align-items: start; }
.b-step h2 { margin-top: 0; }
.b-step h2:focus { outline: none; }
.b-hint { color: var(--color-text-muted); margin: 0.3rem 0 var(--space-2); }
.b-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--space-2); }
.b-cards--2 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.b-card { position: relative; display: flex; flex-direction: column; gap: 0.3rem; padding: var(--space-2); background: var(--white); border: 3px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; }
.b-card input { position: absolute; opacity: 0; }
.b-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--white); border-radius: var(--radius-sm); }
.b-card:has(input:checked) { border-color: var(--gold-500); background: var(--gold-100); }
.b-card:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.b-card__title { font-weight: 700; font-size: var(--step-1); color: var(--navy-800); }
.b-card__price { font-weight: 700; color: var(--navy-800); }
.b-card--plain { min-height: 120px; justify-content: center; }
.b-rows { display: grid; gap: 0.5rem; }
.b-row { display: flex; align-items: center; gap: 0.75rem; min-height: 56px; padding: 0.6rem 1rem; background: var(--white); border: 2px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; }
.b-row[hidden] { display: none; }
.b-row input { width: 24px; height: 24px; flex-shrink: 0; accent-color: var(--navy-800); }
.b-row > span:nth-of-type(1) { flex: 1; }
.b-row__price { font-weight: 700; color: var(--navy-800); white-space: nowrap; text-align: right; }
.b-row:has(input:checked) { border-color: var(--gold-500); background: var(--gold-100); }
.b-fieldset { border: 0; padding: 0; margin: var(--space-3) 0 0; }
.b-fieldset legend { font-weight: 700; font-size: var(--step-1); color: var(--navy-800); margin-bottom: 0.4rem; }
.b-fieldset[hidden] { display: none; }
.b-step input[type="text"], .b-step input[type="search"], .b-step input[type="number"], .b-step select, .b-step textarea { width: 100%; min-height: 48px; padding: 0.55rem 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; background: var(--white); }
.b-step .field-label { display: block; font-weight: 600; margin: var(--space-2) 0 0.3rem; }
.b-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.b-person { background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-2) var(--space-2) var(--space-2); }
.b-person legend { padding: 0 0.3rem; }
.b-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-2); align-items: end; }
.b-filter .b-check { grid-column: 1 / -1; display: flex; gap: 0.5rem; align-items: center; min-height: 48px; }
.b-filter .b-check input { width: 22px; height: 22px; }
.b-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; max-height: 560px; overflow-y: auto; padding: 4px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--cream-100); }
.b-tile { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.5rem; text-align: left; background: var(--white); border: 3px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font: inherit; box-shadow: var(--shadow-card); }
.b-tile[hidden] { display: none; }
.b-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.b-tile[aria-pressed="true"] { border-color: var(--gold-500); background: var(--gold-100); }
.b-tile__code { font-weight: 700; color: var(--navy-800); }
.b-tile__desc { font-size: 0.85rem; color: var(--color-text-muted); }
.b-tile__price { font-weight: 700; font-size: 0.9rem; color: var(--navy-800); }
.b-tile--none { justify-content: center; min-height: 140px; text-align: center; }
.b-picked { display: flex; gap: var(--space-2); align-items: center; padding: 0.75rem; background: var(--white); border: 2px solid var(--gold-500); border-radius: var(--radius-sm); margin-bottom: var(--space-2); }
.b-picked img { width: 110px; height: 82px; object-fit: contain; flex-shrink: 0; }
.b-picked p { margin: 0.15rem 0; }
.b-review { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 0.4rem 1rem; background: var(--white); padding: var(--space-2); border-radius: var(--radius-md); }
.b-review dt { font-weight: 700; }
.b-review dd { margin: 0; }
.b-nav { display: flex; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.b-nav .btn { min-width: 140px; }
.b-nav .btn[hidden] { display: none; }
#b-next { margin-left: auto; }
.b-summary { position: sticky; top: 100px; padding: var(--space-2); }
.b-preview { background: var(--white); border-radius: var(--radius-sm); padding: 0.5rem; text-align: center; }
.b-preview img { width: 100%; max-height: 180px; object-fit: contain; }
.b-preview__stone { margin-top: 0.4rem; padding: 0.9rem 0.6rem; border-radius: 4px; background: var(--stone-300) center / cover; font-family: 'Cinzel', Georgia, serif; font-weight: 600; letter-spacing: 0.04em; }
.b-preview__stone.has-granite p { text-shadow: 0 0 3px rgba(0,0,0,0.85), 0 1px 2px rgba(0,0,0,0.9); }
.b-preview__stone p { margin: 0; }
.b-price-label { margin: var(--space-2) 0 0; font-weight: 600; color: var(--color-text-muted); }
.b-price { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; color: var(--navy-800); margin: 0; line-height: 1.15; }
.b-price-note { font-size: var(--step--1); color: var(--color-text-muted); margin: 0.3rem 0 var(--space-2); }
.b-choices { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 0.75rem; margin: 0; font-size: var(--step--1); border-top: 1px solid var(--color-border); padding-top: var(--space-2); }
.b-choices dt { font-weight: 700; }
.b-choices dd { margin: 0; overflow-wrap: anywhere; }
.granite-card__level { font-family: var(--font-body); color: var(--navy-800); font-weight: 700; letter-spacing: 0.05em; }
@media (max-width: 900px) {
  .b-layout { grid-template-columns: 1fr; }
  .b-summary { position: static; order: -1; }
  .b-summary .b-choices, .b-summary .b-preview { display: none; }
  .b-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.75rem; }
  .b-price-label { margin: 0; }
  .b-price-note { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .b-two, .b-filter { grid-template-columns: 1fr; }
  .b-cards { grid-template-columns: repeat(2, 1fr); }
  .b-gallery { grid-template-columns: repeat(2, 1fr); max-height: 480px; }
  .b-nav .btn { min-width: 0; flex: 1; }
  .b-progress li:not(.is-current) { display: none; }
  .b-progress { margin-bottom: var(--space-2); }
  .b-summary { padding: 0.75rem 1rem; }
  .b-price-note { margin-bottom: 0; }
}

/* 404.html */
.notfound-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-2); margin-top: var(--space-3); }
.notfound-links .btn { min-height: 56px; display: flex; align-items: center; justify-content: center; }

/* Design catalog (catalog.html) */
.filter-label { text-align: center; font-weight: 700; color: var(--navy-800); margin: var(--space-2) 0 0.5rem; }
.catalog-search { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; margin: var(--space-3) 0 var(--space-2); }
.catalog-search label { font-weight: 600; }
.catalog-search input { min-height: 48px; width: 14em; max-width: 100%; padding: 0.5em 0.75em; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font: inherit; }
@media (max-width: 600px) { .catalog-filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: calc(-1 * var(--space-2)); padding: 0 var(--space-2) 6px; scrollbar-width: thin; } .catalog-filters .style-filter { flex: 0 0 auto; } }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .style-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); } .style-card__body { padding: 0.75rem; } .style-card__add { padding: 0.6em 0.4em; font-size: 0.95rem; } .style-card__desc { font-size: 0.85rem; } }
/* Design Yours: cremation memorial controls */
.crem-pick { display: flex; gap: var(--space-2); align-items: center; }
.crem-pick img { width: 110px; height: 84px; object-fit: contain; background: var(--white); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 4px; flex-shrink: 0; }
.crem-pick select, #crem-urns { width: 100%; }
.ins-people { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.ins-people[hidden], #cremation-controls[hidden], #ins-dates-row[hidden] { display: none; }
@media (max-width: 600px) { .ins-people { grid-template-columns: 1fr; } .crem-pick img { width: 84px; height: 66px; } }

/* Quote and contact forms: City / State / ZIP on one row, stacked on phones */
.addr-row { display: grid; grid-template-columns: 1.6fr 1.4fr 1fr; gap: var(--space-2); }
@media (max-width: 600px) { .addr-row { grid-template-columns: 1fr; } }

/* Granite Closer look: says whether the picture is John's real sample or the printed color guide */
.granite-zoom__caption { max-width: none; margin: 0; padding: 0.4rem var(--space-3) 0; background: #fbfaf7; text-align: center; color: var(--color-text-muted); }

/* ---- Popular monuments (js/popular.js) ---- */
.popular-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); }
.popular-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.popular-card .popular-card__img { width: 100%; height: auto; margin: 0; border-radius: 0; padding: 0.5rem; aspect-ratio: 4 / 3; object-fit: contain !important; background: #fff; border-bottom: 1px solid var(--color-border); }
.popular-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-2) var(--space-3) var(--space-3); }
.popular-card__body h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.popular-card__facts { list-style: none; margin: 0 0 0.75rem; padding: 0; color: var(--color-text-muted); }
.popular-card__facts li { display: flex; align-items: center; gap: 0.5rem; padding: 0.15rem 0; }
.popular-card__swatch { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--color-border); }
.popular-card__price { margin: auto 0 0; font-family: 'Cinzel', serif; font-size: 1.75rem; font-weight: 700; color: var(--navy-800); }
.popular-card__price span { font-family: 'Source Sans 3', sans-serif; font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.popular-card__note { margin: 0.1rem 0 var(--space-2); font-size: 0.95rem; color: var(--color-text-muted); }
.popular-card .btn { min-height: 48px; }
.popular-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-2); }
.popular-grid--compact .popular-card .popular-card__img { aspect-ratio: 3 / 2; }
.popular-grid--compact .popular-card__note { display: none; }
.b-popular-heading { margin: var(--space-4) 0 0; }
.b-popular-flag { flex-basis: 100%; margin: 0 0 0.75rem; padding: 0.6rem 0.75rem; background: var(--cream-100, #F5F0E6); border-left: 4px solid var(--gold-500); border-radius: var(--radius-sm, 4px); }
.b-popular-flag[hidden] { display: none; }
/* Builder: the family's own picture */
.b-upload { display: block; width: 100%; min-height: 48px; padding: 0.6em; border: 1px dashed var(--color-border); border-radius: var(--radius-sm); background: var(--white); font: inherit; margin-bottom: var(--space-2); }
.b-upload::file-selector-button { min-height: 40px; margin-right: 0.75rem; padding: 0 1rem; border: 0; border-radius: var(--radius-sm); background: var(--navy-800); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* Builder names: Add a Second / Third Name buttons side by side, stacking on phones */
.b-add-names { display: flex; flex-wrap: wrap; gap: var(--space-3, 1rem); }
.b-add-names [hidden] { display: none; }

/* Builder Style step: top-shape drawings (assets/images/shapes) and size rows */
.b-tops { max-height: none; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.b-tops .b-tile { align-items: center; text-align: center; }
.b-tops .b-tile img { aspect-ratio: 6 / 5; padding: 0.4rem 0.6rem 0; }
.b-tops .b-tile--photo img { padding: 0; }
.b-tops__head { grid-column: 1 / -1; margin: 0.5rem 0 0; font-weight: 700; color: var(--navy-800); }
.b-tops .b-tile__code { font-size: 1rem; line-height: 1.25; }
.b-size-group { margin: 0.75rem 0 0.25rem; font-weight: 700; color: var(--navy-800); }
@media (max-width: 640px) { .b-tops { grid-template-columns: repeat(2, 1fr); max-height: none; } }

/* Builder names: room between the Born/Died boxes and the Remove button */
.b-person .b-remove-person { margin-top: var(--space-3, 1.5rem); }

/* Builder shape step for slants: size and base side by side (stacked on phones; older browsers stack too) */
.b-size-base { display: grid; gap: var(--space-3, 1.5rem); }
@media (min-width: 640px) { .b-size-base:has(> #b-slant-base:not([hidden])) { grid-template-columns: 1fr 1fr; align-items: start; } }
.b-size-base .b-size-group:first-child { margin-top: 0; }

/* ---- Photo galleries (js/gallery.js) ------------------------------------------- */
.jm-gallery__stage { position: relative; background: var(--cream-100); border-radius: var(--radius-md); overflow: hidden; }
.jm-gallery__stage img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; }
.jm-gallery__cap { text-align: center; font-weight: 700; color: var(--navy-800); margin: 0.6rem auto; min-height: 1.6em; }
.jm-gallery__cap span { color: var(--color-text-muted); margin-right: 0.4em; }
.jm-gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.jm-gallery__thumbs button { padding: 0; border: 3px solid transparent; border-radius: var(--radius-sm); background: none; cursor: pointer; overflow: hidden; min-height: 48px; }
.jm-gallery__thumbs button[aria-current="true"] { border-color: var(--gold-500); }
.jm-gallery__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.jm-gallery--page { max-width: 900px; margin: 0 auto; }
.gallery-dialog { width: min(1000px, 100vw); max-width: 100vw; max-height: 100vh; margin: auto; padding: var(--space-3); border: 0; border-radius: var(--radius-md); background: var(--white); }
.gallery-dialog::backdrop { background: rgba(15, 23, 42, 0.75); }
.gallery-dialog__head { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between; }
.gallery-dialog__head h2 { margin: 0; }
.gallery-dialog__hint { margin: var(--space-1) 0 var(--space-2); }
.gallery-dialog .jm-gallery__stage img { max-height: 62vh; }
@media (max-width: 600px) { .gallery-dialog { padding: var(--space-2); border-radius: 0; height: 100vh; } }
.b-card--gallery { font: inherit; text-align: left; color: inherit; }
.b-card--gallery .b-card__title::after { content: " \2192"; }
.b-card--gallery:hover { border-color: var(--gold-500); }
.b-gallery-link { display: flex; gap: var(--space-2); align-items: center; width: 100%; margin: 0 0 var(--space-3); padding: var(--space-2); font: inherit; text-align: left; color: inherit; background: var(--white); border: 3px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; }
.b-gallery-link:hover { border-color: var(--gold-500); }
.b-gallery-link img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); flex: none; }

/* ---- Monument prices switched off (showPrices: false in settings.js) ------------ */
.no-prices .price-guide, .no-prices .price-table-wrap, .no-prices .price-card .price, .no-prices .popular-card__price,
.no-prices #price-guide, .no-prices .b-price-label, .no-prices .b-price, .no-prices .b-price-note,
.no-prices [data-polish-price], .no-prices [data-opt], .no-prices [data-opt-each], .no-prices [data-price-only] { display: none !important; }