/* Window design explorer (Jason, 2026-11-17): state first, then option chips over a photo that changes per
   chip. Windows only for now; doors come later. Colors come from the site's own tokens. */
#explorer.hzx-section { padding: 2rem 0 6rem; background: var(--navy-deep); }
@media (min-width: 640px) { #explorer.hzx-section { padding: 3rem 0 8rem; } }

.hzx-step { margin-top: 2.75rem; }
.hzx-steplabel { font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.hzx-q { margin-top: .5rem; font-family: Archivo, ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.2; color: var(--ivory); }

/* Step 1: three state cards */
.hzx-states { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .625rem; max-width: 40rem; }
.hzx-state { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-height: 64px;
  padding: .85rem .9rem; border: 1px solid oklch(26% .012 55 / .22); border-radius: .5rem; background: var(--navy);
  color: var(--ivory); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.hzx-state:hover { border-color: oklch(26% .012 55 / .45); }
.hzx-state-name { font-size: .95rem; font-weight: 600; padding-right: 1.4rem; }
@media (max-width: 420px) { .hzx-state { padding: .8rem .65rem; } .hzx-state-name { font-size: .875rem; } .hzx-check { top: .5rem; right: .45rem; width: 16px; height: 16px; } }
.hzx-state-sub { font-size: .75rem; color: oklch(26% .012 55 / .6); letter-spacing: .08em; }
.hzx-check { position: absolute; top: .6rem; right: .6rem; width: 18px; height: 18px; border-radius: 999px; border: 1.5px solid oklch(26% .012 55 / .35); }
.hzx-state[aria-checked="true"] { border-color: var(--gold); background: oklch(50% .075 58 / .1); box-shadow: 0 0 0 1px var(--gold) inset; }
.hzx-state[aria-checked="true"] .hzx-check { border-color: var(--gold); background: var(--gold)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Step 2: photo plus chip groups */
.hzx-grid { margin-top: 1.1rem; display: grid; gap: 1.75rem; }
@media (min-width: 1024px) { .hzx-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; } }
.hzx-photo-wrap { position: sticky; top: var(--hzx-top, 76px); z-index: 5; background: var(--navy-deep); padding-bottom: .5rem; }
@media (min-width: 1024px) { .hzx-photo-wrap { top: calc(var(--hzx-top, 76px) + 1.25rem); padding-bottom: 0; } }
.hzx-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: .5rem; border: 1px solid var(--border); background: var(--navy); }
.hzx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s cubic-bezier(0.22, 1, 0.36, 1); }
.hzx-img.is-on { opacity: 1; }
.hzx-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.75rem 1rem .9rem; display: flex; flex-direction: column; gap: .15rem;
  background: linear-gradient(to top, oklch(20% .012 55 / .82), oklch(20% .012 55 / .35) 60%, transparent); color: #fff; }
@media (min-width: 640px) { .hzx-cap { padding: 3.5rem 1.5rem 1.25rem; } }
.hzx-cap-group { font-size: 10px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: oklch(86% .06 75); }
.hzx-cap-title { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.hzx-cap-note { font-size: .875rem; line-height: 1.35; color: rgba(255,255,255,.88); }
@media (min-width: 640px) { .hzx-cap-title { font-size: 1.2rem; } .hzx-cap-note { font-size: .95rem; } }
.hzx-photonote { margin-top: .5rem; font-size: .75rem; color: oklch(26% .012 55 / .62); }

.hzx-groups { display: flex; flex-direction: column; gap: 1.6rem; }
.hzx-glabel { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: oklch(26% .012 55 / .6); }
.hzx-chips { margin-top: .65rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.hzx-chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .45rem .9rem .45rem .7rem; border-radius: .5rem;
  border: 1px solid oklch(26% .012 55 / .22); background: transparent; color: oklch(26% .012 55 / .8); font-size: .875rem; font-weight: 500;
  cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.hzx-chip:hover { border-color: oklch(26% .012 55 / .45); color: var(--ivory); }
.hzx-chip svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hzx-chip[aria-pressed="true"] { border-color: var(--gold); background: oklch(50% .075 58 / .12); color: var(--ivory); box-shadow: 0 0 0 1px var(--gold) inset; }
.hzx-chip[aria-pressed="true"] svg { color: var(--gold); }
.hzx-swatch { width: 18px; height: 18px; border-radius: 999px; flex: none; border: 1px solid oklch(26% .012 55 / .3); }
.hzx-sw-clear { background: linear-gradient(135deg, #f4f9fc, #d7e9f3); }
.hzx-sw-privacy { background: radial-gradient(circle at 30% 30%, #fff 0 20%, transparent 21%), radial-gradient(circle at 70% 65%, #fff 0 18%, transparent 19%), #e6e9ea; }
.hzx-sw-tinted { background: linear-gradient(135deg, #8a9196, #5b6267); }
.hzx-state:focus-visible, .hzx-chip:focus-visible, .hzx-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.hzx-disclaim { font-size: .8125rem; line-height: 1.5; color: oklch(26% .012 55 / .62); }
.hzx-summary { font-size: .9rem; line-height: 1.5; color: var(--ivory); }
.hzx-summary b { font-weight: 600; }
.hzx-cta { align-self: flex-start; min-height: 44px; cursor: pointer; border: 0; }

@media (prefers-reduced-motion: reduce) { .hzx-img, .hzx-state, .hzx-chip { transition: none; } }

/* Inspiration gallery viewer: close button hover (the theme has no white hover class). */
.hzi-close:hover { background: rgba(255, 255, 255, .12); }

/* Quote form: the mimosa vase also shows on phones and tablets, smaller, with room under the form so it never
   covers the fine print. */
@media (max-width: 1023px) {
  #inquiry { padding-bottom: 14.5rem; }
  .hzv-vase { right: .25rem; }
  .hzv-vase img { height: 220px; max-width: 160px; }
}

/* Phones: close the gap after the design section (its bottom padding plus the gallery's top padding were sized for
   computers and left about 250px of empty space after the button). */
@media (max-width: 639px) {
  #explorer.hzx-section { padding-bottom: 2.5rem; }
  #inspiration { padding-top: 3.5rem; }
  .hzx-photo-wrap { padding-bottom: .75rem; }
}

/* see hz-explorer.js: a block that is on screen shows even if the app has not flagged it yet */
.reveal[data-hz-in] { opacity: 1; transform: none; }
