/* --- RESET & FOUNDATION --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

:root {
    --navy: #1a2b6d;       
    --marigold: #f9a825;   
    --cream: #fbf9f4;      
    --white: #ffffff;
    --text-dark: #2c3550;
    --text-muted: #6b779a;
    --nav-height: 90px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--cream);
    color: var(--navy);
    line-height: 1.7;
    font-size: 1.15rem;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-height);
}

/* --- TOP NAVIGATION BAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(251, 249, 244, 0.96); 
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(26, 43, 109, 0.06);
    z-index: 1000;
}

.nav-container {
    width: 88%;
    max-width: 1300px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row-reverse; 
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 44px; 
    width: auto;
    display: block;
}

.nav-menu-wrapper {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
    height: var(--nav-height);
}

.nav-link {
    text-decoration: none;
    color: var(--navy);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    white-space: nowrap;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--marigold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;            
    left: 0;
    width: 100%;
    height: 4px;             
    background-color: var(--marigold);
    border-radius: 2px;      
    transform: scaleX(0); 
    transform-origin: bottom left;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
}

.nav-link.active {
    color: var(--navy);
}

.nav-link.active::after {
    transform: scaleX(1); 
}

/* --- EDITORIAL STANDARD CONTAINERS --- */
.editorial-container {
    width: 88%;
    max-width: 1300px;
    margin: 0 auto;
}

.section {
    padding: 6.5rem 0; /* Tightened from 10rem to reduce heavy vertical gaps */
}

/* --- HERO SECTION WITH OVERLAPPING BACKGROUND ART --- */
/* --- HERO SECTION WITH OVERLAPPING BACKGROUND ART --- */
.hero {
    padding: 12rem 0 8.5rem 0; /* Slightly increased padding to give the text space */
    text-align: center;
    background-image: url('images/logo/hero-background-art.svg');
    background-repeat: no-repeat;
    background-position: center center;
    /* Maintains the true proportions so circles stay circular, matching image_ecfa92.jpg's width smoothly */
    background-size: cover; 
}

.hero-tagline {
    font-family: Georgia, serif;
    font-size: 3rem;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 3.5rem;
    color: var(--navy);
    position: relative;
    z-index: 2;
    /* Clean text shadow configuration to preserve crisp legibility */
    text-shadow: 0 0 20px var(--cream), 0 0 10px var(--cream); 
}

/* On mobile viewports, reduce vertical padding so the text fits beautifully on small screens */
@media (max-width: 968px) {
    .hero {
        padding: 6rem 0 4rem 0;
    }
}

.hero-container {
    width: 85%;
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Ensures the text stays crisp and readable on top of the image */
}

.clarity-dot {
    width: 12px;
    height: 12px;
    background-color: var(--marigold);
    border-radius: 50%;
    margin: 0 auto;
}

/* --- MODERN ROW SPLITTING PATTERN --- */
.splitting-layout .editorial-container {
    display: grid;
    grid-template-columns: 35% 65%; 
    gap: 5%;
}

.section-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 700;
}

.right-col p {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    max-width: 780px;
}

.right-col p.lead-text {
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--navy);
    font-weight: 500;
}

.right-col p.highlighted-text {
    font-family: Georgia, serif;
    font-size: 1.45rem;
    font-style: italic;
    border-left: 3px solid var(--marigold);
    padding-left: 1.5rem;
    margin-top: 2.5rem;
    color: var(--navy);
}

/* --- SHOWCASE GRID PATTERN (ROLES) --- */
.showcase-layout {
    background-color: var(--white);
    border-top: 1px solid rgba(26, 43, 109, 0.04);
    border-bottom: 1px solid rgba(26, 43, 109, 0.04);
}

.full-width-header {
    max-width: 900px;
    margin-bottom: 4rem; /* Reduced gap before the cards grid */
}

.thesis-sentence {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    line-height: 1.45;
    margin-top: 1.5rem;
    color: var(--navy);
}

.roles-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.modern-card {
    background-color: var(--cream);
    padding: 2.5rem 2.25rem; /* Compacted slightly for balanced rhythm */
    border-radius: 8px;
    border: 1px solid rgba(26, 43, 109, 0.03);
    transition: transform 0.2s ease;
}

.modern-card:hover {
    transform: translateY(-4px);
}

.modern-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.modern-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* --- INVERTED DARK CANVAS PATTERN (BELIEFS) --- */
.inverted-canvas {
    background-color: var(--navy);
    color: var(--white);
}

.section-title.inverted {
    color: rgba(255, 255, 255, 0.4);
}

.beliefs-modern-list {
    list-style: none;
}

.beliefs-modern-list li {
    font-size: 1.4rem;      /* Slightly optimized down from 1.5rem for tighter scanning */
    line-height: 1.6;
    margin-bottom: 1.75rem; /* Drastically cut down from 3rem/4rem to close the giant gaps */
    position: relative;
    padding-bottom: 1.75rem;/* Balanced padding for the separator lines */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Fainter line for a more premium look */
    color: rgba(255, 255, 255, 0.9);
}

/* Removes the extra spacing and line entirely on the very last item */
.beliefs-modern-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.beliefs-modern-list li::before {
    content: "■";
    font-size: 0.7rem;
    position: absolute;
    left: -2.2rem;
    top: 0.4rem;
    color: var(--marigold);
}

/* Make sure mobile views clean up the spacing too */
@media (max-width: 968px) {
    .beliefs-modern-list li {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        padding-left: 1.25rem;
        font-size: 1.15rem;
    }
    .beliefs-modern-list li::before {
        left: 0;
    }
}

/* --- FUTURE SECTION & FOOTER --- */
.brand-reveal {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--marigold);
    text-underline-offset: 4px;
}

.minimal-footer {
    padding: 4.5rem 0;
    border-top: 1px solid rgba(26, 43, 109, 0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- RESPONSIVE MOBILE VIEWPORTS --- */
@media (max-width: 968px) {
    :root {
        --nav-height: 75px;
    }

    body {
        padding-top: var(--nav-height);
    }

    .section {
        padding: 4.5rem 0;
    }

    /* SAFE NAVBAR MOBILE FIX */
    .nav-container {
        width: 92%;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
        gap: 1rem; /* Safely forces a small gap so menu can't touch the logo */
    }

    .brand-logo {
        height: 34px;
        flex-shrink: 0; /* Guarantees the logo never gets squished or squeezed */
    }

    .nav-menu-wrapper {
        max-width: 65%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 5px;
        mask-image: linear-gradient(to right, #000 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
    }

    .nav-menu-wrapper::-webkit-scrollbar {
        display: none;
    }

    .nav-menu {
        gap: 1.75rem;
        width: max-content;
        height: var(--nav-height);
    }

    /* HERO PROFILE MOBILE ADJUSTMENTS */
    .hero {
        padding: 6rem 0 4rem 0;
    }

    .hero-tagline {
        font-size: 2rem;
    }

    /* GRID LAYOUT RE-ESTABLISHED SAFE AND SOUND */
    .splitting-layout .editorial-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .right-col p.lead-text {
        font-size: 1.35rem;
    }

    .right-col p, .beliefs-modern-list li {
        font-size: 1.15rem;
    }

    .right-col p.highlighted-text {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .full-width-header {
        margin-bottom: 2.5rem;
    }

    .thesis-sentence {
        font-size: 1.4rem;
    }

    .roles-modern-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .modern-card {
        padding: 2rem;
    }

    .beliefs-modern-list li {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
        padding-left: 1.5rem;
    }

    .beliefs-modern-list li::before {
        left: 0;
    }
}