/* Modern Logo Styling - Performance Optimized */
.brand-logo {
    display: inline-block;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.logo-link {
    display: block;
    text-decoration: none;
    outline: none;
}

.logo-img {
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Primary logo (shown by default) - Further reduced size */
/* Normalized logo sizes (moderate defaults) */
.logo-primary {
    max-height: 26px; /* normal desktop primary logo */
    opacity: 1;
    width: auto;
}

/* Sticky logo (shown when scrolling) */
.logo-sticky {
    display: none;
    max-height: 21px; /* normal sticky logo */
    width: auto;
}

/* Hover effect with modern glow */
.brand-logo:hover {
    transform: scale(1.08) translateY(-2px);
}

.logo-link:hover .logo-img {
    filter: brightness(1.15) contrast(1.1);
    drop-shadow: 0 4px 12px rgba(224, 103, 38, 0.4);
}

/* Active/Focus states for accessibility */
.logo-link:focus {
    outline: 2px solid rgba(224, 103, 38, 0.6);
    outline-offset: 4px;
    border-radius: 4px;
}

.logo-link:active .brand-logo {
    transform: scale(1.02);
}

/* Responsive sizing - Reduced for smaller logo */
/* Responsive sizing - moderate values for normal appearance */
@media (min-width: 1400px) {
    .logo-primary {
        max-height: 39px;
    }
    .logo-sticky {
        max-height: 32px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .logo-primary {
        max-height: 36px;
    }
    .logo-sticky {
        max-height: 29px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .logo-primary {
        max-height: 32px;
    }
    .logo-sticky {
        max-height: 26px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .logo-primary {
        max-height: 29px;
    }
    .logo-sticky {
        max-height: 23px;
    }
}

@media (max-width: 767px) {
    .logo-primary {
        max-height: 23px;
    }
    .logo-sticky {
        max-height: 18px;
    }
    
    .brand-logo:hover {
        transform: scale(1.05) translateY(-1px);
    }
}

@media (max-width: 480px) {
    .logo-primary {
        max-height: 21px;
    }
    .logo-sticky {
        max-height: 17px;
    }
}

/* Sticky header variant (optional - if you have sticky header) */
header.sticky .logo-primary,
header.scrolled .logo-primary {
    display: none;
}

header.sticky .logo-sticky,
header.scrolled .logo-sticky {
    display: block;
}

/* Performance optimization - GPU acceleration */
.brand-logo,
.logo-img {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Print styles */
@media print {
    .brand-logo {
        max-height: 40px;
    }
    .logo-primary {
        display: block !important;
    }
    .logo-sticky {
        display: none !important;
    }
}

/* Global top contact bar */
.top-contact-bar {
    background: #384550;
    color: #f4761f;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.top-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.top-contact-group {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.top-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

.top-contact-item i {
    color: #f4761f;
    font-size: 14px;
}

.top-contact-item:hover,
.top-contact-item:focus {
    opacity: 0.85;
}

.top-contact-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.25);
    display: inline-block;
}

.top-contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(247, 200, 67, 0.15);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.top-contact-cta i {
    color: #f4761f;
}

.top-contact-cta:hover,
.top-contact-cta:focus {
    background: rgba(247, 200, 67, 0.25);
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .top-contact-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 10px 0;
    }

    .top-contact-group {
        width: 100%;
        gap: 12px;
    }

    .top-contact-divider {
        display: none;
    }

    .top-contact-cta {
        width: 100%;
        justify-content: center;
    }
}

