/**
 * Page: Home Stylesheet
 * 
 * Hero section styling, floating layered card composition,
 * trust strip layout, alternating craftsmanship rows, and why choose us grid.
 */

/* =========================================================================
   1. Hero Banner Carousel
   Modern luxury animated carousel with smooth crossfade & Ken Burns motion
   ========================================================================= */
.hero-carousel-section {
    position: relative;
    padding-top: calc(var(--space-6) + 75px);
    padding-bottom: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    background: #09261C;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-carousel-section {
        padding-top: 104px;
        padding-bottom: 0;
    }
}

.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: clamp(380px, calc(100vh - 105px), 740px);
    overflow: hidden;
    background-color: #09261C;
    user-select: none;
}

@media (max-width: 768px) {
    .hero-carousel {
        height: clamp(280px, 56.25vw, 460px);
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: clamp(220px, 56.25vw, 320px);
    }
}

.hero-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    display: flex;
    align-items: flex-end;
}

.hero-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.0);
    transition: transform 6.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.hero-carousel-slide.is-active .hero-slide-img {
    transform: scale(1.045);
}

/* Floating Slide Content & CTAs (No blur, crisp presentation) */
.hero-slide-content {
    position: absolute;
    bottom: clamp(24px, 4vw, 44px);
    left: clamp(24px, calc((100vw - var(--container-max)) / 2 + 24px), 120px);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-slide-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, opacity 0.5s ease 0.3s;
}

.hero-carousel-slide.is-active .hero-slide-actions {
    transform: translateY(0);
    opacity: 1;
}

.hero-cta-btn {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-glass {
    background: rgba(9, 38, 28, 0.85);
    border: 1px solid rgba(255, 248, 238, 0.65);
    color: var(--color-cream);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn-glass:hover {
    background: rgba(9, 38, 28, 0.95);
    color: var(--color-white);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

@media (max-width: 576px) {
    .hero-slide-actions .btn {
        padding: 8px 16px;
        font-size: var(--text-xs);
    }
    .hero-slide-content {
        padding: 16px 20px;
    }
}

/* Top Bar Controls (Counter & Pause Toggle - Clean solid contrast without blur) */
.hero-carousel-top-bar {
    position: absolute;
    top: clamp(14px, 2.5vw, 28px);
    right: clamp(16px, 3.5vw, 40px);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-carousel-counter {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: clamp(0.72rem, 1.2vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-gold-light);
    background: rgba(9, 38, 28, 0.85);
    border: 1px solid rgba(212, 166, 74, 0.5);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.counter-divider {
    opacity: 0.5;
    font-weight: 400;
}

.counter-total {
    color: rgba(255, 248, 238, 0.7);
}

.hero-autoplay-toggle {
    background: rgba(9, 38, 28, 0.85);
    border: 1px solid rgba(212, 166, 74, 0.5);
    color: var(--color-gold-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.9;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hero-autoplay-toggle:hover {
    opacity: 1;
    background: var(--color-gold);
    color: var(--color-evergreen);
    border-color: var(--color-gold-light);
    transform: scale(1.08);
}

/* Indicators centered horizontally at bottom */
.hero-carousel-indicators {
    position: absolute;
    bottom: clamp(14px, 2.8vw, 26px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-indicator {
    position: relative;
    height: 6px;
    width: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease;
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-indicator.is-active {
    width: 48px;
    background: rgba(255, 255, 255, 0.5);
}

.indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--color-gold);
    border-radius: 999px;
    transition: width 0.1s linear;
}

.hero-indicator.is-active.is-animating .indicator-progress {
    width: 100%;
    transition: width 5.2s linear;
}

/* Prev / Next Navigation Arrows (Clean solid contrast without blur) */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: clamp(40px, 4vw, 50px);
    height: clamp(40px, 4vw, 50px);
    border-radius: 50%;
    background: rgba(9, 38, 28, 0.85);
    border: 1px solid rgba(212, 166, 74, 0.55);
    color: #FFF8EE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0.9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.hero-nav-btn:hover {
    opacity: 1;
    background: var(--color-gold);
    color: var(--color-evergreen);
    border-color: var(--color-gold-light);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(212, 166, 74, 0.45);
}

.hero-nav-btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.hero-nav-prev {
    left: clamp(16px, 2.5vw, 36px);
}

.hero-nav-next {
    right: clamp(16px, 2.5vw, 36px);
}

@media (max-width: 576px) {
    .hero-nav-btn {
        display: none; /* Mobile uses intuitive touch swipe */
    }
}

/* =========================================================================
   2. Trust / Stat Strip
   ========================================================================= */
.trust-strip-section {
    background-color: var(--color-evergreen);
    color: var(--color-cream);
    padding: var(--space-8) 0;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.15);
}

.trust-strip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .trust-strip-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-8);
    }
}

.trust-stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.trust-number {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 4vw, 2.375rem);
    font-weight: 700;
    color: var(--color-gold-light);
    line-height: 1.1;
    margin-bottom: var(--space-1);
}

.trust-label {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    color: rgba(255, 248, 238, 0.85);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================================================
   3. Alternating Feature Rows
   ========================================================================= */
.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
    margin-bottom: var(--space-12);
}

.feature-row:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
        margin-bottom: var(--space-16);
    }

    .feature-row.is-reversed .feature-row-content {
        order: 2;
    }

    .feature-row.is-reversed .feature-row-visual {
        order: 1;
    }
}

@media (min-width: 992px) {
    .feature-row {
        gap: var(--space-16);
    }
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold-dark);
    margin-bottom: var(--space-2);
}

.feature-row-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
    line-height: 1.25;
}

.feature-row-text {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.feature-points-list {
    margin-bottom: var(--space-8);
}

.feature-points-list li {
    font-family: var(--font-sans);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-charcoal);
    margin-bottom: var(--space-3);
}

.feature-points-list i {
    color: var(--color-cranberry);
    font-size: 1.1rem;
    margin-top: 1px;
}

.feature-image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background-color: #F8F5EE;
    padding: 0;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .feature-image-wrapper {
        height: 420px;
    }
}

.feature-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform var(--transition-slow);
}

.feature-image-wrapper:hover img {
    transform: scale(1.04);
}

.visual-badge-floating {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    background: rgba(15, 61, 46, 0.9);
    backdrop-filter: blur(8px);
    color: var(--color-cream);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.visual-badge-floating i {
    color: var(--color-gold);
}

/* Header Flex Layout */
.section-header-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: var(--space-10);
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .section-header-flex {
        flex-direction: row;
        align-items: flex-end;
    }
}
