/* =====================================================
   06-HOME.CSS
   Joy Travels & Vacations Homepage
  
1. HERO 
===================================================== */

.hero{
    position:relative;
    height:100vh;
    overflow:hidden;
}

/* Slides */
.slides{
    position:absolute;
    inset:0;
}
.slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity 1.2s ease-in-out;
}

.slide.active{
    opacity:1;
}
/* Dark overlay */
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        rgba(0,0,0,.45),
        rgba(0,0,0,.60)
    );
    z-index:1;
}

/* Hero Content */
.hero-content{
    position: relative;
    z-index: 2;
    max-width: 650px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 8%;
    color: white;
}
.hero .btn{
    display:inline-block;
    background:var(--accent);
    color:white;
    padding:16px 38px;
    border-radius:8px;
    transition:var(--transition);
    font-weight:bold;
}

.hero .btn:hover{
    background:var(--primary-dark);
    transform:translateY(-4px);
}

/* =====================================================
 2. FEATURE BAR 
===================================================== */

.feature-bar{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    background:#222;
    color:white;
    padding:45px 8%;
}
.feature-item{
    display:flex;
    gap:20px;
    align-items:center;
}
.feature-icon{
    width:65px;
    height:65px;
    border:2px solid var(--primary);
    color:var(--primary);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    flex-shrink:0;
}

.feature-item h3{
    margin-bottom:8px;
    font-size:20px;
}

.feature-item p{
    color:#cccccc;
    font-size:15px;
}
/* =====================================================
 3. HOME GRID 
===================================================== */
.home-grid{
    display:grid;
    grid-template-columns:1fr 1.2fr 1fr;
    gap:35px;
    padding:90px 8%;
    background:var(--cream);

}

/* Boxes */
.info-box,
.booking-box,
.social-box{
    background:white;
    border-radius:12px;
    padding:30px;
    box-shadow:var(--shadow);
}
/* Titles */
.info-box h2,
.booking-box h2{
    margin-bottom:25px;
    color:var(--dark);
}

/* Feature List */
.feature-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}
.feature-list li{
    font-size:17px;
}
/* Form */
.booking-box form{
    display:flex;
    flex-direction:column;
    gap:15px;
}
.booking-box input,
.booking-box select,
.booking-box textarea{
    padding:14px;
    border:1px solid #ddd;
    border-radius:8px;
}
.booking-box textarea{
    min-height:130px;
}
.booking-box button{
    margin-top:10px;
}


/* =====================================================
 4. REVIEWS & SOCIAL 
===================================================== */

.reviews-social-wrapper{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    padding:80px 8%;
    background:var(--white);
}

.review-card,
.facebook-card{
    background:#fff;
    border-radius:12px;
    padding:35px;
    box-shadow:var(--shadow);
}

.review-card{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.review-card h2{
    margin-bottom:15px;
}

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

.review-card .stars{
    color:var(--primary);
    font-size:22px;
    margin-bottom:20px;
}

.review-card .btn{
    align-self:flex-start;
}

.facebook-card iframe{
    width:100%;
    border:none;
    border-radius:10px;
    min-height:350px;
}

/* =====================================================
 5. TOP DESTINATIONS 
===================================================== */

.destinations-home{
    padding:100px 8%;
    background:#ffffff;
}

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

.destination-card{
    position:relative;
    overflow:hidden;
    border-radius:12px;
    box-shadow:var(--shadow);
    height:350px;
}

.destination-card img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.destination-card:hover img{
    transform:scale(1.08);
}

.destination-overlay{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:25px;
    background:linear-gradient(transparent,rgba(0,0,0,.75));
    color:#fff;
}

.destination-overlay h3{
    color:#fff;
    margin-bottom:15px;
}
.btn-small{
    display:inline-block;
    width:max-content;
    padding:12px 24px;
    background:var(--primary);
    color:white;
    border-radius:6px;
    text-decoration:none;
    transition:var(--transition);

}

.btn-small:hover{
    background:var(--primary-dark);
}

/* =====================================================
   6. FEATURED SAFARIS 
===================================================== */

.featured-safaris{
    padding:100px 8%;
    background:var(--cream);
}

.cards{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
    margin-top:50px;
}

.card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
  
}
.card img{
    width:100%;
    height:260px;
    object-fit:cover;
}
.card-content{
    padding:25px;
    display:flex;
    flex-direction:column;
    flex:1;
}
/* Add padding to all content except the image */
.card h3,
.card p,
.card .btn{
    margin-left:30px;
    margin-right:30px;
}
.card h3{
    margin-top:25px;
}
.card-content p{
    margin-bottom:18px;

}
.card .btn{
 display:block;
    width:calc(100% - 60px);
    margin-bottom:18px;

}
/* =====================================================
    7. MEET JOY
===================================================== */
.meet-joy{
    display:grid;
    grid-template-columns:1fr 1.3fr;
    gap:70px;
    align-items:center;
    padding:100px 8%;
    background:white;

}
.joy-image img{
    width:100%;
    border-radius:20px;
    box-shadow:var(--shadow);
}
.section-tag{
    color:var(--primary);
    font-weight:bold;
    letter-spacing:2px;
}
.joy-content h2{
    font-size:42px;
    margin:20px 0;
}
.joy-content p{
    line-height:1.9;
    color:var(--text);
}
.joy-highlights{
    display:flex;
    gap:50px;
    margin:40px 0;
}
.joy-highlights h3{
    font-size:42px;
    color:var(--primary);
}
.joy-buttons{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

/* =====================================================
  8. GALLERY 
===================================================== */
.gallery-section{
    padding:100px 8%;
    background:#fff;
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-top:50px;
}

.gallery-item{
    overflow:hidden;
    border-radius:12px;
    box-shadow:var(--shadow);
}

.gallery-item img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    transition:transform .5s ease;
}

.gallery-item:hover img{
    transform:scale(1.08);
}

.gallery-button{
    text-align:center;
    margin-top:45px;
}
   
/* =====================================================
    9. TESTIMONIALS 
===================================================== */
.testimonials{
    padding:100px 8%;
    background:var(--cream);
    text-align:center;

}
.testimonial-slider{
    max-width:850px;
    margin:60px auto 0;
}
.testimonial{
    background:#fff;
    padding:45px;
    border-radius:15px;
    box-shadow:var(--shadow);
}
.testimonial img{
    width:100px;
    height:100px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:25px;
}
.testimonial p{
    font-size:18px;
    line-height:1.8;
    color:#555;
    margin-bottom:25px;
}
.testimonial h3{
    margin-bottom:8px;
    color:var(--dark);
}
.testimonial span{
    color:var(--primary);
    font-weight:bold;
}

/* =====================================================
   10. NEWSLETTER 
===================================================== */

.newsletter{
    padding:100px 8%;
    background:linear-gradient(135deg,#0f5132,#1d8348);
    color:#fff;
}
.newsletter-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    align-items:center;
}

.newsletter-text h2{
    font-size:46px;
    margin:20px 0;
}
.newsletter-text p{
    line-height:1.9;
    margin-bottom:30px;
}
.newsletter-benefits{
    list-style:none;
    padding:0;
}
.newsletter-benefits li{
    margin-bottom:15px;
    font-size:17px;
}
.newsletter-form{
    background:#fff;
    padding:40px;
    border-radius:15px;
    box-shadow:var(--shadow);
}
.newsletter-form form{
    display:flex;
    flex-direction:column;
    gap:18px;

}
.newsletter-form input{
    padding:16px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:16px;
}
.newsletter-form button{
    padding:16px;
    background:var(--primary);
    color:#fff;
    border:none;
    border-radius:8px;
    font-size:17px;
    cursor:pointer;
    transition:.3s;
}
.newsletter-form button:hover{
    background:var(--primary-dark);
}

.newsletter-form small{
    display:block;
    margin-top:20px;
    color:#666;
    text-align:center;
}
.offer-tag{
    display:inline-block;
    background:#fff;
    color:var(--primary);
    padding:8px 18px;
    border-radius:30px;
    font-weight:bold;
}
.newsletter .section-title h2,
.newsletter h2{
    color:#fff;
}
.newsletter .section-title p,
.newsletter p{
    color:#f5f5f5;
}

/* =====================================================
 11. SMALL HELPERS 
===================================================== */

/* Decorative divider between sections */
.section-divider{
    text-align:center;
    padding:30px 0;
}

.section-divider span{
    font-size:28px;
    color:var(--primary);
}

/* Newsletter success message */

.success-message{
    display:none;
    margin-top:20px;
    padding:15px;
    border-radius:8px;
    background:#d4edda;
    color:#155724;
    text-align:center;
    font-weight:600;
}

/* Hide elements with JavaScript */

.hidden{
    display:none;
}
/* =====================================================
   HOME RESPONSIVE
===================================================== */

/* Tablets */

@media (max-width:992px){
.hero{
    height:80vh;
}
.hero-content h1{
    font-size:48px;
}
.hero-content p{
    font-size:20px;
}
.cards{
    grid-template-columns:repeat(2,1fr);
}
.gallery-grid{
    grid-template-columns:repeat(2,1fr);
}
.newsletter-container{
    grid-template-columns:1fr;
    text-align:center;
}
.meet-joy{
    grid-template-columns:1fr;
    text-align:center;
}
.meet-joy img{
    margin:auto;
}
}

/* Mobile */

@media (max-width:768px){
.hero{
    height:65vh;
}
.hero-content h1{
    font-size:38px;
}
.hero-content p{
    font-size:18px;
}
.cards{
    grid-template-columns:1fr;
}
.gallery-grid{
    grid-template-columns:1fr;
}
.newsletter-form{
    padding:30px;
}
.newsletter-text h2{
    font-size:34px;
}

}


/* Small Phones */

@media (max-width:576px){
.hero-content h1{
    font-size:30px;
}
.hero-content p{
    font-size:16px;
}
.gallery-item img{
    height:220px;
}
.newsletter-text h2{
    font-size:28px;
}

}
/* ==========================================
HOME GALLERY PREVIEW
========================================== */
.gallery-preview{
    padding:100px 8%;
    background:#f8f8f8;
}

.home-gallery-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-top:50px;
}

.home-gallery-card{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    box-shadow:var(--shadow);
}

.home-gallery-card img{
    width:100%;
    height:260px;
    object-fit:cover;
    transition:.6s;
}

.home-gallery-card:hover img{
    transform:scale(1.08);
}

.home-gallery-overlay{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    padding:25px;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.85),
        rgba(0,0,0,.25)
    );
    transition:.4s;
}
.home-gallery-overlay h3{
    color:#fff;
    margin-top:8px;
    font-size:22px;
}

.gallery-button{
    text-align:center;
    margin-top:50px;
}
.gallery-label{
    display:inline-block;
    padding:6px 16px;
    background:rgba(212,175,55,.95);
    color:#fff;
    border-radius:25px;
    font-size:12px;
    font-weight:bold;
    letter-spacing:1px;
    text-transform:uppercase;
    margin-bottom:12px;
}
/* ==========================================
WHY US
========================================== */
.why-us{
    padding:100px 8%;
    background:#ffffff;
}
.stats-grid{
     display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
    margin-top:70px;
}
.stat-box{
    text-align:center;
    padding:35px;
    background:#fff;
    border-radius:18px;
    box-shadow:var(--shadow);
    transition:.4s;
}
.stat-box:hover{
    transform:translateY(-10px);
}
.stat-box h2{
    font-size:48px;
    color:var(--primary);
}
.stat-box p{
    margin-top:15px;
    color:var(--text);
}
.why-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
}
.why-card{
   
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    text-align:center;
    padding:45px 35px;
    background:#fff;
    border-radius:20px;
    box-shadow:var(--shadow);
    transition:.4s;
    overflow:hidden;
}
.why-card:hover{
    transform:translateY(-10px);
}
    .why-icon{

    width:90px;
    height:90px;

    display:flex;
    justify-content:center;
    align-items:center;

    margin:0 auto 25px;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        var(--primary),
        #f4c542
    );

    color:#fff;

    font-size:36px;

    box-shadow:0 10px 30px rgba(212,175,55,.35);

}
.why-card h3{
   margin:15px 0;
}
.why-card p{
    color:var(--text);
    line-height:1.8;
    margin-top:15px;
}
.why-card:hover .why-icon{

    transform:rotate(8deg) scale(1.08);

}


