/* Hero Slider Styles */

.hero-slider {
    position: relative;
    width: 100%;
    min-height: auto;
    height: auto;
    padding-top: 0;
    padding-bottom: 40px;
    margin-top: 0;
    margin-bottom: 0;
    background: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: visible;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 400px;
    max-width: 1600px;
    margin: 0 auto;
    overflow: visible;
}

.main-header {
    margin-bottom: 0 !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

.hero-slider {
    margin-top: 0 !important;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    display: none;
    opacity: 0;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
    display: flex;
    opacity: 1;
}

.hero-slide-content {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    height: 100%;
    align-items: flex-start;
    margin-top: 0;
}

.hero-slide-text {
    padding: 40px 60px 0 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.hero-slide-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #C9961A;
    margin-bottom: 24px;
    display: block;
}

.hero-slide-headline {
    font-size: 38px;
    font-weight: 800;
    color: #1a2b3c;
    line-height: 1.1;
    margin-top: 12px;
    margin-bottom: 24px;
}

.hero-slide-description {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 90%;
}

.hero-slide-cta {
    display: flex;
    gap: 20px;
    margin-top: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: #C9961A;
    color: #ffffff;
    padding: 0 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-btn-primary:hover {
    background: #C9961A;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201, 163, 91, 0.4);
    color: #ffffff;
}

.hero-btn-secondary {
    background: transparent;
    color: #000000;
    padding: 0 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    cursor: pointer;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-btn-secondary:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-3px);
}

.hero-trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 0;
    justify-content: space-between;
}

.hero-trust-point {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    min-width: 220px;
    max-width: 320px;
    flex: 1 1 220px;
}

.hero-trust-point i {
    color: #C9961A;
    font-size: 22px;
    min-width: 24px;
    text-align: center;
    margin-top: 4px;
}

.hero-trust-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-trust-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000000;
}

.hero-trust-subtitle {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.5;
    font-weight: 500;
}

.hero-trust-points--row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}

.hero-trust-points--row.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-trust-points--row .hero-trust-point {
    min-width: 0;
    padding: 5px 0;
    gap: 8px;
}

.hero-trust-points--row .hero-trust-copy {
    min-width: 0;
    flex: 1 1 0;
}

.hero-trust-points--row .hero-trust-point i {
    font-size: 16px;
    min-width: 18px;
    margin-top: 2px;
}

.hero-trust-points--row .hero-trust-title {
    font-size: 11px;
    letter-spacing: 0.05em;
}

.hero-trust-points--row .hero-trust-subtitle {
    font-size: 11px;
    line-height: 1.3;
}

.hero-trust-point::before {
    content: none;
}

.hero-trust-point i {
    color: #C9961A;
    font-size: 18px;
    min-width: 20px;
    text-align: center;
}

.hero-slide-image {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    padding-right: 80px;
    padding-top: 0;
}

.hero-slide-image img {
    width: 85%;
    height: auto;
    object-fit: contain;
    object-position: right center;
    border: none;
    box-shadow: none;
    display: block;
    margin-right: 0;
    border-right: 10px solid #ffffff;
}

.hero-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    gap: 16px;
    z-index: 99999 !important;
    pointer-events: auto !important;
    width: 100%;
    justify-content: center;
}

.hero-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #C9961A;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: #C9961A;
    border-color: #ffffff;
    transform: scale(1.2);
}

.hero-dot:hover {
    background: #C9961A;
}

.hero-slider-arrows {
    display: none;
}

.hero-arrow {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eaddc3;
    color: #C9961A;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding-bottom: 4px;
}

.hero-arrow:hover {
    background: #C9961A;
    color: #ffffff;
}

/* Tablet Styles */
@media (max-width: 1200px) {
    .hero-slide-text {
        padding: 40px 40px 0 60px;
    }
}

@media (max-width: 1024px) {
    .hero-slider {
        height: auto;
        min-height: auto;
        padding-bottom: 35px;
    }

    .hero-slider-container {
        height: auto;
        min-height: 450px;
    }

    .hero-slide-text {
        padding: 0 40px;
    }

    .hero-slide-headline {
        font-size: 42px;
    }

    .hero-slide-description {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-slider-dots {
        left: 50%;
        bottom: 10px;
    }
}

/* Mobile Styles */
@media (max-width: 820px) {
    .hero-slide-content {
        grid-template-columns: 1fr;
    }
    .hero-slide-text {
        padding: 30px 24px 0 24px;
    }
    .hero-slide-image {
        padding-right: 0;
        justify-content: center;
    }
    .hero-slide-image img {
        width: 90%;
    }
    .hero-trust-points--row, .hero-trust-points--row.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 20px;
    }
    .hero-trust-title {
        font-size: 12px;
    }
    .hero-trust-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: auto;
        min-height: auto;
        padding-bottom: 70px !important; /* Added padding to prevent dot overlap */
    }

    .hero-slider-container {
        height: auto;
        min-height: auto !important; /* Allow dynamic height based on content */
    }

    .hero-slide.active {
        position: relative !important; /* Let the container grow with the content */
        height: auto !important;
    }

    .hero-slide-content {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 20 !important; /* Ensure content is above dots */
    }

    .hero-slide-image {
        order: 1;
        height: clamp(260px, 40vh, 350px) !important; /* MOBILE IMAGE HEIGHT FIX */
        width: 100% !important;
        padding-right: 0 !important;
        display: block !important;
    }

    .hero-slide-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important; /* Crop instead of squash */
        object-position: top center !important; /* Crop from top only */
        border: none !important;
    }

    .hero-slide-text {
        order: 2;
        padding: 30px 24px 10px 24px;
        text-align: left;
        align-items: flex-start;
    }

    .hero-slide-label {
        text-align: left;
        margin-bottom: 16px;
    }

    .hero-slide-headline {
        font-size: 34px;
        text-align: left;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .hero-slide-description {
        font-size: 15px;
        text-align: left;
        margin-bottom: 24px;
    }

    .hero-slide-cta {
        flex-direction: column;
        width: 100%;
        gap: 16px;
        position: relative;
        z-index: 30 !important; /* Keep above dots */
        margin-bottom: 10px !important;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        position: relative;
        z-index: 30 !important;
    }

    .hero-trust-points {
        justify-content: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .hero-slider-dots {
        bottom: 15px !important; /* Stay safely in the padding-bottom space */
        left: 50%;
        z-index: 10 !important; /* Layer properly under the CTA */
    }

    /* Slide 3 Specific Mobile Overrides */
    .hero-slide.is-slide-3 .hero-slide-text {
        order: 1 !important; /* Title and features first */
    }
    
    .hero-slide.is-slide-3 .hero-slide-image {
        order: 2 !important; /* Images and badges below */
        height: auto !important; /* Prevent content cutoff */
        overflow: visible !important;
        padding-bottom: 20px !important;
    }
    
    .hero-slide.is-slide-3 .hero-slide-image img {
        height: auto !important; /* Prevent distortion */
        object-fit: contain !important;
    }
    
    .hero-slide.is-slide-3 .hero-slide-image > div:first-child {
        flex-direction: column !important; /* Stack images vertically */
        align-items: center !important;
    }
    
    .hero-slide.is-slide-3 .hero-slide-image > div:first-child > div {
        width: 100% !important; /* Full width for mobile visibility */
        max-width: 320px; /* Keep it constrained if screen is wide */
    }
}

@media (max-width: 600px) {
    .hero-trust-points--row, .hero-trust-points--row.cols-3 {
        grid-template-columns: 1fr;
    }
    .hero-trust-point {
        padding: 8px 0;
        gap: 10px;
    }
    .hero-slide-headline {
        font-size: 28px;
    }
    .hero-slide-description {
        font-size: 15px;
        max-width: 100%;
    }
    .hero-slide-cta {
        flex-direction: column;
        gap: 12px;
    }
    .hero-btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-slide-image {
        height: 400px;
    }
    .hero-slide-headline {
        font-size: 32px;
    }
}
