/* ===== Promo Bar ===== */
.promo-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--promo-bar-height);
    background-color: #F2B94B;
    color: #1F2933;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-md);
    z-index: 1001; /* Higher than navbar */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1;
    /* iOS safe area support */
    padding-top: env(safe-area-inset-top);
    height: calc(var(--promo-bar-height) + env(safe-area-inset-top));
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.promo-left,
.promo-center,
.promo-right {
    display: flex;
    align-items: center;
}

.promo-left {
    flex: 1;
}

.promo-center {
    flex: 2;
    text-align: center;
    justify-content: center;
}

.promo-right {
    flex: 1;
    justify-content: flex-end;
}

.promo-link {
    color: #1F2933;
    text-decoration: underline;
    margin: 0 0.25rem;
}

.promo-link:hover {
    color: #2F80ED;
}

.promo-cta {
    background-color: #2F80ED;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 400;
    transition: background-color var(--transition-fast);
}

.promo-cta:hover {
    background-color: #1a73e8;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    .promo-bar {
        height: var(--promo-bar-height);
        padding-top: 0;
    }
    
    .promo-content {
        font-size: 0.75rem;
    }
    
    .promo-center {
        flex: 1;
    }
    
    .promo-right {
        display: none; /* Hide CTA on mobile */
    }
    
    /* Mobile layout: 3 aligned segments */
    .promo-content {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--spacing-xs);
    }
    
    .promo-left {
        justify-content: flex-start;
    }
    
    .promo-center {
        justify-content: center;
        white-space: nowrap; /* Prevent truncation */
    }
    
    .promo-center span {
        display: none; /* Hide full text on mobile */
    }
    
    .promo-center::after {
        content: "Dezvoltat de sky.ro";
        white-space: nowrap;
    }
    
    .promo-right {
        justify-content: flex-end;
    }
    
    /* Show only phone number on mobile right */
    .promo-right::after {
        content: "+4 0720 088 880";
        color: #1F2933;
    }
    
    /* Adjust left label to show only "Concept demo" and truncate if needed */
    .promo-left span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 80px;
    }
}

/* ===== Body Offset ===== */
body {
    padding-top: calc(var(--promo-bar-height) + env(safe-area-inset-top));
}

/* ===== Navbar Adjustment ===== */
.navbar {
    top: calc(var(--promo-bar-height) + env(safe-area-inset-top));
}
