/* Core Stuff */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    font-size: 1rem;
    line-height: 1.7;
    color: #606d6e;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #454B4D;
}

a {
    color: #1F8CD6;
    text-decoration: none;
}

a:hover {
    color: #175E91;
}

pre {
    background: #F0F0F0;
    margin: 1rem 0;
    border-radius: 2px;
}

blockquote {
    border-left: 10px solid #eee;
    margin: 0;
    padding: 0 2rem;
}

/* Utility Classes */
.wrapper {
    margin: 0 3rem;
}

.padding {
    padding: 3rem 1rem;
}

.footer {
    background-color: #eee;
    text-align: center;
}

/* Main navigation container - using Flexbox for alignment */
.custom-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem; /* Adjust padding as needed */
    width: 80%;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

/* Styling for the link containers */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px; /* Space between links */
}

/* Ensure both link containers take up equal space */
.nav-left, .nav-right {
    flex: 1;
}

.nav-right {
    justify-content: flex-end; /* Aligns right-side links to the right */
}

/* Individual navigation links */
.nav-links a {
    text-decoration: none;
    color: #333; /* Change link color */
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #b37400; /* Change link hover color */
}

.nav-links li.active a {
    font-weight: 700;
    color: #b37400; /* Change active link color */
    border-bottom: 2px solid #b37400;
}

.nav-logo img {
    width: 200px;  
    display: block;   /* Removes extra space below the image */
}

/* General container for centering content */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --------------------------------------------------------------------------
------------------------ Hero Module Styling -------------------------------- */
.modular-hero {
    color: #fff;
    background-size: cover;
    background-position: center center;
    padding: 10px 120px 40px 120px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background-color: #0f0f0f; /* Fallback color */
    border-radius: 7px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    width: 100%;
}
.hero-content h1 { 
    font-size: 3.5rem; 
    color: white; 
    display: inherit;
}
.hero-content p { 
    font-size: 1.5rem; 
    display: inherit;
}
.hero-content .button { 
    background-color: #fff; 
    color: #333; 
    padding: 15px 30px; 
    text-decoration: none; border-radius: 3px; font-weight: bold; display: inherit; width: 160px; margin-left: auto; margin-right: auto;
}

/* --------------------------------------------------------------------------
------------------------ Callout Module Styling ---------------------------- */
.modular-callout {
    color: #fff;
    background-size: cover;
    background-position: center center;
    margin-top: 100px;
    padding: 10px 80px 40px 80px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}
.callout-content h1 { 
    font-size: 2rem; 
    color: #0f0f0f;
    display: inherit;
}
.callout-content p { 
    font-size: 1.5rem; 
    color:#454B4D;
    display: inherit;
}

/* --------------------------------------------------------------------------
------------------------ Features Module Styling ---------------------------- */
.modular-features {
    padding: 20px 80px 30px 80px;
    text-align: center;
}
.modular-features h2 { 
    color: #0f0f0f;
    font-size: 2.5rem;
    margin-bottom: 0;
}
.features-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem; 
}
.feature-item {
    background-color: #f7f6f6;
    border-radius: 7px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
    padding: 0px 30px 20px 30px;
}
.feature-item h3 { 
    font-size: 1rem; 
}

/* Contact Page Styling */
.modular-contact {
    padding: 20px 80px 30px 80px;
    text-align: center;
}
.modular-contact h2 { 
    color: #0f0f0f;
    font-size: 2.5rem;
    margin-bottom: 0;
}
.addresses-grid { 
    display: grid; 
    grid-template-columns: repeat(1, 1fr); 
    gap: 2rem;
    width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
}
.address-item {
    background-color: #f7f6f6;
    border-radius: 7px;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.1), 0 6px 20px 0 rgba(0, 0, 0, 0.1);
}
.address-item h3 { 
    font-size: 1.5rem; 
    margin-top: 10px;
}

.address-item p {
    margin-top: -20px;
}

/* --- Responsive styles for mobile --- */
@media (max-width: 800px) {

    /* Navbar */
    .custom-navigation {
        flex-direction: row; /* This is the default, but we state it for clarity */
        align-items: center; /* Vertically center the link columns with the logo */
        padding: 1rem;       /* Reduce padding for smaller screens */
        gap: 15px;           /* Reduce the gap between columns */
        width: 100%;
        margin-top: 20px;
    }
    .nav-links {
        flex-direction: column; /* Stack the li elements */
        gap: 10px;              /* Adjust vertical spacing between stacked links */
    }
    .nav-left {
        align-items: flex-start; /* Aligns text to the left in the first column */
    }
    .nav-right {
        align-items: flex-end;   /* Aligns text to the right in the third column */
    }
    .nav-logo img {
        max-height: 80px;
        width: auto;
    }
    .nav-links a {
        font-size: 0.9rem;
    }

    .wrapper {
        margin: 0 0.1rem;
    }
    /* Hero Module */
    .modular-hero {
        padding: 5px 10px 5px 10px;
    }
    .hero-content h1 { 
        font-size: 2rem;
    }
    .hero-content p { 
        font-size: 1.3rem;
    }
    .hero-content .button {
        width: 160px;
        margin-bottom: 20px;
    }

    /* Callout Module */
    .modular-callout {
        margin-top: 50px;
        padding: 5px 10px 5px 10px;
    }
    .callout-content h1 { 
        font-size: 1.5rem;
    }
    .callout-content p { 
        font-size: 1rem;
    }

    /* Features Module */
    .modular-features {
        padding: 5px 10px 5px 10px;
        margin-top: 10px;
    }
    .modular-features h2 { 
        font-size: 1.5rem;
    }
    .features-grid {
        grid-template-columns: repeat(1, 1fr); 
    }
    .feature-item {
        padding: 0px 30px 20px 30px;
    }
    .feature-item h3 { 
        font-size: 1.2rem; 
        margin-bottom: 0.5rem; 
    }
}