/* =====================================================================
   Happy Sleeps — home.css
   ===================================================================== */
.center { text-align: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-track { display: grid; }
.slide { grid-area: 1 / 1; position: relative; height: clamp(420px, 36vw, 660px); opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 55% at 12% 20%, rgba(190, 196, 200, .35), transparent 70%),
    radial-gradient(45% 50% at 85% 85%, rgba(200, 205, 208, .35), transparent 70%),
    radial-gradient(40% 40% at 55% 10%, rgba(220, 224, 226, .45), transparent 70%), #fff; }
.slide.is-on { opacity: 1; visibility: visible; z-index: 2; }
.yellow-dot { position: absolute; left: 20px; top: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--yellow); z-index: 4; animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }

.sl-copy { position: absolute; z-index: 3; display: grid; gap: 28px; }
.sl-copy h2 { font-family: var(--f-hero); color: #727272; line-height: 1.12; display: grid; gap: 4px; }
.sl-copy h2 span { font-weight: 500; font-size: clamp(30px, 3.6vw, 64px); }
.sl-copy h2 b { font-weight: 800; font-size: clamp(34px, 4.4vw, 80px); letter-spacing: -.01em; }
.sl-copy.right { right: 7%; top: 18%; width: 40%; text-align: center; justify-items: center; }
.sl-copy.left { left: 5.5%; top: 28%; max-width: 34%; }
.sl-p { color: #6b7479; font-size: clamp(16px, 1.3vw, 20px); font-weight: 300; max-width: 30ch; margin-top: -10px; }
.btn-lg { height: clamp(52px, 4.2vw, 76px); padding: 0 clamp(32px, 3.6vw, 70px); font-size: clamp(20px, 2.2vw, 36px); font-weight: 400; letter-spacing: 0; }
.slide-beds .btn-lg { margin-top: clamp(24px, 6vw, 110px); }
.sl-discount { position: absolute; right: -7.5vw; top: clamp(150px, 15vw, 250px); background: var(--yellow); color: #fff; display: block; min-width: clamp(260px, 29vw, 520px); padding: clamp(18px, 2.1vw, 40px) 0; text-align: center; font-family: var(--f-hero); font-weight: 800; font-size: clamp(26px, 3vw, 52px); letter-spacing: .01em; text-transform: uppercase; transition: transform .3s; }
.sl-discount:hover { transform: translateX(-10px); }
.sl-discount i { font-style: normal; margin-left: 10px; font-size: 1.4em; line-height: 0; vertical-align: -.1em; }

.slide-sleep .sl-photo { position: absolute; left: 0; top: 0; bottom: 0; width: 62%; -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 99%); mask-image: linear-gradient(to right, #000 62%, transparent 99%); }
.slide-sleep .sl-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 40%; }
.slide-sleep .yellow-dot { left: 1.2%; top: 4%; }

.ph { position: absolute; margin: 0; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-1 { left: 31%; top: 0; width: 41%; height: 70%; clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%); }
.ph-2 { right: 0; bottom: 0; width: 32%; height: 52%; }
.ph-contain { background: #fff; }
.ph-contain img { object-fit: contain; }
.slide-ready .ph-1 { left: 42%; width: 50%; height: 84%; top: 8%; clip-path: none; border-radius: 22px; box-shadow: var(--shadow); }
.shp { position: absolute; display: block; transform: skewX(-14deg); }
.s-gray { left: 28%; top: 5%; width: 6%; height: 19%; background: linear-gradient(180deg, #b8b8b8, #cfcfcf); opacity: .85; }
.s-yellow { right: 17%; top: 17%; width: 8%; height: 19%; background: var(--yellow); }
.s-teal { left: 61%; bottom: 7%; width: 6%; height: 18%; background: var(--teal); }
.slide-ready .s-gray { left: 36%; top: 12%; } .slide-ready .s-yellow { right: 4%; top: 6%; } .slide-ready .s-teal { left: 38%; bottom: 8%; }
.sl-tag { position: absolute; right: 0; top: 2.5%; background: var(--teal); color: #fff; font-size: clamp(14px, 1.5vw, 24px); padding: 10px clamp(14px, 2vw, 30px); border-radius: 12px 0 0 12px; z-index: 3; font-weight: 400; letter-spacing: .01em; }

.hero-nav { position: absolute; top: 50%; z-index: 6; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: var(--shadow-s); display: grid; place-items: center; opacity: 0; transition: opacity .25s, background .2s; }
.hero:hover .hero-nav, .hero-nav:focus-visible { opacity: 1; }
.hero-nav:hover { background: #fff; }
.hero-nav::before { content: ''; width: 12px; height: 12px; border-left: 2.5px solid var(--teal-dd); border-bottom: 2.5px solid var(--teal-dd); transform: rotate(45deg); margin-left: 4px; }
.hero-nav.prev { left: 18px; } .hero-nav.next { right: 18px; } .hero-nav.next::before { transform: rotate(-135deg); margin-left: -4px; }
@media (hover: none) { .hero-nav { opacity: 1; } }
.hero-dots { position: absolute; z-index: 6; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 12px; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; background: #c6cacc; transition: .25s; padding: 0; position: relative; }
.hero-dots button::after { content: ''; position: absolute; inset: -8px; }
.hero-dots button.is-on { background: var(--teal); transform: scale(1.25); }

/* ---------- contact strip ---------- */
.strip { background: var(--bg); }
.strip-in { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.strip-i { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 38px 20px; font-size: 17px; font-weight: 300; color: #6c7578; line-height: 1.4; }
.strip-i b { display: block; font-weight: 700; color: #576166; }
.strip-i > span { display: grid; }
.strip-i.mid { background: #fff; }
.strip-i .tl { color: var(--teal); }
.strip-i:hover .tl, a.strip-i:hover b { color: var(--teal-d); }
.ico-l { width: clamp(44px, 4vw, 64px); height: auto; color: var(--teal); flex-shrink: 0; }

/* ---------- categories ---------- */
.cats-sec { padding-top: clamp(30px, 4vw, 56px); }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.4vw, 48px); max-width: 1310px; margin: 0 auto; }
.cat { position: relative; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 1.3 / 1; background: #eee; box-shadow: var(--shadow-s); transition: box-shadow .3s, transform .3s; }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.cat:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat:hover img { transform: scale(1.06); }
.cat-label { position: absolute; left: 0; top: 22px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(4px); color: var(--teal-dd); font-size: clamp(20px, 2.2vw, 32px); font-weight: 300; padding: 6px clamp(16px, 2vw, 34px) 6px clamp(16px, 2vw, 34px); border-radius: 0 6px 6px 0; }
.cat-more { position: absolute; right: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: #3a2c00; font-weight: 600; padding: 9px 18px; border-radius: 999px; font-size: 15px; transform: translateY(12px); opacity: 0; transition: .3s; }
.cat:hover .cat-more, .cat:focus-visible .cat-more { opacity: 1; transform: none; }
@media (hover: none) { .cat-more { opacity: 1; transform: none; } }

/* ---------- build steps ---------- */
.build { background: linear-gradient(180deg, var(--mint), #f2f9f9); padding: clamp(36px, 5vw, 64px) 0; margin-top: 10px; }
.build-head { text-align: center; margin-bottom: 30px; }
.build-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.build-steps li { background: #fff; border-radius: var(--r); padding: 22px 22px 24px; box-shadow: var(--shadow-s); position: relative; }
.build-steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 600; margin-bottom: 12px; }
.build-steps b { display: block; font-size: 18px; font-weight: 600; color: var(--teal-dd); }
.build-steps p { color: var(--gray); font-weight: 300; margin-top: 4px; font-size: 15.5px; }
.build-steps li:not(:last-child)::after { content: ''; position: absolute; right: -14px; top: 40px; width: 8px; height: 8px; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); transform: rotate(45deg); }

/* ---------- joy banner ---------- */
.joy { background: #fff; padding: 0 clamp(8px, 1vw, 16px); }
.joy-in { max-width: none; background: #fff4d4; position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(140px, 15vw, 260px); overflow: hidden; padding: 0; }
.joy-img { position: absolute; left: 0; top: 0; height: 100%; width: auto; object-fit: cover; }
.joy-t { font-family: var(--f-hero); font-weight: 500; font-size: clamp(26px, 4.9vw, 92px); line-height: 1.1; padding-left: clamp(80px, 20vw, 360px); text-align: center; }
.joy-t .y { color: #ffc10e; }
.joy-t .g { color: var(--teal); font-weight: 800; white-space: nowrap; }
.joy-t .yp { color: #ffc10e; }
.joy-p { display: inline-block; height: .85em; width: auto; margin-left: .05em; vertical-align: -.02em; }

/* ---------- masonry ---------- */
.mason { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.6vw, 24px); margin-top: 26px; align-items: start; }
.m-col { display: grid; gap: clamp(8px, 1.6vw, 24px); }
.m-tile { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #eee; cursor: zoom-in; padding: 0; }
.m-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.m-tile:hover img { transform: scale(1.06); }
.m-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(0, 0, 0, .25), transparent 50%); color: #fff; }
.m-play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--teal-d); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .25s; }
.m-tile:hover .m-play span { transform: scale(1.1); }
.m-play svg { width: 28px; height: 28px; margin-left: 3px; }

.m-tile.vid { aspect-ratio: 4 / 4.6; }
.m-cta { display: grid; align-content: end; gap: 8px; padding: 22px; min-height: 170px; border-radius: 16px; background: linear-gradient(135deg, var(--teal), var(--teal-dd)); color: #fff; box-shadow: var(--shadow-s); transition: transform .3s, box-shadow .3s; }
.m-cta:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.m-cta b { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; line-height: 1.2; }
.m-cta span { display: inline-flex; gap: 6px; align-items: center; color: var(--yellow); font-weight: 500; }

/* ---------- offers ---------- */
.offers-sec { padding-top: 20px; }
.offers-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.offers-head img { height: 38px; width: auto; }
.offers-head span { font-weight: 800; letter-spacing: .02em; color: #6a7478; font-size: 20px; }
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 40px); }
.offer { position: relative; display: block; background: #fff; border: 1px solid #cfd6d8; transition: box-shadow .3s, transform .3s; }
.offer:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.offer-img { position: relative; aspect-ratio: 1.17; overflow: hidden; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.offer:hover .offer-img img { transform: scale(1.06); }
.offer-tag { position: absolute; right: 0; top: 0; background: #fff; color: var(--teal); font-weight: 800; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; padding: 9px 26px; }
.offer-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 22px 20px; }
.offer-body b { font-weight: 700; font-size: 18px; color: #6a7478; }
.offer-pr { text-align: right; line-height: 1.2; color: var(--teal); font-weight: 700; font-size: 19px; }
.offer-pr s { display: block; color: #8a9296; font-weight: 400; font-size: 15px; text-decoration-color: #d6344d; }
.offer-pr small { display: block; font-size: 11px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- instagram ---------- */
.ig { margin: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 90px); background: var(--pink); position: relative; }
.ig-in { display: flex; align-items: center; justify-content: center; min-height: clamp(180px, 20vw, 280px); }
.ig-moon { position: absolute; left: calc(50% - clamp(260px, 22vw, 330px)); top: 50%; width: clamp(220px, 22vw, 340px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at 78% 30%, transparent 0 37%, #000 37.6%); mask-image: radial-gradient(circle at 78% 30%, transparent 0 37%, #000 37.6%); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .15)); }
.ig-moon img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 60%; }
.ig-copy { text-align: center; margin-left: clamp(60px, 18vw, 330px); }
.ig-copy p { font-size: clamp(17px, 1.6vw, 24px); color: #6a7478; font-weight: 300; }
.ig-copy b { font-weight: 700; color: #5a6468; }
.btn-ig { display: inline-block; margin-top: 18px; background: var(--pink-btn); color: #fff; font-weight: 500; font-size: 15px; padding: 12px 34px; border-radius: 999px; box-shadow: 0 8px 20px rgba(255, 62, 165, .35); transition: transform .2s, box-shadow .2s; }
.btn-ig:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 62, 165, .45); }

/* ---------- furniture collection + lookbook ---------- */
.fc { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: end; max-width: 1280px; }
.fc-title { font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; color: #5d666a; }
.fc-sub { color: var(--gray); font-weight: 300; margin: 6px 0 18px; }
.fc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.fc-cards .card-media { aspect-ratio: 1; }
.look { position: relative; border-radius: 18px; overflow: visible; margin-bottom: 0; align-self: stretch; }
.look > img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow); }
.hot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .8), 0 3px 10px rgba(0, 0, 0, .3); animation: ping 2.4s infinite; padding: 0; display: grid; place-items: center; }
.hot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75), 0 3px 10px rgba(0, 0, 0, .3); } 70% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0), 0 3px 10px rgba(0, 0, 0, .3); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 3px 10px rgba(0, 0, 0, .3); } }
.hot-pop { position: absolute; z-index: 5; min-width: 190px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; display: none; gap: 2px; transform: translate(-50%, calc(-100% - 22px)); }
.hot-pop b { font-weight: 600; } .hot-pop span { color: var(--teal-d); font-size: 14px; } .hot-pop em { font-style: normal; color: var(--gray); font-size: 13px; }
.hot-pop::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.hot-wrap { position: absolute; }
.hot-wrap:hover .hot-pop, .hot-wrap:focus-within .hot-pop { display: grid; }

/* lightbox (home) */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 20, 22, .92); display: grid; place-items: center; padding: 40px; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 86vh; border-radius: 10px; object-fit: contain; }
.lb-x { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; font-size: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .fc { grid-template-columns: 1fr; } .look { aspect-ratio: 1.4; }
  .offers { grid-template-columns: repeat(2, 1fr); }
  .build-steps { grid-template-columns: repeat(2, 1fr); } .build-steps li::after { display: none; }
}
@media (max-width: 800px) {
  .slide { height: 560px; }
  .sl-copy.right { right: 0; left: 0; top: 54%; width: auto; padding: 0 20px; }
  .slide-sleep .sl-photo { width: 100%; height: 56%; bottom: auto; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
  .sl-discount { position: static; min-width: 0; width: 100%; padding: 14px 0; font-size: 26px; }
  .sl-copy.left { left: 20px; right: 20px; top: auto; bottom: 46px; max-width: none; text-align: left; }
  .slide-beds .ph-1 { left: 0; width: 100%; height: 44%; top: 0; clip-path: none; }
  .slide-beds .ph-2 { display: none; } .slide-beds .btn-lg { margin-top: 0; }
  .slide-ready .ph-1 { left: 6%; width: 88%; top: 4%; height: 42%; }
  .shp { display: none; }
  .sl-tag { top: auto; bottom: 14px; font-size: 12px; padding: 6px 12px; }
  .slide-beds .sl-tag { display: none; }
  .sl-copy h2 b { font-size: 34px; } .sl-copy h2 span { font-size: 28px; }
  .btn-lg { height: 52px; font-size: 20px; padding: 0 34px; }
  .strip-in { grid-template-columns: 1fr; } .strip-i { padding: 22px; justify-content: flex-start; }
  .cat-grid { grid-template-columns: 1fr; }
  .mason { grid-template-columns: repeat(2, 1fr); }
  .m-col:nth-child(5) { display: none; }
  .fc-cards { grid-template-columns: repeat(2, 1fr); } .fc-cards .card:nth-child(3) { display: none; }
  .ig-moon { left: -70px; width: 220px; } .ig-copy { margin-left: 120px; }
  .joy-img { height: 80%; top: 10%; opacity: .9; } .joy-t { padding-left: 90px; }
}
@media (max-width: 520px) {
  .offers { grid-template-columns: 1fr; }
  .build-steps { grid-template-columns: 1fr; }
  .ig-moon { opacity: .35; left: -90px; } .ig-copy { margin-left: 0; padding: 0 10px; }
}
