/* Home page of the home-decor redesign (loaded by that page only). Uses the tokens from style.css. */

/* hero arch: room photos cross-fade inside the arch */
.hero-slides .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.hero-slides .slide.is-on { opacity: 1; }
.hero-caption { min-height: 2.6em; }
.hero-dots { display: flex; justify-content: center; gap: .15rem; margin-top: .4rem; }
.hero-dots button { width: 32px; height: 32px; padding: 0; background: none; border: 0; display: grid; place-items: center; cursor: pointer; }
.hero-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold); transition: background .3s, transform .3s; }
.hero-dots button:hover::before { background: var(--gold-soft); }
.hero-dots button[aria-selected="true"]::before { background: var(--gold); transform: scale(1.25); }

/* size guide: the product page's sofa drawing with a real design in it */
.home-sizer { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .home-sizer { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }
.hg-sizes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.hg-sizes button {
  min-height: 44px; padding: 0 1rem; background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 600 13px/1 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer;
}
.hg-sizes button:hover { border-color: var(--olive); color: var(--olive); }
.hg-sizes button[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.hg-out { display: grid; gap: .2rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--hair-gold); }
.hg-out strong { font: 500 1.8rem/1.1 var(--serif); }
.hg-out span { color: var(--muted); font-size: 14px; }
.hg-wall { margin: 14px; padding: 1rem; outline: 1px solid var(--gold); outline-offset: 12px; background: var(--field); box-shadow: var(--shadow); }
.hg-wall .sv-art.hg-frame { fill: none; }
.hg-wall image, #hg-clip-r { transition: x .35s var(--ease), y .35s var(--ease), width .35s var(--ease), height .35s var(--ease); }
.hg-note { margin: 1.6rem 0 0; text-align: center; font: 600 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }

@media (prefers-reduced-motion: reduce) {
  .hero-slides .slide, .hg-wall image, #hg-clip-r { transition: none; }
}

/* ---- collections with colours: one card per design, a dot per colour ---- */
.card-dots { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: .55rem; }
.card-dots svg { width: 13px; height: 13px; flex: none; }
.card-dots circle { stroke: rgba(35, 38, 29, .18); stroke-width: .5; }
.card-dots-n { margin-left: .35rem; font-size: 12px; color: var(--muted); }

/* links to the colour pages, above the grid */
.colour-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.5rem; }
.colour-bar-label { margin-right: .25rem; font: 600 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.colour-chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: 0 .85rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--field); font-size: 13px; text-decoration: none; color: var(--ink);
}
.colour-chip svg { width: 13px; height: 13px; flex: none; }
.colour-chip:hover { border-color: var(--olive); color: var(--olive); }
.colour-chip[aria-current="page"] { background: var(--olive); border-color: var(--olive); color: var(--paper); }

/* home: shop by colour */
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1rem; }
@media (min-width: 700px) { .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .swatches { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 1.5rem; } }
.swatch { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); }
.swatch-img { position: relative; display: block; width: 100%; max-width: 132px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px var(--hair-gold), 0 0 0 5px var(--paper-2), 0 0 0 6px var(--hair-gold); margin-bottom: 1rem; }
.swatch-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.swatch:hover .swatch-img img { transform: scale(1.08); }
.swatch-name { font: 500 1.15rem/1.2 var(--serif); }
.swatch:hover .swatch-name { color: var(--olive); }
.swatch-count { margin-top: .15rem; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* home: four collection tiles need less width than ten deities */
@media (min-width: 1100px) { .deities-few { max-width: 1040px; margin-inline: auto; } }

/* home: mandir backdrops */
.mandir-cta { margin: 1.75rem 0 0; }
.mandir-cards { margin-top: clamp(2.5rem, 5vw, 4rem); }
