﻿/* ============================================
   PFX BONDS HEADER STYLES
   ============================================ */

/* Header Container */
.pfx-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 2px solid #e9ecef;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Ensure sticky wrapper has proper stacking and containment */
.pfx-sticky-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Prevent overflow on very small screens */
    max-width: 100vw;
    overflow-x: hidden;
    /* Ensure smooth rendering */
    will-change: transform;
    transform: translateZ(0);
}

/* Header Row Padding Override */
.pfx-header .header-row {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: 0;
    margin-right: 0;
}

.pfx-header .col-auto {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.pfx-header .header-center {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ============================================
   LOGO SECTION
   ============================================ */

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
    line-height: 0;
}

    .logo-link:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }

.logo-img {
    display: block;
    height: 140px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* ============================================
   HEADER TAGLINE / CENTER CONTENT
   ============================================ */

.header-tagline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.header-title {
    color: #2c3e50;
    letter-spacing: 0.5px;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin: 0;
}

.header-subtitle {
    color: #6c757d;
    font-weight: 500;
}

/* Mobile Title Styles */
.header-title-mobile {
    font-size: 0.9rem;
    line-height: 1.2;
    color: #2c3e50;
}

.header-subtitle-mobile {
    font-size: 0.7rem;
}

/* ============================================
   CONSTRUCTION BADGE
   ============================================ */

.construction-badge {
    display: flex;
    align-items: center;
    height: 100%;
}

.construction-img {
    display: block;
    height: 140px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

    .construction-img:hover {
        transform: scale(1.05);
    }

/* Mobile Construction Badge */
.construction-badge-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    white-space: nowrap;
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);
    }

    50% {
        box-shadow: 0 2px 12px rgba(255, 193, 7, 0.6);
    }
}

/* ============================================
   MOBILE INFO BAR
   ============================================ */

.mobile-info-bar {
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
}

.mobile-tagline {
    font-size: 0.7rem;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .pfx-header .header-row {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .logo-img {
        height: 60px;
    }

    .header-center {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .header-title-mobile {
        font-size: 0.8rem;
        line-height: 1.1;
    }

    .header-subtitle-mobile {
        font-size: 0.65rem;
    }

    .construction-badge-mobile {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }

    /* Reduce mobile info bar padding */
    .mobile-info-bar {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .mobile-tagline {
        font-size: 0.65rem;
    }
}

/* Very Small Devices (minimum browser width, less than 360px) */
@media (max-width: 359.98px) {
    .pfx-header .header-row {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    .logo-img {
        height: 50px;
    }

    .header-center {
        padding-left: 0.125rem;
        padding-right: 0.125rem;
    }

    .header-title-mobile {
        font-size: 0.75rem;
    }

    .header-subtitle-mobile {
        font-size: 0.6rem;
    }

    .construction-badge-mobile {
        font-size: 0.55rem;
        padding: 0.2rem 0.4rem;
    }

        .construction-badge-mobile i {
            display: none; /* Hide icon on very small screens */
        }

    /* Further reduce mobile info bar */
    .mobile-info-bar {
        padding-top: 0.2rem;
        padding-bottom: 0.2rem;
    }

    .mobile-tagline {
        font-size: 0.6rem;
    }

    /* Ensure sticky wrapper doesn't cause overflow */
    .pfx-sticky-wrapper {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Small Devices (phones landscape, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .logo-img {
        height: 90px;
    }

    .construction-img {
        height: 90px;
    }
}

/* Medium Devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .logo-img {
        height: 110px;
    }

    .construction-img {
        height: 110px;
    }

    .header-title {
        font-size: 1.2rem;
    }
}

/* Large Devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .logo-img {
        height: 130px;
    }

    .construction-img {
        height: 130px;
    }

    .header-title {
        font-size: 1.4rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .logo-img {
        height: 140px;
    }

    .construction-img {
        height: 140px;
    }

    .header-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .pfx-header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #000;
    }

    .construction-badge-mobile,
    .mobile-info-bar {
        display: none !important;
    }
}
