/* ============================================================================
   FILE 4: assets/css/style.css - INSTITUTIONAL v3 (FULL UNIFIED MERGE)
   PM Update: 60px Logo Authority, Compact Nav, and Margin Symmetry.
   ============================================================================ */

/* Reset & Base Logic */
:root {
    --primary-navy: #0A1E3F;
    --secondary-gold: #C2A368;
    --text-body: #5A5A5A;
    --text-light-grey: #E6E6E6;
    --background-white: #FFFFFF;
    --font-main: 'Montserrat', sans-serif;
    --site-max-width: 1240px; /* PM: Adjusted for better 60px logo scaling */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
.brand-nowrap { white-space: nowrap !important; }

/* Accessibility: Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -60px;
    left: 20px;
    background: var(--secondary-gold);
    color: var(--primary-navy);
    padding: 10px 20px;
    font-weight: 700;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
}
.skip-to-content:focus { top: 20px; }

/* Base Body */
body {
    font-family: var(--font-main);
    color: var(--text-body);
    background-color: var(--background-white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Institutional Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
h1 { font-size: 3rem; letter-spacing: -0.5px; } /* PM: Increased for impact */
h2 { font-size: 2.2rem; margin-bottom: 2rem; }

a, .btn, h2 { text-decoration: none !important; }

/* Master Layout Rail - Aligned with Hero */
.container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* Institutional Cards */
.step-card {
    background: #ffffff;
    padding: 40px;
    border: 1px solid #eee;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(10, 30, 63, 0.08);
}
.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}
.step-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* ============================================================================
   HEADER & NAVIGATION (PM AUTHORITY UPDATE)
   ============================================================================ */

header {
    background-color: var(--primary-navy);
    border-bottom: 2px solid var(--secondary-gold); /* Refined border */
    padding: 22px 0; /* PM: Balanced padding for larger logo */
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 30px; /* Distance between Nav and Portal Button */
}

/* LOGO PROPORTION: Set to 60px as requested */
.brand-logo {
    height: 60px; 
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

/* Desktop Navigation */
.main-nav {
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 20px; /* PM: Compact gap to fit Institutional Mandates */
    list-style: none;
}

.main-nav li {
    white-space: nowrap; 
}

.main-nav a {
    color: var(--text-light-grey);
    font-size: 12px; /* PM: Shrunk for compactness */
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.25s ease, border-bottom 0.25s ease;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-gold);
}

.main-nav a.active {
    border-bottom-color: var(--secondary-gold);
}

/* Focus States (Accessibility) */
.main-nav a:focus,
.btn:focus,
button:focus {
    outline: 2px solid var(--secondary-gold);
    outline-offset: 4px;
}

/* ============================================================================
   SECTIONS & CONTENT
   ============================================================================ */

.section-padding { padding: 100px 0; }

.content-centered {
    width: 100%;
    margin: 0 0 3rem 0;
    text-align: left;
}

/* Background Utilities */
.bg-navy {
    background-color: var(--primary-navy) !important;
    color: #ffffff !important;
}
.bg-light {
    background-color: #f4f4f4;
}

/* ============================================================================
   BUTTON SYSTEM & PORTAL
   ============================================================================ */

.btn, .portal-btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--secondary-gold);
    color: var(--primary-navy) !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    border: none;
    transition: all 0.25s ease;
    cursor: pointer;
}

.portal-btn {
    padding: 10px 22px; /* PM: Slimmer for the Header row */
    font-size: 0.75rem;
    border-radius: 2px;
}

.btn:hover, .portal-btn:hover {
    background: #b89658;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(194, 163, 104, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-gold);
    color: var(--secondary-gold) !important;
}

.btn-outline:hover {
    background: var(--secondary-gold);
    color: var(--primary-navy) !important;
    transform: translateY(-2px);
}

/* ============================================================================
   GRID SYSTEMS
   ============================================================================ */

.layout-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.layout-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
    background-color: var(--primary-navy);
    color: var(--text-light-grey);
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    overflow-x: hidden;
}

footer a {
    color: var(--text-light-grey);
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--secondary-gold);
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS (Surgical Proportions)
   ============================================================================ */

@media (max-width: 1400px) {
    .brand-logo { height: 52px; }
    .main-nav ul { gap: 12px; }
}

@media (max-width: 1024px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .section-padding { padding: 60px 0; }
    .container { padding: 0 25px; }
    .brand-logo { height: 45px; }
    .main-nav a { font-size: 11px; }
}

@media (max-width: 991px) {
    /* Layout Modification: Logo Left, Text Center, Hamburger Right */
    .header-flex {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .logo-wrapper {
        justify-self: start !important;
    }

    .header-tagline {
        display: block !important;
        justify-self: center !important;
        text-align: center !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    .header-right {
        justify-self: end !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* Menu Full Visiblity Correction */
    .main-nav {
        max-height: none !important;
        height: 100vh !important;
        overflow-y: auto !important;
    }

    .layout-grid-3,
    .layout-grid-2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px 20px !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .footer-bottom p {
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    .btn {
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
    }
}