/*
 * SPEK homepage client revisions — 2026-09-24
 * Loaded after main.css only on the homepage.
 */

/* =========================================================
   Product range — refined minimal cards
   ========================================================= */

.product-categories {
    padding-top: 88px;
    padding-bottom: 96px;
}

.product-categories .section-heading {
    max-width: 760px;
    margin-bottom: 44px;
}

.product-categories .category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.product-categories .category-card {
    position: relative;
    min-height: 278px;
    display: flex;
    flex-direction: column;
    padding: 28px 26px 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 76, 129, .10);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 30px rgba(17, 39, 61, .045);
    transform: none !important;
    transition:
        transform .24s ease,
        border-color .24s ease,
        box-shadow .24s ease,
        background .24s ease;
}

.product-categories .category-card:nth-child(even) {
    transform: none !important;
}

/* Remove the old decorative corner blob for a cleaner catalogue look. */
.product-categories .category-card::before {
    content: none !important;
    display: none !important;
}

.product-categories .category-card:hover,
.product-categories .category-card:nth-child(even):hover {
    transform: translateY(-5px) !important;
    border-color: rgba(15, 76, 129, .20);
    background: #fff;
    box-shadow: 0 18px 44px rgba(17, 39, 61, .08);
}

/* Line icons only — explicitly override the legacy blue icon tile. */
.product-categories .category-card__icon,
.front-page .product-categories .category-card__icon,
body .front-page .product-categories .category-card__icon {
    position: relative;
    z-index: 1;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px;
    margin: 0 0 24px !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.product-categories .category-card__icon::before,
.product-categories .category-card__icon::after {
    content: none !important;
    display: none !important;
}

.product-categories .category-card__svg {
    display: block;
    width: 58px !important;
    height: 58px !important;
    overflow: visible;
    color: inherit;
    fill: none;
    stroke: currentColor;
    opacity: .92;
    transition:
        transform .24s ease,
        opacity .24s ease,
        color .24s ease;
}

.product-categories .category-card:hover .category-card__svg {
    transform: translateY(-2px);
    opacity: 1;
    color: var(--color-accent-dark);
}

.product-categories .category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.product-categories .category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.62;
}

.product-categories .category-card__link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 700;
    transition: color .2s ease;
}

.product-categories .category-card__link::after {
    content: "→";
    font-size: 15px;
    transition: transform .2s ease;
}

.product-categories .category-card:hover .category-card__link {
    color: var(--color-accent-dark);
}

.product-categories .category-card:hover .category-card__link::after {
    transform: translateX(4px);
}

/* Why SPEK: light, editorial treatment with the SPEK values as the hero. */
.why-spek {
    padding-top: 108px;
    padding-bottom: 118px;
}

.why-spek .section-heading {
    max-width: 790px;
    margin-inline: auto;
    margin-bottom: 52px;
    text-align: center;
}

.why-spek .section-heading p {
    max-width: 660px;
    margin-inline: auto;
}

.why-spek__values-wrap {
    position: relative;
    z-index: 2;
    margin-bottom: 68px;
}

.why-spek__values-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(15, 76, 129, .14);
}

.why-spek__wordmark {
    color: var(--color-ink);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.065em;
}

.why-spek__values-heading p {
    max-width: 480px;
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.55;
    text-align: right;
}

.why-spek__values {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.why-spek__value {
    position: relative;
    min-height: 250px;
    padding: 26px 24px 24px;
    overflow: hidden;
    border: 1px solid rgba(15, 76, 129, .11);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 14px 34px rgba(17, 39, 61, .055);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.why-spek__value::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), rgba(200, 169, 106, .88));
    transform-origin: left center;
    transform: scaleX(.28);
    transition: transform .25s ease;
}

.why-spek__value:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 76, 129, .2);
    box-shadow: 0 20px 46px rgba(17, 39, 61, .085);
}

.why-spek__value:hover::before {
    transform: scaleX(1);
}

.why-spek__value-letter {
    display: block;
    margin-bottom: 34px;
    color: rgba(15, 76, 129, .14);
    font-size: 74px;
    font-weight: 800;
    line-height: .78;
    letter-spacing: -.08em;
}

.why-spek__value h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.why-spek__value p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
}

.why-spek__benefits-intro {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
}

.why-spek__benefits-intro::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(15, 76, 129, .12);
}

.why-spek__benefits-intro span {
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.why-spek .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.why-spek .feature-card {
    min-height: 196px;
    padding: 24px 24px 22px;
    border: 1px solid rgba(232, 224, 214, .92);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 30px rgba(17, 39, 61, .045);
    transform: none !important;
    backdrop-filter: none;
}

.why-spek .feature-card::before {
    display: none;
}

.why-spek .feature-card:nth-child(1),
.why-spek .feature-card:nth-child(2),
.why-spek .feature-card:nth-child(3),
.why-spek .feature-card:nth-child(4) {
    min-height: 196px;
    border-radius: 22px;
    transform: none !important;
}

.why-spek .feature-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(15, 76, 129, .18);
    box-shadow: 0 18px 40px rgba(17, 39, 61, .075);
}

.feature-card__index {
    display: block;
    margin-bottom: 34px;
    color: rgba(15, 76, 129, .48);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.why-spek .feature-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
}

.why-spek .feature-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.62;
}

@media (max-width: 1100px) {
    .product-categories .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .why-spek .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .product-categories {
        padding-top: 72px;
        padding-bottom: 78px;
    }

    .product-categories .category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-categories .category-card {
        min-height: 0;
        padding: 24px 22px 22px;
        border-radius: 20px;
    }

    .product-categories .category-card__icon,
    .front-page .product-categories .category-card__icon,
    body .front-page .product-categories .category-card__icon {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px;
        margin-bottom: 20px !important;
    }

    .product-categories .category-card__svg {
        width: 52px !important;
        height: 52px !important;
    }

    .product-categories .category-card h3 {
        font-size: 19px;
    }

    .why-spek {
        padding-top: 82px;
        padding-bottom: 88px;
    }

    .why-spek .section-heading {
        margin-bottom: 38px;
    }

    .why-spek__values-heading {
        display: block;
        margin-bottom: 18px;
    }

    .why-spek__wordmark {
        display: block;
        margin-bottom: 14px;
        font-size: 50px;
    }

    .why-spek__values-heading p {
        max-width: none;
        text-align: left;
    }

    .why-spek__values {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .why-spek__value {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 18px;
        min-height: 0;
        padding: 22px;
        align-items: start;
    }

    .why-spek__value-letter {
        margin: 5px 0 0;
        font-size: 54px;
    }

    .why-spek__values-wrap {
        margin-bottom: 48px;
    }

    .why-spek .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .why-spek .feature-card,
    .why-spek .feature-card:nth-child(1),
    .why-spek .feature-card:nth-child(2),
    .why-spek .feature-card:nth-child(3),
    .why-spek .feature-card:nth-child(4) {
        min-height: 0;
        padding: 22px;
    }

    .feature-card__index {
        margin-bottom: 20px;
    }
}

/* =========================================================
   Company / About — Why SPEK homepage parity
   Keep the shared Why SPEK component visually identical to home.
   ========================================================= */

.company-why-spek-group {
    --color-accent: var(--spek-blue, #174f8a);
    --color-accent-dark: var(--spek-blue-deep, #0c3764);
    --color-accent-soft: var(--spek-blue-soft, #eef4f9);
    --color-gold: var(--spek-red, #d7233f);
    --color-gold-soft: #fceef1;
    --color-page: #ffffff;
    --color-surface-soft: var(--spek-grey-50, #f7f9fb);
    --color-border: var(--spek-grey-200, #e2e8ed);
    color: var(--spek-navy, #10283d);
}

.company-why-spek-group .container,
body .company-why-spek-group .container {
    width: min(calc(100% - 72px), var(--spek-home-container, 1640px));
    max-width: var(--spek-home-container, 1640px);
    margin-inline: auto;
}

.company-why-spek-group .eyebrow {
    color: var(--spek-blue, #174f8a);
    font-weight: 700;
}

.company-why-spek-group .eyebrow::before {
    width: 38px;
    height: 2px;
    background: var(--spek-red, #d7233f);
}

.company-why-spek-group h2,
.company-why-spek-group h3,
.company-why-spek-group strong {
    color: var(--spek-navy, #10283d);
}

.company-why-spek-group .section-heading {
    max-width: 960px;
    margin-bottom: 58px;
}

.company-why-spek-group .section-heading h2 {
    max-width: 920px;
    font-size: clamp(40px, 3.6vw, 62px);
    font-weight: 700;
    letter-spacing: -0.052em;
}

.company-why-spek-group .section-heading p {
    max-width: 800px;
    font-size: 18px;
}

.company-why-spek-group .why-spek .feature-card {
    border-color: rgba(16, 40, 61, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

@media (max-width: 1100px) {
    .company-why-spek-group .container,
    body .company-why-spek-group .container {
        width: min(calc(100% - 44px), 100%);
    }
}

@media (max-width: 680px) {
    .company-why-spek-group .container,
    body .company-why-spek-group .container {
        width: min(calc(100% - 28px), 100%);
    }

    .company-why-spek-group .section-heading {
        margin-bottom: 38px;
    }

    .company-why-spek-group .section-heading p {
        font-size: 16px;
    }
}

