/* ========================================
   DESIDERIO - HOME PAGE STYLES
   ======================================== */

/* ----------------------------------------
   HERO / CAROUSEL SECTION
   ---------------------------------------- */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 500px;
    overflow: hidden;
    background-color: var(--color-bg);
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: pan-y pinch-zoom;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-3);
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(26, 26, 26, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

.indicator:hover {
    background-color: rgba(26, 26, 26, 0.5);
}

.indicator.active {
    background-color: var(--color-text);
    border-color: var(--color-text);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-6);
    z-index: 10;
    pointer-events: none;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(245, 242, 237, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    pointer-events: auto;
    opacity: 0.7;
}

.carousel-btn:hover {
    background-color: var(--color-bg-light);
    opacity: 1;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--color-text);
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.hero-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    color: var(--color-white);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.hero-name-first {
    margin-right: 0.7em;
}

/* ----------------------------------------
   CTA SECTION
   ---------------------------------------- */
.cta-section {
    background-color: var(--color-bg);
    padding: var(--space-20) 0;
    text-align: center;
}

.cta-text {
    font-family: var(--font-elegant);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-8);
}

/* ----------------------------------------
   RESPONSIVE STYLES
   ---------------------------------------- */
@media (max-width: 1024px) {
    .hero {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
    }

    .carousel-controls {
        display: none;
    }

    .carousel-indicators {
        bottom: var(--space-4);
    }

    .indicator {
        width: 12px;
        height: 12px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6.5vw, 2.4rem);
        letter-spacing: 0.25em;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 45vh;
        min-height: 300px;
    }

    .hero-overlay {
        bottom: var(--space-12);
    }

    .carousel-indicators {
        bottom: var(--space-2);
        gap: var(--space-2);
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .hero-title {
        font-size: clamp(0.9rem, 6vw, 1.2rem);
        letter-spacing: 0.1em;
    }
}
