/* ==========================================================================
   Qemmah — Premium home page layer
   Loaded only by indexVistor.blade.php; every rule is scoped to .qm-home so
   the shared components keep their normal look on other pages. Section
   headers, CTA gloss and the product / star cards are shared with the inner
   pages and live in sections-premium.css (.qm-sections).
   ========================================================================== */

.qm-home {
    /* card / section tokens live on .qm-sections (sections-premium.css) */
    position: relative;
    background:
        radial-gradient(1100px 520px at 100% 0, rgba(226, 193, 156, .18), transparent 60%),
        radial-gradient(900px 480px at 0 38%, rgba(161, 120, 92, .08), transparent 60%),
        linear-gradient(180deg, var(--qm-page-bg) 0%, var(--qm-page-bg-2) 100%);
}

/* --------------------------------------------------------------------------
   3. Brand hero (shown when no season campaign is active)
   -------------------------------------------------------------------------- */

.qm-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 520px at 85% -10%, rgba(226, 193, 156, .38), transparent 60%),
        radial-gradient(700px 420px at 5% 115%, rgba(161, 120, 92, .45), transparent 60%),
        linear-gradient(135deg, #1a1210 0%, #2b1a14 45%, #4a2c20 100%);
    isolation: isolate;
}

/* glass reflection across the top half */
.qm-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 45% 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

/* thin gold hairline at the bottom edge */
.qm-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--qm-gold-2), var(--qm-gold-4), var(--qm-gold-2), transparent);
    opacity: .8;
}

.qm-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.qm-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    animation: qm-float 14s ease-in-out infinite alternate;
}

.qm-orb--1 { width: 420px; height: 420px; top: -120px; inset-inline-end: 8%; background: #c79a72; }
.qm-orb--2 { width: 360px; height: 360px; bottom: -160px; inset-inline-start: -60px; background: #7d5238; animation-delay: -6s; }

.qm-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: .07;
    background-image:
        linear-gradient(45deg, #fff 1px, transparent 1px),
        linear-gradient(-45deg, #fff 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}

@keyframes qm-float {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

.qm-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 48px;
    min-height: 560px;
    padding-top: 72px;
    padding-bottom: 72px;
}

.qm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--qm-gold-1);
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    border: 1px solid rgba(226, 193, 156, .35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

.qm-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--qm-gold-2);
    box-shadow: 0 0 0 4px rgba(226, 193, 156, .2), 0 0 14px var(--qm-gold-2);
}

.qm-hero__title {
    margin: 22px 0 18px;
    font-size: clamp(34px, 4.6vw, 64px);
    line-height: 1.2;
    font-weight: 800;
    color: #fff;
    text-align: start;
}

.qm-gold-text {
    display: block;
    /* background-clip:text only paints inside the box; pad it so Arabic/Latin
       descenders below the 1.2 line box don't get cut off, and cancel the
       extra space with negative margins so the layout is unchanged */
    padding: .08em 0 .28em;
    margin: -.08em 0 -.28em;
    background: linear-gradient(100deg, #f6e3c8 0%, #e2c19c 25%, #fff5e6 45%, #c79a72 65%, #f6e3c8 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: qm-gold-flow 6s linear infinite; /* keyframes in premium.css */
}

.qm-hero__sub {
    max-width: 540px;
    margin: 0 0 34px;
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.9;
    color: rgba(255, 255, 255, .78);
}

.qm-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.qm-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    max-width: 580px;
    margin: 36px 0 0;
    padding: 24px 0 0;
    list-style: none;
    border-top: 1px solid rgba(226, 193, 156, .18);
}

.qm-hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
}

.qm-hero__trust i {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
    color: var(--qm-gold-2);
    background: rgba(226, 193, 156, .1);
    border: 1px solid rgba(226, 193, 156, .28);
}

/* Campaign gallery: three arches, the middle one raised */
.qm-hero__gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 580px;
    justify-self: center;
    padding: 24px 0 48px;
}

/* warm glow behind the arches */
.qm-hero__gallery::before {
    content: "";
    position: absolute;
    inset: 4% -6% 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(226, 193, 156, .3), transparent);
    z-index: -1;
}

.qm-arch {
    position: relative;
    margin: 0;
    aspect-ratio: 9 / 14;
    border-radius: 999px 999px 20px 20px;
    overflow: hidden;
    background: #3a2219;
    outline: 1px solid rgba(226, 193, 156, .45);
    outline-offset: 6px;
    box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .85);
}

.qm-arch img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--qm-ease);
}

.qm-hero__gallery:hover .qm-arch img { transform: scale(1.05); }

/* gloss on top, warm shade at the foot so the photos sit in the dark hero */
.qm-arch::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(0deg, rgba(43, 26, 20, .5) 0%, rgba(43, 26, 20, 0) 38%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    pointer-events: none;
}

.qm-arch--side { transform: translateY(36px); }

/* Floating glass chips over the gallery */
.qm-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 30px -16px rgba(0, 0, 0, .6);
    animation: qm-bob 6s ease-in-out infinite;
}

.qm-chip i { color: var(--qm-gold-2); }
.qm-chip--1 { top: 10%; inset-inline-start: -6%; }
.qm-chip--2 { bottom: 10%; inset-inline-end: -6%; animation-delay: -3s; }

@keyframes qm-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Season campaign slider (when a season is active) — cinematic overlay */
.qm-home .hero .item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(26, 18, 16, .75) 0%, rgba(26, 18, 16, .25) 55%, rgba(26, 18, 16, 0) 100%);
}

.qm-home:not(.qm-en) .hero .item::before {
    background: linear-gradient(270deg, rgba(26, 18, 16, .75) 0%, rgba(26, 18, 16, .25) 55%, rgba(26, 18, 16, 0) 100%);
}

.qm-home .hero .item > .position-absolute { z-index: 2; }
.qm-home .hero .item h2 { font-size: clamp(28px, 4vw, 56px); font-weight: 800; text-shadow: 0 4px 24px rgba(0, 0, 0, .45); }
.qm-home .hero .item .btn-primary { min-height: 50px; padding: 0 30px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 700; }

/* --------------------------------------------------------------------------
   6. Episode of the week — full-width cinematic band
   -------------------------------------------------------------------------- */

/* the band breaks out of the .container to the full viewport width */
.qm-home { overflow-x: clip; }

.qm-home .qm-episode {
    position: relative;
    isolation: isolate;
    margin: 56px calc(50% - 50vw) 0;
    padding: 64px 0 56px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 480px at 85% 0%, rgba(226, 193, 156, .28), transparent 60%),
        radial-gradient(700px 420px at 5% 110%, rgba(161, 120, 92, .4), transparent 60%),
        linear-gradient(135deg, #1a1210 0%, #2b1a14 45%, #4a2c20 100%);
}

/* hairline gold edges top and bottom */
.qm-home .qm-episode::before,
.qm-home .qm-episode::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--qm-gold-3) 30%, var(--qm-gold-1) 50%, var(--qm-gold-3) 70%, transparent);
    opacity: .7;
}

.qm-home .qm-episode::before { top: 0; }
.qm-home .qm-episode::after { bottom: 0; }

.qm-home .qm-episode__glow {
    position: absolute;
    width: 520px;
    height: 520px;
    top: -180px;
    inset-inline-start: 30%;
    z-index: -1;
    border-radius: 50%;
    background: #c79a72;
    filter: blur(90px);
    opacity: .28;
    animation: qm-float 16s ease-in-out infinite alternate;
}

.qm-home .qm-episode__inner {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.5fr);
    align-items: center;
    gap: 48px;
    width: min(1320px, 100% - 24px);
    margin-inline: auto;
}

/* copy */
.qm-home .qm-episode .qm-eyebrow i { color: var(--qm-gold-2); }
.qm-home .qm-episode .qm-eyebrow::before { display: none; }

.qm-home .qm-episode__title {
    margin: 18px 0 calc(10px - .2em);
    padding-bottom: .2em; /* room for descenders under background-clip:text */
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.3;
    background: linear-gradient(100deg, #f6e3c8 0%, #e2c19c 35%, #fff5e6 50%, #c79a72 70%, #f6e3c8 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: qm-gold-flow 7s linear infinite;
}

.qm-home .qm-episode__name {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, .86);
}

.qm-home .qm-episode__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.qm-home .qm-episode__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
}

.qm-home .qm-episode__chip .fa-youtube { color: #ff4b4b; }
.qm-home .qm-episode__chip .fa-layer-group { color: var(--qm-gold-2); }

.qm-home .qm-episode__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.qm-home .qm-episode__ctas .qm-btn { min-height: 50px; font-size: 15px; }

/* player */
.qm-home .qm-episode__player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    box-shadow:
        0 0 0 1px rgba(226, 193, 156, .55),
        0 0 0 7px rgba(255, 255, 255, .06),
        0 0 0 8px rgba(226, 193, 156, .25),
        0 50px 90px -40px rgba(0, 0, 0, .85);
}

.qm-home .qm-episode__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--qm-ease), filter .6s;
}

.qm-home .qm-episode__player:hover .qm-episode__thumb { transform: scale(1.04); filter: brightness(.92); }

.qm-home .qm-episode__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(26, 18, 16, 0) 45%, rgba(26, 18, 16, .85) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 30%);
    pointer-events: none;
}

.qm-home .qm-episode__caption {
    position: absolute;
    bottom: 18px;
    inset-inline-start: 22px;
    inset-inline-end: 22px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
    pointer-events: none;
}

/* glossy gold play button with a pulsing ring */
.qm-home .qm-episode__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 45%),
        var(--qm-gloss-gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -4px 10px rgba(58, 34, 25, .35), 0 18px 40px -12px rgba(0, 0, 0, .7);
    transition: transform .35s var(--qm-ease);
}

.qm-home .qm-episode__play i { margin-left: 5px; } /* optical centre of the triangle */

.qm-home .qm-episode__play::before,
.qm-home .qm-episode__play::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(226, 193, 156, .75);
    animation: qm-pulse 2.4s var(--qm-ease) infinite;
}

.qm-home .qm-episode__play::after { animation-delay: 1.2s; }

@keyframes qm-pulse {
    0%   { transform: scale(1); opacity: .9; }
    100% { transform: scale(1.7); opacity: 0; }
}

.qm-home .qm-episode__player:hover .qm-episode__play { transform: translate(-50%, -50%) scale(1.08); }

.qm-home .qm-episode__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* previous episodes rail */
.qm-home .qm-episode__rail { margin-top: 22px; }

.qm-home .qm-episode__rail-title {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .6);
}

.qm-home .qm-episode__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.qm-home .qm-episode__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-family: inherit;
    text-align: start;
    cursor: pointer;
    transition: background .25s, border-color .25s, transform .3s var(--qm-ease);
}

.qm-home .qm-episode__item:hover,
.qm-home .qm-episode__item.is-active {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(226, 193, 156, .55);
    transform: translateY(-2px);
}

.qm-home .qm-episode__item-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 88px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 9px;
    background: #000;
}

.qm-home .qm-episode__item-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }

.qm-home .qm-episode__item-thumb i {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}

.qm-home .qm-episode__item-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
}

@media (max-width: 991px) {
    .qm-home .qm-episode { padding: 44px 0 40px; }
    .qm-home .qm-episode__inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .qm-home .qm-episode__chips, .qm-home .qm-episode__ctas { justify-content: center; }
}

@media (max-width: 575px) {
    .qm-home .qm-episode__play { width: 64px; height: 64px; font-size: 20px; }
    .qm-home .qm-episode__list { grid-template-columns: 1fr; }
    .qm-home .qm-episode__ctas .qm-btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   7. Map section — "designers near you"
   -------------------------------------------------------------------------- */

.qm-home .qm-locate {
    position: relative;
    padding: 72px 0;
    background:
        radial-gradient(700px 380px at 92% 10%, rgba(226, 193, 156, .28), transparent 60%),
        radial-gradient(600px 360px at 0% 100%, rgba(161, 120, 92, .12), transparent 60%),
        linear-gradient(180deg, var(--qm-page-bg-2) 0%, var(--qm-page-bg) 100%);
}

.qm-home .qm-locate__inner {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 56px;
}

.qm-home .qm-locate__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--qm-brown);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(161, 120, 92, .2), 0 8px 18px -12px rgba(58, 34, 25, .45);
}

.qm-home .qm-locate__eyebrow i { color: var(--qm-gold-4); }

.qm-home .qm-locate__title {
    margin: 18px 0 14px;
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 800;
    line-height: 1.45;
    color: var(--qm-ink);
}

.qm-home .qm-locate__title span {
    display: block;
    background: linear-gradient(90deg, #6b3e2e, #a1785c 60%, #c79a72);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-home:not(.qm-en) .qm-locate__title span {
    background-image: linear-gradient(270deg, #6b3e2e, #a1785c 60%, #c79a72);
}

.qm-home .qm-locate__text {
    max-width: 520px;
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.9;
    color: #6b5a52;
}

.qm-home .qm-locate__stats {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.qm-home .qm-locate__stat {
    min-width: 128px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(161, 120, 92, .14), 0 14px 30px -20px rgba(58, 34, 25, .45);
}

.qm-home .qm-locate__stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    background: var(--qm-gloss-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qm-home .qm-locate__stat span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #6b5a52;
}

.qm-home .qm-locate__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.qm-home .qm-locate__ctas .qm-btn { min-height: 50px; font-size: 15px; }

/* secondary: outlined bronze */
.qm-home .qm-locate__me {
    color: var(--qm-brown);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(161, 120, 92, .45), 0 10px 22px -16px rgba(58, 34, 25, .5);
}

.qm-home .qm-locate__me:hover { color: var(--qm-brown); box-shadow: 0 0 0 1px var(--qm-gold-4), 0 14px 26px -16px rgba(107, 62, 46, .6); }

/* map card */
.qm-home .qm-locate__card {
    position: relative;
    border-radius: 26px;
    padding: 8px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(161, 120, 92, .18),
        0 40px 70px -40px rgba(58, 34, 25, .55);
}

.qm-home .qm-locate__map {
    height: 460px;
    border-radius: 20px;
    overflow: hidden;
    background: #efe4d8;
}

.qm-home .qm-locate__badge {
    position: absolute;
    top: 22px;
    inset-inline-start: 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--qm-brown);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(161, 120, 92, .2), 0 10px 20px -12px rgba(58, 34, 25, .5);
}

.qm-home .qm-locate__badge i { color: var(--qm-gold-4); }

.qm-home .qm-locate__controls {
    position: absolute;
    bottom: 22px;
    inset-inline-end: 22px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(161, 120, 92, .2), 0 12px 24px -14px rgba(58, 34, 25, .55);
}

.qm-home .qm-locate__controls button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    background: none;
    color: #3a2219;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.qm-home .qm-locate__controls button + button { border-top: 1px solid rgba(161, 120, 92, .15); }
.qm-home .qm-locate__controls button:hover { background: #faf3ec; color: var(--qm-gold-4); }

/* info popup (custom.css paints Google's popup dark brown site-wide; this one is white) */
.qm-home .gm-style .gm-style-iw-c,
.qm-home .gm-style .gm-style-iw-d::-webkit-scrollbar-track,
.qm-home .gm-style .gm-style-iw-d::-webkit-scrollbar-track-piece { background: #fff !important; color: var(--qm-ink) !important; }
.qm-home .gm-style .gm-style-iw-tc::after { background-color: #fff !important; }
.qm-home .gm-style .gm-style-iw-d { height: auto !important; max-height: none !important; }
.qm-home .gm-style .gm-style-iw-c { padding: 0 !important; border-radius: 16px !important; box-shadow: 0 20px 40px -18px rgba(58, 34, 25, .55) !important; }
.qm-home .gm-style .gm-style-iw-d { overflow: auto !important; padding: 0 !important; }
.qm-home .gm-style .gm-style-iw-chr { position: absolute; top: 0; inset-inline-end: 0; z-index: 2; }

.qm-home .qm-map-pop { min-width: 230px; padding: 12px; font-family: dinNext, sans-serif; }

.qm-home .qm-map-pop__head {
    padding: 2px 4px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(161, 120, 92, .15);
    font-size: 13px;
    font-weight: 800;
    color: var(--qm-brown);
}

.qm-home .qm-map-pop__list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }

.qm-home .qm-map-pop__shop {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #3a2219;
    transition: background .2s;
}

.qm-home .qm-map-pop__shop:hover { background: #faf3ec; }

.qm-home .qm-map-pop__shop img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(199, 154, 114, .5);
}

.qm-home .qm-map-pop__name { flex: 1; font-size: 13.5px; font-weight: 700; }
.qm-home .qm-map-pop__go { font-size: 11.5px; font-weight: 700; color: var(--qm-gold-4); white-space: nowrap; }

@media (max-width: 991px) {
    .qm-home .qm-locate { padding: 48px 0; }
    .qm-home .qm-locate__inner { grid-template-columns: 1fr; gap: 32px; }
    .qm-home .qm-locate__map { height: 360px; }
}

@media (max-width: 575px) {
    .qm-home .qm-locate__stats { flex-wrap: wrap; }
    .qm-home .qm-locate__stat { flex: 1 1 0; min-width: 0; }
    .qm-home .qm-locate__ctas .qm-btn { flex: 1 1 100%; }
    .qm-home .qm-locate__map { height: 300px; }
}

/* --------------------------------------------------------------------------
   8. Newsletter — a floating card straddling the page and the footer
   -------------------------------------------------------------------------- */

.qm-home .qm-news {
    position: relative;
    padding: 24px 0 36px;
    /* lower half takes the footer's colour, so the card sits on its edge */
    background: linear-gradient(180deg, var(--qm-page-bg) 0 48%, #1f1512 48% 100%);
}

.qm-home .qm-news__card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    padding: 40px 44px;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(226, 193, 156, .32), transparent 60%),
        radial-gradient(420px 240px at 0% 100%, rgba(161, 120, 92, .45), transparent 60%),
        linear-gradient(120deg, #2b1a14 0%, #4a2c20 55%, #6b3e2e 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        0 0 0 1px rgba(226, 193, 156, .25),
        0 40px 70px -34px rgba(26, 18, 16, .8);
}

/* glass reflection on the upper half */
.qm-home .qm-news__card::before {
    content: "";
    position: absolute;
    inset: 0 0 55% 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.qm-home .qm-news__pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .06;
    background-image:
        linear-gradient(45deg, #fff 1px, transparent 1px),
        linear-gradient(-45deg, #fff 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse at 20% 50%, #000, transparent 70%);
}

.qm-home .qm-news__glow {
    position: absolute;
    width: 320px;
    height: 320px;
    top: -140px;
    inset-inline-start: -60px;
    z-index: -1;
    border-radius: 50%;
    background: #c79a72;
    filter: blur(80px);
    opacity: .3;
}

.qm-home .qm-news__copy {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

/* gold envelope medallion */
.qm-home .qm-news__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 50%),
        var(--qm-gloss-gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 14px 28px -12px rgba(0, 0, 0, .6);
    transform: rotate(-6deg);
}

.qm-home .qm-news__title {
    margin: 0 0 6px;
    font-size: clamp(20px, 1.9vw, 27px);
    font-weight: 800;
    line-height: 1.45;
    color: #fff;
}

.qm-home .qm-news__sub {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--qm-gold-1) !important;
}

.qm-home .qm-news__perks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.qm-home .qm-news__perks li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
}

.qm-home .qm-news__perks i { font-size: 11px; color: var(--qm-gold-2); }

/* form: frosted pill with the input and the gold button */
.qm-home .qm-news__form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 20px 40px -24px rgba(0, 0, 0, .7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qm-home .qm-news__field {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.qm-home .qm-news__field i {
    position: absolute;
    top: 50%;
    inset-inline-start: 18px;
    transform: translateY(-50%);
    font-size: 15px;
    color: #a89a92;
    pointer-events: none;
}

.qm-home .qm-news__field input {
    width: 100%;
    height: 52px;
    padding-inline: 46px 18px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    color: var(--qm-ink);
    background: #fff;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .08);
    outline: none;
    transition: box-shadow .25s;
}

.qm-home .qm-news__field input:focus { box-shadow: inset 0 2px 6px rgba(0, 0, 0, .08), 0 0 0 3px rgba(226, 193, 156, .55); }
.qm-home .qm-news__field input::placeholder { color: #a89a92; }

.qm-home .qm-news__form .qm-btn {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 26px;
    font-size: 15px;
}

.qm-home .qm-news__form .qm-btn i { font-size: 13px; }

@media (max-width: 991px) {
    .qm-home .qm-news__card { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
}

@media (max-width: 575px) {
    .qm-home .qm-news__card { padding: 26px 20px; border-radius: 22px; }
    .qm-home .qm-news__copy { flex-direction: column; align-items: center; text-align: center; }
    .qm-home .qm-news__perks { justify-content: center; }
    .qm-home .qm-news__form { flex-direction: column; border-radius: 22px; }
    .qm-home .qm-news__field, .qm-home .qm-news__form .qm-btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   9. Scroll reveal (only when JS has opted in)
   -------------------------------------------------------------------------- */

.qm-reveal-on .qm-home .qm-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .9s var(--qm-ease), transform .9s var(--qm-ease);
}

.qm-reveal-on .qm-home .qm-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.qm-hero__copy > * { animation: qm-rise .9s var(--qm-ease) both; }
.qm-hero__copy > *:nth-child(2) { animation-delay: .1s; }
.qm-hero__copy > *:nth-child(3) { animation-delay: .2s; }
.qm-hero__copy > *:nth-child(4) { animation-delay: .3s; }
.qm-hero__gallery { animation: qm-zoom 1.2s var(--qm-ease) .15s both; }

@keyframes qm-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes qm-zoom { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .qm-hero__trust { gap: 12px 20px; }
    .qm-hero__trust li { gap: 8px; font-size: 13px; }
    .qm-hero__trust i { width: 30px; height: 30px; font-size: 12px; }
}

@media (max-width: 991px) {
    .qm-hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 56px;
        gap: 24px;
    }
    .qm-hero__title, .qm-hero__sub { text-align: center; margin-inline: auto; }
    .qm-hero__ctas, .qm-hero__trust { justify-content: center; }
    .qm-hero__trust { margin-inline: auto; }
    .qm-hero__gallery { max-width: 460px; }
    .qm-chip--1 { inset-inline-start: -2%; }
    .qm-chip--2 { inset-inline-end: -2%; }
}

@media (max-width: 575px) {
    .qm-btn { min-height: 48px; padding: 0 22px; font-size: 15px; }
    .qm-hero__ctas .qm-btn { flex: 1 1 100%; }
    .qm-hero__trust {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 28px;
        padding-top: 20px;
    }
    .qm-hero__trust li { flex-direction: column; gap: 8px; font-size: 12px; text-align: center; }
    .qm-hero__inner { padding-bottom: 36px; }
    .qm-hero__gallery { gap: 10px; max-width: 340px; padding: 12px 0 24px; }
    .qm-arch { outline-offset: 4px; }
    .qm-arch--side { transform: translateY(22px); }
    .qm-chip { font-size: 11px; padding: 7px 11px; }
    .qm-chip--1 { top: 4%; inset-inline-start: 0; }
    .qm-chip--2 { bottom: 4%; inset-inline-end: 0; }
}

/* --------------------------------------------------------------------------
   11. Reduced motion — keep the gloss, drop the movement
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .qm-home *,
    .qm-home *::before,
    .qm-home *::after {
        animation: none !important;
        transition: none !important;
    }
    .qm-reveal-on .qm-home .qm-reveal { opacity: 1; transform: none; }
}
