/* ==========================================================================
   videochatangajari.ro - Responsive Stylesheet (Mobile-First Adjustments)
   Theme: Luxury Feminine, Editorial Aspirational (Dior-Inspired)
   ========================================================================== */

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* --- Mobile Sticky Conversion Bar --- */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(16, 6, 9, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--color-gold, #e3cca1);
    display: none;
    grid-template-columns: 1fr 1fr;
    z-index: 9999;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.6);
}

.sticky-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.1rem;
    font-family: var(--font-alt);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: var(--transition-fast);
}

.sticky-bar-apply {
    background: var(--gold-luxury);
    color: #121212 !important;
}
.sticky-bar-apply:hover, .sticky-bar-apply:focus, .sticky-bar-apply:active {
    background: #ffffff !important;
    color: #121212 !important;
}

.sticky-bar-whatsapp {
    background-color: transparent;
    color: #25d366 !important;
    border-left: 1px solid rgba(227, 204, 161, 0.15);
}
.sticky-bar-whatsapp:hover, .sticky-bar-whatsapp:focus, .sticky-bar-whatsapp:active {
    background-color: rgba(37, 211, 102, 0.1) !important;
    color: #25d366 !important;
}

/* --- Media Queries --- */

/* Medium Devices (Tablets/Laptops, 1300px and down) */
@media screen and (max-width: 1300px) {
    :root {
        --header-height: 70px;
    }

    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }

    /* Header Nav Menu for Mobile */
    .menu-btn {
        display: block;
    }

    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: var(--header-height);
        background-color: #0c0c0c;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        flex-direction: row;
        justify-content: space-between;
        padding: 0 !important;
        z-index: 1010;
    }

    .header.scrolled {
        height: var(--header-height);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    }

    .header-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        height: 100%;
        width: 100%;
        gap: 0;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .logo {
        margin-bottom: 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: #0c0c0c;
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0.8rem;
        z-index: 1005;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
        padding: 90px var(--space-md) var(--space-md) var(--space-md);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li .btn {
        margin-left: 0 !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        margin-top: 15px;
    }

    .nav-link {
        font-size: 0.95rem;
        letter-spacing: 0.1em;
        width: 100%;
        padding: 12px 0;
        text-align: left;
        border-bottom: 1px solid rgba(227, 204, 161, 0.08);
    }

    /* Hide desktop lang switcher inside mobile burger list */
    .lang-switcher-item {
        display: none !important;
    }

    /* Show mobile lang switcher in header */
    .mobile-lang-switcher {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        margin-right: 15px;
    }

    .mobile-lang-switcher .lang-btn {
        background: none;
        border: none;
        font-family: var(--font-alt);
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        padding: 4px;
        transition: color 0.3s;
    }

    /* Calculator */
    .calculator-box {
        grid-template-columns: 1fr;
    }

    .calc-inputs {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-md);
    }

    .calc-outputs {
        padding: var(--space-lg) var(--space-md);
    }

    /* Footer */
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .main-wrapper {
        margin-left: 0;
        width: 100%;
        padding-top: 70px;
    }
}

/* Small Devices (Phones, 768px and down) */
@media screen and (max-width: 768px) {
    .section {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }

    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }

    .benefits-row-responsive {
        grid-template-columns: 1fr !important;
        gap: var(--space-xs) !important;
        padding: var(--space-md) 0 !important;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .cookie-container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }

    /* Mobile Sticky Bar trigger when scrolled */
    .mobile-sticky-bar.active {
        display: grid;
    }

    /* Adjust main padding bottom to not overlay sticky bar */
    body.has-sticky-bar {
        padding-bottom: 50px;
    }

    /* Move floating WhatsApp up so it doesn't block the sticky bar */
    .whatsapp-widget {
        bottom: 75px;
    }

    .whatsapp-tooltip {
        display: none !important; /* Hide tooltip on small touchscreens */
    }
}

/* Extra Small Devices (Phones under 480px) */
@media screen and (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }

    .btn {
        width: 100%;
        padding: 1rem;
    }

    .slide {
        padding: 0 var(--space-xs);
    }

    .testimonial-quote {
        font-size: 0.95rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: var(--space-xs);
        align-items: center;
    }
}

/* --- Premium Luxury UX Fixes & Responsiveness Upgrades --- */

/* Ultrawide screens noise and line background protection */
@media screen and (min-width: 2000px) {
    .bg-noise, .grid-lines-overlay {
        width: 100vw !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

/* Header Max Width and Distances on Desktops */
@media screen and (min-width: 1301px) {
    .header-container {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Touch area improvements for Translator on mobile */
@media screen and (max-width: 1300px) {
    .lang-switcher-item button.lang-btn {
        padding: 8px 12px !important; /* Increase touch target size */
        font-size: 0.85rem !important;
    }
    
    /* Grid alignments on tablets to prevent empty space */
    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Shift WhatsApp widget even higher on smaller phones to avoid overlapping buttons */
    .whatsapp-widget {
        bottom: 85px !important;
    }
    
    /* Extra padding under forms on mobile to prevent input field blockage by virtual keyboards */
    .recruitment-form {
        padding-bottom: 25px;
    }
}

@media screen and (max-width: 768px) {
    /* Mobile font scale for Cinzel serif to improve visual flow and readability */
    h1, h2, h3 {
        letter-spacing: 0.05em !important;
        line-height: 1.3 !important;
    }
    
    .logo-text {
        font-size: 1.15rem !important;
    }
    .logo-monogram {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
    }
    
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    .benefits-editorial {
        grid-template-columns: 1fr !important;
        gap: var(--space-lg) !important;
    }

    /* Disable sticky sidebar on mobile to prevent blocking layout */
    .benefits-editorial > div {
        position: static !important;
    }

    /* Keep all scroll reveal sections visible on mobile by default to avoid white pages */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Compress benefit numbers spacing on mobile */
    .benefit-item-editorial {
        grid-template-columns: 40px 1fr !important;
    }

    .benefit-num {
        font-size: 1.6rem !important;
    }

    /* Prevent calculator radios from overlapping */
    .calc-radio-group {
        grid-template-columns: 1fr !important;
        gap: var(--space-xs) !important;
    }

    /* Success journey financial evolution stacking */
    .journey-pane-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .journey-income {
        font-size: 1.05rem !important;
    }

    .slide {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
        padding: 10px 20px !important;
    }

    #gallery_grid {
        grid-template-columns: 1fr !important;
    }

    .testimonial-photo-wrapper {
        flex: none !important;
        width: 180px !important;
        height: 220px !important;
        margin: 0 auto 15px auto !important;
    }

    /* Shift back-to-top on mobile to not overlap WhatsApp widget and sticky bar */
    .back-to-top {
        bottom: 145px !important;
        right: 15px !important;
        width: 40px !important;
        height: 40px !important;
    }

    .offset-image-frame {
        width: calc(100% - 15px) !important;
    }
}

/* Sliding Scroll Indicator Animation for Mobile Income Calculator */
@keyframes scrollIndicatorPulse {
    0% { transform: translateX(0); opacity: 0.4; }
    50% { transform: translateX(6px); opacity: 1; }
    100% { transform: translateX(0); opacity: 0.4; }
}
.scroll-indicator-arrow {
    display: inline-block;
    animation: scrollIndicatorPulse 1.5s infinite ease-in-out;
    color: var(--color-gold);
    font-weight: bold;
    margin-left: 4px;
}

/* Extra safety for very small mobile screens */
@media screen and (max-width: 480px) {
    .logo-text {
        font-size: 0.95rem !important;
    }
    .logo-monogram {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.65rem !important;
    }
    .header-right-mobile-wrapper {
        gap: 6px !important;
    }
}
