﻿
.main-content-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-page); /* Ensures no grey bleeding */
}

/* ============================================================
                           CONTAINER FOR MAIN CONTENT
                           ============================================================ */
.content-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    flex: 1;
}

.topbar-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================================
                           WHITESPACE KILLERS
                           ============================================================ */

/* Collapses the gaps if banners are missing */
.layout-banners {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 1.5rem;
}

    /* If banners exist, remove the top padding so the first banner touches the SubNav */
    .layout-banners:has(> :first-child) {
        padding-top: 0;
    }

    .layout-banners:empty {
        display: none;
    }

    /* Ensure the slider itself has no top margin pushing it down */
    .layout-banners > :first-child {
        margin-top: 0 !important;
    }

/* Smooths out spacing below banners */
.page-content-flow {
    display: flex;
    flex-direction: column;
}

.layout-banners.banners-hidden {
    display: none;
}

.banners-toggle-row {
    display: flex;
    justify-content: flex-start;
    padding-left: 0.25rem;
    /* Default: Tight gap (because banners usually sit right above) */
    padding-top: 0;
    padding-bottom: 0.5rem;
    margin: 0;
}

/* Only add the breathing room below the SubNav if the banners are hidden/empty */
.layout-banners.banners-hidden + .banners-toggle-row,
.layout-banners:empty + .banners-toggle-row {
    padding-top: 1rem;
}

.banners-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

    .banners-toggle-btn:hover {
        background: var(--bg-hover);
        color: var(--text);
        border-color: var(--accent);
    }

/* ============================================================
                           MODERN INFO BANNER (Centered)
                           ============================================================ */
.info-banner-section {
    padding: 2rem 2rem;
    margin-top: 2rem;
    position: relative;
}

    /* Light Mode Background */
    .info-banner-section.theme-light {
        background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-muted) 100%);
        border-top: 1px solid transparent;
        border-image: linear-gradient(90deg, transparent, var(--border-strong), transparent) 1;
    }

    /* Dark Mode Background */
    .info-banner-section.theme-dark {
        background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-surface) 100%);
        border-top: 1px solid transparent;
        border-image: linear-gradient(90deg, transparent, var(--border), transparent) 1;
    }

.info-banner-inner {
    max-width: 1100px; /* Reduced slightly so they don't stretch too far on ultra-wide screens */
    margin: 0 auto;
    display: grid;
    /* This allows the cards to be flexible between 280px and 1fr (full width) */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
    gap: 24px; /* Slightly larger gap for better breathing room */
}

/* The Glass Card */
.modern-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    width: 100%; /* Ensures it fills the grid column */
    background: var(--bg-surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

    /* Cerulean Hover Effects */
    .modern-card:hover {
        transform: translateY(-5px);
        border-color: var(--accent);
        box-shadow: 0 12px 24px var(--accent-soft), 0 4px 10px rgba(23, 107, 135, 0.1);
    }

/* Icon Layout */
.modern-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.modern-card:hover .modern-icon {
    transform: scale(1.1);
}

.modern-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.modern-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    overflow-wrap: anywhere;
}

.modern-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

    .modern-links li {
        margin-bottom: 0.6rem;
    }

    .modern-links a {
        color: var(--text-muted);
        text-decoration: none !important;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        display: inline-block;
        padding: 4px 12px;
        border-radius: 6px;
    }

        /* Soft Cerulean Highlight */
        .modern-links a:hover,
        .modern-link:hover {
            color: var(--accent) !important;
            background-color: var(--accent-soft) !important;
            text-decoration: none !important;
        }

.modern-link {
    color: var(--text-muted);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.modern-action {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Unified Button Style */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
}

    /* Cerulean Button Hover */
    .modern-btn:hover {
        background: var(--accent);
        color: var(--surface-inverse-text);
        border-color: var(--accent);
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(23, 107, 135, 0.2);
    }

/* ============================================================
                           FOOTER (Deep Cerulean Gradient)
                           ============================================================ */
.site-footer {
    font-size: .875rem;
    /* Deep Cerulean Gradient */
    background: linear-gradient(160deg, #176b87 0%, #0d4252 100%);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark mode override for footer */
[data-theme="dark"] .site-footer {
    background: linear-gradient(160deg, var(--bg-surface) 0%, #0a1114 100%);
    color: var(--text);
    border-top: 1px solid var(--border);
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-col {
    min-width: 0;
    text-align: center;
}

.footer-heading {
    color: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    letter-spacing: .01em;
}

.footer-line {
    margin: 0 0 .5rem 0;
    line-height: 1.5;
    color: inherit;
    opacity: 0.85;
}

.footer-muted {
    opacity: 0.6;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.15s;
}

    .footer-link:hover {
        opacity: 1;
        text-decoration: underline;
    }

/* Glowing social circles */
.footer-social {
    display: flex;
    gap: .75rem;
    margin-top: .5rem;
    justify-content: center;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: inherit;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

    .footer-social-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: #ffffff;
        transform: translateY(-2px);
    }

.footer-map {
    display: flex;
    justify-content: center;
}

    .footer-map iframe {
        display: block;
        width: 100%;
        max-width: 360px;
    }

[data-theme="dark"] .footer-map-iframe {
    filter: invert(90%) hue-rotate(180deg) contrast(110%);
}

/* Glowing payment pills */
.footer-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0;
    justify-content: center;
}

.pay-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}

/* ---- Brand Grid ---- */
.footer-brand-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/*
               Base pill style (Light mode sidebar uses this!)
               Applies theme colors so it works on white/grey backgrounds.
            */
.brand-mini-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-muted);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.6rem;
    transition: all 0.15s ease;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

    .brand-mini-badge:hover {
        border-color: var(--accent);
        color: var(--accent);
        background: var(--accent-soft);
    }

    .brand-mini-badge.is-active {
        background: var(--accent);
        color: var(--surface-inverse-text);
        border-color: var(--accent);
        box-shadow: 0 0 0 2px var(--accent-soft);
    }

/*
               Footer-specific pill style
               Forces white/translucent styling ONLY when inside .site-footer,
               because the footer has a deep cerulean gradient background.
            */
.site-footer .brand-mini-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
}

    .site-footer .brand-mini-badge:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        color: #ffffff;
    }

    .site-footer .brand-mini-badge.is-active {
        background: #ffffff;
        color: #0d4252;
        border-color: #ffffff;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
    }

        .site-footer .brand-mini-badge.is-active:hover {
            background: #f0f8fa;
            color: #0d4252;
            border-color: #f0f8fa;
        }

/* In dark mode the footer becomes a near-black surface, so the pills    */
/* can lean on the theme palette again.                                 */
[data-theme="dark"] .site-footer .brand-mini-badge {
    background: var(--bg-muted);
    color: var(--text-muted);
    border-color: var(--border);
}

    [data-theme="dark"] .site-footer .brand-mini-badge:hover {
        background: var(--accent-soft);
        border-color: var(--accent);
        color: var(--accent);
    }

    [data-theme="dark"] .site-footer .brand-mini-badge.is-active {
        background: var(--accent);
        color: var(--surface-inverse-text);
        border-color: var(--accent);
        box-shadow: 0 0 0 2px var(--accent-soft);
    }

.footer-courier {
    margin-bottom: 1rem;
    text-align: center;
}

.courier-logo-img {
    display: inline-block;
    max-width: 180px;
    width: 100%;
    height: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
}

/* ============================================================
                           BOTTOM LEGAL BAR
                           ============================================================ */
.site-footer-bottom {
    text-align: center;
    padding: 2rem 1rem;
    font-size: .8rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
}

    .footer-bottom-inner p {
        margin: 0 0 .5rem 0;
    }

    .footer-bottom-inner .footer-link {
        color: inherit;
        opacity: 0.7;
    }

        .footer-bottom-inner .footer-link:hover {
            opacity: 1;
        }


@media (max-width: 1100px) {
    .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .info-banner-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .content-container,
    .topbar-container {
        padding: 0 1rem;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;
        padding: 2rem 1rem 1rem;
    }

    .info-banner-section {
        padding: 2rem 1rem;
        margin-top: 2rem;
    }
}

/* ---- TOPBAR STYLES ---- */
.topbar-brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

    .topbar-brand-title:hover {
        color: var(--accent);
    }

@media (max-width: 900px) {
    .topbar-brand-title {
        font-size: 1.1rem;
    }
}

#sidenav a.nav-link,
#sidenav .link-text {
    font-family: 'Manrope', sans-serif !important;
}

#main-topbar .topbar-theme-toggle,
#main-topbar .topbar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-surface);
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: color .15s, border-color .15s, background-color .15s, transform .15s;
}

    #main-topbar .topbar-theme-toggle:hover,
    #main-topbar .topbar-icon-btn:hover {
        color: var(--accent);
        border-color: var(--accent);
        background: var(--accent-soft);
    }

    #main-topbar .topbar-theme-toggle:active,
    #main-topbar .topbar-icon-btn:active {
        transform: scale(.94);
    }

    #main-topbar .topbar-theme-toggle i,
    #main-topbar .topbar-icon-btn i {
        font-size: 1.05rem;
        line-height: 1;
    }

#main-topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

#main-topbar .topbar-search {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--bg-surface);
    min-width: 220px;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}

    #main-topbar .topbar-search:focus-within {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(23, 107, 135, .15);
    }

    #main-topbar .topbar-search i {
        color: var(--text-subtle);
        font-size: .9rem;
    }

    #main-topbar .topbar-search input {
        flex: 1 1 auto;
        border: none;
        outline: none;
        background: transparent;
        font-size: .85rem;
        color: var(--text);
        min-width: 0;
    }

#main-topbar .topbar-contact {
    display: flex;
    align-items: center;
    gap: .65rem;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
}

#main-topbar a.topbar-contact:hover {
    color: var(--accent);
}

#main-topbar .topbar-contact-icon {
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
    flex: 0 0 auto;
}

#main-topbar .topbar-contact-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

#main-topbar .topbar-contact-label {
    font-size: .7rem;
    color: var(--text-muted);
    font-weight: 600;
}

#main-topbar .topbar-contact-value {
    font-size: .875rem;
    color: var(--text-muted);
    font-weight: 500;
}

#main-topbar a.topbar-contact:hover .topbar-contact-value {
    color: var(--accent);
}

@media (max-width: 1000px) {
    #main-topbar .topbar-contact {
        display: none;
    }
}

@media (max-width: 900px) {
    #main-topbar .topbar-search {
        display: none !important;
    }
}


#main-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Hardcoded fallbacks ensure it's never see-through, even if CSS vars are translucent */
    background-color: var(--bg-page, #ffffff);
    background-color: #ffffff; /* Forces solid white in light mode */
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Adds depth so it separates from the page */
    padding: 1rem 0;
}

/* Dark mode specific override to force a solid dark background */
[data-theme="dark"] #main-topbar {
    background-color: #12181b !important; /* Replace with your exact dark bg hex if different */
    border-bottom: 1px solid #2a3236;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

