/* LeadsGate storefront — modern redesign
   Layout concept: the house is the menu. A roofed bento of rooms opens the page,
   product cards sit on soft brand tiles, navy bands carry kits and contact. */
:root {
  --navy: #033067;
  --navy-deep: #021F45;
  --blue: #006BCA;
  --blue-strong: #005BAD;
  --blue-light: #5CA9F2;
  --mist: #F3F7FC;
  --soft: #E5F0FB;
  --ink: #033067;
  --text: #1B2B44;
  --muted: #4A5B73;
  --line: #D6DFEA;
  --line-strong: #7E8FA6;
  --white: #FFFFFF;
  --on-navy-muted: #C9DDF3;
  --ok: #1A7A47;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 1px 2px rgba(3, 48, 103, .06), 0 12px 32px rgba(3, 48, 103, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* type helpers */
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.eyebrow.light { color: var(--blue-light); }
.text-link { font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.text-link:hover { color: var(--blue-strong); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-strong); }
.btn-primary:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--soft); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--soft); }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 0; background: transparent; color: var(--navy); }
.icon-btn:hover { background: var(--mist); }

/* announce + header */
.announce { background: var(--navy); color: var(--on-navy-muted); font-size: 13px; line-height: 18px; }
.announce .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; }
.announce a { color: var(--white); font-weight: 600; text-decoration: none; }
.announce-note { opacity: .85; }
.announce-note a { color: var(--gold); }
@media (max-width: 760px) { .announce-note, .announce-addr { display: none; } .announce .wrap { justify-content: center; text-align: center; } }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(3, 48, 103, .06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; transition: background-color .2s var(--ease); }
.nav a:hover { background: var(--mist); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.list-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px 8px 16px; border-radius: 999px; border: 0; background: var(--navy); color: var(--white); font-size: 14px; font-weight: 600; transition: background-color .2s var(--ease); }
.list-btn:hover { background: var(--blue); }
.list-btn b { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--white); color: var(--navy); display: inline-grid; place-items: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.list-btn.bump b { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 480px) { .brand img { width: 150px; } .list-label { display: none; } .list-btn { padding-left: 12px; } }

/* hero */
.hero { padding-block: 56px 72px; background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.01em; margin-top: 16px; }
.hero h1 em { font-style: italic; color: var(--blue); }
.lead { margin-top: 20px; font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 48ch; }
.hero-search { margin-top: 28px; display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 6px 6px 6px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--text); padding: 10px 0; }
.hero-search:focus-within { border-color: var(--blue); }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero { padding-block: 36px 56px; } }
@media (max-width: 480px) { .hero-search .btn { padding: 10px 16px; } }

/* room chips (used in the hero) */
.room-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.room-chip { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px 8px 8px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--white); color: var(--navy); text-align: left; transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.room-chip:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.room-chip[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--soft); }
.room-chip img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--mist); padding: 3px; }
.room-chip strong { display: block; font-size: 14px; line-height: 1.2; }
.room-chip small { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) { .room-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Christmas promotion ticker */
.promo { position: relative; display: flex; align-items: center; background: #A3122A; color: #FFFFFF; font-size: 14px; font-weight: 600; line-height: 20px; overflow: hidden; }
.promo[hidden] { display: none; }
.promo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: repeating-linear-gradient(90deg, #FFD27A 0 18px, #1F7A4D 18px 36px, #FFFFFF 36px 54px); opacity: .9; }
.promo-viewport { flex: 1; min-width: 0; overflow: hidden; padding-block: 10px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.promo-track { display: flex; width: max-content; animation: ticker var(--ticker-time, 40s) linear infinite; }
.promo:hover .promo-track, .promo:focus-within .promo-track { animation-play-state: paused; }
.promo-group { display: flex; flex-shrink: 0; }
.promo-item { display: inline-flex; align-items: center; gap: 14px; padding-right: 28px; white-space: nowrap; }
.promo-item svg { color: #FFD27A; flex-shrink: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }
.promo-cta { flex-shrink: 0; margin-left: 8px; padding: 6px 14px; border-radius: 999px; background: #FFFFFF; color: #A3122A; font-size: 13px; font-weight: 700; text-decoration: none; }
.promo-cta:hover { background: #FFD27A; }
.promo-close { flex-shrink: 0; width: 40px; height: 40px; margin-right: max(8px, env(safe-area-inset-right, 0px)); display: grid; place-items: center; border: 0; background: transparent; color: #FFFFFF; border-radius: 999px; }
.promo-close:hover { background: rgba(255, 255, 255, .15); }
.promo :focus-visible { outline-color: #FFD27A; }
@media (max-width: 480px) { .promo-cta { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .promo-track { flex-direction: column; width: auto; }
  .promo-group + .promo-group { display: none; }
  .promo-group { flex-wrap: wrap; gap: 4px 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); }
}

/* hero: the 3D LeadsGate store */
.hero3d.store3d { position: relative; padding-top: 0; background: var(--mist); }
.hero3d .store3d-stage { height: clamp(600px, calc(100vh - 160px), 880px); }
.hero3d-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(243, 247, 252, .97) 0%, rgba(243, 247, 252, .9) 30%, rgba(243, 247, 252, .55) 44%, rgba(243, 247, 252, 0) 58%); transition: background .9s var(--ease); }
.hero3d.is-night .hero3d-veil { background: linear-gradient(90deg, rgba(2, 15, 34, .94) 0%, rgba(2, 15, 34, .84) 30%, rgba(2, 15, 34, .45) 44%, rgba(2, 15, 34, 0) 58%); }
.hero3d-copy { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.hero3d-inner { max-width: 560px; pointer-events: auto; }
.hero3d h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 5vw, 72px); line-height: 1.02; letter-spacing: -.01em; margin-top: 14px; transition: color .9s var(--ease); }
.hero3d h1 em { font-style: italic; color: var(--blue); }
.hero3d .lead { transition: color .9s var(--ease); }
.hero3d.is-night h1 { color: #FFFFFF; }
.hero3d.is-night h1 em { color: var(--blue-light); }
.hero3d.is-night .lead, .hero3d.is-night .hero-rooms-title { color: var(--on-navy-muted); }
.hero3d.is-night .eyebrow { color: var(--blue-light); }
.hero3d.is-night .hero-links .btn-ghost { border-color: #FFFFFF; color: #FFFFFF; }
.hero3d.is-night .hero-links .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.hero3d.is-night .hero-links .text-link { color: var(--blue-light); }
.hero-rooms { margin-top: 22px; }
.hero-rooms-title { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.hero3d .room-chip { background: rgba(255, 255, 255, .92); }
.hero3d .hero-links { margin-top: 18px; }
.hero3d .store3d-note { position: absolute; top: 16px; right: max(20px, calc((100% - 1240px) / 2 + 20px)); margin: 0; padding: 6px 12px; border: 0; border-radius: 999px; background: rgba(2, 31, 69, .72); color: #FFFFFF; font-size: 12px; font-weight: 600; }
@media (max-width: 960px) {
  .hero3d { display: flex; flex-direction: column; }
  .hero3d-copy { position: static; display: block; order: -1; padding-block: 28px 20px; }
  .hero3d-inner { max-width: 640px; }
  .hero3d .store3d-stage { height: 520px; }
  .hero3d-veil { display: none; }
  .hero3d.is-night .hero3d-copy { background: #041a36; }
}
@media (max-width: 560px) { .hero3d .store3d-stage { height: 470px; } }

/* 3D store */
.store3d { padding-top: 28px; }
.store3d-stage { position: relative; height: clamp(520px, 52vw, 760px); overflow: hidden; background: linear-gradient(180deg, #9fc6ee 0%, #cfe2f6 42%, #e9f0f8 66%, #e3ecf6 100%); transition: background .9s var(--ease); }
.store3d-stage.is-night { background: linear-gradient(180deg, #01081a 0%, #041a36 45%, #0b1f39 66%, #0c1f38 100%); }
.store3d-stage::before { content: ""; position: absolute; inset: 0 0 45% 0; opacity: 0; transition: opacity .9s var(--ease); background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 12%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 46% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 9%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 78% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 36% 36%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 33%, #fff 50%, transparent 51%); }
.store3d-stage.is-night::before { opacity: .85; }
.store3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.store3d-canvas:active { cursor: grabbing; }
.store3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease); }
.store3d.is-ready .store3d-poster { opacity: 0; pointer-events: none; }
.store3d-hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { position: absolute; left: 0; top: 0; margin: -16px 0 0 -14px; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 6px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; box-shadow: 0 8px 22px rgba(2, 20, 45, .28); transition: opacity .2s var(--ease); }
.hotspot:hover .hs-label { text-decoration: underline; text-underline-offset: 3px; }
.hotspot.is-hidden { opacity: 0; pointer-events: none; }
.hotspot.flip { flex-direction: row-reverse; padding: 6px 6px 6px 14px; }
.hs-dot { position: relative; width: 22px; height: 22px; border-radius: 999px; background: var(--blue); animation: hs-pulse 2.2s ease-out infinite; }
.hs-dot::after { content: ""; position: absolute; inset: 7px; border-radius: 999px; background: #FFFFFF; }
@keyframes hs-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 107, 202, .55); } 75%, 100% { box-shadow: 0 0 0 12px rgba(0, 107, 202, 0); } }
.store3d-copy { position: absolute; top: 24px; left: max(20px, calc((100% - 1240px) / 2 + 20px)); max-width: 400px; padding: 20px 22px; border-radius: var(--r-lg); background: rgba(2, 31, 69, .84); color: var(--on-navy-muted); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.store3d-copy h2 { margin-top: 8px; color: #FFFFFF; font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.08; }
.store3d-hint { margin-top: 10px; font-size: 14px; line-height: 1.55; }
.store3d-note { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 12px; line-height: 1.5; }
.store3d-ui { position: absolute; right: max(20px, calc((100% - 1240px) / 2 + 20px)); bottom: 20px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.store3d-ui button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px rgba(2, 20, 45, .22); }
.store3d-ui button:hover { background: #FFFFFF; }
#s3-night[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; }
.store3d:not(.is-ready) .store3d-ui { display: none; }
.store3d-activate { position: absolute; left: 50%; top: 76%; transform: translate(-50%, -50%); min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--navy); color: #FFFFFF; font-weight: 700; font-size: 15px; box-shadow: 0 10px 26px rgba(2, 20, 45, .35); }
.store3d-activate[aria-pressed="true"] { top: auto; bottom: 70px; transform: translateX(-50%); background: #FFFFFF; color: var(--navy); }
.store3d.no-3d .store3d-ui, .store3d.no-3d .store3d-activate, .store3d.no-3d .store3d-hint { display: none; }
@media (max-width: 760px) {
  .store3d-stage { height: 600px; }
  .store3d-copy { left: 12px; right: 12px; top: 12px; max-width: none; padding: 14px 16px; }
  .store3d-copy h2 { font-size: 24px; }
  .store3d-hint { font-size: 13px; margin-top: 6px; }
  .store3d-note { margin-top: 6px; padding-top: 6px; }
  .store3d-ui { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
  .store3d-ui button { padding: 8px 12px; font-size: 13px; }
  .hotspot { font-size: 12px; min-height: 32px; }
  #s3-zoom-in, #s3-zoom-out { display: none; }
}
@media (max-width: 560px) { .store3d:not(.exploring) .store3d-hotspots { display: none; } .store3d.exploring .store3d-copy { display: none; } }
@media (prefers-reduced-motion: reduce) { .hs-dot { animation: none; } }

/* header search */
.header-search { flex: 1; max-width: 360px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--mist); color: var(--muted); }
.header-search:focus-within { border-color: var(--blue); background: var(--white); }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text); }
.search-mobile { display: none; }
@media (max-width: 1100px) { .header-search { display: none; } .search-mobile { display: inline-grid; } }

/* shop by category */
.cats { padding-block: 40px 8px; }
.cats-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.cats-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); }
.cats-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cat { display: grid; justify-items: center; gap: 10px; padding: 8px 4px; border: 0; background: none; color: var(--navy); text-align: center; font-size: 14px; font-weight: 600; line-height: 1.3; border-radius: var(--r-md); }
.cat-img { width: 104px; height: 104px; max-width: 100%; border-radius: 999px; display: grid; place-items: center; background: var(--soft); border: 2px solid transparent; transition: border-color .2s var(--ease), transform .3s var(--ease); overflow: hidden; }
.cat-img img { width: 62%; height: 62%; object-fit: contain; }
.cat:hover .cat-img { transform: translateY(-3px); border-color: var(--blue); }
.cat[aria-pressed="true"] .cat-img { border-color: var(--navy); background: var(--white); }
.cat small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .cats-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; padding-bottom: 8px; margin-inline: -4px; } .cat { flex: 0 0 96px; scroll-snap-align: start; } .cat-img { width: 76px; height: 76px; } }

/* trust row */
.trust { border-top: 1px solid var(--line); background: var(--white); }
.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 32px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; color: var(--blue); }
.trust-item svg { flex-shrink: 0; }
.trust-item strong { display: block; color: var(--navy); font-size: 15px; }
.trust-item span { color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .trust-row { grid-template-columns: minmax(0, 1fr); } }

/* mobile quick bar + back to top */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(3, 48, 103, .08); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .mobile-bar a, .mobile-bar button { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 6px 0; border: 0; background: none; color: var(--navy); font-size: 12px; font-weight: 600; text-decoration: none; position: relative; }
  .mobile-bar b { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--blue); color: var(--white); font-size: 11px; display: grid; place-items: center; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
.to-top { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 34; width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--navy); color: var(--white); display: grid; place-items: center; box-shadow: var(--shadow); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--blue); }
@media (max-width: 760px) { .to-top { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); } }

/* price on cards (shown once prices are added to the catalogue) */
.card-price.has-price { color: var(--navy); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card-price s { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 6px; }

/* ranges marquee (unused) */
.ranges { border-block: 1px solid var(--line); background: var(--white); overflow: hidden; }
.ranges-track { display: flex; gap: 56px; width: max-content; padding-block: 18px; animation: marquee 32s linear infinite; }
.ranges span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 24px; color: var(--navy); white-space: nowrap; }
.ranges img { width: 32px; height: 32px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { padding-block: 88px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; margin-top: 10px; max-width: 20ch; }
.section-note { color: var(--muted); max-width: 36ch; font-size: 15px; }
@media (max-width: 640px) { .section { padding-block: 64px; } }

/* bento edit */
.bento { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: repeat(2, minmax(220px, auto)); gap: 16px; }
.bento-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; overflow: hidden; padding: 28px; border: 0; border-radius: var(--r-lg); text-align: left; background: var(--mist); color: var(--navy); min-height: 220px; transition: transform .35s var(--ease); }
.bento-card:hover { transform: translateY(-4px); }
.bento-lg { grid-row: span 2; background: var(--navy); color: var(--white); min-height: 460px; }
.bento-blue { background: var(--blue); color: var(--white); }
.bento-soft { background: var(--soft); }
.bento-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; max-width: 100%; }
.bento-text strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.bento-lg .bento-text strong { font-size: clamp(30px, 3.4vw, 46px); }
.bento-cta { font-size: 14px; font-weight: 600; }
.bento-blue .eyebrow.light, .bento-lg .eyebrow.light { color: var(--on-navy-muted); }
.bento-card img { align-self: flex-end; margin-top: auto; width: 62%; max-height: 190px; object-fit: contain; object-position: right bottom; transition: transform .5s var(--ease); }
.bento-lg img { width: 92%; max-height: 420px; }
.bento-card:hover img { transform: scale(1.05) rotate(-1.5deg); }
@media (max-width: 860px) { .bento { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } .bento-lg { grid-row: auto; min-height: 0; } .bento-card { min-height: 0; } .bento-lg img { max-height: 260px; } }

/* shop */
.shop { background: var(--mist); }
.toolbar { position: sticky; top: 76px; z-index: 10; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding-block: 12px; background: var(--mist); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--navy); font-size: 14px; font-weight: 600; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip .n { font-weight: 500; opacity: .7; margin-left: 4px; font-variant-numeric: tabular-nums; }
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--muted); width: min(300px, 100%); }
.search:focus-within { border-color: var(--blue); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--text); }
.result-count { margin: 8px 0 20px; font-size: 14px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); animation: rise .45s var(--ease) both; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes rise { from { opacity: .001; transform: translateY(12px); } }
.card-top { position: relative; }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; max-width: 100%; border: 0; padding: 0; background: var(--soft); overflow: hidden; cursor: zoom-in; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.card-media .img-cut { object-fit: contain; padding: 12%; }
.card-media .img-home { opacity: 0; }
.card:hover .img-home, .card:focus-within .img-home { opacity: 1; }
.card:hover .img-cut { transform: scale(1.04); }
.card-tag { position: absolute; top: 14px; left: 14px; z-index: 1; font-size: 11px; line-height: 22px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 0 10px; border-radius: 999px; background: var(--white); color: var(--navy); }
.card-add { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 999px; border: 0; background: var(--navy); color: var(--white); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(3, 48, 103, .25); transition: background-color .2s var(--ease), transform .2s var(--ease); }
.card-add:hover { background: var(--blue); transform: scale(1.06); }
.card-add.added { background: var(--ok); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.card-room { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-name { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--navy); text-align: left; background: none; border: 0; padding: 0; }
.card-name:hover { color: var(--blue); }
.card-price { font-size: 14px; color: var(--muted); }
.empty { grid-column: 1 / -1; padding: 48px 24px; border-radius: var(--r-lg); background: var(--white); text-align: center; display: grid; gap: 12px; justify-items: center; }
.empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; }
.empty p { color: var(--muted); max-width: 48ch; }
.empty .icons { display: flex; gap: 12px; }
.empty .icons img { width: 48px; height: 48px; padding: 8px; border-radius: 999px; background: var(--soft); }
@media (max-width: 640px) { .toolbar { position: static; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .card-body { padding: 12px 12px 16px; } .card-name { font-size: 14px; } .card-add { width: 40px; height: 40px; right: 10px; bottom: 10px; } .card-tag { display: none; } }

/* kits */
.kits { background: var(--navy); color: var(--on-navy-muted); }
.kits h2 { color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; margin-top: 12px; }
.kits-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.kits-intro > p:not(.eyebrow) { margin-top: 16px; max-width: 46ch; }
.kit-tabs { display: grid; gap: 10px; margin-top: 28px; }
.kit-tab { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 16px 20px; border-radius: var(--r-md); border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: var(--white); text-align: left; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.kit-tab:hover { background: rgba(255, 255, 255, .06); }
.kit-tab[aria-pressed="true"] { background: var(--white); color: var(--navy); border-color: var(--white); }
.kit-tab strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.kit-tab small { grid-column: 1; font-size: 13px; opacity: .8; }
.kit-tab .k-n { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kit-panel { background: var(--white); color: var(--text); border-radius: var(--r-xl); padding: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.kit-panel h3 { font-family: var(--font-display); font-weight: 400; font-size: 30px; }
.kit-panel-head p { color: var(--muted); margin-top: 4px; }
.kit-items { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.kit-items label { display: grid; grid-template-columns: 22px 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 12px; border-radius: var(--r-md); background: var(--mist); font-weight: 600; font-size: 15px; color: var(--navy); cursor: pointer; transition: opacity .2s var(--ease), background-color .2s var(--ease); }
.kit-items label:hover { background: var(--soft); }
.kit-items label.off { opacity: .5; }
.kit-items input { width: 20px; height: 20px; accent-color: var(--blue); }
.kit-items img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--r-sm); background: var(--white); padding: 4px; }
.kit-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.kit-foot strong { color: var(--navy); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .kits-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .kit-panel { padding: 20px; } }

/* how */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { padding: 28px; border-radius: var(--r-lg); background: var(--mist); display: grid; gap: 10px; align-content: start; }
.step-n { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 19px; font-weight: 700; margin-top: 6px; }
.steps p { color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* visit */
.visit { background: var(--navy-deep); color: var(--on-navy-muted); padding-block: 88px; }
.visit-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.visit-photo { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-note { position: absolute; left: 14px; bottom: 14px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(2, 31, 69, .75); color: var(--white); }
.visit h2 { color: var(--white); font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; margin-top: 12px; }
.visit-lead { margin-top: 14px; font-size: 17px; }
.contact-cards { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-card.wide { grid-column: 1 / -1; }
@media (max-width: 420px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
.contact-card { padding: 20px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); min-width: 0; }
.contact-card h3 { color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.contact-card p { font-size: 15px; line-height: 1.75; overflow-wrap: break-word; }
.contact-card a { color: var(--white); text-decoration: none; font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: minmax(0, 1fr); } .visit-photo { aspect-ratio: 16 / 10; } }

/* footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: start; }
.footer-brand img { width: 220px; height: auto; }
.footer-brand p { margin-top: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a, .footer-links button { color: var(--white); background: none; border: 0; padding: 8px 0; font-size: 14px; font-weight: 600; text-decoration: none; }
.footer-links a:hover, .footer-links button:hover { text-decoration: underline; }
.footer-small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; line-height: 1.7; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* dialog */
dialog { width: min(920px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--white); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
dialog::backdrop { background: rgba(2, 20, 45, .55); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
dialog .close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--white); color: var(--navy); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
#modal-content { padding: 0; }
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.detail-media { background: var(--soft); padding: 20px; display: grid; gap: 12px; }
.detail-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: var(--r-md); background: var(--white); }
.views { display: flex; gap: 8px; flex-wrap: wrap; }
.views button { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--navy); font-size: 13px; font-weight: 600; }
.views button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.detail-body { padding: 40px 32px 32px; display: flex; flex-direction: column; gap: 14px; }
.detail-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1.08; }
.detail-body p { color: var(--muted); }
.detail-body .fine { font-size: 13px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
@media (max-width: 720px) { .detail { grid-template-columns: minmax(0, 1fr); } .detail-body { padding: 24px 20px 24px; } .detail-body h2 { font-size: 28px; } }
.panel { padding: 36px 32px 32px; display: grid; gap: 14px; }
.panel h2 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; }
.panel p { color: var(--muted); }
.panel textarea { width: 100%; min-height: 220px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line-strong); font: inherit; font-size: 15px; line-height: 1.6; color: var(--text); resize: vertical; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.panel a { color: var(--blue); font-weight: 600; }

/* drawer */
#overlay { position: fixed; inset: 0; z-index: 40; background: rgba(2, 20, 45, .5); backdrop-filter: blur(3px); }
#drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(440px, 100%); background: var(--white); display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0, 0, 0, .2); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); animation: slide .3s var(--ease); }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 24px 20px 16px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 30px; margin-top: 4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-md); background: var(--mist); padding: 6px; }
.line-name { font-weight: 600; color: var(--navy); line-height: 1.35; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; color: var(--navy); font-size: 18px; border-radius: 999px; }
.qty button:hover { background: var(--mist); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.remove { background: none; border: 0; padding: 8px 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.drawer-empty { padding: 48px 8px; text-align: center; color: var(--muted); display: grid; gap: 8px; }
.drawer-empty strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--navy); }
.drawer-foot { padding: 16px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.fine { font-size: 13px; color: var(--muted); }

/* toast */
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translate(-50%, 16px); padding: 12px 20px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* reveal on scroll (content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* prototype stock and pricing */
.stock { margin: 2px 0 0; font-size: 12.5px; font-weight: 700; }
.stock.in { color: #1E7A46; } .stock.low { color: #A35A00; } .stock.out { color: #A3122A; }
.demo { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; vertical-align: middle; }
.card-add:disabled { opacity: .45; cursor: not-allowed; }
.list-total { font-weight: 800; font-size: 15px; margin: 0 0 6px; }
.list-total:empty { display: none; }
.drawer-foot .btn + .btn { margin-top: 8px; }
