/* --- Global Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; overflow-x: hidden; background-color: #ffffff; scroll-behavior: smooth; }

/* --- Navigation --- */
.top-nav { position: absolute; top: 40px; right: 50px; z-index: 110; }
.top-nav ul { list-style: none; display: flex; gap: 35px; }
.top-nav ul li a {
    text-decoration: none; font-family: "Arial Black", sans-serif; font-size: 14px;
    font-weight: 900; letter-spacing: 2px; padding-bottom: 8px; position: relative;
    background: linear-gradient(to bottom, #F9A825, #FFD54F, #B26A00);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    transition: all 0.3s ease;
}
.top-nav ul li a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
    background-color: rgba(255, 255, 255, 0.4); transition: width 0.3s ease;
}
.top-nav ul li a:hover::after { width: 100%; }
.top-nav ul li a.active { border-bottom: 3px solid #F9A825; }

/* --- Hero Section --- */
.hero-container {
    position: relative; width: 100%; height: 810px; display: flex;
    overflow: hidden; background-color: #20252f;
}
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); z-index: 2; }

.logo-link { position: absolute; top: 40px; left: 0; width: 300px; z-index: 110; text-decoration: none; }
.logo { width: 100%; height: auto; object-fit: contain; transition: transform 0.3s ease; }
.logo-link:hover .logo { transform: scale(1.02); }

.headline-wrapper { flex-grow: 1; margin-left: 300px; display: flex; align-items: center; justify-content: center; z-index: 10; }
.stack-container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.text-box-container { background-color: rgba(32, 37, 47, 0.7); padding: 40px 60px; transition: 1.2s ease-out; }
.headline {
    font-size: 60px; font-family: "Arial Black", sans-serif; font-weight: 900; text-transform: uppercase;
    background: linear-gradient(to bottom, #F9A825, #FFD54F, #B26A00);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub-headline { margin-top: 45px; transition: 1s ease-out; }
.consultant-text { color: #fff; letter-spacing: 12px; font-size: 18px; margin-bottom: 12px; text-shadow: 2px 2px 8px #000; }
.location-text { color: #fff; letter-spacing: 20px; font-size: 24px; text-shadow: 2px 2px 8px #000; }

.hidden { opacity: 0; transform: translateY(20px); }
.fade-in { opacity: 1 !important; transform: translateY(0) !important; }

/* --- Aligned Divider --- */
.divider-wrapper {
    max-width: 1400px; 
    margin: 80px auto 0 auto; 
    padding: 0 50px; 
}
.section-divider { border: 0; height: 4px; background-color: #002366; width: 100%; }

/* --- Services Section --- */
.services-section {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
    max-width: 1400px; margin: 0 auto;
    padding: 60px 50px 100px 50px; background: #ffffff; position: relative; z-index: 5;
}
.service-card { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.service-card.show { opacity: 1 !important; transform: translateY(0) !important; }
.image-box {
    position: relative; width: 100%; height: 350px; overflow: hidden;
    border-top-left-radius: 50px; border-bottom-right-radius: 50px; margin-bottom: 25px;
}
.image-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-card:hover img { transform: scale(1.05); }

.text-overlay { position: absolute; bottom: 20px; left: 0; width: 100%; }
.headline-bg { background: #000; color: #fff; padding: 10px 20px; display: inline-block; margin-bottom: 5px; }
.headline-bg h3 { font-size: 18px; font-family: "Arial Black", sans-serif; }
.subheadline-bg { background: #F9A825; color: #000; padding: 5px 15px; display: inline-block; transition: 0.3s; }
.subheadline-bg h4 { font-size: 13px; font-weight: bold; }

.service-card:hover .subheadline-bg { background: #000; color: #F9A825; }
.teaser { font-size: 15px; line-height: 1.6; color: #444; margin-bottom: 15px; }
.read-more-btn {
    text-decoration: none; color: #000; font-weight: bold; font-size: 13px;
    border-bottom: 3px solid #F9A825; padding-bottom: 4px; transition: 0.3s; width: fit-content;
}
.read-more-btn:hover { border-bottom-color: #000; padding-left: 10px; }

/* --- Slate-Blue Footer --- */
.main-footer { background-color: #2f3c66; color: #ffffff; padding: 80px 50px 30px 50px; }
.footer-container { display: flex; justify-content: space-between; gap: 60px; max-width: 1300px; margin: 0 auto; }
.footer-logo { width: 180px; margin-bottom: 25px; }
.footer-container h3 { font-size: 16px; margin-bottom: 25px; letter-spacing: 3px; color: #F9A825; font-family: "Arial Black", sans-serif; }
.footer-container p, .footer-container li { font-size: 14px; line-height: 1.8; margin-bottom: 15px; color: #f1f5f9; }
.footer-container a { color: #ffffff; text-decoration: none; transition: 0.3s; }
.footer-container a:hover { color: #F9A825; }
.footer-links ul { list-style: none; }
.footer-bottom { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 11px; color: #94a3b8; }

/* --- Sub-page Header --- */
.subpage-header {
    position: relative; width: 100%; height: 380px; 
    background-image: url('images/background.jpg'); background-size: cover; background-position: center;
    display: flex; align-items: center; overflow: hidden;
}
.subpage-header::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); z-index: 1;
}
.subpage-logo { top: 20px !important; width: 220px !important; z-index: 10; }
.subpage-title-wrapper { flex-grow: 1; margin-left: 350px; z-index: 10; }
.subpage-headline { font-size: 50px !important; text-align: left !important; margin: 0; }

/* --- Zig-Zag Service Layout --- */
.services-detail-section {
    max-width: 1400px; margin: 0 auto; padding: 100px 50px;
    display: flex; flex-direction: column; gap: 120px;
}
.service-row { 
    display: flex; align-items: center; gap: 80px; 
    opacity: 0; transform: translateY(50px);
    transition: 1s ease-out;
    scroll-margin-top: 100px;
}
.service-row.reverse { flex-direction: row-reverse; }
.service-row.is-visible { opacity: 1 !important; transform: translateY(0) !important; }

.service-image { flex: 1; height: 450px; overflow: hidden; border-top-left-radius: 50px; border-bottom-right-radius: 50px; }
.service-image img { width: 100%; height: 100%; object-fit: cover; }
.service-text { flex: 1.2; }
.navy-title { color: #002366; font-size: 32px; margin-bottom: 20px; text-transform: uppercase; }

/* --- Team Grid Styles --- */
.team-grid-section { max-width: 1400px; margin: 0 auto; padding: 0px 50px; }
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.team-card {
    background: #fdfdfd; text-align: center; border-top-left-radius: 40px; 
    border-bottom-right-radius: 40px; padding: 40px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6; opacity: 0; transform: translateY(30px); transition: 0.8s ease-out;
}
.team-card.is-visible { opacity: 1 !important; transform: translateY(0) !important; }
.member-name { font-family: "Arial Black", sans-serif; color: #002366; font-size: 20px; text-transform: uppercase; margin-bottom: 5px; }
.member-title { color: #333; font-size: 13px; font-weight: bold; text-transform: uppercase; min-height: 40px; }
.member-stars { color: #F9A825; font-size: 20px; margin: 10px 0; letter-spacing: 3px; }

/* --- Contact Page Specific Styles --- */
.contact-section { max-width: 1400px; margin: 0 auto; padding: 80px 50px; }
.contact-container { display: flex; flex-direction: column; gap: 60px; }
.map-wrapper {
    width: 100%; border-top-left-radius: 50px; border-bottom-right-radius: 50px;
    overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.contact-details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.contact-box { padding: 30px; background: #fdfdfd; border: 1px solid #eef2f6; border-top-left-radius: 30px; border-bottom-right-radius: 30px; }

/* --- Mobile / Phone Specific --- */
/* --- Mobile / Phone Specific --- */
@media (max-width: 768px) {
    /* 1. Logo alignment and sizing */
    .logo-link, .subpage-logo { 
        position: absolute !important;
        top: 20px !important;
        left: 20px !important; 
        width: 140px !important; 
        display: block !important; 
        margin: 0 !important; 
        z-index: 100000 !important;
    }

    /* 2. Navigation / Hamburger positioning */
    .top-nav { 
        position: absolute !important; 
        top: 0 !important; 
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important; 
    }
    .top-nav ul:not(.nav-list) { display: none !important; }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 18px;
        cursor: pointer;
        position: absolute !important;
        top: 25px !important;
        right: 20px !important; 
        z-index: 100001 !important;
    }
    .bar { width: 100%; height: 2px; background: #F9A825; border-radius: 2px; }

    /* Mobile Menu Dropdown Items */
    .top-nav .nav-list {
        display: none !important; 
        flex-direction: column;
        background: #20252f;
        position: absolute;
        top: 65px;
        right: 20px;
        width: 160px;
        padding: 10px;
        border-radius: 10px;
        text-align: right;
        z-index: 100000 !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    }
    .top-nav .nav-list.active { display: flex !important; }
    .top-nav .nav-list li { list-style: none; margin-bottom: 5px; }
    .top-nav .nav-list li a { font-size: 16px; padding: 5px 0; display: block; color: #F9A825; }

    /* 3. Hero & Centering Fixes */
    .hero-container { 
        height: auto !important; 
        min-height: 500px !important; 
        padding-top: 80px;
        flex-direction: column !important;
    }
    .headline-wrapper, .subpage-title-wrapper { 
        margin-left: 0 !important; 
        width: 100% !important; 
        padding: 0 20px !important;
        text-align: center !important;
    }
    .text-box-container {
        padding: 25px 20px !important;
        width: 95% !important; 
        max-width: 360px;
        margin: 0 auto !important;
    }

    /* 4. Typography Scaling */
    .headline { font-size: 24px !important; line-height: 1.2 !important; }
    .subpage-headline { font-size: 28px !important; }
    .consultant-text { letter-spacing: 4px !important; font-size: 13px !important; }
    .location-text { letter-spacing: 8px !important; font-size: 18px !important; }

    /* 5. Footer: ONE COLUMN Layout */
    .main-footer {
        padding: 60px 20px 30px 20px !important;
    }
    .footer-container {
        flex-direction: column !important; /* Forces one column stack */
        align-items: center !important;   /* Centers all items */
        text-align: center !important;    /* Centers the text */
        gap: 40px !important;             /* Space between the 3 sections */
    }
    .footer-brand, .footer-info, .footer-links {
        width: 100% !important;
    }
    .footer-logo {
        margin: 0 auto 20px auto !important; /* Centers the footer logo */
    }

    /* 6. General Content Layouts */
    .services-section, .services-detail-section, .team-container, .contact-details-grid {
        grid-template-columns: 1fr !important;
        padding: 40px 20px;
        position: relative;
        z-index: 2;
    }
    .service-row, .service-row.reverse { flex-direction: column !important; text-align: center; gap: 30px; }
    .service-image { width: 100%; height: 250px; }
    .divider-wrapper { position: relative; z-index: 1 !important; margin: 40px auto !important; }
}


/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .menu-toggle { display: none; }
    .nav-list { display: none !important; } 
}

/* --- About Page Text Styling --- */
.service-text .highlight { color: #B26A00; font-weight: bold; }
.service-text p { font-size: 17px; line-height: 1.8; color: #333; margin-bottom: 20px; }
.service-text h2 {
    margin-top: 40px; margin-bottom: 20px; color: #002366;
    font-family: "Arial Black", sans-serif; font-size: 24px;
    border-left: 5px solid #F9A825; padding-left: 15px;
}
.service-text ul:not(.service-list) { list-style: none; margin-bottom: 25px; }
.service-text ul:not(.service-list) li {
    position: relative; padding-left: 30px; margin-bottom: 15px;
    font-size: 16px; color: #444; line-height: 1.6;
}
.service-text ul:not(.service-list) li::before {
    content: '→'; position: absolute; left: 0; color: #F9A825; font-weight: bold;
}
.service-list li {
    background: #f9f9f9; padding: 15px 15px 15px 40px;
    border-radius: 0 15px 15px 0; border-left: 3px solid #002366;
    transition: transform 0.3s ease;
}
.service-list li:hover { transform: translateX(10px); background: #f0f4f8; }
.closing {
    font-style: italic; font-weight: bold; color: #002366;
    background: rgba(249, 168, 37, 0.1); padding: 20px;
    border-radius: 10px; margin-top: 30px; text-align: center;
}

.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }