/* ==========================================================================
   LUMO — Custom Animations  (index.html only)
   ==========================================================================
   Easing tokens:
     Entry   → cubic-bezier(0.25, 0.46, 0.45, 0.94)  fast-start, smooth-end
     Pulse   → ease-in-out                             symmetric breathe
     Hover   → ease                                    instant response
   ========================================================================== */


/* ══════════════════════════════════════════════════════════════════════════
   HEADER — sticky replaces fixed to eliminate the white-stripe gap
   ══════════════════════════════════════════════════════════════════════════
   With position:fixed the body needs padding-top that never perfectly
   matches the animated header height → a stripe of body background flashes
   on fast scroll. With sticky the header lives in the normal flow:
   no padding needed, no gap possible.
   ══════════════════════════════════════════════════════════════════════════ */

header {
    position: sticky;
}

body {
    padding-top: 0;
}

@media screen and (max-width: 1100px) {
    body { padding-top: 80px; }

    header {
        position: fixed;
    }

    header .data {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        z-index: 1001;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   BLOCK 1 — HERO
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1a. Background image fade-in ─────────────────────────────────────────── */
@keyframes heroImageFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#promo .image {
    animation: heroImageFadeIn 2s ease 0.1s both;
}

/*
   On .white promo pages the light overlay only covers 70% width.
   Without this override, the uncovered right side fades from #000 → image
   which looks harsh against the warm light design.
   Setting a warm background means the reveal is light → image everywhere.
*/
#promo.white {
    background: #f2eeeb;
}


/* ── 1b. Text cascade ─────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

#promo .data .text > .title {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

#promo .bt__promo {
    animation: fadeInUp 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.55s both;
}

#promo .data .text > div.text {
    animation: fadeInUp 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.85s both;
}

#promo .data .text > .flex {
    animation: fadeInUp 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.1s both;
}


/* ── 1c. Scroll indicator ─────────────────────────────────────────────────── */
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1);   opacity: 0.3; }
    50%       { transform: scaleY(1.2); opacity: 1;   }
}

/* Outer wrapper handles centering; inner handles fade-in separately        */
/* so fadeInUp's translateY does not fight with the wrapper's translateX    */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
}

.hero__scroll__inner {
    animation: fadeInUp 1s ease 1.6s both;
}

.hero__scroll__line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin: 0 auto;
    transform-origin: top center;
    animation: scrollPulse 2s ease-in-out 2.7s infinite;
}



/* ══════════════════════════════════════════════════════════════════════════
   BLOCK 2 — FEATURES GRID
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Initial hidden state (JS adds .is-visible with staggered delays) ──── */
.item__advantages {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity   0.7s ease,
        transform 0.7s ease;
}

.item__advantages.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════════════════════
   BLOCK 3 — SPLIT  (About)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Text slide-in: desktop right → left, mobile bottom → up ─────────────── */
#about .text {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#about .text.is-visible {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 767px) {
    #about .text {
        transform: translateY(30px);
    }
    #about .text.is-visible {
        transform: translateY(0);
    }
}

/* ── Image fade-in from dark background + hover zoom ─────────────────────── */
#about .image {
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

#about .image.is-visible {
    opacity: 1;
}

#about .image img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

#about .image:hover img {
    transform: scale(1.03);
}

/* ── About CTA: gap starts at 14px, grows to 20px on hover ──────────────── */
#about .btn-gold {
    gap: 14px;
}


/* ══════════════════════════════════════════════════════════════════════════
   GENERIC SCROLL REVEALS
   ══════════════════════════════════════════════════════════════════════════ */

/* Section titles */
.block__title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.block__title.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* #ready CTA section */
#ready .text,
#ready .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
#ready .btn {
    transition-delay: 0.15s;
}
#ready .text.is-visible,
#ready .btn.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════════════════════
   ABOUT PAGE — #about__info and #about__why split sections
   ══════════════════════════════════════════════════════════════════════════ */

/* #about__info: text left → slides from left, image right → slides from right */
#about__info .text {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
#about__info .image {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.9s ease 0.1s, transform 0.9s ease 0.1s;
}

/* #about__why: image left → slides from left, text right → slides from right */
#about__why .image {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
#about__why .text {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}

#about__info .text.is-visible,
#about__info .image.is-visible,
#about__why .image.is-visible,
#about__why .text.is-visible {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 767px) {
    #about__info .text,
    #about__info .image,
    #about__why .image,
    #about__why .text {
        transform: translateY(30px);
    }
    #about__info .text.is-visible,
    #about__info .image.is-visible,
    #about__why .image.is-visible,
    #about__why .text.is-visible {
        transform: translateY(0);
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   REQUEST FORM — compact services checkboxes
   ══════════════════════════════════════════════════════════════════════════ */

.services__grid {
    gap: 8px;
    margin-bottom: 16px;
}

.services__grid label.checkbox {
    height: 36px;
    font-size: 13px;
    padding: 0 8px 0 34px;
}

.services__grid label.checkbox span:after {
    width: 18px;
    height: 18px;
    top: calc(50% - 9px);
}

.request__photos {
    height: auto;
    min-height: 96px;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 20px 24px;
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.35);
}

.request__photos strong {
    display: block;
    width: 100%;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.request__photos span {
    margin-top: 6px;
    color: rgba(11, 11, 11, 0.6);
}

.request__photos:hover {
    border-color: rgba(175, 120, 70, 0.45);
    background: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1100px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .services__grid label.checkbox {
        height: 40px;
        font-size: 12px;
        padding: 0 6px 0 32px;
    }
}

@media (max-width: 400px) {
    .services__grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   WORKS MARQUEE  (service pages)
   Pure-CSS infinite strip — unaffected by body overflow:hidden / overlays.
   HTML has 16 slides = 4 unique × 4 copies → animating -50% loops seamlessly.
   ══════════════════════════════════════════════════════════════════════════ */

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

.swiper__works {
    overflow: hidden;
}

.swiper__works .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 24px;
    width: max-content;
    /* override any Swiper transition so CSS animation runs clean */
    transition: none !important;
    animation: marqueeScroll 55s linear infinite;
}

.swiper__works .swiper-slide {
    flex-shrink: 0;
    width: 320px;
    margin: 0 !important;   /* remove Swiper-injected margin-right */
}


/* ══════════════════════════════════════════════════════════════════════════
   LIGHTBOX  (works.html)
   ══════════════════════════════════════════════════════════════════════════ */

/* Works grid — initial hidden states */
#works .filters {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
#works .filters.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#works .item__work.iw__page {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
#works .item__work.iw__page.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Works cards get a subtle zoom cursor hint */
#works .item__work {
    cursor: zoom-in;
}

#works .item__work img {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

#works .item__work:hover img {
    transform: scale(1.04);
}

/* Overlay backdrop */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    cursor: zoom-out;
    transition: background 0.35s ease;
    pointer-events: none;
    opacity: 0;
}

.lightbox.is-open {
    background: rgba(0, 0, 0, 0.88);
    pointer-events: all;
    opacity: 1;
}

/* Image wrapper */
.lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 2px;
    transform: scale(0.92);
    opacity: 0;
    transition:
        transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity   0.35s ease;
    pointer-events: none;
}

.lightbox.is-open .lightbox__img {
    transform: scale(1);
    opacity: 1;
}

/* Caption bar */
.lightbox__caption {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-family: var(--Montserrat);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.lightbox.is-open .lightbox__caption {
    opacity: 1;
}

/* Close button */
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease 0.15s;
}

.lightbox.is-open .lightbox__close {
    opacity: 0.6;
}

.lightbox__close:hover {
    opacity: 1 !important;
}

.lightbox__close::before,
.lightbox__close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 1.5px;
    background: #fff;
}

.lightbox__close::before { transform: rotate(45deg); }
.lightbox__close::after  { transform: rotate(-45deg); }


/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Columns wave (JS adds .is-visible with staggered delays) ────────────── */
footer .col {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity   0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

footer .col.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Copyright fades in after columns ────────────────────────────────────── */
footer .copyright {
    opacity: 0;
    transition: opacity 0.6s ease;
}

footer .copyright.is-visible {
    opacity: 0.5;
}
