/* ==========================================================================
   SGH Acquisition Header Notification Banner
   ========================================================================== */

/* 1. Dynamic Header Offsets (Banner Enabled/Disabled & Logged-In Handling) */
:root {
    --sgh-header-height: 62px;
}

body.has-acq-top-banner {
    --sgh-header-height: 102px;
}

@media only screen and (max-width: 980px) {
    body.has-acq-top-banner {
        --sgh-header-height: 98px;
    }
}

@media only screen and (max-width: 520px) {
    body.has-acq-top-banner {
        --sgh-header-height: 96px;
    }
}

/* Header inner layout when top banner is active */
body.has-acq-top-banner #global-header {
    padding-top: 0 !important;
}

body.has-acq-top-banner #global-header > .cw {
    padding-top: 10px;
}

/* Prevent white seam under fixed header */
#hero {
    background-color: #00c1de;
}

/* Apply offset to #hero only when header is fixed (logged-out visitors) */
body.not-logged-in #hero,
body:not(.logged-in) #hero {
    padding-top: var(--sgh-header-height, 62px) !important;
    transition: padding-top 0.25s ease;
}

/* When logged in, #global-header is static in document flow — no padding-top needed on #hero */
body.logged-in #hero {
    padding-top: 0 !important;
}

/* Prevent double offsets on templates with #page */
#page {
    padding-top: 0 !important;
}

/* 2. Banner Bar Container */
.sgh-top-notice {
    background: #06111e;
    background: linear-gradient(90deg, #050d18 0%, #0a1b2e 50%, #050d18 100%);
    color: #ffffff;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-bottom: 1px solid rgba(255, 183, 3, 0.35);
    position: relative;
    z-index: 1002;
    max-height: 80px;
    transition: opacity 0.25s ease, max-height 0.25s ease, padding 0.25s ease;
    overflow: hidden;
}

/* Luminous gold ambient bottom light-streak */
.sgh-top-notice::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 183, 3, 0.3) 20%, #ffb703 50%, rgba(255, 183, 3, 0.3) 80%, transparent 100%);
    pointer-events: none;
}

.sgh-top-notice__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 40px 7px 20px;
    position: relative;
    min-height: 40px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1400px;
    margin: 0 auto;
}

.sgh-top-notice__content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 12px;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.35;
    color: #f8fafc;
    white-space: nowrap;
}

/* Warm Amber & Gold Milestone Badge */
.sgh-top-notice__badge {
    height: 26px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #120c02;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    padding: 0 12px;
    border-radius: 999px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    border: 1px solid #ffa726;
    box-shadow: 0 0 14px rgba(255, 183, 3, 0.5);
    white-space: nowrap;
    flex-shrink: 0;
}

/* High-visibility radiant beacon dot */
.sgh-top-notice__dot {
    width: 7px;
    height: 7px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 4px #ffffff;
    animation: sghBeacon 1.8s infinite cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

@keyframes sghBeacon {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.95), 0 0 4px #ffffff;
        transform: scale(0.9);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(255, 255, 255, 0), 0 0 8px #ffffff;
        transform: scale(1.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 4px #ffffff;
        transform: scale(0.9);
    }
}

.sgh-top-notice__text {
    font-weight: 600;
    letter-spacing: -0.1px;
    white-space: nowrap;
}

/* High-contrast solid Gold CTA button */
.sgh-top-notice__btn {
    height: 26px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #120c02 !important;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(255, 167, 38, 0.45);
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid #ffa726;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sgh-top-notice__btn:hover {
    background: linear-gradient(135deg, #ffca28 0%, #ff9800 100%);
    border-color: #ffca28;
    color: #120c02 !important;
    box-shadow: 0 4px 18px rgba(255, 183, 3, 0.65);
}

.sgh-top-notice__arrow {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transition: transform 0.2s ease;
    font-size: 12px;
    font-weight: 700;
}

.sgh-top-notice__btn:hover .sgh-top-notice__arrow {
    transform: translateX(3px);
}

.sgh-top-notice__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease;
}

.sgh-top-notice__close:hover {
    color: #ffc107;
    background-color: rgba(255, 255, 255, 0.15);
}

/* 3. Responsive Adjustments */
@media only screen and (max-width: 1100px) {
    .sgh-top-notice__content {
        font-size: 13px;
        gap: 10px;
    }
}

@media only screen and (max-width: 900px) {
    .sgh-top-notice__inner {
        padding: 6px 36px 6px 12px;
    }
    .sgh-top-notice__content {
        font-size: 12px;
        gap: 8px;
    }
    .sgh-top-notice__badge {
        height: 22px;
        font-size: 9.5px;
        padding: 0 9px;
    }
    .sgh-top-notice__btn {
        height: 22px;
        font-size: 9.5px;
        padding: 0 10px;
    }
}

@media only screen and (max-width: 768px) {
    .sgh-top-notice__badge {
        display: none; /* Hide badge on tablet/mobile so text + button stay on a single line */
    }
    .sgh-top-notice__content {
        font-size: 11.5px;
        gap: 8px;
    }
}

@media only screen and (max-width: 520px) {
    .sgh-top-notice__inner {
        padding: 6px 30px 6px 10px;
        min-height: 36px;
    }
    .sgh-top-notice__content {
        font-size: 11px;
        gap: 6px;
        max-width: calc(100% - 24px);
    }
    .sgh-top-notice__text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sgh-top-notice__btn {
        height: 20px;
        font-size: 9px;
        padding: 0 8px;
    }
}
