/* ==================================================
   Bathroom Renovation Marquee — two staggered rows of images scrolling
   continuously in opposite directions, right before the footer.
   Each row's track is its image list duplicated once; animating from
   -50% to 0% (or reversed) makes the loop seamless.
   ================================================== */
:root {
    --hm-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
    --hm-orange: #ff5e14;
    --hm-ink: #14161a;
}

.amzy-marquee,
.amzy-marquee * {
    all: revert;
    box-sizing: border-box;
}

.amzy-marquee {
    display: block;
    background: #faf9f7;
    padding: 70px 0 76px;
    font-family: var(--hm-font);
    overflow: hidden;
}

.amzy-marquee-title-link {
    display: block;
    text-decoration: none;
    text-align: center;
    margin: 0 0 36px;
}

.amzy-marquee-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--hm-font);
    font-weight: 600;
    font-size: clamp(24px, 2.8vw, 32px);
    color: var(--hm-ink);
    margin: 0;
    transition: color 0.2s ease;
}

.amzy-marquee-title::after {
    content: '\2192';
    font-size: 0.75em;
    color: var(--hm-orange);
    transition: transform 0.2s ease;
}

.amzy-marquee-title-link:hover .amzy-marquee-title { color: var(--hm-orange); }
.amzy-marquee-title-link:hover .amzy-marquee-title::after { transform: translateX(4px); }

.amzy-marquee-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amzy-marquee-viewport {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.amzy-marquee-track {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    animation: amzyMarqueeScroll 46s linear infinite;
}

/* Second row runs the same loop backwards -- the two rows cross past
   each other instead of moving in lockstep. */
.amzy-marquee-row-2 { animation-direction: reverse; }

.amzy-marquee:hover .amzy-marquee-track { animation-play-state: paused; }

.amzy-marquee-item {
    flex: 0 0 auto;
    display: block;
    width: 300px;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
}

.amzy-marquee-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

@media (max-width: 992px) {
    .amzy-marquee-item { width: 220px; }
}

@media (max-width: 768px) {
    .amzy-marquee { padding: 52px 0 58px; }
    .amzy-marquee-title-link { margin-bottom: 26px; }
    .amzy-marquee-title { font-size: 21px; }
    .amzy-marquee-rows { gap: 8px; }
    .amzy-marquee-track { gap: 8px; animation-duration: 32s; }
    .amzy-marquee-item { width: 140px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .amzy-marquee-track { animation: none; }
}
