
:root {
    --primary: #4c2f91;
    --secondary: #f15922;
    --text: #333333;
    --background: #ffffff;
    --background-darker: #f5f5f5;
    --header-font: 'Nunito Sans', sans-serif;
    --body-font: 'Nunito Sans', sans-serif;
    --accent-font: 'Patrick Hand', cursive;
    --container-width: 90%;
    --border-radius: 32px;
    --transition: all 0.3s ease;
}


html{
    background-color: var(--primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1.1rem;
}

ul{
    margin-left: 1.5rem;
}


.column {
    flex-direction: column;
}

.center{
    width: 100%;
    height: 100%;
    justify-items: center;
    justify-content: center;
    align-items: center;
}

.row {
    flex-direction: row;
}

.space_evenly{
    justify-content: space-evenly;
    justify-items: space-evenly;
}

.central{
    justify-content: center;
    justify-items: center;    
}

.container {
    width: var(--container-width);
    margin: 0 auto;
    display: flex;
    padding: 2rem;
}

.central_text{
    text-align: center;
}

.darker{
    background-color: var(--background-darker);
}

img {
    border-radius: var(--border-radius);
}

/* Navigation */
nav {
    background-color: var(--primary);
    padding: 1rem 0;
}

#nav_links {
    width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

#nav_links a {
    color: var(--background);
    font-size: 1.2rem;
}

/* Header */
header {
    background-color: var(--background);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header img{
    border-radius: 0;
}

#header {
    width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

#logo {
    width: 250px;
}

#dropdown_button {
    display: none;
}

#header_links {
    display: flex;
    gap: 1rem;
}

#jump_links{
    gap: 1rem;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.jump_link {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    scroll-behavior: smooth;
}

.jump_link:hover {
    background-color: var(--secondary);
    color: var(--background);
}


.header_link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.header_link:hover {
    background-color: var(--secondary);
    color: var(--background);
}

/* Hero Section */
#hero,
#business_improvement,
#leadership_development,
#youth_development,
#team_coaching {
    padding: 4rem 0;
}

.image_text_container{
    padding: 4rem 0;
}

.split_container {
    width: var(--container-width);
    margin: 0 auto;
    display: flex;
    gap: 3rem;
}

.split_content {
    flex: 1;
}

#hero_images {
    position: relative;
}

.headerslide {
    width: 100%;
    display: none;
    border-radius: 1rem;
}

.headerslide.active {
    display: block;
}

.section_image{
    width: 100%;
    display: block;
    border-radius: 1rem;
}

#business_text,
#leadership_text,
#youth_text,
#team_text,
#hero_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

/* Values Section */
#values {
    background-color: var(--primary);
    padding: 4rem 0;
    color: var(--background);
}

.value_container {
    width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.value img {
    width: 80px;
    height: 80px;
}

.value_text {
    font-family: var(--header-font);
    font-weight: bold;
    font-size: 1.5rem;
}

/* About Section */
#about{
    padding: 4rem 0;
}

#about p{
    font-size: 1.1rem;
}

.-noflex{
    flex: none;
}

.split_content_60 {
    flex: 60%;
    padding-right: 1rem;
}

.split_content_40 {
    flex: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#headshot {
    width: 50%;
    border-radius: 50%;
}

#signature {
    width: 50%;
    border-radius: 0;
}

/* Testimonials */
#testimonials {
    background-color: #f5f5f5;
    padding: 4rem 0;
    text-align: center;
}

.testimonial {
    display: none;
    max-width: 800px;
    margin: 1.5rem auto;
    font-family: var(--accent-font);
    font-size: 2rem;
}

.testimonial.active {
    display: block;
}

/* CTA Section */
#cta {
    padding: 4rem 0;
    text-align: center;
}

.cta_container {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: left;
    align-items: center;
}

.cta_container a{
    text-align: center;
    justify-content: center;
}

.cta_container button{
    text-align: center;
}

.cta {
    display: flex;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--background);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    justify-content: center;
    align-items: center;
}


.cta:hover {
    background-color: var(--secondary);
    transform: scale(1.05);
}

#photo_strip{
    display: flex;
    flex-direction: row;
    width: 100%;
}

#photo_strip img{
    width: 34%;
    border-radius: 0;
}

#guides_and_toolkits,
#expert_articles,
#video_insights,
#reccomended_reads,
#interactive_tools {
    scroll-behavior: smooth;
}


/* Footer */
footer {
    background-color: var(--primary);
    color: var(--background);
    padding: 2rem 0;
    text-align: center;
}

footer .container{
    display: flex;
}

footer a {
    color: var(--background);
    text-decoration: none;
}

#downloads{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.downloads-header {
    display: flex;
    width: 85%;
    text-align: left;
    flex-direction: column;
}

.downloads-grid {
    display: grid;
    width: 80%;
    grid-template-columns: repeat(auto-fit, minmax(400px, max-content));
    gap: 1rem;
    padding: 1rem 0;
    justify-items: center; /* Centers the grid items without stretching */
}

.blog-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* Use 1fr to ensure responsive scaling */
    gap: 0.5rem;
    padding: 1rem 0;
    justify-items: center; /* Centers the grid items within their cells */

}

.blog-grid iframe{
    width: 500px;
    height: 650px;
}

.download-card {
    background: var(--background);
    max-width: 360px;
    min-width: 35%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.download-content {
    padding: 1.5rem;
    height: 40%;
}

.download-content h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.download-content p {
    margin-bottom: 1.5rem;
    color: var(--text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    max-height: 300px;
    max-width: 100%;;
}

.download-button {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 2rem;
    background-color: var(--primary);
    color: var(--background);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: var(--secondary);
}

/* Contact Form Styles */
#contact_form {
    padding: 2rem 0;
    max-width: 768px;
    margin: 0 auto;
}

#contactForm{
    display: flex;
    flex-direction: column;
}

#formSplitContainer{
    display: flex;
    flex-direction: row;
    gap: 3rem;
    justify-content: center;
}

.formSplit{
    display: flex;
    flex-direction: column;
    width: 50%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;

    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(76, 47, 145, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    display: inline-block;
    width: 100%;
    padding: 1rem 0rem;
    background-color: var(--primary);
    color: var(--background);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
}

.submit-button:hover {
    background-color: var(--secondary);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #contact_form {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .submit-button {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 1180px) {

    #dropdown_button {
        display: block;
        height: 50px;
        width: auto;
        aspect-ratio: 1;
    }

    #dropdown_button button {
        display: block;
        color: var(--primary);
        text-align: center;
        background: none;
        width: 100%;
        height: 100%;
        border: none;
    }

    #dropdown_button button i{
        font-size: 1.5rem;
    }
    

     #header_links {
        display: none;
        flex-direction: column;
        background: var(--background); 
        border-top: 1px solid var(--primary);
        position: absolute;
        top: 100%;                /* places it right under header */
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 10px;
  }

    /* Show when toggled */
    #header_links.show {
        display: flex;
    }

        
        #hero .split_container{
            flex-direction: column-reverse;
        }

        #hero_text{
            width: 100%;
            text-align: center;
        }

        #hero_text .cta_container{
            width: 100%;
            justify-content: center;
        }
        
        #header {
            flex-direction: row;
            gap: 0.7rem;
            flex: 2;

        }

        #logo {
            height: 80px;
        }

        #header_links {
            flex-wrap:wrap;
            flex-direction: row;
            font-size: 1rem;
            justify-content: center;
            gap: 0;
        }

    }
    /* Responsive Design */
    @media (max-width: 768px) {

        #header {
            flex-direction: row;
            gap: 0.5rem;
        }

        #logo {
            height: 80px;
        }

        #header_links {
            flex-wrap:wrap;
            flex-direction: column;
            font-size: 0.8rem;
            justify-content: center;
            text-align: center;
            gap: 0;
        }

        .row{
            flex-direction: column;
            gap: 2rem;
        }

            /* Header */
        header {
            background-color: var(--background);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            position: relative;
            top: 0;
            z-index: 100;
        }

        .value_container {
            width: var(--container-width);
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            align-items: center;
        }

        .value{
            margin: 1rem;
        }

        .split_container {
            flex-direction: column;
        }

        .split_content_60,
        .split_content_40 {
            flex: 100%;
            padding: 0;
        }

        .stat img {
            width: 60px;
            height: 60px;
        }

        .value_text {
            font-size: 1.2rem;
        }

        .downloads-grid {
            grid-template-columns: 1fr;
            padding: 1rem;
        }

        #formSplitContainer{
            display: flex;
            flex-direction: column;
            gap: 3rem;
            justify-content: center;
        }
        
        .formSplit{
            display: flex;
            flex-direction: column;
            width: 90%;
        }

        .blog-grid {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .blog-grid iframe{
            width: 90%;
            height: 500px;
            padding: 1rem 0;
        }


        footer{
            flex-direction: column;
        }
    
}
