/* nav.css (GLOBAL & NAVIGATION STYLES) */

/* GLOBAL VARIABLES & TYPOGRAPHY  */
:root {
    --theme-main: #272945;       
    --theme-accent: #D4AF37;     
    --theme-dark: #1a1b2e;
    --theme-light: #f8f9fa;
    --text-dark: #222222;
    --text-body: #4a4a4a;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
    --font-trajan: 'Cinzel', serif; 
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: hidden; width: 100%; }
body { font-family: var(--font-sans); background-color: var(--theme-light); color: var(--text-body); line-height: 1.6; }
a { text-decoration: none; transition: 0.3s ease; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--text-dark); }

/* SYSTEMATIC FLEX UTILITIES */
.flex-center { display: flex; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; }
.flex-start { display: flex; justify-content: flex-start; }
.flex-end { display: flex; justify-content: flex-end; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.wrap-flex { flex-wrap: wrap; }
.gap-sm { gap: 10px; }
.gap-md { gap: 20px; }
.gap-lg { gap: 40px; }
.h-100 { height: 100%; }
.mt-sm { margin-top: 15px; }
.mt-lg { margin-top: 50px; }
.mb-md { margin-bottom: 25px; }
.mb-lg { margin-bottom: 50px; }

/*LAYOUT UTILITIES */
.content-wrapper { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.block-padding { padding: 100px 0; }
.bg-white { background-color: #ffffff; }
.bg-light { background-color: #f9f9fa; }
.text-center { text-align: center; }
.hide-on-mobile { display: none !important; }
@media (min-width: 1200px) { .hide-on-mobile { display: flex !important; } .hide-on-desktop { display: none !important; } }

/*ELITE BUTTONS */
.action-btn { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem; font-weight: 700; padding: 16px 35px; transition: 0.4s ease; display: inline-flex; justify-content: center; align-items: center; white-space: nowrap; cursor: pointer; border-radius: 50px; }
.elite-solid-btn { background-color: var(--theme-accent); color: var(--theme-main); border: 1px solid var(--theme-accent); }
.elite-solid-btn:hover { background-color: transparent; color: white; border-color: white; }
.elite-outline-btn { background-color: transparent; color: white; border: 1px solid white; }
.elite-outline-btn:hover { background-color: white; color: var(--theme-main); }
.small-btn { padding: 10px 25px; font-size: 0.8rem; }

/*TOP STRIP*/
.top-tagline i { font-size: 0.8rem; margin-top: -2px; }
.elite-text { font-weight: 700; letter-spacing: 1.5px; }
.top-strip { background-color: var(--theme-dark); color: #a0aec0; font-size: 0.75rem; padding: 10px 0; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.top-strip a { color: #a0aec0; }
.top-strip a:hover { color: var(--theme-accent); }

/* MAIN NAVIGATION */
.main-navigation { transition: all 0.5s ease; padding: 20px 0; background: transparent; position: absolute; width: 100%; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1); }
.main-navigation.is-scrolled { position: fixed; top: 0; background: var(--theme-main); padding: 15px 0; border-bottom: none; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

/* TYPOGRAPHIC LOGO & SWAP LOGIC */
.brand-logo { z-index: 1050; flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.logo-text-wrapper { display: flex; flex-direction: column; line-height: 1; justify-content: center; text-align: left; }
.logo-title-trajan { font-family: var(--font-trajan); font-size: 1.4rem; font-weight: 900; color: #ffffff; letter-spacing: 2px; transition: color 0.4s ease; }
.logo-subtitle-sans { font-family: var(--font-sans); font-size: 0.6rem; font-weight: 400; color: var(--theme-accent); letter-spacing: 3px; text-transform: uppercase; margin-top: 2px; }

.logo-img-wrapper { position: relative; height: 40px; width: 40px; }
.logo-img-wrapper img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; object-fit: contain; transition: opacity 0.4s ease-in-out; border-radius: 0; }
.logo-dark { opacity: 0; }
.logo-light { opacity: 1; }

.brand-logo:hover .logo-title-trajan { color: var(--theme-accent); }
.brand-logo:hover .logo-light { opacity: 0; }
.brand-logo:hover .logo-dark { opacity: 1; }
.main-navigation.is-scrolled .logo-title-trajan { color: white; }
.main-navigation.is-scrolled .logo-light { opacity: 0; }
.main-navigation.is-scrolled .logo-dark { opacity: 1; }
.main-navigation.is-scrolled .brand-logo:hover .logo-title-trajan { color: var(--theme-accent); }
.main-navigation.is-scrolled .brand-logo:hover .logo-dark { opacity: 0; }
.main-navigation.is-scrolled .brand-logo:hover .logo-light { opacity: 1; }

/* Navigation Links */
.nav-anchor { font-family: var(--font-sans); color: white; font-weight: 400; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; padding: 10px 0; position: relative; }
.nav-anchor::after { content: ''; position: absolute; width: 0; height: 1px; background: var(--theme-accent); bottom: 5px; left: 0; transition: width 0.3s ease; }
.nav-anchor:hover::after { width: 100%; }

/* Desktop Menu */
@media (min-width: 1200px) {
    .nav-menu-wrapper { display: flex; flex-grow: 1; justify-content: flex-end; align-items: center; margin-left: 50px; gap: 40px; }
    .nav-list { gap: 30px; }
    .dropdown-panel { position: absolute; left: 0; width: 100%; padding: 50px 0; background: var(--theme-main); top: 100%; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.4s ease; border-top: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
    .has-dropdown:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
    .dropdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 30px; }
    .dropdown-col { border-right: 1px solid rgba(255,255,255,0.05); padding-right: 40px; }
    .dropdown-col:last-child { border-right: none; }
    .dropdown-header { font-family: var(--font-serif); font-size: 1.1rem; color: var(--theme-accent); margin-bottom: 20px; }
    .dropdown-link { display: block; color: #a0aec0; padding: 8px 0; font-size: 0.9rem; transition: 0.3s; }
    .dropdown-link:hover { color: #ffffff; padding-left: 5px; }
}

/* Mobile Menu */
.mobile-toggle-btn { width: 30px; height: 20px; background: transparent; border: none; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; z-index: 1050; }
.mobile-toggle-btn .bar { width: 100%; height: 2px; background-color: white; transition: 0.3s; }
.mobile-toggle-btn.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-toggle-btn.is-active .bar:nth-child(2) { opacity: 0; }
.mobile-toggle-btn.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1199px) { 
    .main-navigation { background: var(--theme-main); border: none; }
    .nav-menu-wrapper { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--theme-main); padding: 30px; border-top: 1px solid rgba(255,255,255,0.1); height: 80vh; overflow-y: auto; }
    .nav-menu-wrapper.is-open { display: flex; }
    .nav-list { flex-direction: column; width: 100%; align-items: flex-start; }
    .nav-list-item { width: 100%; }
    .nav-anchor { display: block; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; }
    .dropdown-panel { padding-left: 15px; border-left: 1px solid rgba(255,255,255,0.1); margin-top: 10px; margin-bottom: 20px;}
    .dropdown-header { font-family: var(--font-serif); color: var(--theme-accent); margin-top: 15px; margin-bottom: 10px; font-size: 1.1rem;}
    .dropdown-link { display: block; color: #a0aec0; padding: 8px 0; }
}

/* FOOTER  */
.site-footer-elite { background: var(--theme-main); color: #cbd5e1; padding: 100px 0 30px; font-family: var(--font-sans); }
.footer-elite-grid { display: grid; grid-template-columns: 1fr; gap: 50px; margin-bottom: 80px; }
@media (min-width: 768px) {
    .footer-elite-grid {
        display: flex;
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) { .footer-elite-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }

.footer-heading-serif { font-family: var(--font-serif); font-size: 1.3rem; color: #ffffff; margin-bottom: 25px; font-weight: 400; }
.footer-desc { font-size: 1rem; line-height: 1.8; margin-bottom: 25px; max-width: 350px; }
.footer-list li { margin-bottom: 12px; }
.footer-list a { color: #a0aec0; transition: 0.3s; }
.footer-list a:hover { color: var(--theme-accent); }
.footer-address { font-style: normal; color: #a0aec0; line-height: 1.8; }
.footer-side-logo { height: 50px; width: auto; object-fit: contain; margin-right: 15px; }
.footer-brand-name { font-size: 1.4rem; font-family: var(--font-trajan); letter-spacing: 2px; }
.footer-bottom-elite { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; font-size: 0.85rem; }

/* FOOTER CENTERING FIX jusko d na natapos */
@media (max-width: 992px) {
    /* sinenter ko ang kabuuan ng grid sa mobile */
    .footer-elite-grid {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* center kodin yung logo and text nung CU */
    .footer-logo-text {
        justify-content: center;
        width: 100%;
    }

    /* centering decription paragraph*/
    .footer-desc {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* picture fixing */
    .footer-executives-wrapper {
        display: flex;
        justify-content: center; /* center ang laman ng wrapper */
        width: 100%;
        margin-top: 20px;
    }

    .footer-executives-img {
        margin-left: auto; 
        margin-right: auto;
        display: block; /* para gumana ang margin auto */
        max-width: 250px; /* Saktong laki para sa phone */
    }

    /*center  mga address at listahan */
    .footer-address, .footer-list {
        text-align: center;
    }
}

/* FOOTER EXECUTIVES IMAGE */
.footer-executives-wrapper {
    margin-top: 25px;
}

.footer-executives-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0.85; 
    transition: opacity 0.3s ease;
}

.footer-executives-img:hover {
    opacity: 1; 
}

/* Responsive adjustments para sa CP */
@media (max-width: 767px) {
    .footer-executives-wrapper {
        display: flex;
        justify-content: center; 
        margin-top: 30px;
    }
}