/* Global Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f9f9f9;
}
h1, h2, h3 {
    color: #1a252f; /* Deep Slate Blue */
    font-weight: 700;
}

/* Color Palette Variables */
:root {
    --primary: #1a252f;
    --accent: #f39c12; /* Construction/Engineering Amber Gold */
    --light-bg: #f4f6f7;
    --text-dark: #2c3e50;
}

/* Common Layout Components */
.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}
.btn-primary {
    background-color: var(--accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s ease;
}
.btn-primary:hover {
    background-color: #e67e22;
}

/* Header & Navigation */
/* Update the main header layout container */
/* Update the main header layout container to use even spacing */
header, .nav-container {
    background-color: #1a252f !important; /* Forces the dark charcoal background */
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 1.5rem 2.5rem; 
    width: 100%;
}

/* Ensure the navigation menu links don't crowd the new logo */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem; /* Keeps even horizontal spacing between items */
    margin: 0;
    padding: 0;
}

/* Standard link styles for readability and space efficiency */
nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap; /* Prevents awkward wrapping within a menu item */
    font-size: 0.95rem;  /* Slightly scales down the font to fit standard screens */
}
.logo h1 {
color: #f39c12 !important;
    font-size: 1.5rem;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    margin-left: 2rem;
}
.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--accent);
}

/* Footer Section */
footer {
    background-color: var(--primary);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* ==========================================================================
   MOBILE & TABLET STYLESHEET ADJUSTMENTS(Screens smaller than 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* Stack the header logo and nav vertically */
    header, .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }

    /* Shrink the logo text slightly so it doesn't wrap on small phones */
    .logo h1 {
        font-size: 1.4rem !important;
        letter-spacing: 0.5px;
    }

    /* Stack the navigation links or make them horizontal rows */
    nav ul {
        flex-direction: row;
        flex-wrap: wrap; /* Allows links to flow to the next line cleanly if needed */
        justify-content: center;
        gap: 1rem;
    }

    nav ul li a {
        font-size: 0.85rem; /* Slightly smaller text for thumbs to click */
        padding: 0.25rem 0.5rem;
    }

    /* Fix the main hero headline so it scales down on mobile screens */
    h1 {
        font-size: 1.8rem !important;
        line-height: 1.4 !important;
        padding: 0 1rem;
    }

    /* Turn the 2-column form grid into a single column for easy typing */
    form div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
}