/* Features page styles. Loaded only by the related view. */

/* components/cards-and-lists.css */
.sm-pill-list,
.sm-feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* components/cards-and-lists.css */
.sm-feature-pills {
    gap: 0.75rem;
    margin-top: 1.5rem;
}

    /* components/cards-and-lists.css */
    .sm-pill-list span,
    .sm-feature-pills span {
        display: inline-flex;
        align-items: center;
        border-radius: var(--sm-radius-pill);
        font-weight: 800;
    }

    /* components/cards-and-lists.css */
    .sm-feature-pills span {
        min-height: 38px;
        padding: 0.45rem 0.9rem;
        border: 1px solid rgba(var(--sm-primary-rgb), 0.22);
        background: rgba(var(--sm-primary-rgb), 0.08);
        color: var(--sm-primary-dark);
        font-size: 0.9rem;
    }

/* components/cards-and-lists.css */
.sm-compact-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

/* components/cards-and-lists.css */
.sm-compact-feature-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: 28px;
    background: var(--sm-card-default-bg);
    border: 1px solid rgba(15, 83, 132, 0.10);
    box-shadow: 0 18px 45px rgba(15, 83, 132, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    /* components/cards-and-lists.css */
    .sm-compact-feature-card:hover {
        transform: translateY(-6px);
        border-color: rgba(255, 75, 51, 0.25);
        box-shadow: 0 24px 60px rgba(15, 83, 132, 0.16);
    }

/* components/cards-and-lists.css */
.sm-compact-feature-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(255, 75, 51, 0.12), transparent 36%), linear-gradient(135deg, rgba(15, 83, 132, 0.08), rgba(255, 255, 255, 0.85));
}

    .sm-compact-feature-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        display: block;
    }

/* components/cards-and-lists.css */
.sm-compact-feature-image-stack {
    display: flex;
    gap: 0;
}

    .sm-compact-feature-image-stack img {
        width: 50%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

/* components/cards-and-lists.css */
.sm-compact-feature-content {
    padding: 1.35rem;
}

    /* components/cards-and-lists.css */
    .sm-compact-feature-content h2 {
        margin: 0.35rem 0 0.75rem;
        font-size: clamp(1.25rem, 1.7vw, 1.75rem);
        line-height: 1.15;
    }

    /* components/cards-and-lists.css */
    .sm-compact-feature-content p {
        margin: 0 0 1rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }

/* components/cards-and-lists.css */
.sm-compact-feature-card .sm-feature-pills {
    gap: 0.45rem;
}

    /* components/cards-and-lists.css */
    .sm-compact-feature-card .sm-feature-pills span {
        font-size: 0.78rem;
        padding: 0.4rem 0.65rem;
    }

/* Section grouping */
.sm-feature-group {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.sm-feature-section-header {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

    .sm-feature-section-header h2 {
        margin: 0.4rem 0 0.85rem;
        font-size: clamp(1.8rem, 3vw, 3rem);
        line-height: 1.1;
        letter-spacing: -0.035em;
    }

    .sm-feature-section-header p {
        margin: 0;
        color: var(--sm-text-muted, #475467);
        font-size: 1.02rem;
        line-height: 1.7;
    }

/* Makes the third card in each section feel intentional */
.sm-feature-card-wide {
    grid-column: 1 / -1;
    grid-template-columns: 0.95fr 1.05fr;
    grid-template-rows: auto;
}

    .sm-feature-card-wide .sm-compact-feature-image {
        height: 340px;
        min-height: 340px;
        max-height: none;
    }

    .sm-feature-card-wide .sm-compact-feature-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

/* Cleaner spacing between grouped sections */
.sm-feature-group + .sm-feature-group {
    padding-top: 1rem;
}

/* New one-card feature summary */
.sm-feature-summary-section {
    padding-top: 40px;
}

.sm-feature-summary-large-card {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    border-radius: 32px;
    background: var(--sm-card-default-bg); border: 1px solid rgba(16, 24, 40, 0.08);
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.10);
}

.sm-feature-summary-large-header {
    max-width: 780px;
    margin-bottom: 2rem;
}

.sm-feature-summary-badge {
    margin:auto;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.4rem 0.85rem;
    border-radius: var(--sm-radius-pill, 999px);
    background-color:white;
    color: black;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sm-feature-summary-large-header h3 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.08;
    font-weight: 850;
    color: #101828;
    letter-spacing: -0.04em;
}

.sm-feature-summary-large-header p {
    margin: 0;
    color: #475467;
    font-size: 1.02rem;
    line-height: 1.7;
}

.sm-feature-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sm-feature-summary-list-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 22px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

    .sm-feature-summary-list-item:hover {
        transform: translateY(-4px) scale(1.01);
        background: #ffffff;
        border-color: rgba(15, 83, 132, 0.22);
        box-shadow: 0 18px 38px rgba(16, 24, 40, 0.12), 0 8px 22px rgba(15, 83, 132, 0.10);
    }

    .sm-feature-summary-list-item > span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.16);
        color: #ffffff;
        font-size: 0.78rem;
        font-weight: 850;
        transition: color 0.25s ease, background 0.25s ease;
    }

    .sm-feature-summary-list-item h4 {
        margin: 0 0 6px;
        color: #ffffff;
        font-size: 1rem;
        font-weight: 850;
        letter-spacing: -0.02em;
        transition: color 0.25s ease;
    }

    .sm-feature-summary-list-item p {
        margin: 0;
        color: rgba(255, 255, 255, 0.88);
        font-size: 0.93rem;
        line-height: 1.55;
        transition: color 0.25s ease;
    }

    /* Hover text colours */
    .sm-feature-summary-list-item:hover > span {
        background: rgba(15, 83, 132, 0.09);
        color: #0f5384;
    }

    .sm-feature-summary-list-item:hover h4 {
        color: #101828;
    }

    .sm-feature-summary-list-item:hover p {
        color: #475467;
    }

/* Responsive */
@media (max-width: 992px) {
    .sm-compact-feature-grid {
        grid-template-columns: 1fr;
    }

    .sm-compact-feature-card {
        grid-template-columns: 0.9fr 1.1fr;
        grid-template-rows: auto;
    }

    .sm-compact-feature-image {
        min-height: 100%;
        max-height: none;
    }

    .sm-feature-card-wide {
        grid-template-columns: 0.9fr 1.1fr;
    }

        .sm-feature-card-wide .sm-compact-feature-image {
            min-height: 100%;
        }
}

@media (max-width: 900px) {
    .sm-feature-summary-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .sm-compact-feature-card {
        grid-template-columns: 1fr;
    }

    .sm-compact-feature-image {
        height: 220px;
        min-height: 220px;
        max-height: none;
    }

    .sm-feature-card-wide .sm-compact-feature-image {
        height: 230px;
        min-height: 230px;
        max-height: none;
    }

    .sm-compact-feature-content {
        padding: 1.1rem;
    }

    .sm-feature-group {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .sm-feature-section-header {
        text-align: left;
        margin-bottom: 1.35rem;
    }

    .sm-feature-card-wide {
        grid-template-columns: 1fr;
    }

        .sm-feature-card-wide .sm-compact-feature-image {
            min-height: 190px;
            max-height: 230px;
        }
}

@media (max-width: 650px) {
    .sm-feature-pills {
        gap: 0.55rem;
    }

        .sm-feature-pills span {
            font-size: 0.82rem;
            min-height: 34px;
        }
}

@media (max-width: 640px) {
    .sm-feature-summary-section {
        padding-top: 24px;
    }

    .sm-feature-summary-large-card {
        border-radius: 24px;
        padding: 1.1rem;
    }

    .sm-feature-summary-large-header {
        margin-bottom: 1.35rem;
    }

    .sm-feature-summary-list-item {
        padding: 15px;
        border-radius: 18px;
        gap: 12px;
    }

        .sm-feature-summary-list-item > span {
            width: 34px;
            height: 34px;
            border-radius: 12px;
            font-size: 0.72rem;
        }
}
