/* All Box Styles hub (/style/all): resources/views/category/styles-all.php.
   Shared by every region; the accent is each site's own --theme-color, with a
   warm sand tone as the second colour so it reads differently from the
   industries hub. Content is 1180px wide, 92% of the screen below that and a
   16px gutter on phones. */
.cbl-sty-page {
    --sty-accent: var(--theme-color, #0BAF9A);
    --sty-soft: #eef8f6;
    --sty-sand: #faf6ef;
    --sty-sand-line: #efe6d6;
    --sty-ink: #172033;
    --sty-muted: #5b6675;
    --sty-line: #e6ebef;
    color: var(--sty-ink);
    line-height: 1.6;
}

@supports (background: color-mix(in srgb, red 10%, white)) {
    .cbl-sty-page {
        --sty-soft: color-mix(in srgb, var(--sty-accent) 10%, #fff);
    }
}

.cbl-sty-wrap {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.cbl-sty-page h1,
.cbl-sty-page h2,
.cbl-sty-page h3 {
    color: var(--sty-ink);
    letter-spacing: normal;
    text-transform: none;
}

.cbl-sty-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--sty-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cbl-sty-section {
    padding: clamp(44px, 6vw, 72px) 0;
}

.cbl-sty-section-tint {
    background: var(--sty-sand);
}

.cbl-sty-head {
    max-width: 740px;
    margin: 0 auto 32px;
    text-align: center;
}

.cbl-sty-head h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.2;
}

.cbl-sty-head p {
    margin: 0;
    color: var(--sty-muted);
    font-size: 16px;
}

.cbl-sty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid var(--sty-accent);
    border-radius: 10px;
    background: var(--sty-accent);
    color: #fff;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.cbl-sty-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(23, 32, 51, .16);
}

.cbl-sty-btn-outline {
    background: #fff;
    color: var(--sty-accent);
}

.cbl-sty-btn-outline:hover {
    background: var(--sty-accent);
}

/* hero: copy on the left, a tilted photo collage on the right */
.cbl-sty-hero {
    overflow: hidden;
    padding: clamp(40px, 6vw, 80px) 0;
    background: linear-gradient(120deg, var(--sty-sand) 0%, #fff 55%, var(--sty-soft) 100%);
}

.cbl-sty-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}

.cbl-sty-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 800;
    line-height: 1.15;
}

.cbl-sty-hero h1 span {
    color: var(--sty-accent);
}

.cbl-sty-hero-copy > p {
    max-width: 540px;
    margin: 0 0 26px;
    color: var(--sty-muted);
    font-size: clamp(15px, 1.4vw, 17px);
}

.cbl-sty-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.cbl-sty-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid var(--sty-sand-line);
    list-style: none;
}

.cbl-sty-facts li {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.cbl-sty-facts strong {
    font-size: 26px;
    font-weight: 800;
}

.cbl-sty-facts span {
    color: var(--sty-muted);
    font-size: 14px;
}

.cbl-sty-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 500px;
    margin-left: auto;
    padding-bottom: 28px;
}

.cbl-sty-collage img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 6px solid #fff;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(23, 32, 51, .14);
}

.cbl-sty-collage-1 {
    transform: rotate(-3deg);
}

.cbl-sty-collage-2 {
    transform: translateY(28px) rotate(2deg);
}

.cbl-sty-collage-3 {
    transform: rotate(2deg);
}

.cbl-sty-collage-4 {
    transform: translateY(28px) rotate(-2deg);
}

/* shop by need filters */
.cbl-sty-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.cbl-sty-filters button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid var(--sty-line);
    border-radius: 999px;
    background: #fff;
    color: var(--sty-ink);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.cbl-sty-filters button i {
    color: var(--sty-accent);
    transition: color .2s ease;
}

.cbl-sty-filters button:hover {
    border-color: var(--sty-accent);
}

.cbl-sty-filters button.is-active {
    border-color: var(--sty-accent);
    background: var(--sty-accent);
    color: #fff;
}

.cbl-sty-filters button.is-active i {
    color: #fff;
}

.cbl-sty-count {
    margin: 0 0 24px;
    color: var(--sty-muted);
    font-size: 14px;
    text-align: center;
}

/* style cards */
.cbl-sty-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.cbl-sty-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sty-line);
    border-radius: 18px;
    background: #fff;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
    animation: cbl-sty-in .35s ease both;
}

.cbl-sty-card[hidden] {
    display: none;
}

@keyframes cbl-sty-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.cbl-sty-card:hover {
    border-color: var(--sty-accent);
    box-shadow: 0 18px 38px rgba(23, 32, 51, .1);
    transform: translateY(-4px);
}

.cbl-sty-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--sty-sand);
    color: var(--sty-accent);
    font-size: 42px;
}

.cbl-sty-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.cbl-sty-card:hover .cbl-sty-card-media img {
    transform: scale(1.05);
}

.cbl-sty-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 12px rgba(23, 32, 51, .12);
    color: var(--sty-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.cbl-sty-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.cbl-sty-card-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.cbl-sty-card-body h3 a {
    color: inherit;
}

.cbl-sty-card-body h3 a:hover {
    color: var(--sty-accent);
}

.cbl-sty-card-body > p {
    margin: 0 0 16px;
    color: var(--sty-muted);
    font-size: 15px;
}

.cbl-sty-best {
    margin-bottom: 18px;
}

.cbl-sty-best > span {
    display: block;
    margin-bottom: 8px;
    color: var(--sty-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cbl-sty-best ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cbl-sty-best li {
    padding: 4px 11px;
    border: 1px solid var(--sty-sand-line);
    border-radius: 8px;
    background: var(--sty-sand);
    font-size: 13px;
    line-height: 1.4;
}

/* keeps the link on the same line in every card of a row */
.cbl-sty-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--sty-accent);
    font-weight: 700;
}

.cbl-sty-card-link:hover {
    color: var(--sty-accent);
}

.cbl-sty-card-link i {
    transition: transform .2s ease;
}

.cbl-sty-card-link:hover i {
    transform: translateX(4px);
}

/* comparison table; scrolls sideways inside its own box on small screens.
   Positioned so the visually-hidden column label stays inside that box
   instead of widening the page. */
.cbl-sty-table-wrap {
    position: relative;
    overflow-x: auto;
    border: 1px solid var(--sty-sand-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(23, 32, 51, .05);
}

.cbl-sty-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 15px;
}

.cbl-sty-table th,
.cbl-sty-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--sty-line);
    text-align: left;
    vertical-align: middle;
}

.cbl-sty-table thead th {
    background: var(--sty-sand);
    color: var(--sty-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cbl-sty-table tbody tr:last-child th,
.cbl-sty-table tbody tr:last-child td {
    border-bottom: 0;
}

.cbl-sty-table tbody tr:hover {
    background: #fcfbf8;
}

.cbl-sty-table tbody th {
    font-weight: 700;
}

.cbl-sty-table td {
    color: var(--sty-muted);
}

.cbl-sty-table-name {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.cbl-sty-table-name img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
}

.cbl-sty-table td a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sty-accent);
    font-weight: 700;
    white-space: nowrap;
}

.cbl-sty-dots {
    display: inline-flex;
    gap: 4px;
    margin-right: 8px;
    vertical-align: middle;
}

.cbl-sty-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sty-line);
}

.cbl-sty-dots span.is-on {
    background: var(--sty-accent);
}

.cbl-sty-dots-label {
    font-size: 13px;
    vertical-align: middle;
}

/* how to choose */
.cbl-sty-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.cbl-sty-steps li {
    position: relative;
    padding: 28px 24px 24px;
    border: 1px solid var(--sty-line);
    border-radius: 18px;
    background: #fff;
}

.cbl-sty-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--sty-accent);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.cbl-sty-steps h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
}

.cbl-sty-steps p {
    margin: 0;
    color: var(--sty-muted);
    font-size: 15px;
}

/* FAQ */
.cbl-sty-faq {
    max-width: 860px;
    margin: 0 auto;
}

.cbl-sty-faq details {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--sty-sand-line);
    border-radius: 12px;
    background: #fff;
}

.cbl-sty-faq details[open] {
    border-color: var(--sty-accent);
}

.cbl-sty-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    color: var(--sty-ink);
    font-size: 16px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.cbl-sty-faq summary::-webkit-details-marker {
    display: none;
}

.cbl-sty-faq summary::after {
    content: "\f078";
    flex: none;
    color: var(--sty-accent);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    transition: transform .2s ease;
}

.cbl-sty-faq details[open] summary::after {
    transform: rotate(180deg);
}

.cbl-sty-faq details p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--sty-muted);
    font-size: 15px;
}

/* quote CTA */
.cbl-sty-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: 20px;
    background: linear-gradient(135deg, #172033 0%, var(--sty-accent) 140%);
    color: #fff;
}

.cbl-sty-cta h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 700;
}

.cbl-sty-cta p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
}

.cbl-sty-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cbl-sty-btn-light {
    border-color: #fff;
    background: #fff;
    color: var(--sty-ink);
}

.cbl-sty-btn-light:hover {
    color: var(--sty-ink);
}

.cbl-sty-btn-ghost {
    border-color: rgba(255, 255, 255, .7);
    background: transparent;
}

/* responsive */
@media (max-width: 991px) {
    .cbl-sty-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .cbl-sty-hero-copy > p {
        margin-left: auto;
        margin-right: auto;
    }

    .cbl-sty-hero-actions,
    .cbl-sty-facts {
        justify-content: center;
    }

    .cbl-sty-collage {
        max-width: 460px;
        margin: 0 auto;
    }

    .cbl-sty-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cbl-sty-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    /* the filters become one swipeable row instead of several wrapped lines */
    .cbl-sty-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-right: -16px;
        padding-right: 16px;
        padding-bottom: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .cbl-sty-filters::-webkit-scrollbar {
        display: none;
    }

    .cbl-sty-filters button {
        flex: none;
    }

    .cbl-sty-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cbl-sty-cta {
        justify-content: center;
        text-align: center;
    }

    .cbl-sty-cta-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .cbl-sty-wrap {
        width: calc(100% - 32px);
    }

    .cbl-sty-collage {
        gap: 12px;
    }

    .cbl-sty-collage img {
        border-width: 4px;
        border-radius: 14px;
    }

    .cbl-sty-collage-2,
    .cbl-sty-collage-4 {
        transform: translateY(16px) rotate(2deg);
    }

    .cbl-sty-facts {
        gap: 12px 24px;
    }

    .cbl-sty-facts strong {
        font-size: 22px;
    }

    .cbl-sty-cta-actions .cbl-sty-btn {
        flex: 1 1 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cbl-sty-page *,
    .cbl-sty-page *::after {
        transition: none !important;
        animation: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}
