/* ==========================================================================
   Memorial Magnets — stylesheet
   Every value here comes from DESIGN.md. Do not introduce a value that is not
   documented there; add it to DESIGN.md first.
   ========================================================================== */

:root {
  /* Color — see DESIGN.md §2 */
  --canvas: #f7f1ea;
  --surface: #fdfaf6;
  --surface-warm: #f2e9de;
  --deep: #18354a;
  --ink: #2f2621;
  --body: #4a3f38;
  --muted: #6d5b51;
  --hairline: #e3d7c9;
  --burgundy: #6d2237;
  --burgundy-dk: #551828;
  --gold: #bf8c4c;
  --on-deep: #f7f1ea;
  --on-deep-muted: rgba(247, 241, 234, 0.68);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Radius — DESIGN.md §5 */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 16px;

  /* Spacing steps */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 64px;
  --s-6: 96px;

  --max: 1180px;
  --max-wide: 1280px;

  /* The one permitted shadow, product images only */
  --shadow-product: 0 14px 34px rgba(47, 38, 33, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--burgundy);
  text-decoration: none;
}

a:hover {
  color: var(--burgundy-dk);
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Typography — DESIGN.md §3
   Serif display never exceeds weight 500. Negative tracking at every size.
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
.serif {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 var(--s-3);
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.018em;
}

h3 {
  font-size: clamp(24px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.012em;
}

h4 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* The single place the original script font's warmth is preserved. */
h1 em,
h2 em {
  font-style: italic;
  color: var(--burgundy);
}

p {
  margin: 0 0 var(--s-3);
  max-width: 64ch;
}

.lead {
  font-size: clamp(19px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--body);
}

.kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}

.copyright,
.mobile-note,
.price-footnote,
.showcase-footer,
figcaption {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* Utility paragraphs are captions, not prose — the 64ch measure on `p` would
   box them off-centre inside a centred block. */
.showcase-footer,
.hero-template-note,
.price-footnote,
.copyright,
.mobile-note {
  max-width: none;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.container-wide {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.section {
  padding: var(--s-6) 0;
}

.section-topless {
  padding-top: 0;
}

/* Band pacing — DESIGN.md §1. Never two identical grounds in a row. */
.scene-warm {
  background: var(--surface-warm);
}

.scene-dark {
  background: var(--deep);
  color: var(--on-deep);
}

.scene-dark h1,
.scene-dark h2,
.scene-dark h3,
.scene-dark h4 {
  color: var(--on-deep);
}

.scene-dark p,
.scene-dark .lead {
  color: var(--on-deep-muted);
}

.scene-dark .kicker {
  color: var(--on-deep-muted);
}

.scene-dark a {
  color: var(--on-deep);
}

.section-intro {
  margin-bottom: var(--s-5);
  max-width: 720px;
}

.section-intro.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-intro.centered p {
  margin-left: auto;
  margin-right: auto;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-5);
}

/* --------------------------------------------------------------------------
   Header / navigation — DESIGN.md §4
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 234, 0.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-3);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav-links a {
  font-size: 15px;
  color: var(--body);
  text-decoration: none;
  padding: 6px 0;
}

.nav-links a:hover {
  color: var(--burgundy);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--burgundy);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Buttons — DESIGN.md §4. Fill shifts on hover. Nothing lifts, nothing scales.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--burgundy-dk);
  color: var(--surface);
}

.btn-secondary {
  background: transparent;
  color: var(--burgundy);
  border-color: var(--burgundy);
}

.btn-secondary:hover {
  background: var(--burgundy);
  color: var(--surface);
}

/* On the navy band the interactive colour is the parchment, never dim burgundy. */
.scene-dark .btn-primary,
.cta-panel .btn-primary {
  background: var(--on-deep);
  color: var(--deep);
}

.scene-dark .btn-primary:hover,
.cta-panel .btn-primary:hover {
  background: #ffffff;
  color: var(--deep);
}

.scene-dark .btn-secondary,
.cta-panel .btn-secondary {
  color: var(--on-deep);
  border-color: rgba(247, 241, 234, 0.5);
}

.scene-dark .btn-secondary:hover,
.cta-panel .btn-secondary:hover {
  background: rgba(247, 241, 234, 0.1);
  color: var(--on-deep);
}

.button-row-centered {
  justify-content: center;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.link-more {
  font-weight: 700;
  font-size: 16px;
  color: var(--burgundy);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.link-more:hover {
  text-decoration: none;
  color: var(--burgundy-dk);
}

/* --------------------------------------------------------------------------
   Hero — DESIGN.md §6. The template strip near the top is Don's signature move.
   -------------------------------------------------------------------------- */

.hero-stage {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: var(--s-6) 0;
  text-align: center;
}

.hero-stage .container > .lead {
  margin-left: auto;
  margin-right: auto;
}

.hero-stage .button-row {
  justify-content: center;
}

/* Gold divider ornament. One per page, hero only — DESIGN.md §4. */
.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin: var(--s-4) auto 0;
  max-width: 420px;
}

.hero-rule::before,
.hero-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

.hero-rule svg {
  width: 13px;
  height: 13px;
  fill: var(--gold);
  flex: none;
}

.hero-template-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.hero-template-strip a {
  display: block;
  width: 132px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.hero-template-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
}

.hero-template-note {
  margin: var(--s-2) auto 0;
  font-size: 14px;
  color: var(--muted);
}

.hero-product {
  margin: var(--s-5) auto 0;
  max-width: 420px;
}

.hero-product img {
  width: 100%;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-product);
}

.hero-product figcaption {
  margin-top: var(--s-2);
}

.page-hero {
  padding: var(--s-6) 0 var(--s-4);
}

.page-hero .lead {
  max-width: 64ch;
}

/* --------------------------------------------------------------------------
   Process / steps
   -------------------------------------------------------------------------- */

/* Three steps read as one sequence — never 2 + 1 orphan. */
.step-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.step-flow li {
  margin: 0;
}

.step-flow img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-product);
  margin-bottom: var(--s-3);
}

.step-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-1);
}

.step-flow h3 {
  margin-bottom: var(--s-1);
}

.step-flow p {
  margin-bottom: 0;
}

.point-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

@media (max-width: 820px) {
  .step-flow,
  .point-row {
    grid-template-columns: 1fr;
  }
}

.point-row h3 {
  margin-bottom: var(--s-1);
}

.point-row p {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Showcase / galleries — magnets sit on the ground, no frame
   -------------------------------------------------------------------------- */

/* Five templates, five columns — an orphan on a second row reads as an error. */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
}

@media (max-width: 900px) {
  .showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.showcase-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
}

.showcase-footer {
  margin: var(--s-4) 0 0;
  text-align: center;
}

.template-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4);
}

.template-gallery a,
.round-gallery a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.template-gallery img,
.round-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
}

.template-option-body,
.shape-card-body {
  padding: var(--s-2) 0 0;
  text-align: center;
}

.template-option-body h2,
.template-option-body h3,
.shape-card-body h2 {
  font-size: 20px;
  margin: 0;
}

.template-intro,
.template-gallery-intro,
.pricing-intro {
  margin-bottom: var(--s-5);
}

.template-intro-center,
.template-center-copy {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.template-intro-center p,
.template-center-copy p {
  margin-left: auto;
  margin-right: auto;
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
}

.shape-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.shape-card img {
  width: 100%;
  border-radius: var(--r-md);
}

.pricing-shape-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pricing-template-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0;
}

/* --------------------------------------------------------------------------
   Panels & cards — DESIGN.md §4. Never nest a card inside a card.
   -------------------------------------------------------------------------- */

.card,
.form-card,
.faq-item,
.service-option,
.process-checklist-card,
.template-preview-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}

/* `.info-card` groups cards on contact/pricing — it must stay a plain container,
   or it becomes a card wrapping cards. DESIGN.md §4. */
.info-card {
  padding: 0;
  background: none;
  border: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
}

.card .icon {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  margin-bottom: var(--s-2);
}

.card h3,
.faq-item h3 {
  font-size: 22px;
  margin-bottom: var(--s-1);
}

.card p:last-child,
.faq-item p:last-child,
.info-card p:last-child,
.service-option p:last-child {
  margin-bottom: 0;
}

/* `.faq-item` is a <details> on the FAQ page and a plain <div> on contact —
   both must look like the same component. */
details.faq-item {
  padding: 0;
}

details.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  list-style: none;
}

/* Replace the browser's disclosure triangle with the same +/- used elsewhere. */
details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "";
  flex: none;
  align-self: center;
  width: 14px;
  height: 14px;
  background-image:
    linear-gradient(var(--burgundy), var(--burgundy)),
    linear-gradient(var(--burgundy), var(--burgundy));
  background-size: 14px 1.5px, 1.5px 14px;
  background-position: center, center;
  background-repeat: no-repeat;
}

/* Open: drop the vertical bar, leaving a minus. */
details.faq-item[open] summary::after {
  background-size: 14px 1.5px, 0 0;
}

details.faq-item summary:hover {
  color: var(--burgundy);
}

.faq-answer {
  padding: 0 var(--s-4) var(--s-3);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-list,
.faq-group,
.faq-sections {
  display: grid;
  gap: var(--s-3);
}

.faq-answer {
  margin-bottom: 0;
}

.faq-contact-card {
  margin-top: var(--s-4);
}

/* Legal pages set long prose inside one panel — keep it readable. */
.process-page .form-card h2,
.process-page .form-card h3 {
  margin-top: var(--s-4);
}

.process-page .form-card h2:first-child,
.process-page .form-card h3:first-child {
  margin-top: 0;
}

.process-page-intro {
  margin-bottom: var(--s-4);
}

.service-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
}

.service-option strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-bottom: var(--s-1);
}

.service-option-rush b {
  color: var(--burgundy);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.price-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
  align-items: start;
}

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--hairline);
}

.price-list .qty {
  font-size: 17px;
  color: var(--body);
}

.price-list .amount {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.price-footnote {
  margin-top: var(--s-2);
}

.pricing-table-wrap {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 12px var(--s-2);
  border-bottom: 1px solid var(--hairline);
}

.pricing-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing-table tbody th {
  font-weight: 400;
  color: var(--body);
}

.pricing-table td {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  color: var(--ink);
}

.pricing-dropdown {
  margin-top: var(--s-4);
  border-top: 1px solid var(--hairline);
}

.pricing-dropdown summary {
  cursor: pointer;
  padding: var(--s-2) 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
}

.pricing-dropdown summary::-webkit-details-marker {
  display: none;
}

.pricing-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.pricing-dropdown summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background-image:
    linear-gradient(var(--burgundy), var(--burgundy)),
    linear-gradient(var(--burgundy), var(--burgundy));
  background-size: 14px 1.5px, 1.5px 14px;
  background-position: center, center;
  background-repeat: no-repeat;
}

.pricing-dropdown[open] summary::after {
  background-size: 14px 1.5px, 0 0;
}

.pricing-dropdown-body {
  padding-bottom: var(--s-3);
}

.shipping-note {
  margin-top: var(--s-3);
  font-size: 15px;
  color: var(--muted);
}

.pricing-single {
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   Forms — DESIGN.md §4
   -------------------------------------------------------------------------- */

.form-card h2 {
  margin-bottom: var(--s-3);
}

form > div {
  margin-bottom: var(--s-3);
}

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(109, 34, 55, 0.12);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

fieldset {
  margin: 0 0 var(--s-4);
  padding: 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

fieldset:first-of-type {
  border-top: 0;
}

legend {
  padding: var(--s-3) 0 var(--s-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

fieldset:first-of-type legend {
  padding-top: 0;
}

.field-note {
  margin: 6px 0 0;
  max-width: none;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

input[type="file"] {
  padding: 10px 12px;
  cursor: pointer;
}

/* Live order summary. The server prices the order independently; this only
   stops the customer reaching Stripe without ever seeing a number. */
.order-summary {
  margin: var(--s-2) 0 var(--s-3);
  padding: var(--s-3);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}

.order-summary dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.order-summary dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
}

.order-summary dt {
  font-size: 15px;
  color: var(--body);
}

.order-summary dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.order-summary-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.order-summary-total dt {
  font-weight: 700;
  color: var(--ink);
}

.order-summary-total dd {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.012em;
}

.photo-note[data-state="error"] {
  color: var(--burgundy);
}

/* Honeypot. Kept out of the layout and out of the accessibility tree — never
   `display:none`, which some bots detect and skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: var(--s-2) 0 0;
  font-size: 15px;
  min-height: 1.4em;
}

.form-status[data-state="error"] {
  color: var(--burgundy);
}

.form-status[data-state="ok"] {
  color: var(--ink);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
}

.field-grid > div {
  margin-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-4);
  align-items: start;
}

/* --------------------------------------------------------------------------
   Template detail pages
   -------------------------------------------------------------------------- */

.template-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-4);
  align-items: start;
}

.template-preview-panel {
  text-align: center;
}

.template-preview-panel img {
  width: 100%;
  max-width: 460px;
  margin: var(--s-3) auto 0;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-product);
}

.template-title-accent {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: var(--s-1);
}

.template-code-below {
  margin-bottom: 0;
}

.placeholder-option {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   How it works — photo transformation, numbered checklist, timeline
   These blocks share one device: a burgundy serif numeral. Gold never carries
   a number, because a number is text (DESIGN.md §2).
   -------------------------------------------------------------------------- */

.step-numeral,
.tribute-stage figcaption > span,
.process-checklist li > span,
.timeline-step {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: var(--burgundy);
  flex: none;
}

.tribute-process-hero {
  padding: var(--s-6) 0 var(--s-5);
}

.tribute-process-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-5);
}

.tribute-process-heading p {
  margin-left: auto;
  margin-right: auto;
}

/* photo → arrow → photo → arrow → photo */
.tribute-transformation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--s-3);
  align-items: start;
}

.tribute-stage {
  margin: 0;
  text-align: center;
}

.tribute-stage img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-product);
}

.tribute-stage figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: var(--s-2);
}

.tribute-stage figcaption strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.tribute-stage figcaption small {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 30ch;
}

/* A caption for the step between two photos — not a headline. */
.tribute-arrow {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 15ch;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.tribute-arrow b {
  font-weight: 400;
  font-size: 20px;
  color: var(--gold);
}

/* Numbered checklist ---------------------------------------------------- */

.process-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}

.process-checklist li {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}

.process-checklist li p {
  margin: 0;
}

.process-checklist li strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 2px;
}

/* Timeline -------------------------------------------------------------- */

.process-timeline {
  margin-top: var(--s-5);
}

.process-timeline h2 {
  margin-bottom: var(--s-2);
}

.timeline-example {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: var(--s-4);
}

/* `.timeline-days` is the wrapper around the four steps; `.timeline-step` is
   the numeral inside each one. */
.timeline-days {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-3);
}

.timeline-days > div {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--s-2);
  align-content: start;
}

.timeline-days > div .timeline-step {
  grid-row: 1 / span 2;
}

.timeline-days > div strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.timeline-days > div > span:last-child {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 4px;
}

.timeline-note {
  margin-top: var(--s-3);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: none;
}

@media (max-width: 900px) {
  .tribute-transformation {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  /* Stacked, the arrow points down the page, not across it. */
  .tribute-arrow {
    max-width: none;
    flex-direction: row;
    justify-content: center;
    gap: var(--s-1);
  }

  .tribute-arrow b {
    transform: rotate(90deg);
    display: inline-block;
  }

  .tribute-stage img {
    max-width: 340px;
    margin: 0 auto;
  }

  .timeline-days {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
}

/* --------------------------------------------------------------------------
   Closing CTA band + footer
   -------------------------------------------------------------------------- */

.cta-panel {
  background: var(--deep);
  color: var(--on-deep);
  padding: var(--s-6) 0;
}

.cta-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-wrap h2 {
  color: var(--on-deep);
}

.cta-wrap p {
  color: var(--on-deep-muted);
  margin-left: auto;
  margin-right: auto;
}

.cta-wrap .button-row {
  justify-content: center;
}

.footer {
  background: var(--surface-warm);
  border-top: 1px solid var(--hairline);
  padding: var(--s-5) 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
}

.footer-branding h3 {
  font-size: 26px;
  margin-bottom: var(--s-1);
}

.footer-branding p {
  font-size: 15px;
  margin-bottom: var(--s-1);
}

.footer-details {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  justify-content: flex-end;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
}

.footer-contact span {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--s-2) var(--s-3) var(--s-3);
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--hairline);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 60px 0;
  }

  .section-topless {
    padding-top: 0;
  }

  .hero-stage {
    min-height: 0;
    padding: 60px 0;
  }

  .cta-panel,
  .footer {
    padding: 60px 0;
  }

  .card,
  .form-card,
  .faq-item,
  .service-option,
  .process-checklist-card,
  .template-preview-panel {
    padding: var(--s-3);
  }

  .hero-template-strip a {
    width: 96px;
  }

  .button-row .btn {
    flex: 1 1 100%;
  }

  .timeline-step {
    grid-template-columns: 1fr;
    gap: var(--s-1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
