@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;600;700&display=swap');

:root {
    /* Color Palette */
    --nav-bg: #0B192C; /* Extremely dark navy for high contrast headers */
    --nav-text: #FFFFFF;
    
    --bg-color: #F4F6F8; /* Soft light gray to make white cards pop */
    --text-main: #0F172A; /* Near black for maximum readability */
    --text-muted: #334155; 
    
    /* Buttons */
    --btn-primary: #D90429; /* High-visibility Crimson Red */
    --btn-primary-hover: #9D0208;
    --btn-primary-text: #FFFFFF;
    
    --btn-secondary: #2563EB; /* Strong Royal Blue */
    --btn-secondary-hover: #1D4ED8;
    --btn-secondary-text: #FFFFFF;

    --card-bg: #FFFFFF;
}

html, body { overflow-x: hidden; width: 100%; } body {
    font-family: 'Lexend', sans-serif; /* Highly legible font */
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* --- Professional Navigation --- */
.navbar {
    background: #0B192C; /* Dark navy for high contrast and executive presentation */
    color: var(--nav-text);
    padding: 0.65rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 15px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.brand-text { margin: 0; font-size: 1.15rem; font-weight: 700; color: #FFFFFF; letter-spacing: -0.3px; white-space: nowrap; }

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 0;
    flex-shrink: 0;
}

.navbar-start {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-center {
    display: flex;
    justify-content: center;
    flex: 1 1 240px;
}

.navbar-end {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-item {
    color: #F1F5F9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.nav-item:hover, .dropbtn:hover {
    color: #F9ECC2; /* Warm gold tone matching the logo */
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #93C5FD;
    text-decoration: none;
    font-size: 1rem;
    white-space: nowrap;
    transition: color 0.2s;
}
.nav-phone:hover {
    color: #F9ECC2;
}

/* --- Dropdown Menu --- */
.dropdown {
    position: relative;
    display: inline-block;
}
/* Invisible hover bridge to prevent glitching */
.dropdown::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 15px;
}
.dropbtn {
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    color: #F1F5F9;
}
.dropdown-content {
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(8px);
    background-color: #0F172A;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 1000;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.dropdown-content a {
    color: #F1F5F9;
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}
.dropdown-content a:last-child {
    border-bottom: none;
}
.dropdown-content a:hover {
    background-color: #1E293B;
    color: #F9ECC2;
    padding-left: 22px; /* micro-animation */
}
.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Mobile Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: 1rem;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #FFFFFF;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

@media (min-width: 1025px) {
    .mobile-only { display: none !important; }
    .navbar-actions-mobile { display: none; }
}

@media (max-width: 1024px) {
    .desktop-only { display: none !important; }

    .navbar { flex-wrap: wrap; padding: 0.85rem 1.25rem; gap: 10px; }
    
    .navbar-brand { order: 1; }
    .hamburger { order: 2; display: flex; }
    
    .navbar-actions-mobile {
        order: 3;
        display: flex;
        width: 100%;
        justify-content: center;
        gap: 1rem;
        margin-top: 0.75rem;
    }
    
    .navbar-center { order: 4; width: 100%; margin-top: 0.75rem; }
    .search-container { position: relative; flex-grow: 1; max-width: 100%; margin: 0; }
    
    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: left;
        background: #0B192C;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1.25rem;
        box-sizing: border-box; /* Fix for overflow stretching */
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
        z-index: 999;
        margin-left: 0;
        gap: 1rem;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-start, .navbar-end {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .nav-item, .dropdown {
        width: 100%;
        display: block;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        margin-left: 1rem;
        border: none;
        min-width: 100%;
        box-sizing: border-box;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
        transition: none !important;
        background: transparent;
    }
    .dropdown-content a {
        color: #F1F5F9 !important;
        padding: 8px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .dropdown-content a:hover {
        color: #F9ECC2 !important;
        background: transparent;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* --- Global Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 24px;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-primary {
    background: var(--btn-primary);
    color: var(--btn-primary-text);
    border: 2px solid transparent;
}
.btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(217, 4, 41, 0.25);
}
.btn-secondary {
    background: var(--btn-secondary);
    color: var(--btn-secondary-text);
}
.btn-secondary:hover {
    background: var(--btn-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.25);
}
.btn:disabled {
    background: #94A3B8 !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* --- Cards --- */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--btn-secondary);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* --- Status Message --- */
#status-message {
    display: none;
    background: #10B981; /* High contrast green */
    color: white;
    padding: 1.2rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


/* --- Search Bar & Navigation --- */
.search-container { position: relative; flex: 1 1 240px; max-width: 360px; margin: 0 1.25rem; min-width: 160px; }
#global-search { width: 100%; padding: 9px 15px 9px 38px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); color: #FFFFFF; font-family: 'Lexend', sans-serif; font-size: 0.92rem; outline: none; transition: all 0.2s; box-sizing: border-box; }
#global-search::placeholder { color: #94A3B8; }
#global-search:focus { background: rgba(255, 255, 255, 0.14); border-color: #F9ECC2; box-shadow: 0 0 0 3px rgba(249, 236, 194, 0.25); }
#search-results { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; background: #0F172A; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 10px 25px rgba(0,0,0,0.4); z-index: 2000; display: none; overflow: hidden; max-height: 400px; overflow-y: auto; }
.search-result-item { padding: 12px 18px; color: #F1F5F9; border-bottom: 1px solid rgba(255, 255, 255, 0.08); cursor: pointer; transition: background 0.2s; text-align: left;}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #1E293B; }
.search-result-item strong { display: block; font-size: 1.05rem; color: #F9ECC2; }
.search-result-item small { color: #94A3B8; font-size: 0.85rem; }

/* --- Breadcrumbs --- */
.breadcrumb { background: #E2E8F0; padding: 12px 2rem; font-size: 1.05rem; color: var(--text-muted); box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); }
.breadcrumb a { color: var(--btn-secondary); text-decoration: none; font-weight: 600; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--btn-secondary-hover); text-decoration: underline; }
.breadcrumb span { color: var(--text-main); font-weight: 700; margin: 0 5px; }

@media(max-width: 768px) {
    .search-container { margin: 10px 0; width: 100%; max-width: 100%; order: 3; }
    nav { justify-content: space-between; }
}

/* --- Footer --- */
footer {
    background: var(--nav-bg);
    color: var(--nav-text);
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 5rem;
    font-size: 1rem;
}
footer a {
    color: #93C5FD;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
}
footer a:hover {
    text-decoration: underline;
    color: #BFDBFE;
}
footer p {
    margin: 0.5rem 0;
    color: #94A3B8;
}



/* --- Logo Styles --- */
.nav-logo {
    height: 34px;
    max-height: 34px;
    max-width: 190px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s ease;
}
.logo-link { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    gap: 12px; 
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}
.logo-link:hover { 
    transform: scale(1.02);
    opacity: 0.95;
}

@media (max-width: 768px) {
    .nav-logo { height: 28px; max-width: 140px; }
    .logo-link { 
        gap: 8px; 
        margin-right: auto;
        margin-bottom: 0px; 
    }
    .brand-text { font-size: 1.05rem !important; }
}

@media (max-width: 480px) {
    .nav-logo { height: 24px; max-width: 120px; }
    .brand-text { font-size: 0.95rem !important; }
}

.btn-sm { padding: 8px 14px !important; font-size: 0.9rem !important; border-radius: 6px !important; }

.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94A3B8; pointer-events: none; }
