/* =====================================================
   DESIGN TOKENS (SYSTEM-WIDE)
===================================================== */
:root {
    --primary: #0b5ed7;
    --primary-dark: #084298;
    --secondary: #6c757d;

    --text-dark: #212529;
    --text-muted: #6c757d;

    --bg-light: #f8f9fa;
    --bg-white: #ffffff;

    --border: #dee2e6;
    --radius: 8px;
}

/* =====================================================
   GLOBAL RESET & BASE
===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
}

html,
body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

main {
    min-height: calc(100vh - 140px);
}

/* =====================================================
   BRAND / LOGO
===================================================== */
.brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-logo {
    height: 60px;
    width: auto;
    max-height: 60px !important;   
    flex-shrink: 0;     
    transition: transform 0.2s ease;
}


.brand-logo:hover {
    transform: scale(1.05);
    /* Subtle hover effect */
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.brand-sub {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-top: -2px;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* =====================================================
   BURGER MENU (MOBILE)
===================================================== */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s ease;
}

/* =====================================================
   MOBILE SLIDE DRAWER
===================================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding-top: 6rem;
    /* Increased spacing for logo */
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 1100;
}

.mobile-drawer a {
    padding: 1rem 1.5rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-drawer.open {
    transform: translateX(0);
}

/* =====================================================
   OVERLAY
===================================================== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 1050;
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 3rem 1rem 2rem;
    text-align: center;
}

.footer-check {
    color: var(--primary);
    margin-right: 0.5rem;
    font-weight: bold;
    display: inline-block;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* Top grid: logo + messages */
.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

/* Logo wrapper */
.footer-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    height: 180px;
    width: auto;
    transition: transform 0.2s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

/* Footer messages next to logo */
.footer-messages {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* align left in large screens */
    gap: 0.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Bottom line across full width */
.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-dark);
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
}


/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    /* Hide desktop nav, show burger */
    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    /* Adjust logo size on mobile */
    .brand-logo {
        height: 50px;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .brand-sub {
        font-size: 0.75rem;
    }

    .mobile-drawer {
        padding-top: 5rem;
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-messages {
        align-items: center;
    }

    .footer-logo {
        height: 160px;
    }

    .footer-brand-name {
        font-size: 1.1rem;
    }
}