/* ============================================================
   InterAction — small fixes for the public site
   ------------------------------------------------------------
   Loaded last. Two jobs only:
     1. Style the "Video coming soon" placeholder that replaced
        the alert() buttons.
     2. Keep the removed internal notes from leaving layout gaps.

   No existing rule is overridden beyond these new class names.
   ============================================================ */

/* ---------- video placeholder text ---------- */

.video-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 1rem 0 0;
    padding: 0.5rem 0.85rem;
    border: 1px dashed #c8d6d2;
    border-radius: 8px;
    background: #f7faf9;
    color: #5b6f6a;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.video-coming-soon i {
    color: #8aa39d;
    font-size: 0.8rem;
}

/* Slightly soften the video card so an unplayable card does not
   look broken — the duration/badge chips stay as they were. */
.video-card .video-placeholder {
    position: relative;
}

.video-card .video-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 32, 29, 0.12);
    pointer-events: none;
}

/* ---------- header must fit inside its container ----------
   Measured problem: the nav menu (594px) plus the action cluster
   (506px) plus the brand (231px) needed 1331px inside a 1200px
   container. The browser does not wrap .nav-actions, so the last
   two controls — Login and Cart — were rendered past the right
   edge of the viewport. The cart was NOT disabled: it existed in
   the DOM, with its badge and modal, permanently off-screen at
   every desktop width. Tightening the spacing brings every control
   back inside the container without hiding any of them. */

.header .nav-menu {
    gap: 0.1rem !important;
}

.header .nav-menu > li > a {
    padding: 0.6rem 0.5rem !important;
    font-size: 0.86rem !important;
}

.header .nav-actions {
    gap: 0.22rem !important;
    flex-shrink: 0;
}

.header .nav-actions .btn-language {
    padding: 0.5rem 0.5rem !important;
}

.header .nav-actions .btn-consultancy {
    padding: 0.55rem 0.7rem !important;
}

/* Secondary controls become icon-only so every control fits inside
   the 1200px container. All three keep their aria-label and title,
   so they stay announced correctly and reveal a tooltip on hover.
   Their text labels return in the mobile drawer below 969px. */
@media (min-width: 969px) {
    .header .nav-actions .btn-docs,
    .header .nav-actions .btn-login {
        width: 38px;
        height: 38px;
        padding: 0 !important;
        justify-content: center;
    }

    .header .nav-actions .btn-docs > span,
    .header .nav-actions .btn-login > span {
        display: none !important;
    }

    .header .btn-cart {
        width: 44px;
        height: 38px;
        padding: 0 !important;
        justify-content: center;
    }

    .header .btn-cart > span:not(.cart-count) {
        display: none !important;
    }
}

/* Safety net: if a future control is added and overflows again,
   clip it horizontally rather than letting the whole page scroll
   sideways (the document was 1434px wide at a 1280px viewport). */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ---------- buttons converted from alert() ---------- */

/* These keep their existing .btn styles; this only adds the cursor
   and focus affordance now that they perform a real action. */
[data-scroll-to] {
    cursor: pointer;
}

[data-scroll-to]:focus-visible {
    outline: 3px solid rgba(13, 107, 95, 0.45);
    outline-offset: 2px;
}

/* ---------- respect reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
