/* modern-quant.css */
/* Inspired by Citadel, CFM, Garda Capital, Akuna Capital */

/* --- Global Resets & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0A2B4C; /* Deep Blue - Professional & Trustworthy */
    --secondary-color: #1A5A96; /* Medium Blue */
    --accent-color: #E0E0E0; /* Light Grey/Silver for accents, borders */
    --text-color: #333333; /* Dark Grey for text */
    --light-text-color: #FFFFFF;
    --bg-color: #FFFFFF;
    --bg-light: #F4F7F9; /* Very light grey for alternate sections */

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    --container-width: 1140px;
    --header-height: 70px;
    --border-radius: 6px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

img.responsive-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.8rem; /* Responsive: adjust with media queries */
}

h2.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

p.subtitle {
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 1.5rem;
    max-width: 700px; /* For hero subtitle */
    margin-left: auto; /* For hero subtitle */
    margin-right: auto; /* For hero subtitle */
    text-align: center; /* For hero subtitle */
}

/* --- Header & Navigation --- */
#header-logo-img {
    height: 40px; /* Adjust as needed */
    width: auto;
    vertical-align: middle;
}

#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#main-header .logo a {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

#main-header .nav-links {
    list-style: none;
    display: flex;
}

#main-header .nav-links li {
    margin-left: 25px;
}

#main-header .nav-links a {
    font-weight: 500;
    color: var(--text-color);
    padding: 5px 0;
    position: relative;
}

#main-header .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

#main-header .nav-links a:hover::after,
#main-header .nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden by default, shown in media query */
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all var(--transition-speed);
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(10, 43, 76, 0.8), rgba(10, 43, 76, 0.7));
    /* Replace with a suitable background image */
    color: var(--light-text-color);
    padding: calc(var(--header-height) + 100px) 0 100px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    color: var(--light-text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-secondary);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
}

.content-section.bg-light {
    background-color: var(--bg-light);
}

/* --- Grid Layouts --- */
.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-three-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-grid .text-content,
.content-grid .image-content {
    padding: 10px;
}

/* --- Approach Cards --- */
.approach-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.approach-card .icon-large {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* --- Job Postings / Accordion --- */
.job-postings-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: margin-bottom var(--transition-speed);
}

.accordion-item:last-child {
    margin-bottom: 0;
}

.accordion-button {
    background-color: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-family: var(--font-secondary);
    font-weight: 600;
    color: var(--primary-color);
    transition: background-color var(--transition-speed);
}

.accordion-button:hover {
    background-color: var(--light-bg-color);
}

.accordion-button .job-location {
    font-weight: 400;
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.accordion-button::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.2s ease-in-out;
    font-weight: 300;
}

.accordion-button.active::after {
    content: '−';
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.job-description {
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.job-description h4 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.job-description ul {
    list-style-position: outside;
    padding-left: 1.25rem;
}

.job-description li {
    margin-bottom: 0.5rem;
}

.job-description .btn {
    margin-top: 1.5rem;
}

/* --- Contact Section --- */
.contact-info {
    text-align: center;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    font-weight: 500;
}

/* --- Footer --- */
#main-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 20px;
    text-align: center;
}

#main-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-social i {
    font-size: 48px; /* Doubled size */
    color: white; /* Changed to white */
    margin-left: 10px; /* Adjust spacing if multiple icons are added */
    transition: color var(--transition-speed);
}



#main-footer .footer-logo a {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--light-text-color);
    margin-bottom: 10px;
    display: inline-block;
}

#main-footer .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 10px;
    font-size: 0.9rem;
}

#main-footer .footer-links a:hover {
    color: var(--light-text-color);
}

#main-footer .copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    h2.section-title {
        font-size: 1.9rem;
    }
    .grid-two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .content-grid .image-content {
        order: -1; /* Image on top on mobile for some sections */
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    #main-header .nav-links {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        padding-bottom: 10px;
    }
    #main-header .nav-links.active {
        display: flex; /* Show when toggled */
    }
    #main-header .nav-links li {
        margin: 10px 20px;
        text-align: center;
    }
    #main-header .nav-links a::after {
        display: none; /* No underline for mobile nav items */
    }
    .menu-toggle {
        display: block; /* Show hamburger */
    }
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-section {
        padding: calc(var(--header-height) + 60px) 0 60px;
        min-height: 60vh;
    }

    h1 {
        font-size: 2rem;
    }

    h2.section-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }

    .content-section {
        padding: 60px 0;
    }

    .grid-three-col {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    #main-footer .footer-content {
        flex-direction: column;
    }
    #main-footer .footer-links {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}
