/* 
   MFA Fund Management - Stylesheet
   Theme: Modern, Minimalist, Rounded, Premium
   Primary Color: #3B57A1
*/

:root {
    --primary-color: #3B57A1;
    --primary-dark: #2A407A;
    --primary-light: #4E6CB8;
    --accent-color: #F5F7FA;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #7A7A7A;
    --white: #FFFFFF;

    --font-main: 'Outfit', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    --shadow-none: none;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;

    --container-width: 1200px;
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.max-w-800 {
    max-width: 800px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-white-opacity {
    color: rgba(255, 255, 255, 0.9);
}

.bg-light {
    background-color: var(--accent-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-dark {
    background-color: #0F172A;
    color: var(--white);
}

.mt-4 {
    margin-top: 1.5rem;
}

.gap-large {
    gap: 4rem;
}

.section {
    padding: var(--section-padding);
}

.section-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.text-white-opacity.section-label {
    color: rgba(255, 255, 255, 0.7);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    margin-left: 10px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- GRID SYSTEMS --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 20px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-medium);
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .btn {
    color: var(--white);
}

/* --- IMAGE PLACEHOLDERS --- */
.image-box {
    background-color: #f1f3f7;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid #eef0f5;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-image {
    height: 500px;
    width: 100%;
}

.overview-image {
    height: 400px;
    width: 100%;
}

/* --- HERO --- */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    color: var(--primary-color);
    font-size: 4.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-tagline {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 40px;
}

.hero-background-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(59, 87, 161, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- OVERVIEW --- */
.abstract-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-none);
    border-left: 5px solid var(--primary-color);
    max-width: 300px;
}

/* --- PHILOSOPHY --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.philosophy-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-none);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-none);
}

.card-icon {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.3;
}

/* --- MISSION & VISION --- */
.mv-block {
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid #eee;
}

.mv-title {
    font-size: 2rem;
    color: var(--text-dark);
}

/* --- WHO WE ARE --- */
.feature-list {
    margin-top: 20px;
    margin-bottom: 20px;
}

.feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list li::before {
    content: "•";
    color: var(--white);
    position: absolute;
    left: 0;
}

/* --- LEADERSHIP --- */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.leader-card {
    background: var(--accent-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-none);
    transition: 0.3s;
    border: none;
}

.leader-card:hover {
    transform: translateY(-5px);
}

.leader-header {
    background: var(--primary-color);
    padding: 30px;
    color: var(--white);
}

.leader-role {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.leader-bio {
    padding: 30px;
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* --- CORPORATE PROFILE --- */
.corp-profile-box {
    background-color: var(--accent-color);
    padding: 60px;
    border-radius: var(--radius-lg);
}

.corp-list li {
    margin-bottom: 10px;
}

/* --- SERVICES --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: #f8fafc;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid #ecf0f5;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-list {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.service-list li {
    margin-bottom: 8px;
    list-style-type: disc;
    margin-left: 20px;
}

/* --- ETHICS --- */
.ethics-box {
    margin-top: 40px;
    padding: 40px;
    border: 1px solid #eaeaea;
    border-radius: var(--radius-lg);
    display: inline-block;
}

.ethics-list {
    text-align: left;
    display: inline-block;
}

.ethics-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.ethics-list li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- FOOTER --- */
.footer {
    padding: 80px 0 40px;
    color: #e2e8f0;
}

.footer h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-grid {
    align-items: flex-start;
    margin-bottom: 60px;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- MOBILE --- */
.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-grid {
        gap: 2rem;
    }
}

@media (max-width: 900px) {

    .grid-2-col,
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-section {
        text-align: center;
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .btn-outline {
        margin-left: 0;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 30px;
        position: relative;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--primary-color);
        margin: 3px 0;
        transition: 0.3s;
    }

    /* Hamburger Animation to X */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -7px);
    }

    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        z-index: 1000;
        padding: 100px 20px 40px;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        overflow-y: auto;
    }

    .mobile-menu.active {
        transform: translateY(0);
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .mobile-nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-dark);
    }

    .visual-overview {
        display: none;
    }

    .service-card {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-section {
        padding-top: 120px;
    }

    .hero-image {
        height: 350px;
    }

    .corp-profile-box {
        padding: 40px 20px;
    }

    .grid-2-col {
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 92%;
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .leader-header {
        padding: 20px;
    }

    .leader-bio {
        padding: 20px;
    }

    .mv-block {
        padding: 25px;
    }

    .section-label {
        font-size: 0.75rem;
    }
}