﻿/* hero-slider.css - SRS Agro Chemicals - Professional Reduced Height Edition */

/* =====================================
   HERO FULL WIDTH BREAKOUT FIX
   ===================================== */

.hero-fullwidth-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
}

body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* =====================================
   HERO PARTIAL - PROFESSIONAL REDUCED HEIGHT
   ===================================== */
.hero-partial {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #1a3b2f;
}

/* CAROUSEL - Reduced height for professional look */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 70vh; /* Reduced from 100vh to 70vh */
    min-height: 450px; /* Minimum height for small screens */
    max-height: 700px; /* Maximum height for large screens */
}

/* SLIDES CONTAINER */
.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* INDIVIDUAL SLIDE - FULL COVERAGE */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
    background-size: cover;
    background-position: center 30%; /* Focus more on upper-middle part of images */
    background-repeat: no-repeat;
}

    .hero-slide.active {
        opacity: 1;
        z-index: 2;
    }

    /* Overlay - Lighter for modern look */
    .hero-slide::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
        z-index: 1;
    }

/* =====================================
   CONTENT STYLES - Adjusted for reduced height
   ===================================== */
.hero-content {
    position: absolute;
    bottom: 12%; /* Adjusted from 18% for reduced height */
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    pointer-events: none;
}

.company-badge {
    display: inline-block;
    background: rgba(46, 125, 50, 0.88);
    backdrop-filter: blur(4px);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border-left: 3px solid #FFD966;
    border-right: 3px solid #FFD966;
    font-family: inherit;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 1.2rem auto;
    line-height: 1.5;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.btn-cta {
    display: inline-block;
    background-color: #FFB347;
    color: #1e3a2f;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    border: none;
    cursor: pointer;
}

    .btn-cta:hover {
        background-color: #FFA01E;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    }

/* =====================================
   NAVIGATION CONTROLS
   ===================================== */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 15;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

    .dot.active {
        background-color: #FFD966;
        width: 24px;
        border-radius: 10px;
    }

.hero-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    color: white;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .hero-nav-arrow:hover {
        background: rgba(0, 0, 0, 0.65);
        transform: translateY(-50%) scale(1.05);
    }

.nav-prev {
    left: 25px;
}

.nav-next {
    right: 25px;
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

/* Large Desktop */
@media (min-width: 1440px) {
    .hero-carousel {
        height: 65vh;
        max-height: 650px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-carousel {
        height: 65vh;
        min-height: 430px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero-carousel {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content {
        bottom: 10%;
    }

        .hero-content h1 {
            font-size: 2.2rem;
        }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .hero-carousel {
        height: 55vh;
        min-height: 380px;
    }

    .hero-content {
        bottom: 10%;
        padding: 0 1rem;
    }

        .hero-content h1 {
            font-size: 1.8rem;
        }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.85rem;
        max-width: 90%;
        margin: 0 auto 1rem auto;
    }

    .company-badge {
        font-size: 0.7rem;
        padding: 0.25rem 1rem;
        margin-bottom: 0.8rem;
    }

    .btn-cta {
        padding: 0.6rem 1.6rem;
        font-size: 0.85rem;
    }

    .hero-nav-arrow {
        width: 36px;
        height: 36px;
    }

        .hero-nav-arrow svg {
            width: 18px;
            height: 18px;
        }

    .nav-prev {
        left: 15px;
    }

    .nav-next {
        right: 15px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .hero-carousel {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content {
        bottom: 8%;
    }

        .hero-content h1 {
            font-size: 1.5rem;
            margin-bottom: 0.4rem;
        }

    .hero-tagline {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .company-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.8rem;
        margin-bottom: 0.6rem;
    }

    .btn-cta {
        padding: 0.5rem 1.4rem;
        font-size: 0.8rem;
    }

    .carousel-dots {
        bottom: 12px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

        .dot.active {
            width: 18px;
        }
}

/* Small Mobile */
@media (max-width: 380px) {
    .hero-carousel {
        height: 45vh;
        min-height: 320px;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-tagline {
        font-size: 0.75rem;
    }

    .hero-description {
        font-size: 0.7rem;
    }

    .company-badge {
        font-size: 0.55rem;
    }

    .btn-cta {
        padding: 0.45rem 1.2rem;
        font-size: 0.75rem;
    }
}

/* =====================================
   OPTIONAL: ANIMATIONS FOR PROFESSIONAL TOUCH
   ===================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content .company-badge,
.hero-content h1,
.hero-content .hero-tagline,
.hero-content .hero-description,
.hero-content .btn-cta {
    animation: fadeInUp 0.6s ease-out forwards;
}

.hero-content .company-badge {
    animation-delay: 0.1s;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content .hero-tagline {
    animation-delay: 0.3s;
}

.hero-content .hero-description {
    animation-delay: 0.4s;
}

.hero-content .btn-cta {
    animation-delay: 0.5s;
}
