/* ========================
   HEADER TEXT STYLES - POSITION VARIANTS
   ======================== */

/* DEFAULT: Top Right Position (current) */
.content-wrapper {
    position: absolute;
    top: 6%;
    right: 4vw;
    width: 60%;
    height: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    font-family: Montserrat;
    gap: 16px;
    z-index: 5;
}

/* VARIANT 1: Top Left Position */
.content-wrapper.top-left {
    top: 6%;
    left: 4vw;
    right: auto;
    align-items: flex-start;
    text-align: left;
}

/* VARIANT 2: Bottom Right Position */
.content-wrapper.bottom-right {
    top: auto;
    bottom: 8%;
    right: 4vw;
    height: auto;
    align-items: flex-end;
    text-align: right;
}

/* VARIANT 3: Bottom Left Position */
.content-wrapper.bottom-left {
    top: auto;
    bottom: 8%;
    left: 4vw;
    right: auto;
    height: auto;
    align-items: flex-start;
    text-align: left;
}

/* Main heading and subheading styles */
.container-header h1,
.container-header h2 {
    color: white;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.container-header h1 {
    font-size: clamp(33px, 2.625vw, 50px);
    text-transform: uppercase;
    width: 80%;
    line-height: 1.2;
}

.container-header h2 {
    font-size: clamp(14px, 0.94vw, 18px);
    width: 45%;
    line-height: 1.4;
}

/* Adjust text widths for left-aligned variants */
.content-wrapper.top-left .container-header h1,
.content-wrapper.bottom-left .container-header h1 {
    width: 80%;
}

.content-wrapper.top-left .container-header h2,
.content-wrapper.bottom-left .container-header h2 {
    width: 55%;
}

#buton_catalog {
    width: fit-content;
    padding: 12px 18px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f6f6f6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    border: 1px solid;
    border-image: linear-gradient(160deg, #98735B, #EFB995, #98735B);
    border-image-slice: 1;
    cursor: pointer;
    font-size: clamp(11px, 0.64vw, 12px);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-light);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

#buton_catalog:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(228, 170, 112, 0.4);
}

#buton_catalog:active {
    transform: translateY(0);
}


/* ========================
   RESPONSIVE STYLES FOR ALL VARIANTS
   ======================== */

/* Medium-Large screens */
@media (max-width: 1200px) {
    .content-wrapper {
        width: 70%;
    }

    .container-header h2 {
        width: 60%;
    }

    /* Adjust for left-aligned variants */
    .content-wrapper.top-left .container-header h2,
    .content-wrapper.bottom-left .container-header h2 {
        width: 65%;
    }
}

/* Tablet responsive */
@media (max-width: 768px) {
    .content-wrapper,
    .content-wrapper.top-left,
    .content-wrapper.bottom-right,
    .content-wrapper.bottom-left {
        width: 90%;
        top: 4%;
        bottom: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        justify-content: start;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .container-header h1 {
        font-size: 27px;
        width: 100%;
        padding-inline: 5%;
    }

    .container-header h2 {
        font-size: 12px;
        line-height: 20px;
        width: 100%;
    }

    #buton_catalog {
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .container-header h1 {
        font-size: 22px;
        line-height: 36px;
    }

    .container-header h2 {
        width: 70%;
        font-size: 14px;
        font-weight: 400;
        line-height: 21px;
    }

    #buton_catalog {
        font-size: 12px;
        font-weight: 400;
    }
}

/* ========================
   HEADER IMAGE/CAROUSEL STYLES
   ======================== */

/* Header container */
#header {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.container-header {
    width: 100%;
    height: calc(100vh - var(--nav-height));
    position: relative;
}

/* Carousel container and slides */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(10px);
    transition:
            opacity 0.8s ease-in-out,
            transform 0.8s ease-in-out;
    will-change: opacity, transform;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ========================
   CAROUSEL CONTROLS - UPDATED ARROW BUTTONS
   ======================== */

/* Arrow buttons - Made larger with better positioning */
.carousel-arrow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; /* Increased from 36px */
    height: 44px; /* Increased from 36px */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.carousel-arrow-button.prev {
    left: 20px; /* Moved closer to edge for better balance */
}

.carousel-arrow-button.next {
    right: 20px; /* Moved closer to edge for better balance */
}

.carousel-arrow-button .arrow-icon {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px; /* Increased from 16px */
    font-weight: 200;
    line-height: 1;
    transition: all 0.2s ease;
    user-select: none;
    /* Better centering for the arrow icons */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Fine-tune positioning for specific arrows */
.carousel-arrow-button.prev .arrow-icon {
    margin-left: -1px; /* Slight adjustment for visual centering */
}

.carousel-arrow-button.next .arrow-icon {
    margin-right: -1px; /* Slight adjustment for visual centering */
}

.carousel-arrow-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow-button:hover .arrow-icon {
    color: white;
    transform: scale(1.08);
}

.carousel-arrow-button:active {
    transform: translateY(-50%) scale(0.98);
}

.carousel-container:hover .carousel-arrow-button {
    opacity: 1;
    pointer-events: auto;
}

/* Enhanced hit area for better interaction */
.carousel-arrow-button::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    /* Invisible expanded hit area */
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 30px;
    height: 3px;
    border-radius: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
}

.indicator.active {
    background-color: white;
    width: 40px;
}

/* Remove old carousel elements */
.carousel-edge,
.carousel-arrow {
    display: none !important;
}

/* ========================
   RESPONSIVE STYLES
   ======================== */

/* Medium-Large screens */
@media (max-width: 1200px) {
    .carousel-arrow-button {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow-button .arrow-icon {
        font-size: 16px;
    }
}

/* Tablet responsive */
@media (max-width: 768px) {
    .container-header {
        height: 84vh;
    }

    /* Hide arrow buttons on tablets */
    .carousel-arrow-button {
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden;
    }

    .carousel-indicators {
        bottom: 15px;
    }

    .indicator {
        width: 20px;
        height: 2px;
    }

    .indicator.active {
        width: 30px;
    }
}

/* Small tablets - adjust image positioning */
@media (min-width: 481px) and (max-width: 768px) {
    .carousel-slide img {
        object-position: 33% center;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    /* Hide arrow buttons on mobile */
    .carousel-arrow-button {
        opacity: 0 !important;
        visibility: hidden;
    }

    .carousel-slide img {
        object-position: 38% center;
    }

    .carousel-indicators {
        gap: 8px;
        bottom: 12px;
    }

    .indicator {
        width: 16px;
    }

    .indicator.active {
        width: 24px;
    }
}

.content-wrapper {
    pointer-events: none;
}

.content-wrapper button,
.content-wrapper a,
.content-wrapper input,
.content-wrapper select,
.content-wrapper textarea {
    pointer-events: auto;
}

.carousel-container,
.container-header,
#header {
    touch-action: pan-y;
}