/* =====================================
    RESET & GLOBAL FIXES
===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* Fixes the left-to-right moving issue */
    scroll-behavior: smooth;
}

body {
    /* Updated to Syne */
    font-family: 'Syne', sans-serif;
    font-weight: 400; /* Standard weight */
    line-height: 1.6;
    color: #0A3616;
    
    /* MULTI-LAYER ARCHITECTURAL BACKGROUND */
    background-color: #fdfdfd; 
    background-image: 
        /* Layer 1: Large Blueprint Grid */
        linear-gradient(to right, rgba(0,0,0,0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.015) 1px, transparent 1px),
        /* Layer 2: Subtle Micro-Texture */
        radial-gradient(rgba(10, 54, 22, 0.02) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px;
    background-attachment: fixed; /* Parallax effect for depth */
    
    -webkit-font-smoothing: antialiased; /* Makes Syne look crisper on Mac/iOS */
    -moz-osx-font-smoothing: grayscale;
}

/* Optional: Syne looks especially good on headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700; /* Bold weight for impact */
}

/* =====================================
   VARIABLES
===================================== */
:root {
    --primary-blue: #CD9933;
    --dark-navy: #0A3616;
    --hover-blue: #CD9933;
    --white: #ffffff;
}



/* =============== LUXURY SPLASH SCREEN / PRELOADER =============== */
.kgs-splash {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #0A3616; /* Deep Forest Green */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
}

.kgs-splash-content {
    text-align: center;
}

.kgs-splash-logo {
    width: 250px;
    height: auto;
    filter: brightness(0) invert(1); /* Ensure it is high-contrast white */
    opacity: 0;
    transform: scale(0.9);
    animation: splashReveal 1.5s ease forwards;
}

@keyframes splashReveal {
    0% { opacity: 0; transform: scale(0.85); filter: blur(10px) brightness(0) invert(1); }
    100% { opacity: 1; transform: scale(1); filter: blur(0px) brightness(0) invert(1); }
}

.kgs-splash.exit {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* =====================================
   HEADER & NAVIGATION
===================================== */
/* =====================================
    HEADER WRAPPER
===================================== */
.custom-header {
    position: fixed;
    top: 15px;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 0 15px;
}

/* =====================================
    NAV CONTAINER
===================================== */
.nav-container {
    max-width: 1250px;
    margin: 0 auto;
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    border-radius: 60px;
    box-shadow: 0 12px 30px rgba(33, 49, 59, 0.12);
}

/* =====================================
    LOGO
===================================== */
.logo img {
    height: 70px;
    display: block;
}

/* =====================================
    DESKTOP MENU
===================================== */
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--dark-navy);
    font-size: 16px;
    font-weight: 700;
    padding: 16px 10px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.nav-menu li a:hover {
    color: var(--primary-blue);
}

/* =====================================
    DROPDOWN BASICS
===================================== */
.dropdown,
.sub-dropdown {
    position: relative;
}

.dropdown-content,
.sub-dropdown-content {
    position: absolute;
    background: var(--white);
    min-width: 260px;
    border-radius: 16px;
    padding: 12px 0;
    list-style: none;
    box-shadow: 0 20px 40px rgba(33, 49, 59, 0.14);
    border: 1px solid #f1f3f6;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.dropdown-content {
    top: calc(100% + 10px);
    left: 0;
}

.sub-dropdown-content {
    top: 0;
    left: 100%;
    margin-left: 8px;
}

/* =====================================
    DROPDOWN HOVER UPDATES (REQUESTED)
===================================== */
.dropdown-content li a,
.sub-dropdown-content li a {
    padding: 12px 20px;
    margin: 0 10px;      /* Adds spacing so the background doesn't hit the border */
    border-radius: 10px; /* Matches the rounded UI theme */
    color: var(--dark-navy);
    transition: all 0.2s ease;
}

/* Changed hover from text-only to Background + White Text */
.dropdown-content li a:hover,
.sub-dropdown-content li a:hover {
    background-color: #CD9933; /* Matches your login button blue */
    color: #ffffff !important;
}

/* Ensure arrows inside dropdown turn white on hover */
.dropdown-content li a:hover .side-arrow,
.dropdown-content li a:hover .arrow {
    color: #ffffff;
}

/* Desktop Visibility */
@media (min-width: 1101px) {
    .dropdown:hover > .dropdown-content,
    .sub-dropdown:hover > .sub-dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Hover bridge */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
}

.sub-dropdown::after {
    content: "";
    position: absolute;
    top: 0;
    left: 100%;
    width: 15px;
    height: 100%;
}

.arrow,
.side-arrow {
    font-size: 10px;
    pointer-events: none;
}

/* =====================================
    BUTTONS
===================================== */
.header-btns {
    display: flex;
    align-items: center;
    gap: 18px;
}

.login-btn {
    background-color: #CD9933;
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.login-btn:hover {
    background-color: #0A3616;
}

.mobile-login {
    display: none;
}

/* =====================================
    MOBILE
===================================== */
@media (max-width: 1100px) {

    .nav-container {
        padding: 10px 20px;
        border-radius: 40px;
    }

    .logo img {
        height: 60px;
    }

    .desktop-btn {
        display: none;
    }

    .mobile-login {
        display: block;
        padding: 15px 24px;
    }

    .mobile-btn {
        width: 100%;
        text-align: center;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        background: var(--white);
        width: 95%;
        padding: 20px 0;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(33, 49, 59, 0.18);
        display: none;
        max-height: 75vh;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        padding: 16px 24px;
        border-bottom: 1px solid #f4f4f4;
        justify-content: space-between;
    }

    .dropdown-content,
    .sub-dropdown-content {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        width: 100%;
        background: #fafcff;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--primary-blue);
        border-radius: 0;
        padding-left: 12px;
        margin: 0; /* Remove the desktop margin for mobile layout */
    }

    .dropdown.active > .dropdown-content,
    .sub-dropdown.active > .sub-dropdown-content {
        display: block;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .bar {
        width: 24px;
        height: 3px;
        background: var(--dark-navy);
        transition: 0.3s ease;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
/* =====================================
   FOOTER
===================================== */
.balanced-footer {
    background-color: #0A3616; /* KGS Dark Green */
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(205, 153, 51, 0.05) 1px, transparent 0);
    background-size: 30px 30px; /* Subtle pattern */
    font-family: "Raleway", sans-serif;
    padding: 30px 0 10px 0;
    border-top: 4px solid #CD9933; /* Gold separator line */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Classic Luxury Luxury Pinstripe Pattern */
.balanced-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    
    /* Fine gold-tinted pinstripes with slightly higher visibility */
    background: 
        repeating-linear-gradient(
            45deg,
            rgba(205, 153, 51, 0.07) 0px,
            rgba(205, 153, 51, 0.07) 1px,
            transparent 1px,
            transparent 12px
        );
    background-color: #0A3616; /* KGS Dark Green Base */
    
    /* Inner shadow for depth and focus on content */
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.4);
    
    z-index: 1;
}

.footer-main-container, .footer-legal-bar {
    position: relative;
    z-index: 2;
}

.footer-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Headings */
.footer-heading {
    font-size: 18px;
    font-weight: 700;
    color: #CD9933; /* Gold heading */
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Links and Lists */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a,
.info-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-list a:hover {
    color: #CD9933;
    padding-left: 5px; /* Subtle interaction nudge */
}

/* Contact and Address Styling */
.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-link i {
    font-size: 16px;
    color: #CD9933; /* Gold icons */
    width: 20px;
}

/* Social Icon Styling */
.social-icon-group {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.icon-circle:hover {
    background-color: #CD9933;
    color: #fff;
    border-color: #CD9933;
    transform: translateY(-5px);
}

@keyframes floatEffect {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Legal Bar styling */
.footer-legal-bar {
    margin-top: 40px;
    padding: 10px 40px 10px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Developer Tag + Logo */
.developer-tag {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    transition: 0.3s ease;
    filter: brightness(0) invert(1); /* Make logo white for dark bg */
}

.brand-logo:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Copyright */
.copyright-tag {
    text-align: right;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .footer-main-container {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-column {
        flex: 1 1 45%;
    }
}

@media (max-width: 600px) {
    .footer-main-container {
        flex-direction: column;
    }

    .legal-container {
        flex-direction: column;
        align-items: center; /* This centers the column children */
        gap: 15px;
        text-align: center;
    }

    .developer-tag {
        justify-content: center; /* This centers text and logo together */
    }

    .copyright-tag {
        text-align: center;
    }
}