/* Feature Nav ("Explore More AestheticsPro Features")
   Shared section loaded by /FeatureNav.cfm. Class names are prefixed "fnav"
   so they don't clash with page styles. */

/* Self-contained sizing so the nav looks the same on every page */
.featureNavSec,
.featureNavSec *,
.featureNavSec *::before,
.featureNavSec *::after {
    box-sizing: border-box;
}

.featureNavSec {
    clear: both;
    width: 100%;
    padding: 24px 0 40px;
}

.featureNavSec .fnavContainer {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Soft panel groups all the links into one navigation block */
.featureNavSec .fnavPanel {
    padding: 56px 48px;
    border: 1px solid #e2eef1;
    border-radius: 28px;
    /* Very light cool teal: on brand, and separate from the warm CTAs */
    background: linear-gradient(180deg, #f5fafb 0%, #eef6f8 100%);
}

.featureNavSec .fnavHeading {
    margin-bottom: 36px;
    text-align: center;
}

.featureNavSec .fnavHeading h2 {
    margin: 0;
    padding: 0;
    color: #1e2b38;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* Fills column by column; row counts come from the include */
.featureNavSec .fnavGrid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(var(--fnav-rows-3, 5), auto);
    gap: 12px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.featureNavSec .fnavGrid li {
    margin: 0;
    padding: 0;
}

.featureNavSec .fnavGrid a {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-height: 60px;
    padding: 12px 22px 12px 22px;
    border: 1px solid #e6ecef;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(30, 43, 56, 0.04);
    color: #1e2b38;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Feature that isn't available yet: greyed out, not a link */
.featureNavSec .fnavGrid .fnavSoon {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    min-height: 60px;
    padding: 12px 22px;
    border: 1px solid #e6ecef;
    border-radius: 999px;
    background: #f6f8f9;
    color: #8b959d;
    cursor: default;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.3;
}

.featureNavSec .fnavSoon .fnavIcon img {
    filter: grayscale(1);
    opacity: 0.5;
}

.featureNavSec .fnavSoonNote {
    flex: 0 0 auto;
    color: #9aa3aa;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

/* Icon on its own, no background tile */
.featureNavSec .fnavIcon {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.featureNavSec .fnavIcon img {
    display: block;
    width: 22px;
    height: 22px;
}

.featureNavSec .fnavLabel {
    flex: 1 1 auto;
}

/* Chevron hints the tile is a link */
.featureNavSec .fnavArrow {
    flex: 0 0 16px;
    color: #b9c3ca;
    transition: color 0.2s ease;
}

.featureNavSec .fnavGrid a:hover {
    border-color: #ecd3a0;
    box-shadow: 0 6px 16px rgba(30, 43, 56, 0.07);
    color: #1e2b38;
    text-decoration: none;
}

.featureNavSec .fnavGrid a:hover .fnavArrow {
    color: #d99a2b;
}

.featureNavSec .fnavGrid a:focus-visible {
    outline: 3px solid rgba(31, 151, 221, 0.42);
    outline-offset: 2px;
}

/* Page being viewed: light blue, no badge or arrow */
.featureNavSec .fnavGrid a[aria-current="page"] {
    border-color: #b9dcef;
    background: #dcedf7;
    box-shadow: none;
    color: #123142;
}

@media only screen and (max-width: 991px) {
    .featureNavSec .fnavPanel {
        padding: 44px 28px;
    }

    .featureNavSec .fnavHeading h2 {
        font-size: 30px;
    }

    .featureNavSec .fnavGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(var(--fnav-rows-2, 8), auto);
        gap: 10px 14px;
    }
}

@media only screen and (max-width: 575px) {
    .featureNavSec {
        padding: 10px 0 32px;
    }

    .featureNavSec .fnavPanel {
        padding: 32px 14px;
        border-radius: 22px;
    }

    .featureNavSec .fnavHeading {
        margin-bottom: 24px;
    }

    .featureNavSec .fnavHeading h2 {
        font-size: 25px;
    }

    .featureNavSec .fnavGrid {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 8px;
    }

    .featureNavSec .fnavGrid a,
    .featureNavSec .fnavGrid .fnavSoon {
        min-height: 58px;
        font-size: 15px;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* "See more" toggle: only used on phones */
.featureNavSec .fnavMore {
    display: none;
}

@media only screen and (max-width: 575px) {
    .featureNavSec .fnavGrid.fnavCollapsed > li:nth-child(n+7) {
        display: none;
    }

    /* Soft fade on the 6th link so the list reads as continuing */
    .featureNavSec .fnavGrid.fnavCollapsed > li:nth-child(6) {
        -webkit-mask-image: linear-gradient(180deg, #000 20%, rgba(0, 0, 0, 0.25) 100%);
        mask-image: linear-gradient(180deg, #000 20%, rgba(0, 0, 0, 0.25) 100%);
    }

    .featureNavSec .fnavMore:not([hidden]) {
        align-items: center;
        background: #ffffff;
        border: 1.5px solid #9fd3da;
        border-radius: 999px;
        color: #0f6773;
        cursor: pointer;
        display: flex;
        font-family: 'Roboto', sans-serif;
        font-size: 15px;
        font-weight: 700;
        gap: 8px;
        justify-content: center;
        margin: 16px 0 0;
        min-height: 50px;
        padding: 0 18px;
        width: 100%;
    }

    /* Keep the white background after a tap (no sticky hover on touch) */
    .featureNavSec .fnavMore:not([hidden]):focus,
    .featureNavSec .fnavMore:not([hidden]):active {
        background: #ffffff;
        outline: none;
    }

    @media (hover: hover) {
        .featureNavSec .fnavMore:not([hidden]):hover {
            background: #f1f9fa;
            border-color: #137f8c;
        }
    }

    .featureNavSec .fnavMore[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    .featureNavSec .fnavMore:focus-visible {
        box-shadow: 0 0 0 3px rgba(19, 127, 140, 0.45);
        outline: none;
    }
}
