/* ==========================================================================
   GLOBAL VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    --primary-blue: #19265B;
    --primary-blue-dark: #0d1535;
    --accent-gold: #C08829;
    --accent-gold-hover: #a37220;
    
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #ffffff;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    
    --font-main: 'Plus Jakarta Sans', 'Leelawadee', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(25, 38, 91, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(25, 38, 91, 0.1);
    --radius-md: 10px;
    --transition: all 0.3s ease;
}

/* Base Reset & Prevent Horizontal Scroll */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Stops horizontal scrolling site-wide */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    position: relative;
}

/* Responsive Media Reset */
img, picture, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}


/* ==========================================================================
   GLOBAL HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--primary-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    width: 100%;
    /* Golden line running down the bottom of the navbar */
    border-bottom: 2px solid var(--accent-gold);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo with Thicker Curved Golden Outline */
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px; /* Tight fit around the logo image */
    border: 3px solid var(--accent-gold); /* Thicker golden outline */
    border-radius: 12px; /* Smooth curved edges hugging the logo */
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.brand-logo:hover {
    border-color: #e5ab41;
    box-shadow: 0 0 14px rgba(192, 136, 41, 0.4);
}

.brand-logo img {
    height: 44px;
    width: auto;
    display: block;
    border-radius: 8px; /* Curves logo corners inside the outer border */
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.mobile-nav-header {
    display: none; /* Desktop hidden */
}

.main-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-gold);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--accent-gold);
    color: var(--text-light) !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-md);
    font-weight: 600 !important;
    text-align: center;
}

.nav-cta:hover {
    background-color: var(--accent-gold-hover);
}

.nav-cta::after {
    display: none !important;
}

/* Mobile Nav Toggle Button */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

.nav-overlay {
    display: none;
}

/* ==========================================================================
   MOBILE SIDE-DRAWER MENU (SLIDES FROM LEFT)
   ========================================================================== */
@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    /* Dark background overlay */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(3px);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    /* Left Slide Drawer */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background-color: var(--primary-blue-dark);
        border-right: 2px solid var(--accent-gold);
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
        gap: 0;
        z-index: 1002;
        transform: translateX(-100%); /* Hides off-screen left */
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .main-nav.show {
        transform: translateX(0); /* Slides smoothly in from left */
    }

    /* Mobile Drawer Header */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 16px;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(192, 136, 41, 0.3);
    }

    .mobile-nav-title {
        color: var(--accent-gold);
        font-weight: 700;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .mobile-close {
        background: none;
        border: none;
        color: var(--text-light);
        font-size: 1.3rem;
        cursor: pointer;
    }

    /* Demarcated Mobile Menu Items */
    .main-nav a {
        padding: 14px 8px;
        border-bottom: 1px solid rgba(192, 136, 41, 0.15); /* Demarcation lines */
        font-size: 1rem;
        display: block;
    }

    .main-nav a::after {
        display: none; /* Disable underline effect on mobile */
    }

    .main-nav a.nav-cta {
        margin-top: 20px;
        border-bottom: none;
    }
}