/* ==========================================================================
   MakeMymini homepage (redesign Phase 2) — brief §6.
   Loaded only by index.php, after site.css. All classes are hm-* prefixed.
   ========================================================================== */

/* ---------- Section heads ------------------------------------------------ */
.hm-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.hm-head--center { margin-inline: auto; text-align: center; }
.hm-head--center .lead { margin-inline: auto; }
.hm-head h2 { margin: 0 0 0.75rem; }

/* ---------- 3. Hero (split) --------------------------------------------- */
.hm-hero { padding-block: clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hm-hero-grid { display: grid; gap: 2.75rem; align-items: center; }
@media (min-width: 900px) { .hm-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.hm-hero h1 { margin: 0 0 1.25rem; }
.hm-hero-sub { max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }
.hm-cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.9rem 0 1.5rem; }
.hm-micro { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin: 0; padding: 0; list-style: none; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.hm-micro li { display: inline-flex; align-items: center; gap: 0.4rem; }

.hm-hero-visual { position: relative; max-width: 560px; width: 100%; margin-inline: auto; }
.hm-hero-visual::before {
  content: ''; position: absolute; inset: -8% -10% -6% 12%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 122, 28, 0.22), rgba(158, 43, 61, 0.1) 60%, transparent 75%);
}
.hm-hero-frame { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: var(--sand); box-shadow: var(--shadow-float); }
.hm-hero-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-hero-visual .ba { z-index: 1; border-radius: 32px; box-shadow: var(--shadow-float); }
.hm-float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow-float); font-size: 0.82rem; font-weight: 700; color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: hm-bob 6s ease-in-out infinite; }
.hm-float-chip svg { width: 16px; height: 16px; color: var(--maroon); flex-shrink: 0; }
.hm-float-chip--a { left: -0.5rem; top: 12%; }
.hm-float-chip--b { right: -0.5rem; bottom: 12%; animation-delay: -3s; }
@keyframes hm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 480px) { .hm-float-chip--a { left: 0.4rem; } .hm-float-chip--b { right: 0.4rem; } }

/* ---------- 4. Trust strip + marquee ------------------------------------- */
.hm-trust { background: var(--paper); border-block: 1px solid var(--line); }
.hm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; padding: 2.1rem 0; text-align: center; }
.hm-stat strong { display: block; font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 600; line-height: 1.05; color: var(--maroon); font-variant-numeric: lining-nums; }
.hm-stat--text strong { font-size: clamp(1.45rem, 3vw, 2.1rem); }
.hm-stat span, .hm-stat a { font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.hm-stat a { text-underline-offset: 3px; }
.hm-marquee { overflow: hidden; border-top: 1px solid var(--line); padding: 0.95rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.hm-marquee-track { display: flex; width: max-content; animation: hm-marquee 48s linear infinite; }
.hm-marquee-track span { display: inline-flex; align-items: center; white-space: nowrap; padding-left: 1.5rem; font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--muted); }
.hm-marquee-track span::after { content: '\2726'; margin-left: 1.5rem; font-style: normal; font-size: 0.7rem; color: var(--gold); }
.hm-marquee:hover .hm-marquee-track { animation-play-state: paused; }
@keyframes hm-marquee { to { transform: translateX(-50%); } }

/* ---------- 5. Choose your keepsake -------------------------------------- */
.hm-keep-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .hm-keep-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hm-keep { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 32px; padding: clamp(1.6rem, 3.2vw, 2.75rem); min-height: 460px; }
.hm-keep h3 { margin: 0 0 0.6rem; }
.hm-keep p { margin: 0; }
.hm-keep--night { background: var(--grad-night); color: #E5DBC9; }
.hm-keep--night::before { content: ''; position: absolute; right: -20%; top: -30%; width: 75%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 122, 28, 0.28), transparent); pointer-events: none; }
.hm-keep--night > * { position: relative; }
.hm-keep--night h3 { color: #fff; }
.hm-keep--cream { background: linear-gradient(160deg, #FFFFFF 0%, var(--blush) 100%); border: 1px solid var(--line); }
.hm-keep-from { margin: 1.25rem 0 0.25rem; font-size: 0.9rem; font-weight: 600; opacity: 0.85; }
.hm-keep-from .price-tag { font-size: 1.9rem; }
.hm-keep--night .price-tag { color: #F0B968; }
.hm-keep-list { list-style: none; margin: 1.1rem 0 1.6rem; padding: 0; }
.hm-keep-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); text-decoration: none; color: #E5DBC9; transition: color 0.2s var(--ease), padding-left 0.2s var(--ease); }
.hm-keep-list li:first-child a { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.hm-keep-list a:hover { color: #fff; padding-left: 0.4rem; }
.hm-keep-list .n { font-weight: 600; }
.hm-keep-list .pr { font-family: var(--display); color: #F0B968; font-variant-numeric: lining-nums; }
.hm-keep-photo { position: relative; margin: 1.4rem 0 0; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden; background: var(--sand); }
.hm-keep-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-keep .btn { align-self: flex-start; margin-top: auto; }
.hm-keep-body { flex: 1; display: flex; flex-direction: column; }
.hm-keep-body > .btn { margin-top: 1.4rem; }

/* ---------- 7. How it works ---------------------------------------------- */
.hm-steps { position: relative; display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .hm-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.hm-step { position: relative; z-index: 1; text-align: center; padding: 0.5rem 1rem; }
.hm-step-icon { position: relative; width: 84px; height: 84px; margin: 0 auto 1.15rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-float); color: var(--maroon); }
.hm-step-icon svg { width: 34px; height: 34px; }
.hm-step-num { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--maroon); color: #fff; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; }
.hm-step h3 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.hm-step p { margin: 0 auto; max-width: 30ch; color: var(--muted); font-size: 0.95rem; }
.hm-path { display: none; }
@media (min-width: 800px) {
  .hm-path { display: block; position: absolute; z-index: 0; top: 42px; left: 16.6%; width: 66.8%; height: 30px; overflow: visible; }
  .hm-path path { fill: none; stroke-linecap: round; }
  .hm-path .base { stroke: rgba(158, 43, 61, 0.22); stroke-width: 2; stroke-dasharray: 3 9; }
  .hm-path .draw { stroke: var(--maroon); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
  .js .hm-path .draw { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) 0.3s; }
  .js .hm-steps.is-visible .hm-path .draw { stroke-dashoffset: 0; }
}
.hm-how-foot { margin-top: 2.25rem; text-align: center; }

/* ---------- 8. Shop by occasion (colour-shift tabs) ---------------------- */
.hm-occ { background-color: var(--occ-bg, #FBEFF1); background-image: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 30%); transition: background-color 0.7s var(--ease); }
.hm-occ[data-tint="anniversary"] { --occ-bg: #FBE6EA; }
.hm-occ[data-tint="birthday"]    { --occ-bg: #FDEBDD; }
.hm-occ[data-tint="pets"]        { --occ-bg: #E6F0E6; }
.hm-occ[data-tint="family"]      { --occ-bg: #E8EDF7; }
.hm-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 2.25rem; }
.hm-tab { font: inherit; font-weight: 700; font-size: 0.95rem; padding: 0.65rem 1.4rem; min-height: 44px; border-radius: var(--radius-pill); border: 2px solid rgba(36, 27, 22, 0.14); background: rgba(255, 255, 255, 0.75); color: var(--ink); cursor: pointer; transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease); }
.hm-tab:hover { border-color: var(--maroon); }
.hm-tab[aria-selected="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.hm-panel { display: grid; gap: 2rem; align-items: center; animation: hm-fade 0.55s var(--ease); }
.hm-panel[hidden] { display: none; }
@media (min-width: 860px) { .hm-panel { grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; } }
.hm-panel h3 { margin: 0 0 0.75rem; }
.hm-panel p { color: #4d443b; max-width: 42ch; }
.hm-panel-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1rem; }
@keyframes hm-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 9. Before & after gallery (dark) ----------------------------- */
.hm-gal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.hm-gal-nav { display: flex; gap: 0.5rem; }
.hm-gal-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.hm-gal-nav button:hover { background: #fff; color: var(--night); }
.hm-carousel { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 0 1.25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hm-carousel::-webkit-scrollbar { display: none; }
.hm-pair { flex: 0 0 min(88%, 540px); scroll-snap-align: start; background: linear-gradient(160deg, #33222A, #241A1D); border-radius: 28px; padding: 0.9rem; }
.hm-pair-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.hm-pair figure { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #3a2e27; }
.hm-pair img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-pair figcaption { position: absolute; left: 0.6rem; bottom: 0.6rem; padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); background: rgba(27, 20, 17, 0.75); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }

/* ---------- 10. Reviews --------------------------------------------------- */
.hm-wall { display: grid; grid-template-columns: 1fr; gap: 1.1rem; height: 600px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); }
@media (min-width: 700px) { .hm-wall { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hm-wall { grid-template-columns: repeat(3, 1fr); } }
.hm-col { overflow: hidden; }
.hm-col-track { display: grid; gap: 1.1rem; animation: hm-scroll-y var(--dur, 60s) linear infinite; }
.hm-col:nth-child(2) .hm-col-track { animation-direction: reverse; --dur: 72s; }
.hm-col:nth-child(3) .hm-col-track { --dur: 66s; }
.hm-wall:hover .hm-col-track, .hm-wall:focus-within .hm-col-track { animation-play-state: paused; }
@media (max-width: 699px) { .hm-col:nth-child(n+2) { display: none; } }
@keyframes hm-scroll-y { to { transform: translateY(calc(-50% - 0.55rem)); } }

/* ---------- 11. Why MakeMymini (bento) ----------------------------------- */
.hm-bento { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 900px) { .hm-bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); } .hm-tile--wide { grid-column: span 2; grid-row: span 2; } }
.hm-tile { position: relative; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.hm-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.hm-tile-icon { width: 48px; height: 48px; border-radius: 16px; background: var(--sand); color: var(--maroon); display: flex; align-items: center; justify-content: center; margin-bottom: auto; }
.hm-tile-icon svg { width: 24px; height: 24px; }
.hm-tile h3 { margin: 1.5rem 0 0.4rem; font-size: 1.3rem; }
.hm-tile p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.hm-tile--wide { background: linear-gradient(150deg, #8A2336 0%, #6E1A28 55%, #4E1120 100%); border-color: var(--maroon-deep); color: #F3E3DA; }
.hm-tile--wide .hm-tile-icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hm-tile--wide h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.hm-tile--wide p { color: #E8CFC7; font-size: 1.02rem; max-width: 34ch; }

/* ---------- 12. Instagram ------------------------------------------------- */
.hm-insta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 32px; background: linear-gradient(120deg, #FBEAEC 0%, #FDF1E2 100%); }
.hm-insta h2 { margin: 0 0 0.3rem; }
.hm-insta p { margin: 0; color: var(--muted); }

/* ---------- 13. FAQ ------------------------------------------------------- */
.hm-faq-wrap { max-width: 52rem; margin-inline: auto; }
.hm-faq { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; margin-bottom: 0.75rem; transition: border-color 0.2s var(--ease); }
.hm-faq[open] { border-color: rgba(158, 43, 61, 0.4); }
.hm-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; font-family: var(--display); font-weight: 600; font-size: 1.12rem; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: '+'; flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--sand); color: var(--maroon); font-family: var(--body-font); font-size: 1.3rem; line-height: 1; transition: transform 0.25s var(--ease), background-color 0.25s var(--ease); }
.hm-faq[open] summary::after { transform: rotate(45deg); background: var(--maroon); color: #fff; }
.hm-faq .hm-faq-a { padding: 0 1.4rem 1.3rem; color: #4d443b; font-size: 0.97rem; }
.hm-faq .hm-faq-a a { color: var(--maroon); font-weight: 600; }
.hm-faq-more { margin-top: 1.5rem; text-align: center; }

/* ---------- 14. Final CTA -------------------------------------------------- */
.hm-final { text-align: center; position: relative; overflow: hidden; }
.hm-final::before { content: ''; position: absolute; left: 50%; top: -40%; width: min(900px, 120%); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(178, 54, 73, 0.38), transparent 70%); pointer-events: none; }
.hm-final > * { position: relative; }
.hm-final h2 { max-width: 18ch; margin: 0 auto 1.75rem; }

/* ---------- Motion safety --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hm-marquee-track, .hm-col-track, .hm-float-chip, .hm-panel { animation: none !important; }
  .hm-marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .hm-marquee-track [aria-hidden="true"] { display: none; }
  .hm-wall { height: auto; max-height: 640px; overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
  .hm-col { overflow: visible; }
  .hm-col-track [aria-hidden="true"] { display: none; }
  .hm-card:hover, .hm-tile:hover { transform: none; }
  .js .hm-path .draw { stroke-dashoffset: 0; transition: none; }
}
