/* --- CSS Variables & Reset --- */
:root {
    --primary-blue: #003366; /* Deep professional blue */
    --secondary-blue: #005b96; /* Slightly lighter accent blue */
    --accent-grey: #f4f7f9; /* Very light grey for backgrounds */
    --dark-grey: #333333; /* Text color */
    --medium-grey: #666666; /* Secondary text */
    --white: #ffffff;
    --gold-accent: #d4af37; /* Optional accent for premium feel */
    --nav-height: 70px;
    --section-spacing: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-grey);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: var(--nav-height); /* Ensure content isn't hidden behind fixed nav */
}

/* --- Typography & Utilities --- */
h1, h2, h3, h4 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 800px;
}

.section-pad {
    padding: var(--section-spacing) 0;
}

.bg-team { background-color: #e8f0f9; }
.bg-light { background-color: var(--accent-grey); }
.bg-dark { background-color: var(--primary-blue); color: var(--white); }
.light-text h2, .light-text p { color: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                background-color 0.3s ease, 
                border-color 0.3s ease,
                color 0.3s ease, 
                box-shadow 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.1);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background-color: var(--accent-grey);
    color: var(--secondary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-text {
    background: none;
    border: none;
    color: var(--secondary-blue);
    font-weight: 600;
    padding: 0;
    transition: color 0.3s ease, transform 0.3s ease;
}

.btn-text:hover {
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* --- Button Sizes --- */
.btn-large {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* --- Global Hover/Active States --- */
.btn:hover {
    transform: translateY(-3px);
}

.btn:active {
    transform: translateY(-1px);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    height: var(--nav-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo.light img {
    filter: none;
}

.footer-col .logo img {
    height: 40px;
}

.logo span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-blue);
    letter-spacing: 1px;
    text-transform: none;
}
.dot { color: var(--secondary-blue); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-blue);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover { color: var(--secondary-blue); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.lang-switch {
    color: var(--medium-grey);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--medium-grey);
    font-family: inherit;
    font-size: inherit;
    padding: 2px 5px;
    transition: color 0.3s;
}
.lang-btn.active { color: var(--primary-blue); font-weight: 700; }
.lang-btn:hover { color: var(--secondary-blue); }

.portal-link { color: var(--medium-grey) !important; font-size: 0.9rem; }

.hamburger { display: none; cursor: pointer; font-size: 1.5rem; color: var(--primary-blue);}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80'); /* Corporate Building */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.6)); /* Blue overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 { color: var(--white); font-size: 3rem; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; }

/* Specific Hero Button Contrast Fix */
.hero .btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.hero .btn-primary:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    border-color: var(--secondary-blue);
}

.hero .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text { height: 100%; }
.about-text p { text-align: justify; }

.badges { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.badge { background: var(--white); padding: 10px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; color: var(--primary-blue); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.badge i { margin-right: 8px; }

.team-preview h3 { margin-bottom: 25px; }
#team .section-header { margin-bottom: 30px; }
.section-pad-sm { padding: 40px 0 80px; }
.team-cards { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.team-card { background: var(--white); padding: 40px 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; display: flex; flex-direction: column; align-items: center; width: 260px; min-height: 320px; }
.team-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: top center; margin-bottom: 20px; }
.team-card h4 { margin-bottom: 6px; font-size: 1.1rem; }
.team-card p { font-size: 0.95rem; color: var(--medium-grey); margin-bottom: 0; flex-grow: 1; }
.team-card .btn-text { font-size: 0.85rem; cursor: pointer; margin-top: auto; }

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, border-color 0.3s;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--secondary-blue);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

/* --- Resources Section --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background: rgba(255,255,255,0.1); /* Semi-transparent white on dark bg */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
}
.resource-card h3 { color: var(--white); font-size: 1.2rem;}
.download-card i { font-size: 2rem; color: var(--white); margin-bottom: 15px; }
.blog-card span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.read-more { color: var(--white); text-decoration: none; font-weight: 600; }

/* --- Testimonials --- */
.testimonial-item { text-align: center; }
.quote { font-size: 1.3rem; font-style: italic; color: var(--primary-blue); margin-bottom: 30px; }
.client-info { display: flex; align-items: center; justify-content: center; gap: 15px; }
.client-info img { width: 60px; height: 60px; border-radius: 50%; }
.client-info h4 { margin-bottom: 0; }
.client-info p { margin-bottom: 0; color: var(--medium-grey); font-size: 0.9rem; }

/* --- FAQs Accordion --- */
.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
}
.accordion-content p { padding-bottom: 20px; color: var(--medium-grey); }
.accordion-item.active .accordion-content { max-height: 200px; /* Approx height */ }
.accordion-item.active i { transform: rotate(180deg); }


/* --- Contact Section --- */
.bg-blue-gradient { background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)); color: var(--white); }
.bg-blue-gradient .section-header h2,
.bg-blue-gradient .section-header p { color: var(--white); }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.contact-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: background 0.3s;
}

.contact-card:hover { background: rgba(255,255,255,0.18); }

.contact-card i {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.contact-card h4 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-card p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.light-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    word-break: break-word;
}

.light-link:hover { color: var(--white); text-decoration: underline; }

.contact-card a.light-link { font-size: 0.9rem; }


/* --- Footer --- */
footer { background: #1a252f; color: #ecf0f1; padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.logo.light { color: var(--white); }
.logo.light span { color: var(--white); }
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-col a:not(.footer-social a), .footer-link-btn { display: block; color: #bdc3c7; text-decoration: none; margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:not(.footer-social a):hover, .footer-link-btn:hover { color: var(--white); }
.footer-link-btn { background: none; border: none; padding: 0; font-family: inherit; cursor: pointer; font-size: 1rem;}
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #bdc3c7;}

.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #bdc3c7;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    margin-bottom: 0;
}
.footer-social a:hover { background: var(--secondary-blue); color: var(--white); }

/* --- Modals --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-container {
    background: var(--white); width: 90%; max-width: 700px;
    max-height: 90vh; overflow-y: auto;
    border-radius: 8px; padding: 40px; position: relative;
    transform: translateY(20px); transition: transform 0.3s;
}
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-close {
    position: absolute; top: 15px; right: 20px;
    font-size: 2rem; border: none; background: none; cursor: pointer; color: var(--medium-grey);
}
.modal-content h2 { margin-top: 0; }
.modal-content ul { padding-left: 20px; margin-bottom: 20px; }
.modal-content li { margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--secondary-blue); font-weight: 500; }
.modal-cta { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Media Queries --- */
@media (max-width: 968px) {
    .hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .team-cards { grid-template-columns: repeat(3, 1fr); }
    .team-cards { justify-content: center; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height); right: 0;
        height: calc(100vh - var(--nav-height));
        background: var(--white);
        flex-direction: column;
        width: 60%;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    .nav-links.active { transform: translateX(0); }
    .hamburger { display: block; }
    .hero { height: auto; padding: 100px 0; text-align: center; }
    .hero-btns { justify-content: center; }
    .contact-form-container { padding: 25px; }
}