@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ==========================================================================
   🧱 ENGINE VARIABLES & RESET
   ========================================================================== */
:root {
    --who-navy: #051c3d;
    --who-white: #ffffff;
    --accent: #ff5e14;
}

html, body {
    font-family: "Montserrat", sans-serif;
    color: var(--who-navy);    
}

/* ==========================================================================
   🖥️ DESKTOP / IPAD LANDSCAPE: HYBRID SNAPPING 
   ========================================================================== */
@media (max-width: 1024px) {
    html {
        scroll-snap-type: none !important; 
        scroll-behavior: smooth !important;
        overflow-x: hidden !important; 
    }
    body {
        overflow-x: hidden !important;
    }
}

@media (min-width: 992px) {
    html {
        /* 🌟 THE FIX: Pinalitan ang 'mandatory' ng 'proximity' para palusutin ka pababa! */
        scroll-snap-type: y proximity !important; 
        scroll-behavior: smooth;        
    }

    #partner-container-block {
        display: contents !important;
    }

    /* 1. NAKA-SNAP LANG: Who We Are & Partner Channels */
    .who-section,
    .partner-channel-row {
        height: 100vh !important; 
        width: 100% !important;
        scroll-snap-align: start !important; 
        scroll-snap-stop: always !important; 
        overflow: hidden !important; 
        position: relative !important;
    }

    .who-section
    {
        overflow-y: auto !important;
    }

    .partner-channel-row {
        display: flex !important;
        align-items: center !important;        
    }

    /* 2. FREE SCROLL PABABA (Presence hanggang Footer) */
    #cov-presence-section,
    #cab-presence-section,
    #contact {
        height: auto !important; 
        min-height: 100vh;
        /* Kailangan ng 'start' para may pasukan galing sa partner, pero free-scroll na sa loob nito */
        scroll-snap-align: start !important; 
        scroll-snap-stop: normal !important; 
        overflow: visible !important;
    }
    
    .ftr-main-container {
        scroll-snap-align: none !important; /* Wala nang snap sa footer */
    }
}

/* ==========================================================================
   📱 MOBILE & TABLET PORTRAIT: 100% FREE SCROLLING
   ========================================================================== */
@media (max-width: 991px) {
    html,body {
        scroll-snap-type: none !important; 
        scroll-behavior: smooth;
        overflow-x: hidden !important;
    }

    .who-section,
    .partner-channel-row,
    #cov-presence-section,
    #cab-presence-section,
    #contact,
    .ftr-main-container {
        height: auto !important; 
        min-height: 0 !important;
        scroll-snap-align: none !important;
        overflow: visible !important;
    }

    .who-main-content,
    .partner-channel-row {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        margin-bottom: 60px !important;
    }

    .who-media-pane,
    .partner-media-pane {
        width: 100% !important;
        height: 350px !important;
        min-height: 350px !important;
        position: relative !important;
    }

    .who-text-pane,
    .partner-text-pane {
        width: 100% !important;
        height: auto !important;
        padding: 40px 25px 60px 25px !important; 
        overflow: visible !important; 
    }
}

/* ==========================================================================
   🚑 ULTIMATE FIX: PAMPALITAW NG "LEARN MORE" (GSAP ANIMATED NA!)
   ========================================================================== */
.partner-content-text {
    display: block !important; 
    -webkit-line-clamp: unset !important; 
    -webkit-box-orient: unset !important;
    text-overflow: clip !important;
    overflow: visible !important;
    white-space: normal !important;
    max-height: none !important;
    height: auto !important;
    margin-bottom: 25px !important;
}

.partner-text-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    height: auto !important;
    overflow: visible !important; 
}

.partner-plus-btn {
    display: inline-block !important; 
    position: relative !important;
    z-index: 10 !important;
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease !important;
}

/* ==========================================================================
   BRAND LOGO FIX 
   ========================================================================== */
.brand-logo {
    position: fixed; 
    top: 20px;       
    left: 30px;      
    z-index: 990;   
}

.brand-logo img {
    width: 120px;    
    height: auto;    
    max-width: 100%;
}

.loader-logo {
    width: 380px !important;
    height: auto;
    opacity: 0.8;
}

/* ==========================================================================
   🍔 NAVIGATION BUTTON (HAMBURGER)
   ========================================================================== */
nav {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 9990; 
}

.menu-btn {
    background-color: var(--accent); 
    color: #ffffff;
    border: none;
    border-radius: 5px; 
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 94, 20, 0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-btn:hover {
    transform: scale(1.05);
    background-color: #e5520f;
}

/* ==========================================================================
   🌑 MENU OVERLAY CONTAINER & CONTENTS
   ========================================================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--who-navy); 
    color: #ffffff;
    z-index: 9995;
    opacity: 0;
    visibility: hidden; 
    overflow-y: auto;
}

.menu-close-btn {
    position: absolute;
    top: 35px;
    right: 50px;
    font-size: 2.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 9996;
}

.menu-close-btn:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.menu-container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.menu-info-side {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-logo-main {
    width: 180px;
    margin-bottom: 40px;
}

.menu-company-details .label-top {
    font-family: monospace;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent) !important;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.menu-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #b0c4de;
}

.menu-email {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.menu-email:hover {
    text-decoration: underline;
}

.menu-nav-side {
    flex: 1;
    min-width: 300px;
    padding: 40px 80px;
}

.menu-links {
    list-style: none; 
    padding: 0;
    margin: 0;
}

.menu-links li {
    margin-bottom: 25px;
    overflow: hidden;
}

.m-link {
    font-size: 3.5rem; 
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.m-link:hover {
    color: var(--accent);
    transform: translateX(20px); 
}

@media (max-width: 991px) {
    .menu-container {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
    }
    
    .menu-info-side {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 30px;
    }
    
    .menu-nav-side {
        padding: 40px 30px;
    }
    
    .m-link {
        font-size: 2.5rem;
    }

    .menu-btn {
        top: 20px;
        right: 20px;
    }

    .menu-close-btn {
        top: 20px;
        right: 30px;
    }
}

/* ==========================================================================
   🖥️ DESKTOP LAYOUT (Default: 50% Image Left, 50% Text Right)
   ========================================================================== */

   .who-main-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    min-height: 100vh;
    width: 100%;
}

.who-media-pane {
    width: 50%;
    position: relative;
    min-height: 100vh;
}

.who-text-pane {
    width: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 50px;
}

.who-bg-container {
    width: 100%;
    height: 100%;
    position: absolute; 
    top: 0; left: 0;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0) 00%, rgba(0,0,0,0.1) 5%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 60%);
    mask-image: linear-gradient(to left,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 5%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 60%);
}

.who-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 🌟 FADING EFFECT (MOBILE/TABLET) */
@media (max-width: 991px) {
    .who-bg-container {
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 65%, rgba(0,0,0,0) 100%);
    }

    .who-main-title { font-size: 2.1rem !important; }
}

/* ==========================================================================
   🖋️ TYPOGRAPHY & EXTRA STYLES
   ========================================================================== */
.who-main-title {
    /* color: var(--who-navy); */
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.who-content-text {
    /* color: var(--who-navy); */
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
    text-align: justify !important;
}