/* =========================================================
   AIC FESTIVAL 2027 — HOMEPAGE
   ========================================================= */

/* HERO */

.home-hero{
    position:relative;
    min-height:100svh;
    display:flex;
    align-items:center;
    overflow:hidden;
    background:#111;
    isolation:isolate;
}

.hero-video{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:-3;
}

.hero-video-overlay{
    position:absolute;
    inset:0;
    z-index:-2;
    background:
        linear-gradient(90deg,rgba(0,0,0,.82) 0%,rgba(0,0,0,.55) 48%,rgba(0,0,0,.25) 100%),
        linear-gradient(0deg,rgba(0,0,0,.38),transparent 45%);
}

.home-hero .container{
    position:relative;
    z-index:2;
}

.home-hero-content{
    max-width:850px;
    padding:150px 0 100px;
    color:var(--white);
}

.hero-eyebrow,
.section-kicker{
    display:inline-block;
    margin-bottom:18px;
    color:var(--accent);
    font-size:.82rem;
    font-weight:900;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.home-hero h1{
    margin-bottom:22px;
    color:var(--white);
    font-size:clamp(3rem,7vw,6.4rem);
    letter-spacing:-.045em;
}
.hero-origin{
    max-width:760px;
    margin:0 0 20px;
    color:rgba(255,255,255,.92);
    font-size:clamp(.92rem,1.55vw,1.08rem);
    line-height:1.65;
    font-weight:500;
}


.hero-theme{
    max-width:780px;
    margin-bottom:16px;
    color:#F6D98D;
    font-size:clamp(1.05rem,2vw,1.35rem);
    font-weight:700;
}

.hero-description{
    max-width:700px;
    color:rgba(255,255,255,.86);
    font-size:1.05rem;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:30px;
}

.hero-meta{
    display:flex;
    flex-wrap:wrap;
    gap:28px;
    margin-top:38px;
}

.hero-meta > div{
    display:flex;
    align-items:flex-start;
    gap:11px;
    min-width:230px;
}

.hero-meta i{
    margin-top:3px;
    color:var(--accent);
}

.hero-meta span{
    display:flex;
    flex-direction:column;
}

.hero-meta strong{
    color:var(--white);
    font-size:.92rem;
}

.hero-meta small{
    margin-top:3px;
    color:rgba(255,255,255,.65);
}

.hero-scroll{
    position:absolute;
    left:50%;
    bottom:24px;
    z-index:3;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
    color:rgba(255,255,255,.8);
    font-size:.7rem;
    letter-spacing:.12em;
    text-transform:uppercase;
    transform:translateX(-50%);
}

.hero-scroll i{
    color:var(--accent);
    animation:heroBounce 1.8s infinite;
}

@keyframes heroBounce{
    0%,100%{transform:translateY(0)}
    50%{transform:translateY(7px)}
}


/* INTRO */

.intro-section{
    padding:110px 0;
    background:var(--off-white);
}

.intro-grid{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    align-items:center;
    gap:70px;
}

.intro-content h2{
    max-width:720px;
    font-size:clamp(2.2rem,4.5vw,4rem);
}

.intro-content p{
    max-width:720px;
    color:var(--muted);
}

.text-link{
    display:inline-flex;
    align-items:center;
    gap:10px;
    color:var(--primary-dark);
    font-weight:900;
}

.text-link:hover{
    color:var(--black);
}

.intro-card{
    padding:40px;
    background:var(--black);
    color:var(--white);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-lg);
}

.intro-card-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:30px;
    color:var(--accent);
    font-size:.78rem;
    font-weight:900;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.intro-card h3{
    color:var(--white);
    font-size:clamp(1.65rem,3vw,2.4rem);
}

.intro-card p{
    color:#CFCFCF;
}

.intro-card-line{
    width:60px;
    height:3px;
    margin:28px 0;
    background:var(--primary);
}

.intro-location{
    display:flex;
    align-items:center;
    gap:10px;
    color:#DDD;
}


/* TARGETS */

.targets-section{
    padding:105px 0;
    background:var(--white);
}

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

.target-card{
    min-height:290px;
    padding:30px 25px;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    transition:transform var(--transition), box-shadow var(--transition);
}

.target-card:hover{
    transform:translateY(-7px);
    box-shadow:var(--shadow-lg);
}

.target-icon{
    width:52px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:22px;
    color:var(--black);
    background:rgba(201,151,43,.15);
    border-radius:14px;
}

.target-card > strong{
    display:block;
    margin-bottom:5px;
    color:var(--primary-dark);
    font-size:2.7rem;
    line-height:1;
}

.target-card h3{
    font-size:1.1rem;
}

.target-card p{
    margin:0;
    color:var(--muted);
    font-size:.92rem;
}


/* PILLARS */

.pillars-section{
    padding:110px 0;
    background:var(--sand);
}

.pillars-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:18px;
}

.pillar-card{
    position:relative;
    min-height:310px;
    padding:34px 25px;
    overflow:hidden;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius);
    transition:transform var(--transition), background var(--transition);
}

.pillar-card:hover{
    transform:translateY(-7px);
    background:var(--black);
}

.pillar-number{
    position:absolute;
    top:15px;
    right:20px;
    color:rgba(0,0,0,.08);
    font-size:3rem;
    font-weight:900;
}

.pillar-card > i{
    display:block;
    margin:35px 0 22px;
    color:var(--primary);
    font-size:2rem;
}

.pillar-card h3{
    font-size:1.15rem;
}

.pillar-card p{
    color:var(--muted);
    font-size:.9rem;
}

.pillar-card:hover h3{
    color:var(--white);
}

.pillar-card:hover p{
    color:#CFCFCF;
}

.pillar-card:hover .pillar-number{
    color:rgba(255,255,255,.08);
}

.section-action{
    display:flex;
    justify-content:center;
    margin-top:45px;
}


/* ECOSYSTEM */

.ecosystem-section{
    padding:110px 0;
    background:var(--white);
}

.ecosystem-grid{
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:70px;
    align-items:center;
}

.ecosystem-image{
    min-height:580px;
    overflow:hidden;
    border-radius:var(--radius-lg);
}

.ecosystem-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ecosystem-content h2{
    font-size:clamp(2.2rem,4.2vw,3.7rem);
}

.ecosystem-content > p{
    color:var(--muted);
}

.ecosystem-list{
    display:grid;
    gap:18px;
    margin:30px 0;
}

.ecosystem-list > div{
    display:flex;
    align-items:flex-start;
    gap:15px;
}

.ecosystem-list i{
    flex:0 0 42px;
    width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--black);
    background:rgba(201,151,43,.16);
    border-radius:50%;
}

.ecosystem-list span{
    color:var(--muted);
    font-size:.94rem;
}

.ecosystem-list strong{
    display:block;
    margin-bottom:2px;
    color:var(--black);
}


/* DESTINATION */

.destination-section{
    position:relative;
    min-height:560px;
    display:flex;
    align-items:center;
    overflow:hidden;
    background:
        url("../images/tourism/arusha-city.jpg")
        center/cover no-repeat;
}

.destination-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,rgba(0,0,0,.84),rgba(0,0,0,.42));
}

.destination-section .container{
    position:relative;
    z-index:2;
}

.destination-content{
    max-width:760px;
    padding:90px 0;
    color:var(--white);
}

.destination-content h2{
    color:var(--white);
    font-size:clamp(2.4rem,5vw,4.5rem);
}

.destination-content p{
    max-width:700px;
    color:rgba(255,255,255,.84);
    font-size:1.05rem;
}

.destination-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:28px;
}


/* GALLERY */

.gallery-preview{
    padding:110px 0;
    background:var(--off-white);
}

.gallery-preview-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    grid-auto-rows:230px;
    gap:14px;
}

.gallery-preview-item{
    position:relative;
    overflow:hidden;
    border-radius:14px;
    background:#ddd;
}

.gallery-preview-item.large{
    grid-row:span 2;
}

.gallery-preview-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .6s ease;
}

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

.gallery-preview-item::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(transparent 55%,rgba(0,0,0,.35));
    pointer-events:none;
}


/* PARTNERS */

.partners-preview{
    padding:110px 0;
    background:var(--white);
}

.organizer-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
    max-width:900px;
    margin:0 auto;
}

.organizer-card{
    display:flex;
    align-items:center;
    gap:25px;
    padding:30px;
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.organizer-card img{
    width:105px;
    height:90px;
    object-fit:contain;
}

.organizer-card span{
    color:var(--primary-dark);
    font-size:.75rem;
    font-weight:900;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.organizer-card h3{
    margin-top:5px;
    font-size:1.1rem;
}


/* CTA */

.home-cta{
    position:relative;
    overflow:hidden;
    padding:110px 0;
    background:
        radial-gradient(circle at 85% 20%,rgba(201,151,43,.3),transparent 35%),
        var(--black);
}

.home-cta-content{
    max-width:850px;
    margin:auto;
    text-align:center;
}

.home-cta-content > span{
    display:inline-block;
    margin-bottom:15px;
    color:var(--accent);
    font-size:.8rem;
    font-weight:900;
    letter-spacing:.13em;
    text-transform:uppercase;
}

.home-cta h2{
    color:var(--white);
    font-size:clamp(2.3rem,5vw,4.2rem);
}

.home-cta p{
    max-width:720px;
    margin:0 auto;
    color:#CFCFCF;
}


/* =========================================================
   RESPONSIVE HOMEPAGE
   ========================================================= */

@media (max-width:1100px){

    .targets-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .pillars-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .intro-grid,
    .ecosystem-grid{
        gap:45px;
    }
}

@media (max-width:900px){

    .home-hero-content{
        padding:140px 0 90px;
    }

    .intro-grid,
    .ecosystem-grid{
        grid-template-columns:1fr;
    }

   .intro-card{
    display:none;
}

  .ecosystem-image{
    display:none;
}

    .pillars-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .organizer-grid{
        grid-template-columns:1fr;
        max-width:700px;
    }

}

@media (max-width:768px){

    .home-hero{
        min-height:100svh;
    }

    .hero-video{
        object-position:60% center;
    }

    .home-hero-content{
        padding:125px 0 80px;
    }

    .home-hero h1{
        font-size:clamp(2.55rem,12vw,4.2rem);
    }

    .hero-description{
        font-size:.96rem;
    }

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

    .intro-section,
    .targets-section,
    .pillars-section,
    .ecosystem-section,
    .gallery-preview,
    .partners-preview{
        padding:80px 0;
    }

    .targets-grid{
        grid-template-columns:1fr;
    }

    .target-card{
        min-height:auto;
    }

    .pillars-grid{
        grid-template-columns:1fr;
    }

    .pillar-card{
        min-height:auto;
    }

    .gallery-preview-grid{
        grid-template-columns:1fr 1fr;
        grid-auto-rows:180px;
    }

    .gallery-preview-item.large{
        grid-column:span 2;
        grid-row:span 1;
    }

    .destination-section{
        min-height:500px;
    }

    .destination-content{
        padding:75px 0;
    }

}

@media (max-width:480px){

    .home-hero-content{
        padding:115px 0 75px;
    }

    .hero-eyebrow{
        font-size:.7rem;
        letter-spacing:.1em;
    }

    .home-hero h1{
        font-size:clamp(2.35rem,12vw,3.4rem);
    }

    .hero-theme{
        font-size:1rem;
    }

    .hero-meta > div{
        min-width:0;
    }

    .intro-card{
        padding:28px 24px;
    }

    .ecosystem-image{
        min-height:300px;
    }

    .gallery-preview-grid{
        grid-template-columns:1fr;
        grid-auto-rows:210px;
    }

    .gallery-preview-item.large{
        grid-column:auto;
    }

    .organizer-card{
        align-items:flex-start;
        flex-direction:column;
        padding:25px;
    }

    .destination-actions{
        flex-direction:column;
    }

    .destination-actions a{
        width:100%;
    }

    .home-cta{
        padding:80px 0;
    }

}


/* =========================================================
   AIC BRAND HEADER
   ========================================================= */

.brand{
    display:flex;
    align-items:center;
    gap:13px;
    min-width:0;
    color:var(--white);
}

.brand img{
    width:auto;
    height:66px;
    max-width:92px;
    object-fit:contain;
    flex:0 0 auto;
}

.brand-name{
    display:flex;
    flex-direction:column;
    line-height:1.05;
    min-width:0;
}

.brand-name strong{
    color:var(--white);
    font-size:.76rem;
    letter-spacing:.075em;
    white-space:nowrap;
}

.brand-name small{
    margin-top:5px;
    color:var(--accent);
    font-size:.68rem;
    font-weight:900;
    letter-spacing:.12em;
    white-space:nowrap;
}

.header.scrolled .brand img{
    height:56px;
}

@media (max-width:900px){
    .brand img{
        height:56px;
        max-width:78px;
    }

    .brand-name strong{
        font-size:.68rem;
    }

    .brand-name small{
        font-size:.59rem;
    }
}

@media (max-width:480px){
    .brand{
        gap:9px;
    }

    .brand img{
        height:48px;
        max-width:67px;
    }

    .brand-name strong{
        font-size:.58rem;
        letter-spacing:.045em;
    }

    .brand-name small{
        margin-top:3px;
        font-size:.51rem;
        letter-spacing:.08em;
    }
}


/* =========================================================
   FESTIVAL COUNTDOWN — SEPARATE FROM HERO
========================================================= */

.festival-countdown{
    padding:24px 0;
    background:#111;
    border-top:1px solid rgba(244,163,0,.35);
    border-bottom:1px solid rgba(255,255,255,.08);
}

.festival-countdown-inner{
    width:min(100%,760px);
    margin:0 auto;
    padding:16px 18px 18px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:14px;
    background:rgba(255,255,255,.035);
}

.countdown-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    margin-bottom:12px;
    color:var(--accent);
    font-size:.72rem;
    font-weight:900;
    letter-spacing:.11em;
    text-transform:uppercase;
}

.countdown-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:9px;
}

.countdown-unit{
    padding:9px 8px;
    text-align:center;
    border:1px solid rgba(255,255,255,.11);
    border-radius:9px;
    background:rgba(255,255,255,.055);
}

.countdown-unit strong{
    display:block;
    color:var(--white);
    font-size:clamp(1.5rem,2.6vw,2rem);
    line-height:1;
}

.countdown-unit span{
    display:block;
    margin-top:6px;
    color:rgba(255,255,255,.62);
    font-size:.62rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
}

@media (max-width:480px){
    .festival-countdown{
        padding:18px 0;
    }

    .festival-countdown-inner{
        padding:12px 10px 13px;
        border-radius:11px;
    }

    .countdown-title{
        margin-bottom:9px;
        font-size:.58rem;
        letter-spacing:.07em;
    }

    .countdown-grid{
        gap:5px;
    }

    .countdown-unit{
        padding:8px 3px;
        border-radius:7px;
    }

    .countdown-unit strong{
        font-size:1.12rem;
    }

    .countdown-unit span{
        margin-top:3px;
        font-size:.46rem;
        letter-spacing:.03em;
    }
}


/* =========================================================
   FOOTER BRAND
   ========================================================= */

.footer-brand img{
    width:auto;
    height:86px;
    max-width:125px;
    object-fit:contain;
    margin-bottom:18px;
}

.footer-brand h3{
    margin-bottom:12px;
}

@media (max-width:768px){
    .footer-brand img{
        height:72px;
    }
}


/* =========================================================
   FINAL CTA → FOOTER TREATMENT
   CTA is intentionally light; footer remains black.
   ========================================================= */

.home-cta{
    position:relative;
    padding:105px 0;
    background:#FFF8EE;
    color:#333;
    border-top:1px solid #F0E2C8;
    border-bottom:1px solid #E7D3AD;
}

.home-cta::before{
    content:"";
    position:absolute;
    top:0;
    left:50%;
    width:80px;
    height:4px;
    background:#F4A300;
    transform:translateX(-50%);
}

.home-cta-content > span{
    color:#F4A300;
}

.home-cta h2{
    color:#111;
}

.home-cta p{
    color:#666;
}

.home-cta .btn-outline-light{
    border-color:#111;
    color:#111;
}

.home-cta .btn-outline-light:hover{
    background:#111;
    border-color:#111;
    color:#fff;
}

.footer{
    position:relative;
    background:#111;
    padding-top:76px;
}

.footer-brand{
    position:relative;
}

.footer-brand::before{
    content:"";
    display:block;
    width:52px;
    height:3px;
    margin-bottom:20px;
    background:#F4A300;
}

.footer-bottom{
    border-top-color:#333;
}

@media (max-width:600px){
    .home-cta{
        padding:80px 0;
    }

    .footer{
        padding-top:62px;
    }
}

/* =========================================================
   HERO — DESKTOP REFINEMENT V2
   Preserves all hero content while keeping the composition open.
========================================================= */

@media (min-width:901px){

    .home-hero-content{
        max-width:790px;
        padding-top:clamp(92px,11vh,126px);
        padding-bottom:clamp(34px,5vh,62px);
    }

    .hero-eyebrow{
        margin-bottom:clamp(9px,1.4vh,14px);
        font-size:.76rem;
        letter-spacing:.13em;
    }

    .hero-origin{
        max-width:720px;
        margin-bottom:clamp(14px,1.8vh,18px);
        font-size:clamp(.94rem,1.45vh,1.03rem);
        line-height:1.52;
    }

    .home-hero h1{
        margin-bottom:clamp(12px,1.8vh,18px);
        font-size:clamp(3.35rem,6.4vh,5.55rem);
        line-height:1.02;
        letter-spacing:-.045em;
    }

    .hero-theme{
        max-width:730px;
        margin-bottom:clamp(9px,1.4vh,13px);
        font-size:clamp(1rem,1.75vh,1.22rem);
        line-height:1.42;
    }

    .hero-description{
        max-width:660px;
        font-size:clamp(.94rem,1.45vh,1rem);
        line-height:1.5;
    }

    .hero-actions{
        margin-top:clamp(19px,2.5vh,25px);
        gap:12px;
    }

    .hero-actions .btn{
        padding:13px 30px;
    }

    .hero-meta{
        gap:24px;
        margin-top:clamp(22px,2.8vh,28px);
    }

    .hero-meta > div{
        min-width:210px;
    }

    .hero-video-overlay{
        background:
            linear-gradient(90deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.68) 42%,rgba(0,0,0,.36) 72%,rgba(0,0,0,.22) 100%),
            linear-gradient(0deg,rgba(0,0,0,.42),transparent 48%);
    }
}



/* =========================================================
   HERO PROJECT PARTNERS
   Visible on first screen without competing with the hero copy.
========================================================= */

.hero-partners{
    position:absolute;
    right:clamp(22px,4vw,64px);
    bottom:38px;
    z-index:4;
    width:min(335px,28vw);
    padding:13px 14px 11px;
    border:1px solid rgba(255,255,255,.24);
    border-radius:16px;
    background:rgba(255,255,255,.92);
    box-shadow:0 18px 45px rgba(0,0,0,.25);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}

.hero-partners-label{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
    color:#333;
    font-size:.64rem;
    font-weight:900;
    letter-spacing:.13em;
    text-transform:uppercase;
}

.hero-partners-label i{
    color:#C9972B;
    font-size:.8rem;
}

.hero-partners-logos{
    display:grid;
    grid-template-columns:1fr 22px 1fr;
    gap:8px;
    align-items:center;
}

.hero-partner-logo{
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:7px 10px;
    overflow:hidden;
    background:#fff;
    border:1px solid #E8E8E8;
    border-radius:10px;
}


.hero-partner-divider{
    display:flex;
    align-items:center;
    justify-content:center;
    width:22px;
    height:22px;
    color:#C9972B;
    font-size:1.05rem;
    font-weight:700;
    line-height:1;
}

.hero-partner-logo img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.hero-partner-alwaleed img{
    transform:scale(1.02);
}

.hero-partner-unesco img{
    transform:scale(1.04);
}

.hero-partners-caption{
    margin:9px 2px 0;
    color:#666;
    font-size:.58rem;
    line-height:1.35;
    text-align:center;
}


/* Keep the partner panel visible but avoid collision with the main copy
   on medium desktop screens. */
@media (max-width:1200px) and (min-width:901px){

    .hero-partners{
        position:relative;
        right:auto;
        bottom:auto;
        width:min(365px,100%);
        margin:-6px 0 30px auto;
    }

    .home-hero-content{
        padding-bottom:24px;
    }
}


/* Mobile: make the partners part of the natural hero flow so both
   logos remain visible on first load without covering the content. */
@media (max-width:768px){

    .hero-partners{
        position:relative;
        right:auto;
        bottom:auto;
        width:100%;
        margin:18px 0 4px;
        padding:11px 11px 10px;
        border-radius:12px;
        background:rgba(255,255,255,.95);
        box-shadow:0 12px 30px rgba(0,0,0,.22);
        box-sizing:border-box;
    }

    .hero-partners-label{
        margin-bottom:8px;
        font-size:.57rem;
        letter-spacing:.1em;
    }

    .hero-partners-logos{
        grid-template-columns:1fr 18px 1fr;
        gap:6px;
    }

    .hero-partner-divider{
        width:18px;
        height:18px;
        font-size:.9rem;
    }

    .hero-partner-logo{
        height:58px;
        padding:5px 7px;
        border-radius:8px;
    }

    .hero-partners-caption{
        margin-top:7px;
        font-size:.5rem;
    }
}

@media (max-width:480px){

    .hero-partners{
        margin-top:15px;
        padding:9px 9px 8px;
    }

    .hero-partners-label{
        margin-bottom:7px;
        font-size:.52rem;
    }

    .hero-partner-logo{
        height:51px;
        padding:4px 5px;
    }

    .hero-partners-caption{
        margin-top:6px;
        font-size:.46rem;
    }
}

@media (max-width:360px){

    .hero-partners{
        margin-top:13px;
    }

    .hero-partner-logo{
        height:46px;
    }
}
