/* =========================================================
HYM Investments - Main Stylesheet
Corporate • Clean • Scroll-Animated Header
========================================================= */


/* ================= ROOT VARIABLES ================= */

:root {
    --primary-gray: #545c62;
    --light-gray: #848586;
    --text-dark: #222;
    --text-muted: #6b6b6b;
    --white: #ffffff;
    --max-width: 1200px;
}


/* ================= RESET ================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    background: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(var(--max-width), 92%);
    margin: auto;
}


/* =========================================================
HEADER (Global Structure)
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 18px 0;
    background: transparent;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ================= LOGO ================= */

.brand {
    transition: all 0.3s ease;
}

.brand img {
    height: 56px;
}


/* =========================================================
HOMEPAGE LOGO BEHAVIOR
(Add class="home" on homepage body only)
========================================================= */

/* Hide logo initially ONLY on homepage */
.home .brand {
    opacity: 0;
    transform: translateY(-6px);
}

/* Show logo when scrolled */
.site-header.is-scrolled .brand {
    opacity: 1;
    transform: none;
}


/* =========================================================
NAVIGATION
========================================================= */

.nav {
    display: flex;
    gap: 18px;
}

.nav a {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 14px;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.2s ease;
}

.nav a:hover {
    background: rgba(255,255,255,0.15);
}


/* =========================================================
SCROLLED STATE (All Pages)
========================================================= */

.site-header.is-scrolled {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.site-header.is-scrolled .nav a {
    color: var(--light-gray);
    border: 1px solid rgba(132,133,134,0.55);
}

.site-header.is-scrolled .nav a:hover {
    background: rgba(132,133,134,0.10);
}


/* =========================================================
HOMEPAGE HERO (Full Height)
========================================================= */

.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0.15)
    );
}


/* =========================================================
GENERIC SECTIONS
========================================================= */

.section {
    padding: 80px 0;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 12px;
    color: var(--light-gray);
}

.section p {
    color: #555;
    font-size: 16px;
}


/* =========================================================
FOOTER
========================================================= */

.footer {
    background: var(--primary-gray);
    color: #ffffff;
    padding: 25px 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    width: 180px;
    margin: 15px 0;
}

.footer-col h4 {
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
    color: #ddd;
    font-size: 15px;
}


/* ================= SOCIAL ================= */

.social {
    margin-top: 15px;
    display: flex;
    gap: 12px;
}

.social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: 0.3s ease;
}

.social a:hover {
    background: #ffffff;
    color: var(--primary-gray);
}


/* ================= FOOTER BOTTOM ================= */

.footer-bottom {
    margin-top: 25px;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}


/* =========================================================
WHATSAPP FLOAT
========================================================= */

.whatsapp-float {
    position: fixed;
    left: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}


/* =========================================================
RESPONSIVE
========================================================= */

@media (max-width: 980px) {

    .two-col {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bottom-flex {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

}

@media (max-width: 640px) {

    .nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav a {
        font-size: 13px;
        padding: 7px 12px;
    }

}