/* development overlay */
/* .dev-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.dev-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.dev-overlay-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.dev-overlay-text {
    color: white;
    font-size: 1.5rem;
    font-family: var(--serifik);
    margin: 0;
}

.dev-overlay-button {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: var(--serifik);
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dev-overlay-button:hover {
    background-color: white;
    color: black;
} */
/* development overlay end */

.gallery-container * img {
    box-shadow: none;
}

.hero,
.about-brand,
.collection,
.exclusive-qualities,
.cta {
    min-height: 100svh;
    display: flex;
    align-items: last baseline;
    justify-content: center;
    padding: 3rem;
    margin-block: 2rem;
}

@media (max-width: 768px) {
    .hero,
    .about-brand,
    .collection,
    .exclusive-qualities,
    .cta {
        padding: 0 !important;
        align-items: normal;
    }
}

.section-title{
    /* padding-inline: 3rem; */
    text-align: start;
    font-size: 3rem;
    text-shadow: 2px 2px 12px var(--white);
}
@media (max-width: 767px) {
    .section-title{
        text-align: center;
        padding-inline: 1rem;
        font-size: 2em;
    }
}

.section-text {
    color: var(--grey);
}

/* 
    hero 
*/

.hero{
    margin-block: 0rem;
    width: auto;
    align-items: flex-start;
    justify-content: start;
    padding: 0;
    position: relative;
    margin-bottom: 32rem;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 1rem);
    z-index: 0;
    display: flex;
    align-items: center;
    cursor: grab;
}

.hero-carousel:active {
    cursor: grabbing;
}


.hero-slide-info-item {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 9999;
    white-space: pre-line;
}

.hero-slide-info-item.active {
    opacity: 1;
    position: relative;
    z-index: 10000;
    
}

.hero-embla {
    flex: 1;
    height: 100%;
}

.hero-embla__viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, white 20%, white 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, white 20%, white 80%, transparent 100%);
    position: relative;
}

.hero-embla__container {
    display: flex;
    height: 100%;
    width: auto;
}

.hero-embla__slide {
    /* border: 1px green solid; */
    flex: 0 0 60% !important;
    /* min-width: 0; */
    position: relative;
    height: 100%;
    margin-inline: 1rem;
    overflow: hidden;
}
@media (max-width: 767px) {
    .hero-embla__slide {
        flex: 0 0 80%;
    }
}

.hero-embla__slide__img {
    /* -webkit-mask-image: linear-gradient(to right, white 50%, transparent 100%);
    mask-image: linear-gradient(to right, white 50%, transparent 100%); */
    width: 50%;
    height: 100%;
    object-fit: scale-down;
    object-position: center bottom;
    display: block;
    box-shadow: none;
    max-width: none;
}
@media (max-width: 767px) {
    .hero-embla__slide__img {
        width: 100%;
    }
}

.hero-text{
    margin: 3rem;
    /* padding-left: 1rem; */
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
}
@media (max-width: 767px) {
    .hero-text{
        align-items: center;
        margin: 2rem;
    }
}

.hero-text p{
    color: var(--grey);
}

.hero-title{
    font-size: 5rem;
    margin: 0;
}
/* 
html body.le-body section#hero.hero div.section-header.hero-text.text a.btn.btn-primary {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}
html body.le-body section#hero.hero div.section-header.hero-text.text a.btn.btn-primary:hover{
    background: rgba(0, 0, 0, 0.8);
}
@media (max-width: 767px) {
    html body.le-body section#hero.hero div.section-header.hero-text.text a.btn.btn-primary {
        align-self: flex-end;
    }
} */

.hero-slide-info {
    min-height: 2rem;
    position: absolute;
    bottom: 3rem;
    left: 4.5rem;
    z-index: 9999; /* ensure info sits above carousel/slide content */
    color: var(--white);
    min-width: 200px;
    opacity: 0.9;
    pointer-events: auto;
}
@media (max-width: 767px) {
    .hero-slide-info{
        padding-right: 0;
        bottom: -20%;
        left: 2rem;
        text-align: left;
    }
    html body.le-body section#hero.hero div.section-header.hero-text.text p.section-text{
        text-align: center;
    }
}

.hero-slide-title {
    color: var(--black);
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.hero-slide-details {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    color: var(--grey);
}


/* 
    about brand
*/

.about-brand-container {
    width: 100%;
    position: relative;
}


.about-brand-text{
    position: absolute;
    top: -20rem;
    left: 2rem;
    z-index: 1;
    max-width: 50ch;
}
@media (max-width: 767px) {
    .about-brand-text{
        left: 0rem;
        padding: 2rem;
    }
}

.about-brand-text p{
    color: var(--grey);
}

#about-brand-title{
    white-space: nowrap;
    padding-inline: 0;
    text-align: start;
}
@media (max-width: 767px) {
    #about-brand-title{
        white-space: unset;
        text-align: center;
    }
}

.about-brand-images {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-around;
}

.parallax-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 0;
    min-width: 5rem;
}
.parallax-column:nth-child(odd) {
    margin-top: 2rem;
}
@media (max-width: 767px) {
    .about-brand-images {
        width: auto;
        margin: 0.5rem;
    }

    .parallax-column:nth-child(odd) {
        margin-top: -4rem;
    }
}

/* gallery items are redistributed via javascript in home.js */

.product-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    box-shadow: var(--shadow-s);
    scale: 1;
    transition: all 0.2s ease-in-out;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image:hover{
    scale: 1.02;
    box-shadow: var(--shadow-m);
}

.product-tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(0, 0, 0, 0.1); */
    border-radius: 1em;
    padding: 1rem;
    pointer-events: none;
    z-index: 1000;
    font-family: var(--sansik);
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: var(--shadow-m);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.product-tooltip.show {
    opacity: 1;
}


/* 
    collection
*/
.collection{
    flex-direction: column;
    display: flex;
    align-items: center;
}

.collection-text{
    padding: 2rem;
    align-items: start !important;
}

.collection-text {
    align-self: start;
}

.collection-grid{
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}
@media (max-width: 767px) {
    .collection-grid{
        gap: 3rem;
    }
}

.collection-category-container{
    min-height: 80svh;
    display: flex;
    flex-direction: column;
}
@media (max-width: 767px) {
    .collection-category-container {
        margin-inline: 0;
        min-height: auto;
        padding: 0;
    }
}

.collection-item{
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-inline: 0rem;
}
@media (max-width: 767px) {
    .collection-item{
        padding-inline: 0rem;
    }
}

.collection-item-img {
    display: block;
    height: 80svh;
    object-fit: cover;
}
.embla__container .collection-item:nth-child(n+2) .collection-item-img {
    margin-left: 1rem;
}
.collection-item img {
    width: 100%;
    display: block;
}


@media (max-width: 767px) {
    .embla__container .collection-item:nth-child(n+2) .collection-item-img {
        margin-left: 0;
    }

    .collection-item-img {
        height: 50svh;
        width: 100%;
        /* margin: 1rem; */
    }
}

.collection-category-title {
    padding: 1rem 5rem;
    margin: 0;
    font-size: 2rem;
    align-items: last baseline;
}
.collection-item-description{
    display: flex;
    flex-direction: row;
    align-items: baseline;
    padding: 2rem;
    z-index: 9999;
    margin: 0;
    color: var(--grey);
}
.embla__container .collection-item:nth-child(n+2) .collection-item-description {
    padding-left: 4.5rem;
}
@media (max-width: 767px) {
    .embla__container .collection-item:nth-child(n+2) .collection-item-description {
        padding-left: 2rem;
    }    
    .collection-item-description{
        flex-direction: column;
    }
}

.collection-item-description h5 {
    margin-right: 2rem !important;
}

.collection-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}


.collection-item-description h5{
    font-size: var(--fs-md);
    min-width: 15vw;
    max-width: 20vw;
}
.collection-item-description p{
    color: var(--soft-grey);
    font-size: var(--fs-sm);
    max-width: 80ch;
}
.collection-item-description p, .collection-item-description h5{
    padding: 0.5rem;
    margin: 0;
}

@media (max-width: 767px) {    
    .collection-item-description p, .collection-item-description h5{
        padding: 0;
    }
    .collection-item-description h5{
        min-width: unset;
        max-width: unset;
    }
    .collection-item-description p{
        margin-top: 2rem;
    }
    .collection-category-title {
        padding: 2rem;
        font-size: 1.5em;
    }
}

.embla__container {
    display: flex;
    gap: 1rem;
    padding-inline: 2rem;
}

.embla-invisible-button {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.embla-invisible-button.left {
    left: 0;
}

.embla-invisible-button.right {
    right: 0;
}


.embla__container_category {
    padding: 1rem;
    max-height: 90svh;
}

.embla__slide .collection-item{
    flex: 0 0 auto;
    width: 80%;
    min-width: 0;
}

.collection-category-gallery {
    overflow: hidden;
    cursor: grab;
    -webkit-mask-image: linear-gradient(to right, transparent -10%, white 5%, white 95%, transparent 110%);
    mask-image: linear-gradient(to right, transparent -10%, white 5%, white 95%, transparent 110%);
    position: relative;
}

.collection-category-gallery:active {
    cursor: grabbing;
}


@media (max-width: 767px) {
    .collection-item-img {
        height: 40svh;
        width: 100%;
    }

    .embla__slide {
        width: 100%;
    }

    .embla__container {
        gap: 0.5rem;
        padding-inline: 0rem;
    }
}

/* 
    gallery overlay
*/

.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                -webkit-backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay.active {
    display: flex;
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.gallery-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@media (max-width: 767px) {
    .gallery-container {
        padding: 0;
    }
}

.gallery-overlay.active .gallery-container {
    transform: scale(1);
    opacity: 1;
}

.embla-gallery {
    width: 100%;
    max-width: 1920px;
    position: relative;
}

.embla-gallery .embla__viewport {
    overflow: hidden;
    position: relative;
}

.embla-gallery .embla__container {
    display: flex;
    align-items: center;
}

.embla-gallery .embla__slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    transform: scale(0.8);
}

.embla-gallery .embla__slide__inner {
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* @media (max-width: 768px) {
ddddd
    .embla-gallery .embla__slide__inner {
        width: 90%;
        display: flex;
    }
} */

.embla-gallery .embla__slide__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 1rem;
}
@media (max-width: 768px) {
    .gallery-controls {
        display: none;
    }
}

.gallery-button {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: transparent !important;
    border: none !important;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.gallery-button:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.gallery-button:active {
    transform: scale(1.05);
}

.gallery-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-button svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.2s ease;
}

.gallery-button:hover svg {
    transform: translateX(0);
}

.gallery-button--prev:hover svg {
    transform: translateX(-2px);
}

.gallery-button--close {
    position: absolute;
    top: 3rem;
    left: 3rem;
}

.gallery-info {
    position: absolute;
    bottom: 5rem;
    left: 5rem;
    text-align: left;
    color: white;
    font-family: var(--sansik);
    max-width: 500px;
    opacity: 0;
    transform: translateY(20px);
}

.gallery-item-title {
    font-size: var(--fs-gallery-title);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.gallery-item-description {
    font-size: var(--fs-gallery-desc);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.gallery-request-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-size: var(--fs-gallery-link);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-request-link:hover {
    border-bottom-color: rgba(255, 255, 255, 0.8);
    color: rgba(255, 255, 255, 1);
    scale: 1.02;
}

@media (max-width: 767px) {
    .embla-gallery .embla__slide {
        flex: 0 0 80%;
        padding: 0rem;
    }

    .embla-gallery .embla__slide__inner {
        height: 50vh;
    }

    .gallery-button {
        width: 2.5rem;
        height: 2.5rem;
    }

    .gallery-button svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .gallery-info {
        position: static;
        text-align: center;
        font-size: var(--fs-gallery-info-mobile);
        padding: 0;
        margin: 0 auto;
        margin-top: 2rem;
        left: auto;
        bottom: auto;
    }

    .gallery-item-title {
        font-size: var(--fs-gallery-title-mobile);
    }

    .gallery-item-description {
        font-size: var(--fs-gallery-desc-mobile);
    }

    .gallery-request-link {
        margin-top: 1rem;
        font-size: 1.2rem;
        letter-spacing: 0.05em;
    }
}




/* 
    qualities
*/
.exclusive-qualities{
    margin: 0;
    min-height: 60vh;
}

.exclusive-qualities-container h2{
    text-align: center;
}

.exclusive-qualities-container div.section-header h2{
    position: relative;
    z-index: -2;
}

.qualities-list{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 4rem;
    justify-content: center;
}
@media (max-width: 767px) {
    .qualities-list {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        margin: 0rem;
        padding: 1rem;
    }
}

.quality-item{
    background: var(--white);
    box-shadow: var(--shadow-s);
    padding: 4rem 4rem 2rem 4rem;
    flex: 1;
    align-self: center;
    border-radius: 1rem;
    transition: box-shadow 0.2s ease-in-out;
}
@media (max-width: 767px) {
    .quality-item{
    box-shadow: var(--shadow-s);
    padding: 1rem;
    text-align: center;
    }
}

.quality-item p{
    color: var(--grey);
}

.quality-icon img {
    width: auto;
    height: 12rem;
    display: block;
    margin: 0 auto 1rem;
    box-shadow: none !important;
    object-fit: contain;
}

.quality-item:hover{
    box-shadow: var(--shadow-m);
}

@media (max-width: 767px) {

    .quality-item {
        max-width: 100%;
        padding: 1.5rem;
    }
}

/* 
    CTA
*/

.cta{
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 2rem;
    margin-top: 15vh;
    margin-bottom: 20vh;
}
@media (max-width: 767px) {
    .cta{
        padding: 1rem;
        margin-inline: 1rem;
    }
}

.cta-container {
    background-color: var(--white);
    box-shadow: var(--shadow-m);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    z-index: 3;
}
@media (max-width: 767px) {
    .cta-container {
        padding: 0rem;
    }
}

#cta-title{
    z-index: 2;
}

.cta .section-text {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--grey);
}
@media (max-width: 767px) {
    .cta .section-text{
        margin: 3rem 0 0 0;
        padding: 1rem;
    }
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (max-width: 767px) {
    .cta-form{
        text-align: center;
        margin: 1rem;
    }
}

.form-dropdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
}

.form-dropdown.expanded {
    max-height: 500px;
    margin-top: 1rem;
    opacity: 1;
    transform: translateY(0);
}

.form-input {
    padding: 1rem;
    margin: 0.25em;
    border: 1px solid #ffffff00;
    box-shadow: 0 1px 4px #00000020;
    border-radius: 0.5rem;
    font-size: var(--fs-md);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    outline: none;
    border: 1px solid var(--white);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.form-input::placeholder {
    text-align: center;
    color: var(--soft-grey);
}

.consent-row {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 767px) {
    .consent-row {
        margin-top: 1rem;
        padding: 1rem;
        flex-direction: column;
    }
}

.consent-label {
    text-align: start;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    color: var(--grey);
    cursor: pointer;
    flex: 1;
}

.consent-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid black;
    background: white;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.consent-checkbox:checked {
    background: black;
}

.consent-checkbox:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

#cta-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--grey);
    color: var(--white);
}

.success-message * img{
    box-shadow: none;
}
