/* ================================================== */
/* === IMPORT FONTS & ICONS ========================= */
/* ================================================== */
/* Essential for the new About Us page visuals */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ================================================== */
/* === 0. CSS RESET & VARIABLES (ORIGINAL) ========== */
/* ================================================== */
:root {
    --primary-color: #1A294B; /* Dark Navy/Blue */
    --secondary-color: #F58220;  /* Amber/Orange Accent */
    --color-light: #FFFFFF;
    --color-background: #f9f9f9;
    --color-text: #333333;
    --max-width: 1400px;
    --transition-speed: 0.3s;
    
    /* New Variables for Visual Improvements */
    --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.12);
}

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

body {
    /* Updated font stack to include new fonts, falling back to system */
    font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--secondary-color); /* Fixed variable name from original 'accent' to 'secondary' */
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--primary-color);
}

/* ================================================== */
/* === 1. NAVIGATION & HEADER (ORIGINAL) ============ */
/* ================================================== */
#main-header { 
    background-color: var(--color-light); 
    color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.site-logo {
    max-height: 80px; 
    width: auto;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 35px; 
}
.nav-links a {
    color: var(--primary-color);
    font-weight: 700;
    padding: 5px 0;
    display: block;    
}
.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    display: flex !important;
}
.menu-toggle {
    display: none;
    position: relative;
    width: 35px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transition: 0.3s ease;
    border-radius: 2px;
}

.menu-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle::before {
    top: 0;
}

.menu-toggle::after {
    bottom: 0;
}

/* Hamburger → X animation */
.menu-toggle.open::before {
    transform: translateY(11px) rotate(45deg);
}
.menu-toggle.open span {
    opacity: 0;
}
.menu-toggle.open::after {
    transform: translateY(-11px) rotate(-45deg);
}

/* ================================================== */
/* === 2. TYPOGRAPHY & GENERAL LAYOUT =============== */
/* ================================================== */
main {
    padding-top: 0px; 
}
.page-section {
    padding: 10px 10px; 
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
h1 { font-family: 'Poppins', sans-serif; color: var(--primary-color); font-size: 3.2em; margin-bottom: 10px; }
h2 { font-family: 'Poppins', sans-serif; color: var(--primary-color); font-size: 2em; margin-bottom: 20px; text-align: center; }
h3 { font-family: 'Poppins', sans-serif; color: var(--secondary-color); font-size: 1.6em; margin-top: 0; }
h4 { font-family: 'Poppins', sans-serif; font-weight: 700; }

/* ACCENT LINE BELOW H2 */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* ================================================== */
/* === 3. HOME PAGE SPECIFIC STYLING (ORIGINAL) ===== */
/* ================================================== */

/* Hero Section */
#hero {
    background: linear-gradient(rgba(26, 41, 75, 0.75), rgba(26, 41, 75, 0.9)), url('../img/hero_image.jpg') no-repeat center center/cover;
    color: var(--color-light);
    padding: 70px 20px;
}
.sub-headline {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}
.metrics span {
    display: inline-block;
    margin: 0 25px;
    font-size: 1.2em;
    font-weight: 600;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

/* Home Snippets */
#about_us {
    background-color: grey; /* Kept as per original request */
    padding: 3rem 1rem; 
}
#approach {
    background-color: grey; /* Kept as per original request */
    padding: 3rem 1rem; 
} 

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin: 10px 10px 10px 0;
    font-weight: bold;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.primary-btn { background-color: var(--secondary-color); color: var(--color-light); border-color: var(--secondary-color); }
.secondary-btn { background-color: transparent; color: var(--color-light); border-color: var(--color-light); }
.tertiary-btn { background-color: transparent; color: var(--primary-color); border: 2px solid var(--secondary-color); }
.primary-btn:hover { background-color: #e0771a; border-color: #e0771a; }
.secondary-btn:hover { background-color: var(--secondary-color); border-color: var(--secondary-color); }
.tertiary-btn:hover { background-color: var(--secondary-color); color: var(--color-light); border-color: var(--secondary-color); }

/* Client Logos */
#clients {
    background-color: var(--color-light);
    padding: 60px 50px;
}
.client-logos {
    display: flex;
    justify-content: space-around;
    align-items: center; 
    flex-wrap: wrap; 
    gap: 30px;
}
.client-logos img {
    max-height: 150px;
}

/* Teaser Blocks */
.teaser-block {
    background-color: var(--color-light);
    padding: 60px 20px;
    border-bottom: 1px solid #eee;
}
.teaser-block p {
    max-width: 800px;
    margin: 15px auto 25px auto;
    color: #555;
}

/* Projects Section (Home Page) */
#home-projects {
    background-color: var(--color-background);
}
.featured-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1100px;
}
.project-card {
    background: var(--color-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 4px solid var(--secondary-color);
}
.project-card h4, .project-card p { margin: 10px 20px; }
.card-link {
    display: inline-block;
}

.card-body, .project-card, .card {
    text-align: center;
}

#contact {
    background-color: white; 
    padding: 3rem 1rem; 
} 

/* ================================================== */
/* === 4. IMPROVED ABOUT US & DETAIL PAGE STYLING === */
/* ================================================== */
/* These styles replace the old styling to create the visual webpage look */

/* --- 4.1. Intro & Narrative --- */
#our-story {
    background-color: var(--color-light);
}
.narrative-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}
.narrative-intro .lead-text {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.8;
}

/* --- 4.2. Philosophy Cards (Vision/Mission) --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom: 4px solid var(--secondary-color);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: rgba(26, 41, 75, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px auto;
    transition: background-color 0.3s;
}

.philosophy-card:hover .icon-circle {
    background-color: var(--secondary-color);
    color: white;
}

.philosophy-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}
.philosophy-card ul li {
    padding: 5px 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}
.philosophy-card ul li i { color: var(--secondary-color); }

/* --- 4.3. Expertise Section (Dark) --- */
#our-expertise {
    background-color: var(--primary-color);
    color: white;
}
#our-expertise h2 { color: white; }
#our-expertise h2::after { background-color: var(--secondary-color); }

.section-intro {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.expertise-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-box {
    flex: 1 1 400px;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.expertise-box h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.expertise-box ul { list-style: none; padding: 0; }
.expertise-box ul li { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; }
.expertise-box ul li i { color: var(--secondary-color); margin-top: 5px; }

/* --- 4.4. Team & Leadership Cards (New Visual Style) --- */
.team-section {
    background-color: #f4f7fa;
}

.team-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-bottom: none;
}

.img-wrapper {
    width: 200px;              /* 1. Define a fixed width */
    height: 200px;             /* 2. Define a fixed height (same as width) */
    border-radius: 50%;        /* 3. This makes it a circle */
    margin: 30px auto 10px auto; /* 4. Centers the circle inside the card */
    overflow: hidden;          /* Clips the image to the circle shape */
    position: relative;
    border: 4px solid var(--secondary-color); /* Optional: Adds your orange border */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);   /* Optional: Adds a shadow to the circle */
}

.team-card:hover img { transform: scale(1.05); }

.team-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-card h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0 0 5px 0;
}

.team-card .title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    margin-top: 0;
}

.bio-divider {
    height: 1px;
    background: #eee;
    margin: 15px 0;
    width: 100%;
}

.biography-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}
.biography-text ul { padding-left: 0; list-style: none; margin-top: 10px; }
.biography-text ul li { position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 0.9rem; }
.biography-text ul li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute; left: 0; font-weight: bold;
}

/* Contact Page Specifics (Preserved) */
.contact-layout {
    display: flex;
    gap: 50px;
    max-width: 1000px;
    margin: 30px auto;
    text-align: left;
}
.contact-info a { color: var(--primary-color); }
.contact-form {
    background: var(--color-light);
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}
.contact-form textarea { min-height: 150px; resize: vertical; }

/* ================================================== */
/* === 5. FOOTER (ORIGINAL) ========================= */
/* ================================================== */
footer {
    background-color: var(--primary-color);
    color: var(--color-light);
    padding: 40px 20px 20px 20px;
}
.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-section {
    flex-basis: 30%;
    text-align: left;
}
.footer-section h4 {
    color: var(--color-light);
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}
.footer-section ul {
    list-style: none;
    padding: 0;
}
.footer-section a {
    color: var(--color-light);
}
.footer-section ul {
    color: var(--color-light);
    display: block;
    padding: 4px 0;
    opacity: 0.8;
}
.footer-section ul a:hover {
    color: var(--secondary-color);
    opacity: 1;
}
.footer-bottom { text-align: center; }

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom a {
    color: #22B5E7;
    font-weight: 600; 
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: none;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 999;
}

#backToTop:hover {
    background: grey;
    transform: scale(1.1);
}

/* ================================================== */
/* === 6. RESPONSIVENESS ============================ */
/* ================================================== */
@media (max-width: 1000px) {
    .detail-content-grid {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    /* ------------------------------- */
/*  ULTRA INTERACTIVE MOBILE MENU  */
/* ------------------------------- */

.menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: white;
    color: white;
    font-size: 1rem;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.menu-toggle:hover {
    background: #e0771a;
    transform: scale(1.05);
}

/* Transform text: Menu <-> Close */
.menu-toggle.open {
    background: var(--primary-color);
}

/* -------------------------- */
/* SLIDE-DOWN ANIMATED MENU   */
/* -------------------------- */

.nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    padding: 0;
    overflow: hidden;

    /* Smooth sliding animation */
    max-height: 0;
    transition: max-height 0.35s ease;
}

.nav-links.active {
     display: flex !important; /* Use !important to see if it forces the open */
    max-height: 600px !important;
}

/* Make links animated */
.nav-links li {
    opacity: 0;
    transform: translateY(-10px);
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.nav-links.active li {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for each link */
.nav-links li:nth-child(1) { transition-delay: 0.05s; }
.nav-links li:nth-child(2) { transition-delay: 0.1s; }
.nav-links li:nth-child(3) { transition-delay: 0.15s; }
.nav-links li:nth-child(4) { transition-delay: 0.2s; }
.nav-links li:nth-child(5) { transition-delay: 0.25s; }
.nav-links li:nth-child(6) { transition-delay: 0.3s; }

    h1 { font-size: 2.5em; }
    .metrics span { display: block; margin: 10px 0; }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    .footer-section {
        text-align: center !important;
    }
    /* 1. Force the layout to stack vertically */
    .contact-layout {
        flex-direction: column !important; /* Stretches boxes to full width */
        align-items: stretch !important;
        gap: 40px; /* Adds space between the form and the info cards */
        margin-top: 20px !important;
    }

    /* 2. Override the inline flex widths from PHP to make them full width */
    .contact-layout > div {
        flex: none !important;
        width: 100% !important;
        min-width: 100% !important;
    }

    /* 3. Adjust spacing inside the Info Cards column */
    .contact-layout > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 20px; /* Consistent spacing between the 3 info cards */
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2em; }
    .page-section { padding: 50px 15px; }
    .btn { padding: 12px 20px; margin: 5px; }
    
    .contact-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    /* About Us Mobile Tweaks */
    .img-wrapper { height: 240px; }
    .team-card h4 { font-size: 1.2rem; }

    /* 4. Reduce padding inside the white form box for small screens */
    .contact-layout > div:first-child > div {
        padding: 25px 20px !important; 
    }
    
    /* 5. Ensure inputs text size is large enough to prevent zooming on iPhone */
    .contact-form input, 
    .contact-form textarea {
        font-size: 16px !important; 
    }
}