@charset "UTF-8";
/* 
   ==========================================================================
   VIP THEME INDEX STYLES
   Homepage specific styling for Africa Independent Adventures
   ==========================================================================
*/

/* 
   Hero Section 
*/
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 16px;
    color: var(--theme-white);
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero-slider-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider-container .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateX(100%);
    animation: hero-slide-animation 60s infinite ease-in-out;
}

.hero-slider-container .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider-container .slide:nth-child(2) { animation-delay: -50s; }
.hero-slider-container .slide:nth-child(3) { animation-delay: -40s; }
.hero-slider-container .slide:nth-child(4) { animation-delay: -30s; }
.hero-slider-container .slide:nth-child(5) { animation-delay: -20s; }
.hero-slider-container .slide:nth-child(6) { animation-delay: -10s; }

@keyframes hero-slide-animation {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    14.166% {
        opacity: 1;
        transform: translateX(0);
    }
    16.666% {
        opacity: 1;
        transform: translateX(-100%);
    }
    16.667% {
        opacity: 0;
        transform: translateX(100%);
    }
    97.499% {
        opacity: 0;
        transform: translateX(100%);
    }
    97.500% {
        opacity: 1;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(32px, 8vw, 64px);
    margin: 0 0 32px 0;
    color: var(--theme-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hero-copy {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center !important; /* Override standard justification for hero */
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.hero-actions .primary-button {
    background-color: var(--theme-orange);
    color: var(--theme-black);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-ui);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--theme-orange);
}

.hero-actions .primary-button:hover {
    background-color: transparent;
    color: var(--theme-orange);
}

.hero-actions .green-cta {
    background-color: var(--theme-green);
    color: var(--theme-white);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-ui);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--theme-green);
}

.hero-actions .green-cta:hover {
    background-color: transparent;
    color: var(--theme-green);
}


/* 
   Feature Bands 
*/
.feature-band {
    padding: 24px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 64px;
}

.section-heading h2 {
    font-size: 45px;
    margin-bottom: 24px;
}

.section-heading p {
    font-size: 18px;
    color: #333;
    text-align: justify;
}

.section-link {
    display: table;
    margin: 48px 0 0 auto; /* aligns to the right */
    padding: 12px 30px;
    background-color: transparent;
    color: var(--theme-green);
    border: 2px solid var(--theme-green);
    border-radius: 30px;
    font-family: var(--font-ui);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.section-link:hover {
    background-color: var(--theme-green);
    color: var(--theme-white);
    text-decoration: none;
}



/* 
   Destination Grid 
*/
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.destination-grid a {
    text-decoration: none;
    display: block;
}

.destination-card {
    position: relative;
    height: 350px;
    border-radius: 4px;
    overflow: hidden;
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.destination-card:hover img {
    transform: scale(1.1);
}

.destination-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
}

.destination-card-content {
    position: absolute;
    bottom: 32px;
    left: 32px;
    right: 32px;
    z-index: 10;
    text-align: center;
}

.destination-card h3 {
    color: var(--theme-white);
    margin: 0;
    font-size: 29px;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
    transition: color var(--transition-speed) ease;
}

.destination-card:hover h3 {
    color: var(--theme-orange);
}

/* 
   Split Section (Story) 
*/
.split-section {
    display: flex;
    background-color: var(--theme-white);
    max-width: 1300px;
    margin: 0 auto;
    padding: 96px 5%;
    gap: 64px;
}

.story-image {
    flex: 1;
    min-height: 500px;
    background-image: url('/images/safari_landscape2.webp');
    background-size: cover;
    background-position: center;
    border-radius: var(--header-radius);
    box-shadow: var(--header-shadow);
}

.story-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-copy .eyebrow {
    color: var(--theme-orange);
    text-transform: uppercase;
    font-family: var(--font-ui);
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.story-copy h2 {
    font-size: 48px;
    margin: 0 0 32px;
}

.story-copy p {
    color: #333;
    margin-bottom: 48px;
}

.style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.style-grid span {
    font-family: var(--font-ui);
    font-size: 15px;
    color: var(--theme-black);
    display: flex;
    align-items: center;
}

.style-grid span::before {
    content: '✓';
    color: var(--theme-green);
    margin-right: 10px;
    font-weight: bold;
}

/* 
   Responsive Overrides 
*/
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .split-section {
        flex-direction: column;
        gap: 32px;
        padding: 64px 5%;
    }
    
    .story-image {
        min-height: 350px;
        width: 100%;
    }
}

@media (max-width: 768px) {

    
    .hero-copy {
        font-size: 18px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .section-heading h2 {
        font-size: 35px;
    }
    
    .style-grid {
        grid-template-columns: 1fr;
    }
}   