/* SYNTEGRIS ENGINEERING & CONSULTING - OFFICIAL STYLESHEET */

/* 1. BRAND VARIABLES */
:root {
    --primary: #121f3d;
    --accent: #d4af37;
    --light: #f8f9fa;
    --text: #333333;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --header-height: 80px;
}

/* 2. GENERAL RESET */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif; 
}

body { 
    background-color: var(--light); 
    color: var(--text); 
    line-height: 1.6; 
    scroll-behavior: smooth;
    padding-top: var(--header-height); 
}

/* 3. FIXED HEADER & NAVIGATION */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
}

.logo-img {
    height: 50px;
    margin-right: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.brand-sub {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    height: 100%;
    align-items: center;
}

.nav-links li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 0 5px; 
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* === DESKTOP DROPDOWNS (FIXED) === */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; 
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    list-style: none;
    min-width: 220px;
    border-top: 3px solid var(--accent);
    padding: 10px 0;
    z-index: 1000;
}

/* Invisible Bridge (Prevents closing) */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px; 
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu li {
    width: 100%;
    display: block; 
    height: auto; 
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
}

.dropdown-menu a:hover { background: var(--light); }

/* === NESTED DROPDOWNS === */
.nested-dropdown { position: relative; }

.nested-menu {
    display: none;
    position: absolute;
    left: 100%; 
    top: -5px;  
    background: var(--white);
    box-shadow: var(--shadow);
    min-width: 220px;
    border-top: 3px solid var(--accent);
    list-style: none;
    padding: 10px 0;
    z-index: 1001;
    margin-left: -2px; 
}

/* Invisible Bridge for Submenu */
.nested-menu::before {
    content: "";
    position: absolute;
    right: 100%; 
    top: 0;
    height: 100%;
    width: 20px; 
    background: transparent;
}

.nested-dropdown:hover .nested-menu { display: block; }

/* 4. HERO SECTION */
.home-hero {
    background: linear-gradient(rgba(18, 31, 61, 0.85), rgba(18, 31, 61, 0.85)), url('engineering-bg.jpg'); 
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.home-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.home-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.submit-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s;
    border: none;
    cursor: pointer;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* 5. LAYOUT UTILITIES */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-top: 4px solid transparent;
    transition: transform 0.3s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

/* === NEW: FEATURE CARD (PRODUCT LAYOUT) === */
.feature-card {
    display: flex; /* Side-by-side on desktop */
    gap: 40px;
    margin-bottom: 40px;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    align-items: center;
}

.feature-content { flex: 1; }
.feature-image { flex: 1; text-align: center; }

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.subtitle {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

/* 6. FEATURES GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: 0.3s;
}

.feature-box:hover { transform: translateY(-5px); }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-box h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* 7. STATS STRIP */
.stats-container {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0;
    margin: 80px 0;
}

.stat-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

/* 8. PARTNER LOGOS */
.logo-strip {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    opacity: 0.8;
}

.logo-strip img {
    height: 50px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.logo-strip img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* 9. FOOTER */
footer {
    background: #0b1324;
    color: #888;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    font-size: 0.9rem;
}

/* BACK TO TOP BUTTON */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--accent);
    color: var(--primary);
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover {
    background-color: var(--white);
    transform: translateY(-3px);
}

/* === PAGE TITLES === */
.page-title {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 2.5rem;
    color: var(--accent);
}

/* === SIDE BY SIDE LAYOUT === */
.side-by-side-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.side-by-side-container .card { flex: 1; }

/* === TEAM / ORG CHART STYLES === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 3px solid var(--accent);
    transition: transform 0.3s ease;
}

.team-member:hover { transform: translateY(-5px); }

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%; 
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--light);
}

.team-role {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.team-bio {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Motto / Quote Section */
.motto-box {
    background-color: #f8f9fa; 
    border-left: 5px solid var(--accent); 
    padding: 30px;
    margin: 40px 0;
    font-style: italic;
    font-family: 'Georgia', serif; 
    color: #555;
    position: relative;
}

.motto-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
    font-style: normal; 
}

/* =========================
   HERO BUTTONS UPGRADE 
   ========================= */
.btn-group {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px; 
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px; 
    transition: all 0.3s ease; 
    position: relative;
    z-index: 10;
}

/* 1. Primary Button (Gold) */
.btn-gold {
    background-color: var(--accent);
    color: var(--primary);
    border: 2px solid var(--accent);
    box-shadow: 0 5px 15px rgba(212, 160, 23, 0.4); 
}

.btn-gold:hover {
    background-color: transparent; 
    color: var(--white);
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* 2. Secondary Button (Transparent/White) */
.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary); 
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* =========================
   CONTACT PAGE STYLES 
   ========================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.contact-info-box {
    background: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info-box h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.info-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
}

textarea.form-control {
    resize: vertical;
    height: 150px;
}

.map-container {
    margin-top: 50px;
    width: 100%;
    height: 400px;
    background-color: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

/* =========================================
   10. MOBILE RESPONSIVENESS (FINAL FIX)
   ========================================= */

.mobile-menu-btn { display: none; }

@media (max-width: 900px) {
    
    /* HAMBURGER BUTTON */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 2001; 
    }

    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--primary);
        margin: 5px 0;
        transition: 0.4s;
    }

    .mobile-menu-btn.open span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.open span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    /* MOBILE MENU DRAWER */
    .nav-links {
        display: flex; 
        position: fixed;
        right: 0;
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%); 
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 50px;
        gap: 0; 
        overflow-y: auto; 
    }

    .nav-links.active { transform: translateX(0%); }
    
    .nav-links li { 
        width: 100%; 
        text-align: center;
        margin: 0;
        display: block;
        height: auto;
    }

    .nav-links > li > a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    /* MOBILE DROPDOWNS (Stacking) */
    .dropdown-menu, .nested-menu {
        position: static; 
        width: 100%;
        box-shadow: none;
        border-top: none;
        display: none;
        float: none;
        margin: 0;
        padding: 0;
    }

    .dropdown-menu::before, .nested-menu::before { display: none; }
    .dropdown-menu { background-color: #f4f4f4; }
    .nested-menu { background-color: #e9e9e9; }
    .dropdown:hover .dropdown-menu { display: block; }
    .nested-dropdown:hover .nested-menu { display: block; }
    .dropdown-menu a { padding: 15px 0; font-size: 0.9rem; }
    .nested-menu a { padding: 12px 0; font-size: 0.85rem; color: #555; }

    /* LAYOUT FIXES FOR PHONE */
    
    /* Fix: Stack feature cards vertically (Image on top) */
    .feature-card {
        flex-direction: column-reverse; /* Puts image above text if HTML order is text-first */
        text-align: center;
        padding: 25px;
    }

    .card { padding: 25px; } /* Reduce padding */

    .contact-wrapper, .side-by-side-container { flex-direction: column; }
    .home-hero h1 { font-size: 2.2rem; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}

.card p, .team-bio {
    text-align: justify;
    text-justify: inter-word; /* Makes the spacing between words look more natural */
    line-height: 1.6;        /* Improves readability */
}

.news-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.news-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 5px solid #007bff; /* Accent color */
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 10px;
}

.news-text {
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.read-more-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #0056b3;
}

/* News Container Layout */
.news-container {
    max-width: 850px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between news cards */
}

/* The Card */
.news-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 4px solid #007bff;
}

/* Media Handling (Images & Videos) */
.news-media {
    margin: 15px 0;
    width: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.news-media img, 
.news-media video {
    width: 100%;       /* Makes media responsive */
    height: auto;      /* Maintains aspect ratio */
    display: block;
}

.news-date {
    color: #777;
    font-size: 0.9rem;
}

.news-text {
    line-height: 1.7;
    color: #444;
}

.read-more-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 10px;
}

.read-more-btn:hover {
    background: #0056b3;
}

body {
    background-color: #f0f2f5; /* Light industrial gray */
    color: #333;
}

.card, .news-card {
    background-color: #ffffff; /* Contrast! */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-branding {
    display: flex;
    flex-direction: column; /* Stacks logo on top of text */
    align-items: center;
    margin-bottom: 20px;    /* Space between logo and the main title */
}

.hero-logo {
    width: 300px;            /* Adjust size to your preference */
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Makes logo "pop" against background */
}

.hero-company-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 4px;    /* Gives it a premium, spaced-out look */
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Ensure the main title isn't too crowded */
.home-hero h1 {
    margin-top: 0;
    line-height: 1.2;
}