/* ==========================================================================
   EMS 2026 - MASTER STYLESHEET
   ========================================================================== */

/* --- 1. Global Reset & Core Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, 
body, 
#wrapper, 
.bg-light,
.content-wrapper {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #334155;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* Global Font Override for Headings */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
    font-family: "Google Sans Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

/* Base Heading Styles */
h1, .h1 {
    font-size: clamp(1.5rem, 2.8vw, 2.0rem);
    font-weight: 700;
    color: #0f172a;
}

h2, .h2 {
    font-size: clamp(1.2rem, 2.0vw, 1.45rem);
    font-weight: 700;
    color: #0f172a;
}

h3, .h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    font-weight: 600;
    color: #0f172a;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.65;
}

/* --- 2. Site-Wide Spacing & Image Resets --- */
section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.mb-5, .my-5 {
    margin-bottom: 1.5rem !important;
}

.mb-4, .my-4 {
    margin-bottom: 1.0rem !important;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem !important;
}

.badge {
    margin-bottom: 0.4rem !important;
}

/* Image Border/Outline Cleanup */
img.img-fluid, .img-thumbnail {
    border: none !important;
    padding: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* --- 3. Dynamic Metallic Navbar & Container Bar --- */
.container-bg {
    background: linear-gradient(#a5adaa 4%, #b1b9b6 14%, #bec5c2 30%, #eae8e4 50%, #bec5c2 70%, #b1b9b6 80%, #a5adaa 98%) !important;
    width: 100% !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

#nav-placeholder {
    width: 100% !important;
}

.navbar {
    background-color: transparent !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: 40px !important;
    padding: 0 20px !important;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: 100% !important;
    list-style: none !important;
}

.navbar-nav .nav-item {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

.navbar-light .navbar-nav .nav-link {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 0 12px !important;
    line-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar-light .navbar-nav .nav-item:hover > .nav-link:not(.active) {
    background-color: rgba(255, 255, 255, 0.25) !important;
    color: #0f172a !important;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .dropdown-item.active {
    color: #d97706 !important;
    font-weight: 800 !important;
}

/* Dropdown Menu Overlay */
.navbar-nav .dropdown-menu {
    top: 100% !important;
    margin-top: 0 !important;
    border-radius: 0 0 6px 6px !important;
    background-color: #ffffff !important;
    min-width: 220px !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12) !important;
    border: none !important;
    position: absolute !important;
    padding: 6px 0 !important;
}

.dropdown-item {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    text-align: left !important;
    padding: 8px 18px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none !important;
}

.dropdown-item:hover {
    background-color: #f8fafc !important;
    color: #d97706 !important;
}

/* Navbar Centering Rules for Desktop */
@media (min-width: 768px) {
    .container-bg, 
    #nav-placeholder {
        position: relative !important;
        width: 100% !important;
    }

    .navbar {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .navbar-collapse {
        display: flex !important;
        flex-grow: 1 !important;
        position: static !important;
    }

    .navbar-nav {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        z-index: 10 !important;
    }

    .navbar-light .navbar-nav .nav-link {
        font-size: clamp(0.75rem, 0.4vw + 0.65rem, 0.85rem) !important;
        padding-left: clamp(6px, 0.8vw, 12px) !important;
        padding-right: clamp(6px, 0.8vw, 12px) !important;
    }

    .navbar-nav .nav-item:first-child,
    .navbar-nav .nav-item:last-child {
        margin: 0 !important;
    }
}

/* Responsive Mobile Navigation (Under 768px) */
@media (max-width: 767.98px) {
    .navbar {
        height: auto !important;
        padding: 5px 15px !important;
    }
    
    .navbar-toggler {
        padding: 2px 6px;
        font-size: 0.9rem;
    }

    .navbar-collapse {
        background-color: #ffffff;
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        border-radius: 6px;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    }

    .navbar-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        height: auto !important;
    }

    .navbar-nav .nav-link {
        line-height: 30px !important;
        padding: 5px 10px !important;
        width: 100% !important;
    }

    .navbar-nav .dropdown-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
    }
}

/* --- 4. Metallic Footer Styling --- */
.footer-container {
    background: linear-gradient(#a5adaa 4%, #b1b9b6 14%, #bec5c2 30%, #eae8e4 50%, #bec5c2 70%, #b1b9b6 80%, #a5adaa 98%) !important;
    color: #374151 !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 20px !important;
    border-top: 1px solid #9ca3af !important;
    margin-top: 30px !important;
    width: 100% !important;
}

.footer-container p,
.footer-container .text-muted {
    margin: 0 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    line-height: 1.35 !important;
}

/* --- 5. Custom Page Layouts & Info Cards --- */
.content {
    max-width: 1080px;
    margin: 30px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 6px;
}

.info-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Forms & Contact Inputs */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.92rem;
    width: 100%;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus,
.form-group select:focus {
    border-color: #d97706;
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* --- 6. Watermark Background (Clients Page) --- */
.watermark-container {
    position: relative !important;
    z-index: 1;
    overflow: hidden;
}

.watermark-container::before {
    content: "";
    position: absolute;
    top: 280px; 
    left: 50%;
    transform: translateX(-50%);
    background-image: url('imgs/globe.png'); 
    background-repeat: no-repeat;
    background-position: center top;
    background-size: contain;
    width: 70%;
    max-width: 650px;
    height: 600px;
    opacity: 0.25; 
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   SITE-WIDE COLOR UTILITIES & BRAND STYLING
   ========================================================================== */

/* Brand Accent Color (Amber) */
.text-brand-amber {
    color: #d97706 !important;
}

/* Deep Slate Dark Text */
.text-brand-dark {
    color: #0f172a !important;
}

/* Secondary Body Text */
.text-brand-muted {
    color: #334155 !important;
}

/* Override standard Bootstrap text-warning to use your brand amber site-wide */
.text-warning {
    color: #d97706 !important;
}

/* ==========================================================================
   CLEAN LAYOUT OVERRIDES (Removes unwanted card borders)
   ========================================================================== */

.card {
    border: none !important;
}

.card-body {
    padding: 1.25rem !important;
}
/* ==========================================================================
   PURE WHITE BACKGROUND ENFORCEMENT OVERRIDE
   ========================================================================== */

/* Force all structural wrappers and utility classes to pure white */
body, 
main, 
section, 
.bg-light, 
.bg-white, 
.card, 
.content, 
.content-wrapper, 
#wrapper {
    background-color: #ffffff !important;
    background: #ffffff !important;
}

/* Retain white fill on form input elements */
.form-control,
.form-group input,
.form-group select,
.form-group textarea {
    background-color: #ffffff !important;
}

/* Ensure callout boxes retain their deliberate subtle background tint */
div[style*="background-color: #f8fafc"],
div[style*="background-color: #fef3c7"],
div[style*="background-color: #0f172a"] {
    /* Retains specified inline colors for accent callout banners */
}