/* assets/css/home.css */
/* New Slider Styles */
.hero-slider-wrap {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
}

.slider-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.slider-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 3s ease-in-out;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    /* Slight zoom for active effect */
}

.slider-bg-item.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

.slider-bg-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content-master {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 120px;
    /* Leave space for matching negative margin of feature-boxes */
}

.slider-texts {
    display: grid;
    margin-bottom: 30px;
}

.slider-text-item {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateY(20px);
    color: #fff;
    text-align: left;
}

.slider-text-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: translateY(0);
}

.slider-text-item h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
    color: #fff;
    line-height: 1.1;
    max-width: 800px;
}

.slider-text-item h3 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    max-width: 800px;
}

.slider-text-item p {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    max-width: 800px;
}

/* Static Overlay Elements */
.hero-static-overlay {
    text-align: left;
}

.hero-btns {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-orange {
    background: var(--secondary);
    color: var(--white);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
}

.btn-orange:hover {
    background: #c36618;
}

.btn-white {
    background: #fff;
    color: #333;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.btn-white:hover {
    background: #f1f1f1;
}

.hero-guarantees {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    color: #fff;
}

.hero-guarantees span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}

.hero-guarantees span i {
    color: #2ecc71;
    font-size: 18px;
}

/* Controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: var(--secondary);
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.slider-prev:hover,
.slider-next:hover {
    background: #c36618;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 40px;
}

.slider-next {
    right: 40px;
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--bg-light);
    margin-top: 0px;
}

.feature-box-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: -100px;
}

.feature-box {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
    position: relative;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-box i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Services */
.services-section {
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
    text-align: center;
    background: var(--white);
}

.service-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(211, 47, 47, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    margin-bottom: 20px;
}

/* Why Us */
.why-us {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-us-content h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 20px;
}

.why-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 18px;
}

.why-list i {
    color: var(--primary);
    font-size: 24px;
    margin-top: 3px;
}

/* Regions Tracker */
.regions-section {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.region-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.region-tag {
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.region-tag:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* FAQs */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
}

.faq-item h3 {
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.faq-item p {
    margin-top: 15px;
    display: none;
}

.faq-item.active p {
    display: block;
}

.faq-item h3 i {
    transition: transform 0.3s;
    color: var(--primary);
}

.faq-item.active h3 i {
    transform: rotate(180deg);
}

/* CTA Block */
.cta-block {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-block h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .hero-slider-wrap {
        min-height: 90vh;
    }

    .hero-content-master {
        padding-top: 60px;
        padding-bottom: 60px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .slider-text-item h1 {
        font-size: 38px;
        margin-bottom: 15px;
    }

    .slider-text-item h3 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .slider-text-item p {
        font-size: 16px;
        margin-bottom: 0;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 25px;
    }

    .btn-orange,
    .btn-white {
        width: 100%;
        justify-content: center;
    }

    .hero-guarantees {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 10px;
    }

    .hero-guarantees span {
        font-size: 13px;
        align-items: flex-start;
    }

    .hero-guarantees span i {
        margin-top: 2px;
    }

    .hero-guarantees span:last-child {
        grid-column: 1 / -1;
    }

    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }
}