/* -------------------------------------------------------
   Agency Manager – Dynamic Tabs Styling
   ------------------------------------------------------- */

/* Gradient panel container */
.agency-tabs-container {
    position: relative;
    border-radius: 32px;
    padding: 32px 40px 40px;
    margin-top: 40px;
    transition:
        background-color 0.4s ease,
        background-image 0.4s ease,
        transform 0.2s ease-out;
    transform-origin: top center;
    will-change: transform;
}

/* Tab nav "pill" bar (desktop / base) */
.custom-tabs-labels-wrap {
    position: static;
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #009B77;
    padding: 0px 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    width: calc(100% - 64px);
    z-index: 5;
    margin: 0 auto 35px;
    max-width: 1000px;
    gap: 4px;
}

/* Individual tab labels */
.fl-builder-content .custom-tabs-labels-wrap .custom-tab-label {
    position: relative;
    display: block;
    padding: 10px 24px;
    margin: 0 4px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: transparent;
    color: #5c2c84; /* purple from hero */
    font-size: 20px;
    line-height: 1.4;
    font-weight: 500;
    white-space: nowrap;
}

/* Active tab pill */
.fl-builder-content .custom-tabs-labels-wrap .custom-tab-label.is-active {
    background: #222222;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* Hover tab */
.fl-builder-content .custom-tabs-labels-wrap .custom-tab-label:hover {
    color: #f6c700;
}

/* Panels wrapper */
.custom-tabs-panels-wrap {
    margin-top: 0;
}

/* Panels */
.custom-tab-panel {
    display: none;
}

.custom-tab-panel.is-active {
    display: block;
}

/* Zoom-on-scroll helper image */
.solution-img {
    transform-origin: top center;
    transform: scale(0.75); /* matches JS minScale */
    transition: transform 0.4s ease;
    will-change: transform;
}

.solution-img:hover,
.solution-img:focus {
    transform: scale(1);
}

/* Tab panel base state */
.custom-tab-panel {
    display: none;
    scroll-margin-top: 220px; /* Adjust so anchored panels clear the sticky nav/hero */
}

/* Existing .custom-tab-panel.is-active etc. below if you have it */
.custom-tab-panel.is-active {
    display: block;
}

/* Home page only: hide the solutions menu at first */
.home #solutions-menu {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Once the body gets the helper class, slide it down under the header */
.home.has-scrolled-solutions #solutions-menu {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home #solutions-menu .menu > li.current-menu-item > a {
    color: #FFF;
}

/* Focus state for the homepage solutions menu */
.home #solutions-menu .menu > li.current-menu-item.focus > a {
    color: #f6c700 !important;
    background-color: #000 !important;
}

/* -------------------------------------------------------
   Responsive tweaks – tablet
   ------------------------------------------------------- */

@media (max-width: 992px) {
    .agency-tabs-container {
        padding: 24px 16px 28px;
        border-radius: 24px;
        margin-top: 24px;
    }

    .fl-builder-content .custom-tabs-labels-wrap {
        margin: 0 auto;
        padding: 6px 10px;
        max-width: calc(100% - 32px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    }

    .fl-builder-content .custom-tabs-labels-wrap .custom-tab-label {
        font-size: 14px;
        padding: 8px 18px;
        margin: 0 3px;
    }
}

/* -------------------------------------------------------
   Responsive tweaks – mobile (Tab menu hidden)
   ------------------------------------------------------- */

@media (max-width: 768px) {
    /* Hide the entire tab navigation bar on mobile */
    .custom-tabs-labels-wrap {
        display: none;
    }
}

/* -------------------------------------------------------
   Optional: extra-small tweaks
   ------------------------------------------------------- */

@media (max-width: 480px) {
    /* No changes needed here, as the tabs are hidden at 768px */
}