/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Palette */
    --primary: #0f172a;       /* Dark Navy */
    --primary-light: #1e293b; /* Lighter Navy */
    --accent: #d4af37;        /* Metallic Gold */
    --accent-soft: #fbf5e6;   /* Cream/Gold tint */
    --brand-blue: #2563eb;    /* Action Blue */

    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-font {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

a { text-decoration: none; }

/* =========================================
   2. BUTTONS
   ========================================= */
.btn-luxury {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-luxury:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-gold-outline {
    border: 1px solid var(--accent);
    color: #bfa140;
    background: transparent;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-gold-outline:hover {
    background: var(--accent);
    color: white;
}

/* =========================================
   3. HEADER & MEGA MENU (THE CRITICAL FIXES)
   ========================================= */
.gmc-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: #fff;
}

.gmc-topbar {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
}

.gmc-toplink {
    color: var(--text-main);
    opacity: .88;
    font-weight: 600;
}
.gmc-toplink:hover { opacity: 1; text-decoration: underline; color: var(--primary); }

.gmc-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: .62rem .9rem;
    border-radius: 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(2,6,23,.12);
    border: 1px solid rgba(212,175,55,.28);
    display: inline-flex; align-items: center; justify-content: center;
    transition: filter 0.2s;
}
.gmc-btn-primary:hover { filter: brightness(1.05); color: #fff; }

.gmc-icon-btn {
    border: 1px solid rgba(2,6,23,.10);
    background: #fff;
    border-radius: 12px;
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 20px rgba(2,6,23,.06);
    transition: transform .15s ease;
}
.gmc-icon-btn:hover { transform: translateY(-1px); }

/* --- Navbar Logic --- */
.gmc-navbar {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-bottom: 1px solid rgba(2,6,23,.06);
}

/* FIX 1: Container sets the width context */
.gmc-navbar .container { position: relative; }

.gmc-nav { gap: .25rem; align-items: stretch; }

/* FIX 2: Static Item allows mega menu to break out */
.gmc-item { position: static; }

.gmc-link {
    display: inline-flex; align-items: center;
    height: 54px; padding: 0 14px;
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.01em;
    position: relative;
    transition: all 0.2s;
}
.gmc-link:hover { background: rgba(2,6,23,.04); color: var(--brand-blue); }

/* Gold Underline Effect */
.gmc-link::after {
    content:""; position:absolute; left: 14px; right: 14px; bottom: 10px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: opacity 0.2s;
}
.gmc-item.is-open > .gmc-link::after, .gmc-link:hover::after { opacity: 1; }

/* FIX 3: Full Width Mega Menu */
.gmc-mega {
    position: absolute;
    left: 0;
    width: 100%; /* Spans full container */
    top: 100%;
    padding-top: 12px;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}
.gmc-item.is-open > .gmc-mega {
    opacity: 1; visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.gmc-mega-inner {
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(2,6,23,.08);
    box-shadow: 0 24px 60px rgba(2,6,23,.16);
    padding: 25px;
    position: relative; overflow: hidden;
}
.gmc-mega-inner::before {
    content:""; position:absolute; inset:0; pointer-events:none;
    background: radial-gradient(circle at 10% 0%, rgba(212,175,55,0.05), transparent 40%);
}

.gmc-col-title {
    color: var(--primary);
    font-weight: 900;
    margin-bottom: 0.8rem;
}

.gmc-links a {
    display:block;
    color: rgba(15,23,42,.85);
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s;
}
.gmc-links a:hover {
    background: rgba(37,99,235,0.05);
    color: var(--brand-blue);
    padding-left: 14px;
}

/* Desktop Search */
.gmc-desktop-search { display:flex; align-items:center; padding-left: 10px; }
.gmc-search-form { display:flex; align-items:center; gap: 8px; height: 54px; }
.gmc-search-form input {
    height: 40px; width: 260px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 0 15px; outline: none;
    background: #fff;
    transition: border-color 0.2s;
}
.gmc-search-form input:focus { border-color: var(--brand-blue); }
.gmc-search-form button { background: none; border: none; color: var(--primary); }

/* =========================================
   4. MOBILE MENU (OFF-CANVAS)
   ========================================= */
.gmc-mob-overlay {
    position: fixed; inset: 0;
    background: rgba(2,6,23,.45);
    backdrop-filter: blur(4px);
    z-index: 1099;
}
.gmc-mob-panel {
    position: fixed; top: 0; right: 0;
    width: min(420px, 92vw); height: 100vh;
    background: #fff;
    z-index: 1100;
    transform: translateX(110%);
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
}
.gmc-mob-panel.is-open { transform: translateX(0); }

.gmc-mob-top {
    padding: 20px;
    border-bottom: 1px solid rgba(2,6,23,.08);
    display: flex; justify-content: space-between; align-items: center;
}
.gmc-mob-brand { font-weight: 900; color: var(--primary); font-size: 1.2rem; }
.gmc-mob-body { padding: 20px; overflow-y: auto; }

.gmc-mob-cta {
    display: flex; justify-content: center; align-items: center;
    color:#fff; background: var(--primary);
    border-radius: 12px; padding: 12px;
    font-weight: 700; margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.2);
}

.gmc-acc-btn {
    width: 100%; text-align: left;
    padding: 14px 12px; border-radius: 12px;
    border: 1px solid rgba(2,6,23,.08);
    background: #fff; font-weight: 700; color: var(--text-main);
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.gmc-acc-btn span { opacity: .6; transition: transform .2s; }
.gmc-acc-btn[aria-expanded="true"] span { transform: rotate(180deg); }

.gmc-acc-panel {
    margin: 0 0 12px; padding: 10px 10px 10px 20px;
    border-left: 2px solid var(--accent);
    background: #f8fafc; border-radius: 0 0 12px 12px;
}
.gmc-mob-link {
    display: block; padding: 8px 0;
    color: var(--text-muted); font-weight: 600;
}
.gmc-mob-link:hover { color: var(--brand-blue); }

/* =========================================
   5. PAGE CONTENT (HERO, FEATURES, NEWS)
   ========================================= */

/* Hero */
.hero-section {
    padding: 4rem 0 5rem;
    background: radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.1), transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(15, 23, 42, 0.05), transparent 40%);
    overflow: hidden;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary);
}
.hero-img-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(-1deg);
    transition: transform 0.5s ease;
}
.hero-img-container:hover { transform: rotate(0deg); }
.hero-img-container img {
    width: 100%; height: auto; object-fit: cover; min-height: 300px;
}
.hero-badge {
    position: absolute; bottom: 20px; left: -20px;
    background: white; padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 10px; z-index: 2;
}

/* Features */
.features-section { background: #fff; position: relative; }
.feature-card-pro {
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 18px; padding: 26px 28px;
    border: 1px solid rgba(2, 6, 23, .06);
    box-shadow: 0 10px 30px rgba(2, 6, 23, .06);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative; overflow: hidden;
}
.feature-card-pro:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(2, 6, 23, .10);
    border-color: rgba(212,175,55,.22);
}
.icon-pill {
    width: 54px; height: 54px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid rgba(2, 6, 23, .06);
    box-shadow: 0 10px 20px rgba(2, 6, 23, .06);
    margin-bottom: 18px; color: var(--primary);
}
.icon-pill svg { width: 22px; height: 22px; }
.feature-title { font-weight: 800; margin-bottom: 8px; color: var(--text-main); }
.feature-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; margin-bottom: 16px; }
.feature-link {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 800; color: var(--brand-blue);
}
.feature-link .arrow { transition: transform .2s ease; }
.feature-card-pro:hover .feature-link .arrow { transform: translateX(4px); }

/* News / Bento Grid */
.bento-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 768px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) {
    .bento-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; }
    .bento-main { grid-column: 1 / 2; grid-row: 1 / 3; }
}

.news-card {
    background: white; border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column;
    height: 100%; transition: all 0.3s;
}
.news-card:hover { box-shadow: var(--shadow-md); }
.news-img { height: 200px; width: 100%; object-fit: cover; background: #e2e8f0; }
.bento-main .news-img { height: 350px; }
.news-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.tag {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--accent); margin-bottom: 0.5rem;
}

.stat-box {
    background: linear-gradient(145deg, var(--primary), #1e293b);
    color: white; border-radius: var(--radius-md); padding: 2rem;
    text-align: center; height: 100%;
}
.stat-number {
    font-size: 2.5rem; font-weight: 800; color: var(--accent);
    line-height: 1; margin-bottom: 0.5rem;
}

/* Footer */
footer { background: var(--primary); color: #94a3b8; padding-top: 4rem; padding-bottom: 2rem; }
footer h5 { color: white; margin-bottom: 1.5rem; }
footer a { color: #94a3b8; margin-bottom: 0.75rem; display: block; transition: 0.2s; }
footer a:hover { color: var(--accent); padding-left: 5px; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 3rem 0; }


/* Sidebar Panel Slide-out Logic */
.gmc-mob-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.gmc-mob-panel.is-active {
    right: 0;
}

.gmc-mob-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 45, 0.75);
    z-index: 9999;
    display: none;
}

.gmc-mob-overlay.is-active {
    display: block;
}

/* Responsive Scaling for Layout Modules */
@media (max-width: 991px) {
    /* Stack Split-Canvas Modules */
    .row.g-0 {
        flex-direction: column !important;
    }
    
    .col-lg-6 {
        width: 100% !important;
    }

    /* Maintain Image Visibility when stacked */
    .vh-60, .split-canvas-img, [style*="min-height: 500px"] {
        min-height: 380px !important;
        height: auto !important;
    }

    /* Scale Down Large Headings */
    .display-2 { font-size: 2.75rem !important; }
    .display-3 { font-size: 2.25rem !important; }
    .display-5 { font-size: 1.85rem !important; }

    /* Adjust Spacing */
    .p-lg-10 {
        padding: 3.5rem 1.5rem !important;
    }
    
    /* Bento Grid becomes a single column scroll */
    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
}

/* Typography Consistency */
.text-navy { color: #001a2d !important; }
.bg-navy { background-color: #001a2d !important; }

.split-canvas-img {
    width: 100%;
    height: 100%;
    /* Change contain to cover to fill the entire left side */
    object-fit: cover !important; 
    /* Ensure there is no manual padding pushing the SVG away from edges */
    padding: 0 !important; 
}