/*
 * Maman & Moi mock-up: home page.
 * Hero and proof line, categories, shop row, gifts, story and made by hand, reviews, market, guides.
 * Phone first; min-width 600 px and 1024 px only. Classes are prefixed .hm-; tokens only.
 * No transitions or animations of its own: the rise and the stitch draw come from base.css / core.js.
 */

/* ---------- Block rhythm: --mm-s6 on a phone, --mm-s8 on a computer. Each section carries its own space above. ---------- */
.hm-sec { padding-block: var(--mm-s6) 0; }
.hm-sec--end { padding-bottom: var(--mm-s6); }
@media (min-width: 1024px) {
  .hm-sec { padding-block: var(--mm-s8) 0; }
  .hm-sec--end { padding-bottom: var(--mm-s8); }
}

.hm-link { display: inline-flex; align-items: center; gap: var(--mm-s2); min-height: var(--mm-tap); font-weight: 700; }

/* ---------- 1. Hero ---------- */
.hm-hero { padding-top: var(--mm-s6); }
.hm-hero-grid { display: grid; gap: var(--mm-s6); }
.hm-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--mm-s4); min-width: 0; }
.hm-hero-text .mock-note { margin-top: calc(-1 * var(--mm-s2)); }
.hm-lede { font-size: var(--mm-fs-price); line-height: 1.5; max-width: 36ch; }
.hm-cta { display: flex; flex-direction: column; gap: var(--mm-s3); width: 100%; margin-top: var(--mm-s2); }
.hm-hero-photo { min-width: 0; }
@media (min-width: 600px) {
  .hm-hero-grid { grid-template-columns: minmax(0, 1fr) clamp(220px, 36vw, 340px); align-items: center; gap: var(--mm-s6); }
  .hm-cta { flex-direction: row; flex-wrap: wrap; width: auto; }
}
@media (min-width: 1024px) {
  .hm-hero { padding-top: var(--mm-s8); }
  .hm-hero-grid { grid-template-columns: minmax(0, 1fr) clamp(320px, 36vw, 480px); align-items: center; gap: var(--mm-s8); }
}

/* Proof line (element 30). Phone and tablet: a stitched cross. Computer: one row, stitches between the facts. */
.hm-proof {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 640px; margin-top: var(--mm-s6);
  font: 700 var(--mm-fs-body)/1.3 var(--mm-font-text);
}
.hm-proof::before, .hm-proof::after { content: ""; position: absolute; }
.hm-proof::before { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--mm-mint) 0 7px, transparent 7px 12px); }
.hm-proof::after { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--mm-mint) 0 7px, transparent 7px 12px); }
.hm-proof li { min-height: 66px; display: flex; align-items: center; padding: var(--mm-s2) var(--mm-s4) var(--mm-s2) var(--mm-s1); }
.hm-proof li:nth-child(even) { padding-left: var(--mm-s5); padding-right: var(--mm-s1); }
.hm-proof-note { margin-top: var(--mm-s3); }
/* A reader's larger text on a small phone: two columns no longer hold "Hartbeespoort", so the facts stack,
   stitched apart. In em, so it follows the reader's text size; at the default size it starts below 312 px. */
@media (max-width: 19.5em) {
  .hm-proof { grid-template-columns: minmax(0, 1fr); }
  .hm-proof::before, .hm-proof::after { content: none; }
  .hm-proof li, .hm-proof li:nth-child(even) { padding: var(--mm-s2) 0; }
  .hm-proof li + li { background: repeating-linear-gradient(90deg, var(--mm-mint) 0 7px, transparent 7px 12px) top left / 100% 2px no-repeat; }
}
@media (min-width: 1024px) {
  .hm-proof { display: flex; align-items: center; max-width: none; margin-top: var(--mm-s7); }
  .hm-proof::before, .hm-proof::after { content: none; }
  .hm-proof li, .hm-proof li:nth-child(even) { min-height: var(--mm-tap); padding: 0; white-space: nowrap; }
  .hm-proof li + li { flex: 1 1 auto; gap: var(--mm-s4); }
  .hm-proof li + li::before {
    content: ""; flex: 1 1 24px; min-width: 8px; height: 2px; margin-left: var(--mm-s4);
    background: repeating-linear-gradient(90deg, var(--mm-mint) 0 7px, transparent 7px 12px);
  }
}

/* ---------- 2. Shop by category ---------- */
.hm-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mm-s5) var(--mm-gutter); }
@media (min-width: 1024px) { .hm-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hm-cat { display: flex; flex-direction: column; gap: var(--mm-s2); color: var(--mm-navy); text-decoration: none; border-radius: var(--mm-r-md); }
.hm-cat:hover { color: var(--mm-navy); text-decoration: none; }
.hm-cat:focus-visible { outline-offset: 6px; }
.hm-cat-nm { font-size: var(--mm-fs-h3); line-height: 1.28; margin-top: var(--mm-s1); }
.hm-cat:hover .hm-cat-nm { text-decoration: underline dashed 2px; text-underline-offset: 4px; }
.hm-cat-ln { font-size: var(--mm-fs-small); line-height: 1.25rem; color: var(--mm-grey-700); }

/* ---------- 4. From the shop ---------- */
/* Tablet is three up, so show six cards and keep the last row full */
@media (min-width: 600px) { .hm-shop .card:nth-child(n+7) { display: none; } }
@media (min-width: 1024px) { .hm-shop .card:nth-child(n+7) { display: flex; } }

/* ---------- 5. Gifts ---------- */
.hm-gifts { display: grid; gap: var(--mm-s5); }

/* Large gift set card (element 24). Phone: photo on top. Tablet and computer: photo left, text right. */
.hm-gift { display: grid; border: 1px solid var(--mm-line); border-radius: var(--mm-r-md); background: var(--mm-white); overflow: hidden; }
.hm-gift > .photo { border-radius: 0; }
.hm-gift-body { display: grid; gap: var(--mm-s5); padding: var(--mm-s5) var(--mm-s4); }
.hm-gift-main { display: flex; flex-direction: column; gap: var(--mm-s2); min-width: 0; }
.hm-gift-main .lbl { margin-top: var(--mm-s1); }
.hm-gift-buy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--mm-s3); }
.hm-gift-note { display: inline-flex; align-items: center; min-height: var(--mm-tap); font-size: var(--mm-fs-small); font-weight: 600; }
.hm-inside { display: flex; flex-direction: column; gap: var(--mm-s1); }
.hm-inside li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--mm-fs-small); line-height: 1.375rem; }
.hm-inside li::before { content: ""; flex: none; width: 8px; height: 2px; margin-top: 10px; border-radius: 1px; background: var(--mm-mint); }
@media (min-width: 600px) {
  .hm-gift { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hm-gift > .photo { aspect-ratio: auto; min-height: 240px; } /* fills the card height beside the text */
  .hm-gift-body { align-self: center; padding: var(--mm-s5); }
}
@media (min-width: 1024px) {
  .hm-gift-body { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: var(--mm-s6); }
  .hm-gift-buy { align-items: flex-end; }
}

/* Gift card teaser (element 25): navy card, mint stitched frame, white text */
.hm-gc { position: relative; display: grid; gap: var(--mm-s5); padding: var(--mm-s6) var(--mm-s5); border-radius: var(--mm-r-md); background: var(--mm-navy); color: var(--mm-white); }
.hm-gc .frame { inset: var(--mm-s2); width: calc(100% - 2 * var(--mm-s2)); height: calc(100% - 2 * var(--mm-s2)); }
.hm-gc > :not(.frame) { position: relative; }
.hm-gc-txt { display: flex; flex-direction: column; gap: var(--mm-s2); }
.hm-gc-h { font-size: var(--mm-fs-h2); line-height: 1.22; }
.hm-gc .ph-text { color: var(--mm-mint-200); }
@media (min-width: 600px) {
  .hm-gc { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: var(--mm-s6) var(--mm-s7); }
}

/* Gifts by budget (element 26). Phone: three rows joined by a stitched thread with navy knots. Computer: one scale, three bands. */
.hm-budget { margin-top: var(--mm-s6); }
.hm-budget-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--mm-s2) var(--mm-s5); margin-bottom: var(--mm-s3); }
.hm-budget-head a { display: inline-flex; align-items: center; min-height: var(--mm-tap); font-weight: 700; }
.hm-sub { font-size: var(--mm-fs-h2); line-height: 1.22; }
.hm-scale { display: none; }
ul.hm-bands { display: grid; padding-left: 28px; }
.hm-band { position: relative; padding-bottom: var(--mm-s5); }
.hm-band:last-child { padding-bottom: 0; }
.hm-band::before { content: ""; position: absolute; left: -28px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--mm-navy); }
.hm-band:not(:last-child)::after {
  content: ""; position: absolute; left: -23px; top: 38px; bottom: -18px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--mm-mint) 0 7px, transparent 7px 12px);
}
.hm-band-h { font: inherit; }
.hm-band-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--mm-s3); align-items: center; min-height: 76px; color: var(--mm-navy); text-decoration: none; }
.hm-band-link:hover { color: var(--mm-navy); text-decoration: none; }
.hm-band-nm { grid-column: 1; font: 600 var(--mm-fs-h2)/1.1 var(--mm-font-head); font-stretch: 92%; letter-spacing: -.015em; }
.hm-band-cta { grid-column: 1; font-size: var(--mm-fs-small); line-height: 1.25rem; color: var(--mm-grey-700); }
.hm-band-go { grid-column: 2; grid-row: 1 / span 2; }
.hm-ex { display: flex; flex-direction: column; gap: var(--mm-s1); max-width: 480px; margin-top: var(--mm-s1); }
.hm-ex li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--mm-s4); font-size: var(--mm-fs-small); line-height: 1.25rem; }
.hm-ex strong { font-variant-numeric: tabular-nums; text-align: right; }
@media (min-width: 1024px) {
  .hm-budget { margin-top: var(--mm-s8); }
  .hm-budget-head { margin-bottom: var(--mm-s5); }
  .hm-scale { display: block; height: 28px; margin-bottom: var(--mm-s4); }
  .hm-scale svg { overflow: visible; }
  .hm-scale circle { fill: var(--mm-navy); }
  ul.hm-bands { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 0; }
  .hm-band, .hm-band:last-child { padding: 0 var(--mm-s6) 0 0; }
  .hm-band + .hm-band { padding-left: var(--mm-s6); border-left: 1.5px dashed var(--mm-hole); }
  .hm-band::before, .hm-band:not(:last-child)::after { content: none; }
  .hm-band-link { display: flex; flex-direction: column; align-items: flex-start; gap: var(--mm-s1); min-height: 0; }
  .hm-band-cta { font-size: var(--mm-fs-body); line-height: 1.375rem; font-weight: 700; color: var(--mm-navy); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
  .hm-band-link:hover .hm-band-cta { text-decoration-style: dashed; text-decoration-thickness: 2px; }
  .hm-band-go { display: none; }
  .hm-ex { max-width: none; margin-top: var(--mm-s3); }
}

/* ---------- 6a. Story teaser (element 28) ---------- */
.hm-story { display: grid; gap: var(--mm-s6); align-items: center; }
.hm-story-fig { position: relative; margin: 0 12px 12px 0; isolation: isolate; }
.hm-story-fig .photo { position: relative; z-index: 1; }
.hm-story-frame { position: absolute; z-index: 0; left: 12px; top: 12px; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hm-story-txt { display: flex; flex-direction: column; align-items: flex-start; gap: var(--mm-s4); max-width: 520px; min-width: 0; }
.hm-story-h { font-size: var(--mm-fs-h1); line-height: 1.12; }
@media (min-width: 600px) {
  .hm-story { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--mm-s7); }
}
@media (min-width: 1024px) {
  .hm-story { grid-template-columns: 340px minmax(0, 1fr); gap: var(--mm-s8); }
  .hm-story-fig { margin: 0 16px 16px 0; }
  .hm-story-frame { left: 16px; top: 16px; }
}

/* ---------- 6b. Made by hand (element 29) ---------- */
.hm-steps-wrap { position: relative; }
/* The thread is decoration. core.js only uses the wrapper to know when to draw it, so the wrapper must not fade or move. */
.hm-thread { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hm-thread[data-reveal].is-armed { opacity: 1; }
.hm-thread[data-reveal].is-shown { animation: none; }
.hm-thread svg { position: absolute; }
.hm-thread-m { left: 0; top: 0; width: 44px; height: 100%; }
.hm-thread-d { display: none; max-width: none; left: 22px; top: -12px; width: calc(100% + var(--mm-s6)); height: 68px; } /* starts at the centre of ring 1; one step pitch = (width + gap) / 4 */
.hm-mask { fill: none; stroke: var(--mm-white); stroke-width: 8; }

.hm-steps { position: relative; z-index: 1; display: grid; gap: var(--mm-s5); }
.hm-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.hm-num {
  position: relative; display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px;
  border-radius: 50%; background: var(--mm-white); font: 700 var(--mm-fs-price)/1 var(--mm-font-head); font-stretch: 92%;
}
.hm-num svg { position: absolute; inset: 0; width: 44px; height: 44px; }
.hm-step-body { display: flex; flex-direction: column; gap: var(--mm-s2); min-width: 0; }
.hm-step-ln { font-size: var(--mm-fs-small); line-height: 1.5; }
/* On a phone the last two steps go without a photo, so the block stays short */
.hm-step:nth-child(n+3) .photo { display: none; }
.hm-step:nth-child(n+3) .h3 { margin-top: 10px; }
@media (min-width: 600px) { .hm-step-body .photo { max-width: 360px; } }
@media (min-width: 1024px) {
  .hm-thread-m { display: none; }
  .hm-thread-d { display: block; }
  .hm-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--mm-s6); }
  .hm-step { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .hm-step-body .photo { max-width: none; }
  .hm-step:nth-child(n+3) .photo { display: flex; }
  .hm-step:nth-child(n+3) .h3 { margin-top: 0; }
}

/* ---------- 7. Reviews (element 17: Google badge slot and placeholder cards) ---------- */
.hm-gbadge { display: flex; align-items: center; gap: var(--mm-s4); padding: var(--mm-s4); border: 1.5px solid var(--mm-line); border-radius: var(--mm-r-md); }
.hm-glogo {
  flex: none; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1.5px dashed var(--mm-line-strong); border-radius: var(--mm-r-sm);
  color: var(--mm-grey-700); font: 700 .6875rem/.875rem var(--mm-font-text); letter-spacing: .06em; text-transform: uppercase;
}
.hm-gbadge-t { font: 700 var(--mm-fs-body)/1.35 var(--mm-font-text); }
.hm-revs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--mm-s3) var(--mm-gutter); }
.hm-rev { display: flex; flex-direction: column; gap: var(--mm-s2); padding: var(--mm-s5); border: 1px solid var(--mm-line); border-radius: var(--mm-r-md); }
.hm-rev-nm { font-weight: 700; }

/* ---------- 8. Next market (element 31) ---------- */
.hm-market { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--mm-s3) var(--mm-s4); padding: var(--mm-s4); border-radius: var(--mm-r-md); background: var(--mm-mint-100); }
.hm-market .frame { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.hm-market .frame rect { stroke-width: 1.5; }
.hm-market > :not(.frame) { position: relative; }
.hm-date {
  align-self: start; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; padding: var(--mm-s2) 0;
  border-radius: var(--mm-r-sm); background: var(--mm-white); box-shadow: inset 0 0 0 1.5px var(--mm-navy); text-align: center;
}
.hm-date span { font: 700 var(--mm-fs-label)/1rem var(--mm-font-text); letter-spacing: .08em; text-transform: uppercase; }
.hm-date b { font: 700 var(--mm-fs-h2)/1.1 var(--mm-font-head); font-stretch: 92%; }
.hm-market-body { display: flex; flex-direction: column; gap: var(--mm-s1); min-width: 0; }
.hm-market .lbl { color: var(--mm-navy); }
.hm-market-nm { font: 700 var(--mm-fs-price)/1.3 var(--mm-font-text); }
.hm-market-at { font-size: var(--mm-fs-small); line-height: 1.25rem; }
.hm-market-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 var(--mm-s5); }
.hm-market-links a { display: inline-flex; align-items: center; gap: var(--mm-s2); min-height: var(--mm-tap); font-weight: 700; }
@media (min-width: 1024px) {
  .hm-market { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--mm-s6); padding: var(--mm-s5) var(--mm-s6); }
  .hm-date { align-self: center; width: 76px; }
  .hm-market-links { grid-column: auto; flex-direction: column; align-items: flex-end; gap: 0; }
}

/* ---------- 9. Guides (related-guides pattern) ---------- */
.hm-guides { display: grid; gap: var(--mm-s5) var(--mm-gutter); }
.hm-guide { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--mm-s4); align-items: center; color: var(--mm-navy); text-decoration: none; border-radius: var(--mm-r-md); }
.hm-guide:hover { color: var(--mm-navy); text-decoration: none; }
.hm-guide:focus-visible { outline-offset: 6px; }
.hm-guide-tx { display: flex; flex-direction: column; gap: var(--mm-s1); min-width: 0; }
.hm-guide-t { font: 700 var(--mm-fs-body)/1.35 var(--mm-font-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.hm-guide:hover .hm-guide-t { text-decoration-style: dashed; text-decoration-thickness: 2px; }
@media (min-width: 600px) { .hm-guide { grid-template-columns: 180px minmax(0, 1fr); } }
@media (min-width: 1024px) {
  .hm-guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-guide { grid-template-columns: minmax(0, 1fr); align-items: start; gap: var(--mm-s3); }
}
