/* --- 1. Global Reset and Base Styles --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

a, .cta-button, .cta-button-small, .tab-label {
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}

h1, h2, h3 {
    color: #2c3e50;
    margin-top: 0;
}

.section-title {
    color: #ff9900;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 2.2em;
    text-align: center;
}

/* --- 2. Header and Navigation Styles (Logo Left, Tabs Right) --- */
.site-header {
    background-color: #2c3e50; /* Deep Blue/Charcoal */
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between; /* Pushes logo and tabs to opposite sides */
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: sticky; 
    top: 0;
    z-index: 1000;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px; /* Adjust size for the logo */
    width: auto;
    margin-right: 10px;
}

.site-header h1 {
    color: white;
    margin: 0;
    font-size: 1.6em;
}

/* NAVIGATION (THE TAB SYSTEM) */
.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

/* Tab Button Styling (Label) */
.tab-label {
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
    cursor: pointer;
    background-color: transparent;
    border-radius: 4px;
    margin: 0 5px;
}

.tab-label:hover {
    background-color: #ff9900;
    color: #2c3e50;
}

/* Hide the actual radio buttons */
.tab-radio {
    display: none;
}

/* Style for the active tab */
.tab-radio:checked + .tab-label {
    background-color: #ff9900;
    color: #2c3e50;
    pointer-events: none; /* Disables clicking the active tab */
}


/* --- 3. Content Area & Tab Switching Logic --- */

/* Hide all content sections by default */
.tab-content {
    display: none;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

/* Show the active tab content */
#tab1:checked ~ .content-wrapper #content-home,
#tab2:checked ~ .content-wrapper #content-about,
#tab3:checked ~ .content-wrapper #content-services,
#tab4:checked ~ .content-wrapper #content-clients,
#tab5:checked ~ .content-wrapper #content-careers,
#tab6:checked ~ .content-wrapper #content-contacts,
#tab7:checked ~ .content-wrapper #content-privacy,
#tab8:checked ~ .content-wrapper #content-terms {
    display: block;
}


/* --- 4. HOME SECTION Layouts (FIXED SLANTED EDGE) --- */
.expertise-block {
    display: flex;
    align-items: stretch;
    padding: 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden; 
}

.expertise-block:last-of-type {
    border-bottom: none;
}

.expertise-img-container {
    /* **COMMON IMAGE SIZE: 35% FOR ALL BLOCKS** */
    width: 35%;
    padding: 0;
    overflow: hidden; 
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.expertise-img-container img {
    max-width: 100%; 
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; 
    box-shadow: none;
}

.expertise-text {
    /* **COMMON TEXT SIZE: 65% FOR ALL BLOCKS** */
    width: 65%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: #fff; 
}

.expertise-text h2 {
    color: #3498db;
    font-size: 1.8em;
    margin-bottom: 10px;
}


/* --- Layout 1: Type A (1st & 3rd block) - Image Left, Text Right --- */
.type-a {
    flex-direction: row; 
}

.type-a .expertise-img-container {
    order: 1; /* Image on the left */
    /* Slants the right side of the image */
    clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 0% 100%);
}

.type-a .expertise-text {
    order: 2; /* Text on the right */
    text-align: left;
}


/* --- Layout 2: Type B (2nd & 4th block) - Text Left, Image Right --- */
.type-b {
    flex-direction: row; 
}

.type-b .expertise-img-container {
    order: 2; /* **FIX: Image is the second item (Right)** */
    /* Slants the left side of the image (since it's now on the right) */
    clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.type-b .expertise-text {
    order: 1; /* **FIX: Text is the first item (Left)** */
    text-align: left; 
}


.summary-conclusion {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin-top: 30px;
    clear: both; 
}

/* --- 5. SERVICES Section --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.service-category {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* **NEW: Adds subtle elevation to service cards** */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    background-color: #ffffff; 
}

.service-category h3 {
    color: #ff9900;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.service-category ul {
    list-style: disc inside;
    padding-left: 0;
}

/* --- 6. OUR CLIENTS Section --- */
.client-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.client-grid span {
    /* **NEW: Uses a light background with the primary brand color for text** */
    background-color: #e8f0f4;
    color: #3498db; /* Blue for a pop of color */
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    border: 1px solid #ddd;
}

.client-title {
    text-align: center;
    margin-top: 40px;
}

.client-quote {
    background-color: #f9f9f9;
    border-left: 5px solid #ff9900;
    padding: 20px;
    font-style: italic;
    margin: 20px auto;
    max-width: 800px;
}

/* --- 7. CAREERS & CONTACTS Forms/Layout --- */
.contact-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 30px;
}

.contact-info-block {
    flex: 1;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    text-align: center;
}

.contact-form-placeholder form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contact-form-placeholder label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.contact-form-placeholder input[type="text"],
.contact-form-placeholder input[type="email"],
.contact-form-placeholder textarea,
.contact-form-placeholder select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.note {
    font-size: 0.9em;
    color: #777;
    margin-top: -10px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: #ff9900;
    color: white;
    padding: 12px 25px;
    margin-top: 20px;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background-color: #e68a00;
}

.cta-button-small {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 0.9em;
}

.cta-button-small:hover {
    background-color: #2980b9;
}

button[type="submit"] {
    background-color: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}


/* --- 8. Footer Styles --- */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 5%;
    font-size: 0.9em;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.footer-col {
    width: 30%;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: #ff9900;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col a, .footer-col label {
    color: #ecf0f1;
    cursor: pointer;
    display: block;
    margin-bottom: 5px;
}

.footer-col a:hover, .footer-col label:hover {
    color: #ff9900;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #95a5a6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 9. Responsive Adjustments (Stacks vertically on small screens) --- */
@media (max-width: 900px) {
    /* Revert to standard vertical stacking for mobile */
    .expertise-block {
        flex-direction: column !important; 
        text-align: center;
        box-shadow: none; 
    }
    
    .expertise-img-container, .expertise-text {
        width: 100% !important; /* Full width for stacking */
        clip-path: none !important; /* Remove clip-path */
        order: unset !important; /* Remove order property for stacking */
        padding: 15px; 
        text-align: center;
    }

    .expertise-text {
        order: 2 !important; /* Ensure text is below image on mobile */
        text-align: center !important; 
        padding-top: 0;
    }
    .expertise-img-container {
        order: 1 !important; /* Image on top on mobile */
        margin-bottom: 10px;
    }
    .expertise-img-container img {
        /* **NEW: Image takes up 100% of the mobile container width for impact** */
        max-width: 100%; 
        height: auto;
        object-fit: contain;
    }
    
    /* General Responsive Fixes */
    .site-header {
        flex-direction: column;
        padding: 10px 5%;
    }
    .logo-area {
        margin-bottom: 10px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .tab-label {
        margin: 5px;
        font-size: 0.9em;
        padding: 8px 12px;
    }
    .services-container {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .footer-col {
        width: 90%;
        min-width: auto;
        text-align: center;
    }
}