:root {
    /* USER DEFINED COLORS */
    --primary-blue: #536c7c; 
    --bg-cream: #fff5d9;     
    
    /* Derived Colors */
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #546e7a;
    
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

/* Accessibility: Global Focus Ring */
:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 15px 20px;
    z-index: 9999;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
    text-decoration: none;
    font-weight: bold;
}
.skip-link:focus { top: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

a { text-decoration: none; transition: all 0.3s ease; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.bg-white { background-color: var(--white); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.narrow { max-width: 800px; margin: 0 auto; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

/* --- HEADER & NAVIGATION --- */
.navbar {
    background-color: var(--primary-blue);
    padding: 15px 0 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo-img {
    height: 50px;
    width: auto;
    transition: filter 0.4s ease;
    filter: brightness(0) invert(1);
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scrolled State */
.navbar.scrolled {
    background-color: var(--bg-cream);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.navbar.scrolled .logo-img { filter: none; }
.navbar.scrolled .nav-links a { color: var(--primary-blue); }
.navbar.scrolled .hamburger { color: var(--primary-blue); }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; color: var(--white); }

/* --- BANNERS --- */
.page-hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-bottom: 40px; 
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(83, 108, 124, 0.75); 
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 20px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; color: var(--white); line-height: 1.1; }
.hero-content p { font-size: 1.25rem; opacity: 0.95; margin-bottom: 2rem; color: var(--white); }

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--primary-blue);
    padding: 14px 35px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    border: 2px solid var(--white);
}
.btn-primary:hover { background: transparent; color: var(--white); }

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 12px 30px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}
.btn-outline:hover { background: var(--primary-blue); color: var(--white); }
/* Add this to style.css */
.btn-submit {
    display: inline-block;
    background: transparent; /* Clear background */
    color: var(--primary-blue); /* Dark text for readability */
    border: 2px solid var(--primary-blue); /* Dark border */
    padding: 14px 35px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%; /* Full width for the form */
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-blue); /* Dark background on hover */
    color: var(--white); /* White text on hover */
}

/* --- HOMEPAGE EXPERTISE --- */
.hover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
    margin-top: 3rem;
    width: 100%;
}

.hover-card {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hover-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hover-card:hover img { transform: scale(1.1); }

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(83, 108, 124, 0.95), transparent);
    padding: 30px;
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.hover-card:hover .card-overlay { transform: translateY(0); }
.card-overlay h3 { color: var(--white); margin-bottom: 0.5rem; }
.card-overlay p { font-size: 0.95rem; opacity: 0.9; color: var(--white); }

/* --- ABOUT PAGE --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    text-align: center;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--primary-blue);
}

.value-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-blue);
    font-size: 2rem;
    transition: all 0.4s ease;
}

.value-card:hover .value-icon-wrapper {
    background: var(--primary-blue);
    color: var(--white);
}

/* --- BENTO GRID --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
    margin-top: 3rem;
}
.bento-item { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.span-2 { grid-column: span 2; }
.span-row-2 { grid-row: span 2; }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: brightness(0.8); }
.bento-item:hover img { transform: scale(1.05); filter: brightness(0.6); }
.bento-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 100%; padding: 20px; z-index: 2; }
.bento-text h3 { color: var(--white); font-size: 1.8rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.bento-text p { color: var(--white); opacity: 0; transform: translateY(20px); transition: all 0.3s ease; }
.bento-item:hover .bento-text p { opacity: 1; transform: translateY(0); }

/* --- STANDARD COMPONENTS --- */
.split-layout { display: flex; align-items: center; gap: 50px; }
.split-layout.reverse { flex-direction: row-reverse; }
.split-content { flex: 1; }
.split-image { flex: 1; }
.split-image img { width: 100%; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); height: 400px; object-fit: cover; }

.card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; height: 100%; }
.card:hover { transform: translateY(-5px); }
.card-body { padding: 30px; text-align: center; }
.card-icon { color: var(--primary-blue); margin-bottom: 1rem; }

/* --- FORMS --- */
.contact-container { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 80px; 
    background: var(--white); 
    padding: 60px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}
.contact-info { display: flex; flex-direction: column; justify-content: flex-start; }
.contact-info h2 { margin-bottom: 1.5rem; line-height: 1.2; }
.contact-info p { margin-bottom: 2.5rem; line-height: 1.8; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 2rem; color: var(--text-light); }
.info-item i { color: var(--primary-blue); margin-right: 20px; font-size: 1.4rem; margin-top: 4px; min-width: 25px; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 700; color: var(--primary-blue); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input { width: 100%; padding: 16px; border: 1px solid #e0e0e0; border-radius: 6px; font-family: inherit; background: var(--bg-cream); font-size: 1rem; transition: all 0.3s ease; }
.form-input:focus { outline: none; border-color: var(--primary-blue); background: var(--white); box-shadow: 0 0 0 4px rgba(83, 108, 124, 0.1); }

/* --- FOOTER --- */
.footer { background: var(--primary-blue); color: #e0e0e0; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 40px; }
.footer-logo { height: 50px; margin-bottom: 1.5rem; filter: brightness(0) invert(1); }
.footer h4 { color: var(--white); margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.social-link { display: inline-flex; align-items: center; margin-top: 10px; color: #aabbc7; font-size: 0.9rem; }
.social-link i { margin-right: 8px; font-size: 1.2rem; }
.social-link:hover { color: var(--white); }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.9rem; }

/* --- MOBILE & RESPONSIVE --- */
@media (max-width: 768px) {
    /* Navbar Adjustments */
    .navbar { padding: 10px 0; }
    
    .hamburger {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--white);
        padding: 5px;
    }
    
    /* Mobile Menu Logic */
    .nav-links {
        /* Layout & Position */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        
        /* Animation State: Hidden */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
        z-index: 999;
    }

    /* Animation State: Active */
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links li { margin: 15px 0; }
    .nav-links a { color: var(--primary-blue); font-size: 1.1rem; }

    /* Hero Text Adjustment */
    .page-hero { min-height: 500px; padding: 0 20px; }
    .hero-content h1 { font-size: 2.2rem; }

    /* Layout Stack (Bento/Footer/Contact) */
    .footer-grid, 
    .contact-container,
    .split-layout, 
    .split-layout.reverse { 
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .contact-container { padding: 30px; }
    .split-image img { height: 300px; }

    /* Fix Grid Layouts on Mobile */
    .bento-grid, .hover-grid { 
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }
    
    .bento-item { min-height: 250px; grid-column: span 1 !important; grid-row: span 1 !important; }
    
    /* Align Lists Left on Mobile */
    .split-content ul {
        text-align: left;
        display: inline-block;
    }
}