/* =========================================================
   KENSUI LIFECARE — CATEGORIES PAGE
   FINAL CLEAN RESPONSIVE CSS
   File: css/stylecategories.css
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   CATEGORY PAGE HERO
--------------------------------------------------------- */

.inner-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    width: 100%;
    padding: 48px 20px 38px;

    background:
        radial-gradient(circle, rgba(255,255,255,.58) 0 3px, transparent 4px) 8% 18% / 100px 100px,
        radial-gradient(circle, rgba(255,255,255,.42) 0 4px, transparent 5px) 24% 72% / 130px 130px,
        radial-gradient(circle, rgba(255,255,255,.50) 0 3px, transparent 4px) 42% 25% / 150px 150px,
        radial-gradient(circle, rgba(255,255,255,.38) 0 5px, transparent 6px) 58% 80% / 120px 120px,
        radial-gradient(circle, rgba(255,255,255,.50) 0 3px, transparent 4px) 75% 18% / 140px 140px,
        radial-gradient(circle, rgba(255,255,255,.40) 0 4px, transparent 5px) 90% 65% / 110px 110px,
        linear-gradient(
            115deg,
            #e9f6f8 0%,
            #d7eff2 16%,
            #b5e4e6 31%,
            #73cbd0 47%,
            #03ad9b 62%,
            #1594aa 77%,
            #0878a5 100%
        );

    background-repeat: no-repeat;
}

.inner-hero::before,
.inner-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.inner-hero::before {
    width: 95px;
    height: 95px;
    top: 10%;
    left: 8%;

    background: radial-gradient(
        circle at 30% 25%,
        rgba(255,255,255,.72),
        rgba(255,255,255,.16) 42%,
        transparent 72%
    );

    animation: categoryBallOne 12s ease-in-out infinite alternate;
}

.inner-hero::after {
    width: 135px;
    height: 135px;
    right: 7%;
    bottom: 5%;

    background: radial-gradient(
        circle at 30% 25%,
        rgba(255,255,255,.62),
        rgba(255,255,255,.13) 42%,
        transparent 72%
    );

    animation: categoryBallTwo 14s ease-in-out infinite alternate;
}

.inner-hero .kicker {
    display: flex;
    align-items: center;
    gap: 8px;

    width: fit-content;
    margin: 0 auto 10px;

    color: #3977ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.inner-hero .kicker::before {
    content: "";
    width: 22px;
    height: 2px;

    flex: 0 0 22px;

    border-radius: 999px;
    background: #3977ff;
}

.inner-hero h1 {
    margin: 0;

    color: #606060 !important;
    text-align: center;

    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: -1.5px;

    overflow-wrap: anywhere;
}

.inner-hero p {
    max-width: 620px;
    margin: 12px auto 0;

    color: #607789;
    text-align: center;

    font-size: 14px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   MAIN CATEGORY SECTION
--------------------------------------------------------- */

.section.white {
    width: 100%;
    max-width: 1240px;

    margin: 0 auto;
    padding: 55px 25px 85px;

    background: #fff;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 35px;

    margin-bottom: 34px;
}

.section-head > div {
    min-width: 0;
}

.section-head .kicker {
    display: block;

    margin-bottom: 8px;

    color: #3977ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.section-head h2 {
    margin: 0;

    color: #181818;

    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.8px;
}

.section-head > p {
    width: min(100%, 520px);
    margin: 0;

    color: #6d7781;

    font-size: 14px;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   CATEGORY GRID
--------------------------------------------------------- */

.category-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 22px;

    width: 100%;
    padding: 0 !important;

    background: transparent !important;
}


/* ---------------------------------------------------------
   CATEGORY CARD
--------------------------------------------------------- */

.category-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 280px;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e8edf1;
    border-radius: 18px;

    text-decoration: none !important;

    box-shadow: 0 8px 28px rgba(20,45,65,.07);

    transform: translateZ(0);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.category-card:hover {
    transform: translateY(-6px);

    border-color: rgba(1,97,170,.22);

    box-shadow: 0 16px 38px rgba(20,45,65,.13);
}


/* ---------------------------------------------------------
   CATEGORY IMAGE
--------------------------------------------------------- */

.category-card > img {
    display: block;

    width: 100%;
    height: 225px;

    min-height: 0;

    object-fit: cover;
    object-position: center;

    background: #f4f7f9;

    transition:
        transform .45s ease,
        filter .3s ease;
}

.category-card:hover > img {
    transform: scale(1.045);
}


/* ---------------------------------------------------------
   CATEGORY NAME
--------------------------------------------------------- */

.category-card > div {
    display: flex;
    align-items: center;

    min-height: 72px;

    padding: 14px 15px;

    background: #fff;
}

.category-card strong {
    display: inline-block;

    max-width: 100%;

    padding: 7px 10px !important;

    color: #dceeff !important;
    background: #0161aa !important;

    border-radius: 6px;

    font-size: 14px !important;
    line-height: 1.3;

    font-weight: 700;

    overflow-wrap: anywhere;
}


/* ---------------------------------------------------------
   EMPTY STATE
--------------------------------------------------------- */

.category-grid > p {
    grid-column: 1 / -1;

    margin: 20px 0;
    padding: 35px 20px;

    color: #777;
    text-align: center;

    background: #f7f9fb;

    border: 1px dashed #d7dfe5;
    border-radius: 14px;
}


/* ---------------------------------------------------------
   TABLET — 3 COLUMNS
--------------------------------------------------------- */

@media (max-width: 1100px) {

    .section.white {
        padding-left: 25px;
        padding-right: 25px;
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .category-card {
        min-height: 270px;
    }

    .category-card > img {
        height: 210px;
    }
}


/* ---------------------------------------------------------
   TABLET — 2 COLUMNS
--------------------------------------------------------- */

@media (max-width: 800px) {

    .inner-hero {
        padding: 40px 20px 32px;
    }

    .section.white {
        padding: 45px 20px 70px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;

        gap: 14px;

        margin-bottom: 28px;
    }

    .section-head > p {
        width: 100%;
        max-width: 650px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .category-card {
        min-height: 255px;
    }

    .category-card > img {
        height: 200px;
    }
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 600px) {

    .inner-hero {
        padding: 30px 15px 26px;
    }

    .inner-hero .kicker {
        margin-bottom: 8px;
        font-size: 10px;
        letter-spacing: 1.4px;
    }

    .inner-hero h1 {
        font-size: 30px;
        letter-spacing: -.8px;
    }

    .inner-hero p {
        margin-top: 8px;
        font-size: 12px;
    }

    .section.white {
        padding: 35px 15px 55px;
    }

    .section-head {
        gap: 10px;
        margin-bottom: 22px;
    }

    .section-head .kicker {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .section-head h2 {
        font-size: 28px;
    }

    .section-head > p {
        font-size: 13px;
        line-height: 1.65;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card {
        min-height: 0;
        border-radius: 14px;
    }

    .category-card > img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / .86;
        object-fit: cover;
    }

    .category-card > div {
        min-height: 58px;
        padding: 9px 9px;
    }

    .category-card strong {
        padding: 6px 8px !important;
        font-size: 12px !important;
        border-radius: 5px;
    }

    .category-card:hover {
        transform: translateY(-3px);
    }
}


/* ---------------------------------------------------------
   SMALL MOBILE
--------------------------------------------------------- */

@media (max-width: 400px) {

    .inner-hero {
        padding: 26px 12px 23px;
    }

    .inner-hero h1 {
        font-size: 27px;
    }

    .section.white {
        padding-left: 12px;
        padding-right: 12px;
    }

    .section-head h2 {
        font-size: 25px;
    }

    .category-grid {
        gap: 10px;
    }

    .category-card > div {
        min-height: 54px;
        padding: 8px;
    }

    .category-card strong {
        padding: 5px 7px !important;
        font-size: 11px !important;
    }
}


/* ---------------------------------------------------------
   VERY SMALL MOBILE
--------------------------------------------------------- */

@media (max-width: 330px) {

    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card > img {
        aspect-ratio: 1 / .72;
    }

    .category-card strong {
        font-size: 12px !important;
    }
}


/* ---------------------------------------------------------
   REDUCE MOTION
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .inner-hero::before,
    .inner-hero::after,
    .category-card,
    .category-card > img {
        animation: none !important;
        transition: none !important;
    }
}


/* ---------------------------------------------------------
   HERO ANIMATION
--------------------------------------------------------- */

@keyframes categoryBallOne {

    0% {
        transform: translate(0, 20px) scale(.88);
    }

    50% {
        transform: translate(140px, -20px) scale(1.08);
    }

    100% {
        transform: translate(60px, 75px) scale(.96);
    }
}

@keyframes categoryBallTwo {

    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-130px, -45px) scale(.9);
    }

    100% {
        transform: translate(-50px, 70px) scale(1.08);
    }
}
