/* =====================================================================
 *  DIZEN — HOMEPAGE
 * =====================================================================
 *  Loaded AFTER css/style.css on index.php only.
 *  Namespaced under .hm-* so nothing leaks into the rest of the theme.
 *  Shares the palette with css/catalog.css and css/about.css; the tokens
 *  are redeclared here so this file stands on its own.
 * ===================================================================== */

:root {
    --hm-accent: #d7b39a;
    --hm-accent-dk: #c19a7d;
    --hm-ink: #14161a;
    --hm-ink-2: #5b6270;
    --hm-line: #e8e8e6;
    --hm-surface: #f6f5f3;
    --hm-radius: 18px;
    --hm-shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 10px 30px rgba(20, 22, 26, .07);
    --hm-shadow-lg: 0 2px 6px rgba(20, 22, 26, .06), 0 26px 56px rgba(20, 22, 26, .16);
}

.hm-page { overflow-x: clip; }


/* ---- shared bits ------------------------------------------------- */

.hm-section { padding: 100px 0; }
.hm-section--tight { padding: 76px 0; }
.hm-section--surface { background: var(--hm-surface); }
.hm-section--ink { background: var(--hm-ink); color: #fff; }

@media (max-width: 767px) {
    .hm-section { padding: 58px 0; }
    .hm-section--tight { padding: 46px 0; }
}

.hm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--hm-accent-dk);
    margin: 0 0 15px;
}

.hm-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--hm-accent); }
.hm-section--ink .hm-eyebrow { color: var(--hm-accent); }

.hm-h2 {
    font-size: 38px;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--hm-ink);
    margin: 0 0 16px;
}

.hm-section--ink .hm-h2 { color: #fff; }

@media (max-width: 991px) { .hm-h2 { font-size: 31px; } }
@media (max-width: 575px) { .hm-h2 { font-size: 26px; } }

.hm-lead {
    font-size: 16px;
    line-height: 1.8;
    color: var(--hm-ink-2);
    margin: 0;
    max-width: 62ch;
}

.hm-section--ink .hm-lead { color: rgba(255, 255, 255, .7); }

/* section head with an optional action on the right */
.hm-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 44px;
}

.hm-head__text { max-width: 640px; }
.hm-head--center { flex-direction: column; align-items: center; text-align: center; }
.hm-head--center .hm-eyebrow { justify-content: center; }
.hm-head--center .hm-lead { margin-left: auto; margin-right: auto; }

@media (max-width: 767px) { .hm-head { margin-bottom: 32px; } }

/* buttons */
.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .3s ease, color .3s ease, border-color .3s ease,
                transform .3s ease, box-shadow .3s ease;
}

.hm-btn:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 3px; }
.hm-btn--solid { background: var(--hm-ink); color: #fff; }

.hm-btn--solid:hover {
    background: var(--hm-accent);
    color: var(--hm-ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(215, 179, 154, .45);
}

.hm-btn--ghost { background: transparent; color: var(--hm-ink); border-color: var(--hm-line); }
.hm-btn--ghost:hover { border-color: var(--hm-ink); transform: translateY(-2px); }

.hm-btn--sm { padding: 12px 24px; font-size: 11.5px; }

.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hm-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hm-ink);
    white-space: nowrap;
}

.hm-link i { transition: transform .3s ease; }
.hm-link:hover { color: var(--hm-accent-dk); }
.hm-link:hover i { transform: translateX(4px); }


/* =====================================================================
 *  1. HERO SLIDESHOW  (replaces Revolution Slider)
 * ===================================================================== */

.hm-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: var(--hm-ink);
    overflow: hidden;
}

/* svh isn't everywhere yet */
@supports not (min-height: 100svh) { .hm-hero { min-height: 100vh; } }

@media (max-width: 991px) { .hm-hero { min-height: 640px; } }
@media (max-width: 575px) { .hm-hero { min-height: 560px; } }

.hm-hero__slides { position: absolute; inset: 0; }

.hm-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hm-hero__slide.is-active { opacity: 1; visibility: visible; }

.hm-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

/* slow Ken Burns drift on the visible slide only */
.hm-hero__slide.is-active img { animation: hmDrift 14s ease-out forwards; }

@keyframes hmDrift {
    from { transform: scale(1.02); }
    to   { transform: scale(1.11); }
}

/* The slider photographs are already dark, so the veil only needs to be
   heavy enough on the left for the copy to hold contrast — anything more
   and the image disappears entirely. */
.hm-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(8, 9, 11, .86) 0%, rgba(8, 9, 11, .58) 40%, rgba(8, 9, 11, .12) 78%, rgba(8, 9, 11, 0) 100%),
        linear-gradient(0deg, rgba(8, 9, 11, .55) 0%, rgba(8, 9, 11, 0) 30%),
        radial-gradient(110% 80% at 92% 8%, rgba(215, 179, 154, .22) 0%, rgba(215, 179, 154, 0) 60%);
}

.hm-hero__inner { position: relative; z-index: 3; padding: 150px 0 120px; }

@media (max-width: 767px) { .hm-hero__inner { padding: 120px 0 110px; } }

/* the copy for each slide is stacked and cross-faded */
.hm-hero__copy { position: relative; }

.hm-hero__pane {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity .7s ease .15s, transform .7s ease .15s, visibility .7s ease .15s;
    pointer-events: none;
}

.hm-hero__pane.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.hm-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--hm-accent);
    margin: 0 0 18px;
}

.hm-hero__tag::before { content: ""; width: 32px; height: 1px; background: var(--hm-accent); }

.hm-hero__pane h1,
.hm-hero__pane h2 {
    font-size: 66px;
    line-height: 1.06;
    font-weight: 600;
    letter-spacing: -.025em;
    color: #fff;
    margin: 0 0 20px;
    max-width: 14ch;
}

@media (max-width: 1199px) { .hm-hero__pane h1, .hm-hero__pane h2 { font-size: 52px; } }
@media (max-width: 767px)  { .hm-hero__pane h1, .hm-hero__pane h2 { font-size: 36px; max-width: none; } }

.hm-hero__pane p {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .74);
    margin: 0 0 32px;
    max-width: 54ch;
}

@media (max-width: 767px) { .hm-hero__pane p { font-size: 15px; margin-bottom: 24px; } }

.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-hero__actions .hm-btn--solid { background: #fff; color: var(--hm-ink); }
.hm-hero__actions .hm-btn--solid:hover { background: var(--hm-accent); color: var(--hm-ink); }
.hm-hero__actions .hm-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.hm-hero__actions .hm-btn--ghost:hover { border-color: #fff; }

/* dot navigation */
.hm-hero__nav {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 44px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 767px) { .hm-hero__nav { bottom: 30px; } }

.hm-hero__dot {
    width: 34px;
    height: 3px;
    border: 0;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .3);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: background .3s ease;
}

.hm-hero__dot:hover { background: rgba(255, 255, 255, .55); }
.hm-hero__dot:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 4px; }

/* the active dot fills up as a progress bar */
.hm-hero__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hm-accent);
    transform: scaleX(0);
    transform-origin: left;
}

.hm-hero__dot.is-active::after { animation: hmDot var(--hm-dot-duration, 6s) linear forwards; }
.hm-hero.is-paused .hm-hero__dot.is-active::after { animation-play-state: paused; }

@keyframes hmDot { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* scroll cue */
.hm-hero__cue {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 78px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .55);
    font-size: 18px;
    animation: hmBob 2.4s ease-in-out infinite;
}

@media (max-width: 991px) { .hm-hero__cue { display: none; } }

@keyframes hmBob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

/* static fallback when the slider table is empty */
.hm-hero--static .hm-hero__slide { opacity: 1; visibility: visible; }


/* =====================================================================
 *  2. MARQUEE STRIP
 * ===================================================================== */

.hm-strip {
    background: var(--hm-ink);
    color: rgba(255, 255, 255, .8);
    padding: 18px 0;
    overflow: hidden;
    white-space: nowrap;
}

.hm-strip__track {
    display: inline-flex;
    align-items: center;
    gap: 46px;
    padding-right: 46px;
    animation: hmScroll 34s linear infinite;
}

.hm-strip:hover .hm-strip__track { animation-play-state: paused; }

@keyframes hmScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.hm-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hm-strip__item i { color: var(--hm-accent); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
    .hm-strip__track { animation: none; }
}


/* =====================================================================
 *  3. INTRO SPLIT
 * ===================================================================== */

.hm-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 68px;
    align-items: center;
}

@media (max-width: 991px) { .hm-split { grid-template-columns: 1fr; gap: 42px; } }

.hm-intro__body p { font-size: 15px; line-height: 1.85; color: var(--hm-ink-2); margin: 0 0 16px; }

.hm-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--hm-line);
}

@media (max-width: 575px) { .hm-facts { grid-template-columns: 1fr; } }

.hm-facts li { padding: 22px 22px 0 0; }
.hm-facts li + li { padding-left: 22px; box-shadow: inset 1px 0 0 var(--hm-line); }

@media (max-width: 575px) {
    .hm-facts li + li { padding-left: 0; box-shadow: inset 0 1px 0 var(--hm-line); padding-top: 18px; }
}

.hm-facts strong {
    display: block;
    font-size: 27px;
    line-height: 1;
    font-weight: 600;
    color: var(--hm-ink);
    margin-bottom: 7px;
}

.hm-facts span {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hm-ink-2);
}

/* photo with accent frame */
.hm-figure { position: relative; isolation: isolate; }

.hm-figure__main {
    position: relative;
    z-index: 1;
    border-radius: var(--hm-radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--hm-surface);
    box-shadow: var(--hm-shadow);
}

@supports not (aspect-ratio: 4 / 5) { .hm-figure__main { height: 540px; } }

.hm-figure__main img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hm-figure::before {
    content: "";
    position: absolute;
    right: -20px;
    top: 34px;
    bottom: 34px;
    width: 58%;
    border: 1px solid var(--hm-accent);
    border-radius: var(--hm-radius);
    z-index: 0;
}

@media (max-width: 575px) { .hm-figure::before { display: none; } }

.hm-figure__badge {
    position: absolute;
    z-index: 2;
    left: -18px;
    bottom: 32px;
    background: var(--hm-ink);
    color: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: var(--hm-shadow-lg);
    max-width: 220px;
}

@media (max-width: 575px) { .hm-figure__badge { left: 12px; bottom: 12px; padding: 15px 17px; } }

.hm-figure__badge strong {
    display: block;
    font-size: 25px;
    line-height: 1;
    color: var(--hm-accent);
    margin-bottom: 6px;
}

.hm-figure__badge span { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .74); }


/* =====================================================================
 *  4. SHOP BY CATEGORY
 * ===================================================================== */

.hm-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1199px) { .hm-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px)  { .hm-cats { grid-template-columns: 1fr; } }

a.hm-cat, a.hm-cat:hover { text-decoration: none; color: inherit; }

.hm-cat {
    position: relative;
    display: block;
    border-radius: var(--hm-radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--hm-ink);
    transition: transform .4s cubic-bezier(.2, .8, .3, 1), box-shadow .4s ease;
}

@supports not (aspect-ratio: 4 / 5) { .hm-cat { height: 340px; } }

.hm-cat:hover { transform: translateY(-6px); box-shadow: var(--hm-shadow-lg); }
.hm-cat:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 3px; }

.hm-cat img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .8, .3, 1);
}

.hm-cat:hover img { transform: scale(1.08); }

.hm-cat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 11, 13, .12) 32%, rgba(10, 11, 13, .84) 100%);
}

.hm-cat__body { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; }

.hm-cat__body h3 { font-size: 17.5px; font-weight: 600; color: #fff; margin: 0 0 6px; line-height: 1.35; }

.hm-cat__body span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hm-accent);
}

.hm-cat__count {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    min-width: 34px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    line-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--hm-ink);
}


/* =====================================================================
 *  4a. BROWSE BY LIGHT TYPE  (the ourSolutions table)
 * =====================================================================
 *  Categories describe the SPACE (Indoor, Retail, Hospitality); these
 *  describe the KIND of light (Architectural, Connected, Solar). They
 *  are complementary, so both get a row — this one is deliberately
 *  smaller so it reads as a secondary way in.
 * ===================================================================== */

.hm-types {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1199px) { .hm-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .hm-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

a.hm-type, a.hm-type:hover { text-decoration: none; color: inherit; }

.hm-type {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--hm-ink);
    transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s ease;
}

@supports not (aspect-ratio: 1 / 1) { .hm-type { height: 165px; } }

.hm-type:hover { transform: translateY(-4px); box-shadow: var(--hm-shadow-lg); }
.hm-type:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 3px; }

.hm-type img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}

.hm-type:hover img { transform: scale(1.08); }

.hm-type::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 11, 13, .15) 35%, rgba(10, 11, 13, .82) 100%);
}

.hm-type__label {
    position: absolute;
    z-index: 2;
    left: 14px;
    right: 14px;
    bottom: 13px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    text-transform: capitalize;
}


/* =====================================================================
 *  4b. FEATURED PRODUCTS
 * =====================================================================
 *  Reuses the .dz-card component from css/catalog.css. That grid is
 *  3-up; the homepage wants 4-up. Fixed columns rather than auto-fit,
 *  so a short list of two products doesn't stretch into two enormous
 *  cards.
 * ===================================================================== */

.hm-pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1199px) { .hm-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px)  { .hm-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px)  { .hm-pgrid { grid-template-columns: 1fr; } }


/* =====================================================================
 *  5. HIGHLIGHT SERVICES  —  full-bleed expanding panels
 * =====================================================================
 *  Four panels edge to edge. The first is open by default; hovering any
 *  panel opens that one and collapses the rest.
 *
 *  No JavaScript. The trick is three rules in this order:
 *      .hm-panel.is-active            -> default open panel
 *      .hm-panels:hover .is-active    -> drop the default once the group
 *                                        is hovered
 *      .hm-panels .hm-panel:hover     -> open whatever is hovered
 *  The last two have equal specificity, so source order decides — the
 *  hover rule must stay last.
 *
 *  :focus-within mirrors :hover throughout so keyboard tabbing opens
 *  panels the same way.
 * ===================================================================== */

.hm-deliver { padding-bottom: 0; }

.hm-panels {
    display: flex;
    width: 100%;
    height: clamp(430px, 58vh, 580px);
    overflow: hidden;
    background: var(--hm-ink);
}

a.hm-panel,
a.hm-panel:hover { text-decoration: none; color: inherit; }

.hm-panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: block;
    overflow: hidden;
    isolation: isolate;
    transition: flex-grow .55s cubic-bezier(.22, .75, .3, 1);
}

.hm-panel + .hm-panel { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .14); }

.hm-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22, .75, .3, 1), filter .55s ease;
    filter: saturate(.72) brightness(.62);
}

/* The copy sits on a photograph, so the veil has to guarantee contrast
   rather than just look moody. Weighted hard towards the bottom 30% —
   the Home Automation shot has a bright tablet screen exactly where the
   heading falls, and a gentle gradient left it hard to read. */
.hm-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(8, 9, 11, .22) 0%,
        rgba(8, 9, 11, .40) 32%,
        rgba(8, 9, 11, .72) 58%,
        rgba(8, 9, 11, .93) 80%,
        rgba(8, 9, 11, .97) 100%);
    transition: opacity .5s ease;
}

/* ---- collapsed state: a vertical label ---- */
.hm-panel__label {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 26px;
    text-align: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0 auto;
    max-height: calc(100% - 60px);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #fff;
    white-space: nowrap;
    opacity: 1;
    transition: opacity .35s ease;
}

/* ---- open state: the full block ---- */
.hm-panel__body {
    position: absolute;
    z-index: 2;
    /* scales with the viewport — the strip is full-bleed, so a fixed 40px
       left the copy hugging the screen edge on wide monitors */
    left: clamp(24px, 3.6vw, 60px);
    right: clamp(24px, 3.6vw, 60px);
    bottom: 40px;
    max-width: 460px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .45s ease .1s, transform .5s cubic-bezier(.2, .8, .3, 1) .1s, visibility .45s ease .1s;
}

.hm-panel__n {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--hm-accent);
    margin-bottom: 12px;
}

.hm-panel__body h3 {
    font-size: 27px;
    line-height: 1.2;
    font-weight: 600;
    color: #fff;
    margin: 0 0 11px;
}

.hm-panel__body p {
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .8);
    margin: 0 0 20px;
}

.hm-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hm-ink);
    background: #fff;
    padding: 13px 24px;
    border-radius: 999px;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}

.hm-panel__cta i { transition: transform .3s ease; }

/* ---------------------------------------------------------------------
 *  open / closed switching  (order matters — see the note above)
 * ------------------------------------------------------------------ */

/* 1. default open panel */
.hm-panels .hm-panel.is-active { flex-grow: 3.4; }
.hm-panels .hm-panel.is-active img { filter: saturate(1) brightness(.82); transform: scale(1.04); }
.hm-panels .hm-panel.is-active .hm-panel__label { opacity: 0; }
.hm-panels .hm-panel.is-active .hm-panel__body { opacity: 1; visibility: visible; transform: none; }

/* 2. as soon as the group is hovered or focused, the default gives way */
.hm-panels:hover .hm-panel.is-active,
.hm-panels:focus-within .hm-panel.is-active { flex-grow: 1; }
.hm-panels:hover .hm-panel.is-active img,
.hm-panels:focus-within .hm-panel.is-active img { filter: saturate(.72) brightness(.62); transform: none; }
.hm-panels:hover .hm-panel.is-active .hm-panel__label,
.hm-panels:focus-within .hm-panel.is-active .hm-panel__label { opacity: 1; }
.hm-panels:hover .hm-panel.is-active .hm-panel__body,
.hm-panels:focus-within .hm-panel.is-active .hm-panel__body { opacity: 0; visibility: hidden; transform: translateY(14px); }

/* 3. whatever is hovered or focused wins */
.hm-panels .hm-panel:hover,
.hm-panels .hm-panel:focus-visible { flex-grow: 3.4; }
.hm-panels .hm-panel:hover img,
.hm-panels .hm-panel:focus-visible img { filter: saturate(1) brightness(.82); transform: scale(1.04); }
.hm-panels .hm-panel:hover .hm-panel__label,
.hm-panels .hm-panel:focus-visible .hm-panel__label { opacity: 0; }
.hm-panels .hm-panel:hover .hm-panel__body,
.hm-panels .hm-panel:focus-visible .hm-panel__body { opacity: 1; visibility: visible; transform: none; }

.hm-panels .hm-panel:hover .hm-panel__cta { background: var(--hm-accent); }
.hm-panels .hm-panel:hover .hm-panel__cta i { transform: translateX(3px); }

.hm-panel:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: -4px; }

/* ---------------------------------------------------------------------
 *  narrower screens
 * ---------------------------------------------------------------------
 *  Sliding panels need width to work. Below 992px they become stacked
 *  full-width bands with everything already open — no hover required,
 *  which is also the right call for touch.
 * ------------------------------------------------------------------ */

@media (max-width: 991px) {
    .hm-panels { display: block; height: auto; }

    .hm-panel,
    .hm-panels .hm-panel.is-active,
    .hm-panels .hm-panel:hover { flex: none; }

    .hm-panel {
        height: 300px;
        transition: none;
    }

    .hm-panel + .hm-panel { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }

    .hm-panel img,
    .hm-panels .hm-panel.is-active img,
    .hm-panels:hover .hm-panel.is-active img,
    .hm-panels .hm-panel:hover img {
        filter: saturate(1) brightness(.72);
        transform: none;
    }

    .hm-panel__label,
    .hm-panels .hm-panel.is-active .hm-panel__label,
    .hm-panels:hover .hm-panel.is-active .hm-panel__label { display: none; }

    .hm-panel__body,
    .hm-panels .hm-panel.is-active .hm-panel__body,
    .hm-panels:hover .hm-panel.is-active .hm-panel__body,
    .hm-panels .hm-panel:hover .hm-panel__body {
        opacity: 1;
        visibility: visible;
        transform: none;
        left: 24px;
        right: 24px;
        bottom: 26px;
        max-width: none;
        transition: none;
    }

    .hm-panel__body h3 { font-size: 22px; }
    .hm-panel__body p { font-size: 13.5px; margin-bottom: 16px; }
}

@media (max-width: 575px) {
    .hm-panel { height: 260px; }
    .hm-panel__body h3 { font-size: 19px; }
    .hm-panel__body p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hm-panel,
    .hm-panel img,
    .hm-panel__body,
    .hm-panel__label { transition: none !important; }
}


/* =====================================================================
 *  6. SERVICES  (the ourservice grid)
 * ===================================================================== */

.hm-svcs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width: 991px) { .hm-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .hm-svcs { grid-template-columns: 1fr; } }

a.hm-svc, a.hm-svc:hover { text-decoration: none; color: inherit; }

.hm-svc {
    position: relative;
    display: block;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s ease, border-color .35s ease;
}

.hm-svc:hover { transform: translateY(-5px); box-shadow: var(--hm-shadow-lg); border-color: transparent; }
.hm-svc:focus-visible { outline: 2px solid var(--hm-accent); outline-offset: 3px; }

.hm-svc__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hm-surface); }

@supports not (aspect-ratio: 4 / 3) { .hm-svc__media { height: 200px; } }

.hm-svc__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s cubic-bezier(.2, .8, .3, 1);
}

.hm-svc:hover .hm-svc__media img { transform: scale(1.07); }

.hm-svc__n {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--hm-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.hm-svc__body {
    padding: 18px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hm-svc__body h3 {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--hm-ink);
    margin: 0;
    line-height: 1.4;
    transition: color .25s ease;
}

.hm-svc:hover .hm-svc__body h3 { color: var(--hm-accent-dk); }

.hm-svc__body i {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--hm-surface);
    color: var(--hm-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background .3s ease, transform .3s ease;
}

.hm-svc:hover .hm-svc__body i { background: var(--hm-accent); transform: translateX(3px); }


/* =====================================================================
 *  7. COUNTERS
 * ===================================================================== */

.hm-counters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

@media (max-width: 767px) { .hm-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.hm-counter { padding: 34px 26px; text-align: center; }
.hm-counter + .hm-counter { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .12); }

@media (max-width: 767px) {
    .hm-counter + .hm-counter { box-shadow: none; }
    .hm-counter { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12) !important; }
}

.hm-counter__n {
    display: block;
    font-size: 46px;
    line-height: 1;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

@media (max-width: 575px) { .hm-counter__n { font-size: 34px; } }

/* only the trailing "+" is accented, not the number */
.hm-counter__n span + span { color: var(--hm-accent); }

.hm-counter__k {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .62);
}


/* =====================================================================
 *  8. CONTACT
 * ===================================================================== */

.hm-contact {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
}

@media (max-width: 991px) { .hm-contact { grid-template-columns: 1fr; gap: 38px; } }

.hm-details { list-style: none; margin: 32px 0 0; padding: 0; }

.hm-details li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--hm-line);
}

.hm-details li:last-child { border-bottom: 1px solid var(--hm-line); }

.hm-details i {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--hm-surface);
    color: var(--hm-accent-dk);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.hm-details h3 {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hm-ink-2);
    margin: 4px 0 5px;
}

.hm-details p { font-size: 14.5px; line-height: 1.6; color: var(--hm-ink); margin: 0; }
.hm-details a { color: var(--hm-ink); }
.hm-details a:hover { color: var(--hm-accent-dk); }

/* the form card */
.hm-form {
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    padding: 38px 38px 34px;
    box-shadow: var(--hm-shadow);
}

@media (max-width: 575px) { .hm-form { padding: 26px 22px 24px; } }

.hm-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

@media (max-width: 575px) { .hm-form__grid { grid-template-columns: 1fr; } }

.hm-field { display: flex; flex-direction: column; gap: 7px; }
.hm-field--full { grid-column: 1 / -1; }

.hm-field label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hm-ink-2);
    margin: 0;
}

.hm-field input,
.hm-field textarea {
    width: 100%;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--hm-ink);
    background: var(--hm-surface);
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    padding: 13px 15px;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.hm-field textarea { min-height: 132px; resize: vertical; }

.hm-field input:focus,
.hm-field textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--hm-accent);
    box-shadow: 0 0 0 3px rgba(215, 179, 154, .22);
}

.hm-field input::placeholder,
.hm-field textarea::placeholder { color: #a3a8b1; }

.hm-form__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.hm-form__note { font-size: 12.5px; color: var(--hm-ink-2); margin: 0; max-width: 34ch; }


/* =====================================================================
 *  9. COLLECTIONS / SHOP LANDING  (our-collections.php)
 * ===================================================================== */

.col-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

@media (max-width: 1199px) { .col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .col-grid { grid-template-columns: 1fr; } }

.col-range {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s ease, border-color .35s ease;
}

.col-range:hover { transform: translateY(-5px); box-shadow: var(--hm-shadow-lg); border-color: transparent; }

.col-range__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--hm-surface);
    flex: none;
}

@supports not (aspect-ratio: 4 / 3) { .col-range__media { height: 230px; } }

.col-range__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}

.col-range:hover .col-range__media img { transform: scale(1.06); }

.col-range__count {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--hm-ink);
}

.col-range__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1 1 auto; }

.col-range__body h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; line-height: 1.35; }
.col-range__body h3 a { color: var(--hm-ink); transition: color .25s ease; }
.col-range:hover .col-range__body h3 a { color: var(--hm-accent-dk); }

.col-range__desc { font-size: 13.5px; line-height: 1.7; color: var(--hm-ink-2); margin: 0 0 14px; }

/* subcategory chips — each is its own link into the tree */
.col-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.col-subs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1;
    color: var(--hm-ink-2);
    background: var(--hm-surface);
    border: 1px solid var(--hm-line);
    border-radius: 7px;
    padding: 7px 10px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.col-subs a:hover { background: var(--hm-ink); border-color: var(--hm-ink); color: #fff; }
.col-subs em { font-style: normal; font-weight: 600; opacity: .6; }
.col-subs__more { font-weight: 600; }

.col-range__cta { margin-top: auto; }

/* closing CTA */
.col-cta {
    position: relative;
    border-radius: 22px;
    background: var(--hm-ink);
    color: #fff;
    padding: 56px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    overflow: hidden;
}

.col-cta::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -100px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 179, 154, .32) 0%, rgba(215, 179, 154, 0) 68%);
    pointer-events: none;
}

@media (max-width: 767px) { .col-cta { padding: 36px 26px; } }

.col-cta > div { position: relative; z-index: 2; }
.col-cta h2 { font-size: 28px; font-weight: 600; color: #fff; margin: 0 0 10px; }
.col-cta p { font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .68); margin: 0; max-width: 54ch; }

@media (max-width: 767px) { .col-cta h2 { font-size: 23px; } }

.col-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.col-cta .hm-btn--solid { background: var(--hm-accent); color: var(--hm-ink); }
.col-cta .hm-btn--solid:hover { background: #fff; color: var(--hm-ink); }
.col-cta .hm-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.col-cta .hm-btn--ghost:hover { border-color: #fff; background: transparent; }


/* ---- reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hm-hero__slide.is-active img { animation: none; }
    .hm-hero__cue { animation: none; }
    .hm-hero__dot.is-active::after { animation: none; transform: scaleX(1); }
    .hm-cat, .hm-cat img, .hm-tile, .hm-tile img, .hm-svc, .hm-svc__media img, .hm-btn {
        transition: none !important;
    }
}
