/**
 * MOCKUP — Header "Our Routines" dropdown styles (pluggable / removable).
 * Scoped under .nav-routines-dropdown so it cannot leak into other nav items.
 * Removal: delete this file + the include that links it.
 */

.nav-routines-dropdown {
    position: inherit !important;
}

.nav-routines-dropdown .routines-dropdown-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Caret: match About menu exactly (transition + open rotate; no !important) */
.nav-routines-dropdown .routines-dropdown-link .caret {
    transition: transform 0.3s ease;
}

.nav-routines-dropdown.open .routines-dropdown-link .caret {
    transform: rotate(180deg);
}

/* Panel: full-width under nav (same pattern as Who We Serve) */
.nav-routines-dropdown .routines-dropdown-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    padding: 24px 28px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    z-index: 1050;
}

/* Click-toggle open (mirrors Who We Serve; hover stays closed) */
.nav-routines-dropdown.open .routines-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

.nav-routines-dropdown .routines-dropdown-panel-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 28px;
}

.nav-routines-dropdown .routines-dropdown-col-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5b4ea8;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(91, 78, 168, 0.18);
}

.nav-routines-dropdown .routines-dropdown-list {
    display: block;
    margin: 0;
    padding: 0;
}

/* Item: icon tile + title + description (Who We Serve pattern).
 * Specificity must beat nav rule `.main-header ... .nav-link a { display:block;
 * margin:30px 0 29px 40px; padding:0 }` because panel sits inside li.nav-link. */
.main-header .header-lower .main-menu .navbar-collapse .navbar-nav .nav-routines-dropdown .routines-dropdown-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    height: auto;
    margin: 0;
    padding: 10px 6px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2430;
    text-decoration: none;
    white-space: normal;
    transition: background 0.15s ease, transform 0.15s ease;
}

.main-header .header-lower .main-menu .navbar-collapse .navbar-nav .nav-routines-dropdown .routines-dropdown-item:hover,
.main-header .header-lower .main-menu .navbar-collapse .navbar-nav .nav-routines-dropdown .routines-dropdown-item:focus {
    background: #f6f7fb;
    color: #2b2750;
    text-decoration: none;
    transform: translateY(-2px);
}

.main-header .header-lower .main-menu .navbar-collapse .navbar-nav .nav-routines-dropdown .routines-dropdown-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(0.306turn, #eaf2fe 22.27%, #fff2f3);
    color: #2b2750;
    flex-shrink: 0;
}

.nav-routines-dropdown .routines-dropdown-item-icon svg {
    width: 20px;
    height: 20px;
}

.main-header .header-lower .main-menu .navbar-collapse .navbar-nav .nav-routines-dropdown .routines-dropdown-item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.main-header .header-lower .main-menu .navbar-collapse .navbar-nav .nav-routines-dropdown .routines-dropdown-item-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #2b2750;
    margin: 0;
    padding: 0;
}

.main-header .header-lower .main-menu .navbar-collapse .navbar-nav .nav-routines-dropdown .routines-dropdown-item-desc {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: #6b7280;
    margin: 0;
    padding: 0;
}

/* Mobile / collapsed nav: stack like Who We Serve */
@media (max-width: 992px) {
    .nav-routines-dropdown .routines-dropdown-panel {
        display: none;
    }

    .nav-routines-dropdown.open .routines-dropdown-panel {
        display: block !important;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 8px;
        padding: 12px 16px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: none;
        max-height: 220px;
        overflow-y: auto;
        border-radius: 4px;
    }

    .nav-routines-dropdown.open {
        height: auto;
        overflow: visible;
    }

    .nav-routines-dropdown .routines-dropdown-panel-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
