:root {
    /* USPS Official Colors */
    --primary-color: #333366;
    /* USPS Navy Blue (Deep Koamaru) */
    --secondary-color: #E81921;
    /* USPS Red (Pigment Red) */
    --accent-color: #15569C;
    /* USPS Corporate Blue */

    --text-dark: #333333;
    /* Darker Gray for text */
    --text-light: #666666;
    /* Medium Gray */
    --white: #ffffff;
    --light-bg: #F7F7F7;
    /* USPS "Cultured" Gray */
    --border-color: #d8d8d8;
    /* USPS Light Silver */

    /* Shadows - Sharper */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Layout */
    --max-width: 1200px;
    --header-height: 60px;
    /* Increased from 55px */
    --utility-bar-height: 50px;
    /* Decreased from 60px */
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Utility Bar */
.utility-bar {
    background: linear-gradient(90deg, #333366 0%, #15569C 100%);
    color: var(--white);
    height: var(--utility-bar-height);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.utility-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 25px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.utility-contact:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.utility-contact i {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 16px;
    border-radius: 25px;
    cursor: pointer;
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.dropdown-toggle i.fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.flag-icon {
    font-size: 1.1rem;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 12px 16px;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu li:hover {
    background: var(--light-bg);
    border-left-color: var(--secondary-color);
    padding-left: 20px;
}

.dropdown-menu li.active {
    background: rgba(232, 25, 33, 0.1);
    border-left-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* Customer Service Menu */
.customer-service .dropdown-toggle i:first-child {
    color: var(--secondary-color);
}

.service-menu {
    min-width: 280px;
    right: 0;
    left: auto;
}

.service-item a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.service-item:hover {
    background: var(--light-bg);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-title {
    font-weight: 600;
    color: var(--primary-color);
}

.service-info {
    font-size: 0.8rem;
    color: var(--text-light);
}

.service-info.available {
    color: #27ae60;
    font-weight: 600;
}

.service-info.available::before {
    content: '●';
    margin-right: 5px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Navbar */
.navbar {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: var(--utility-bar-height);
    /* Below utility bar */
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a:not(.btn-primary).active {
    color: var(--secondary-color);
}

.nav-links a:not(.btn-primary):hover {
    color: var(--secondary-color);
}

/* Smaller button in navbar */
.nav-links .btn-primary {
    padding: 8px 18px;
    font-size: 0.85rem;
    margin-left: 10px;
    white-space: nowrap;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cbd5e1;
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}

.contact-info i {
    color: var(--secondary-color);
}

.footer-bottom {
    background-color: #061230;
    padding: 20px 0;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.9rem;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Mobile menu needed */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        gap: 0;
    }

    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        width: 100%;
    }

    .nav-links .btn-primary {
        display: inline-block;
        width: auto;
        margin-top: 10px;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Utility Bar Mobile */
    .utility-bar {
        padding: 6px 0;
        transition: transform 0.3s ease;
    }

    .utility-contact {
        display: none;
    }

    .country-name {
        display: none;
    }

    .dropdown-toggle span:not(.flag-icon) {
        display: none;
    }

    .customer-service .dropdown-toggle span {
        display: none;
    }

    .dropdown-menu {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 60vh;
        overflow-y: auto;
    }

    .service-menu {
        min-width: 100%;
    }

    .dropdown-menu li {
        justify-content: center;
        text-align: center;
    }

    /* Utility Bar Mobile Alignment */
    .utility-left {
        text-align: left;
    }

    /* Tracking Box Mobile */
    .tracking-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 15px 10px;
        font-size: 0.85rem;
    }

    .tab-btn span {
        display: none;
    }

    .tab-content {
        padding: 25px;
    }

    .quote-grid,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .tracking-form .input-group {
        flex-direction: column;
    }

    .quick-links {
        justify-content: center;
    }
}

/* Utility Bar Transition */
.utility-bar {
    transition: transform 0.3s ease;
}

/* Navbar Transition */
.navbar {
    transition: top 0.3s ease, box-shadow 0.3s ease;
}