/*
|--------------------------------------------------------------------------
| GLOBAL STYLES (BASE.CSS CONTENT)
|--------------------------------------------------------------------------
*/

/* 1. Root Variables */
:root {
    --nav: #16320D;
    --header: #191f23;
    --secondary: #E0DED1;
    --accent:#A68D4A;
    --ink: #ffffff;
    --ink2: black;
    --muted: wheat;
    --border: #E1E7EF;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .06);
    --maxw: 1200px;
    --link: wheat;
    --link-hover: #FFB020;
    --font-heading: 'inter', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'manrope', Tahoma, Geneva, Verdana, sans-serif;
    --focus: #FFB020;
}

/* 2. Base & Typography */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    margin: 0; 
    padding: 0;
    color: var(--ink2); 
    line-height: 1.6;
}

h1 {
    font-family: var(--font-heading);
}     

h1, h2, h3 {
    margin-top: 0;
    font-weight: 900;
    color: var(--ink2);
    padding-left: 2rem;
    padding-right: 2rem;
}

p {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    padding-left: 2rem;
    padding-right: 2rem;
}


/* 3. HEADER & NAVIGATION (GLOBAL MOBILE STYLES) */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.header-bar {
    background: rgba(22, 50, 13, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 0;
    left: 0;
    height: 60px;
    width: 100%;
    z-index: 20;
}

.header-flex {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: var(--secondary);
    font-size: 1.1rem;
    padding: 0 1rem;
    gap: 0.5rem;
}

#menu {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.29rem 0rem;
    color: white;
    margin-left: auto;
}

#menu::before {
    content: "≡";
    font-weight: lighter;
}

#menu.show::before {
    content: "X";
}

.navigation {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 19;
    background-color: rgba(22, 50, 13, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    margin: 0;
    max-width: none; 
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: max-height 0.6s ease, opacity 0.4s ease, transform 0.4s ease;
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center; 
    width: 100%; 
}

.navigation li {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s forwards;
}

.navigation.show {
    max-height: none; 
    opacity: 1;
    transform: translateY(0);
}

.show li {
    display: block;
}

.navigation a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1.6rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 900;
    transition: 0.5s;
    font-size: clamp(1.2rem, 5vmin, 2rem);
}

.navigation a:hover,
.navigation a:focus {
    color: var(--link-hover);
    outline: none;
    text-decoration: underline;
}

.navigation.show li:nth-child(1) { animation-delay: 0.1s; }
.navigation.show li:nth-child(2) { animation-delay: 0.2s; }
.navigation.show li:nth-child(3) { animation-delay: 0.3s; }
.navigation.show li:nth-child(4) { animation-delay: 0.4s; }
.navigation.show li:nth-child(5) { animation-delay: 0.5s; }


/* 4. FOOTER (GLOBAL MOBILE STYLES) */

footer {
    background: var(--nav);
    backdrop-filter: blur(6px);
    color: white;
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    margin-top: 4rem;
}

.newsletter-section {
    padding-bottom: 2rem;
    color: white;
}
.newsletter-section h2 { 
    color: var(--link); 
    padding: 0; 
}
.newsletter-section p { 
    padding: 0; 
}
.newsletter-form { 
    margin-top: 1rem; 
}
.newsletter-input-group { 
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

footer nav {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

footer nav .logo-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary);
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

footer nav ul li a {
    color: #e6e6e6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

footer nav ul li a:hover {
    color: var(--secondary);
}

footer nav .social-icons {
    display: flex;
    gap: 1rem;
}

footer p:last-child {
    padding-top: 1rem;
    padding-left: 0;
    padding-right: 0;
    color: var(--secondary);
    font-size: 0.9rem;
}

footer h3 {
    color: #e6e6e6;
}


/*
|--------------------------------------------------------------------------
| PAGE-SPECIFIC STYLES (HOME.CSS CONTENT)
|--------------------------------------------------------------------------
*/

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url("../../images/img/hero1.webp") no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 20%,
        rgba(0, 0, 0, 0.3) 60%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero-text, .social-icons {
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: center;
    max-width: 500px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.hero-text h1 {
    margin: 0;
    line-height: 0.9;
}

.dream {
    font-size: 3rem;
    font-weight: lighter;
    line-height: 0.5;
}

.nigeria {
    font-size: 4rem;
    color: var(--accent);
}

.info {
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 480px;
    color: #f0f0f0;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icons a {
    border: 1px solid #ccc;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--link-hover);
    color: var(--ink2);
    transform: translateY(-3px);
    border: none;
}


/* Main Content Components (Cards & Festivals) */
.card img {
    width: auto;
    height: 200px;
}

.card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.card-content img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.festivals {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.festivals h2 {
    padding-top: 2rem;
}

.festival-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    padding-left: 4rem;
    padding-right: 4rem;
}

.festival-card {
    background: transparent;
    border: 1px solid #5d646b;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    height: 350px;
}

.festival-card p{
    font-size: 1rem;
    padding-left: 0;
    padding-right: 0;
}

.festival-card h3 {
    font-size: 1.1rem;
    color: var(--nav);
    padding-left: 0;
    padding-right: 0;
}

.festival-card .description {
    flex-grow: 1;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.festival-card .details {
    font-size: 0.85rem;
    color: #555;
}

.festival-card .learn-more {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.festival-card .learn-more:hover {
    background-color: var(--link-hover);
    transform: translateY(-2px);
    color: black;
}

/* HOME PAGE - FORM STYLES */
.form-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: var(--secondary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-section h2, .form-section p {
    text-align: center;
    padding: 0;
}

.form-section h2 {
    color: var(--nav);
    margin-bottom: 0.5rem;
}

.form-section p {
    margin-bottom: 2rem;
}

.trip-inquiry-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.trip-inquiry-form button[type="submit"] {
    margin-top: 1rem;
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| GLOBAL & HOME PAGE LARGE DISPLAY OVERRIDES (@media 1200px)
|--------------------------------------------------------------------------
*/

@media (min-width: 1200px) {

    /* --- GLOBAL HEADER OVERRIDES --- */
    #menu { display: none; }
    .header-flex { background-color: transparent; gap: 1rem; }
    .header-bar {
        position: absolute; top: 0; left: 0; width: 100%;
        padding: 1rem 3rem; display: flex; align-items: center;
        justify-content: space-between;
        background-color: rgba(22, 50, 13, 0.7); 
        background-color: color-mix(in srgb, var(--nav) 70%, transparent); 
        z-index: 10; height: auto;
    }
    
    .navigation {
        position: static; 
        height: auto; 
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;        
        display: flex; flex-direction: row; 
        max-height: none; opacity: 1; transform: none; gap: 2rem;
    }
    .navigation li { display: inline-block !important; width: auto; opacity: 1; transform: none; animation: none; }
    .navigation ul {
        display: flex; justify-content: center; align-items: center;
        gap: 3rem; list-style: none; margin: 0 auto; padding: 0;
    }

    .navigation a {
        color: #E6EEF7; text-decoration: none; font-weight: 500;
        line-height: 1; padding: .25rem .25rem; border-bottom: 2px solid transparent;
        transition: border-color .15s ease, color .15s ease, transform .15s ease;
        font-size: clamp(1rem, 3vmin, 2rem);
    }
    .navigation a:hover { color: var(--accent); outline: none; }

    /* --- GLOBAL FOOTER OVERRIDES (FIXED ALIGNMENT) --- */
    .newsletter-section { margin: 2rem auto 4rem; }
    
    footer nav {
        display: flex; justify-content: space-between; 
        flex-direction: row; align-items: center;
        padding: 1.5rem 3rem; gap: 2rem; max-width: 1400px;
        margin-left: auto; margin-right: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.4);
    }
    
    footer nav .logo-group { flex-shrink: 0; }

    footer nav ul {
        display: flex; flex-direction: row; gap: 2.5rem; 
        flex-grow: 1; justify-content: center; margin: 0;
    }
    
    footer nav .social-icons { flex-shrink: 0; }

    footer p:last-child { text-align: center; padding-bottom: 1rem; }

    /* --- HOME PAGE CONTENT OVERRIDES --- */
    
    /* Hero */
    .hero {
    justify-content: flex-end; align-items: flex-start;
    padding: 4rem 4rem; padding-top: 4rem; text-align: left;
    }

    .hero-actions { flex-direction: row; align-items: center; gap: 2rem; }

    .hero-text {
        margin-bottom: 1rem; display: flex; flex-direction: column;
        align-items: flex-start; text-align: left;
    }

    .social-icons {
        justify-content: flex-start; margin-top: 1rem; margin: 20px 0;
    }

    .social-icons a{
        border: 1px solid #ccc; border-radius: 20%; display: inline-flex;
        justify-content: center; align-items: center; margin: 0 3px;
        width: 40px; height: 40px;
    }

    /* Main Content */
    p { padding-left: 0; padding-right: 0; }
    h1, h2, h3 { padding-left: 0; padding-right: 0; }
    
    .card-content img { border-radius: 0; }
    
    .card-content {
        display: grid; grid-template-columns: 2fr 2fr;
        justify-content: space-around; justify-items: center;
        padding: 4rem; text-align: left; border-radius: 1px;
    }

    .subheading {
        margin: 1rem 0 .5rem; font-size: 1.05rem; font-weight: 900;
        color: wheat; position: relative;
    }

    .subheading::after {
        content: ""; display: block; height: 2px;
        background: var(--border); margin-top: .5rem;
    }

    .about-text>p, .place p {
        text-align: justify; text-align-last: left;
        hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto;
    }

    .about-photo img {
        width: 100%; max-width: 200px; height: auto;
        border-radius: 8px; display: block;
    }

    .links {
        display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: .75rem 1.25rem; list-style: none;
        padding: 1rem 1.25rem 1.25rem; margin: 0;
    }

    .links li { margin: .6rem 0; list-style-type: disc; }

    .links a { color: var(--link); text-decoration: underline; font-weight: 700; }
    .links a:hover, .links a:focus { color: var(--link-hover); outline: none; }

    .place .nigeria {
        float: left; width: min(280px, 45%);
        margin: 0 1rem .5rem 0; text-align: left;
    }

    .place::after { content: ""; display: block; clear: both; }

    .place p { max-width: 70ch; margin: 1rem 0 0; }

    .nigeria img { display: block; width: 100%; height: auto; border-radius: 6px; }

    .nigeria figcaption {
        margin-top: .4rem; font-size: .9rem;
        color: var(--muted); margin-top: .5rem;
    }

    .festival-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; }
}

.lastmod {
    color: var(--accent);
    font-weight: 300;
    letter-spacing: .2px;
}