/* ========================================
   KDT Hero
======================================== */

.js-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.kdt-card {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.kdt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(38, 58, 119, 0.10);
}


.kdt-hero {
    background-color: var(--color-mist);

    padding-top: 40px;
    padding-bottom: 40px;
}


.kdt-hero__eyebrow {
    margin: 0 0 12px;

    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 12px;
    font-weight: 600;

    line-height: 1;

    text-transform: uppercase;
    letter-spacing: 0.18em;

    color: var(--color-amber);
}


.kdt-hero__title {
    margin: 0;

    font-family: 'Archivo', sans-serif;
    font-size: 48px;
    font-weight: 800;

    line-height: 1.1;

    color: var(--color-navy);
}


.kdt-hero__description {
    max-width: 610px;

    margin: 20px 0 0;

    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 400;

    line-height: 1.65;

    color: var(--color-graphite);
}


/* ========================================
   Category section
======================================== */

.kdt-categories {
    padding-top: 128px;
    padding-bottom: 96px;

    background-color: #fff;
}


.kdt-category-grid {
    display: grid;

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

    gap: 16px;
}


/* Card */

.kdt-category-card {
    min-height: 110px;

    padding: 20px;

    display: flex;
    flex-direction: column;

    justify-content: space-between;
    align-items: flex-start;

    border-radius: 12px;

    background-color: var(--color-sand);

    text-decoration: none;

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
}


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

    box-shadow:
        0 10px 25px rgba(38, 58, 119, 0.08);
}


/* Icon box */

.kdt-category-card__icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background-color: var(--color-mist);
}


/* Temporary icon matching the Figma symbol */

.kdt-category-card__circle {
    width: 16px;
    height: 16px;

    display: block;

    border: 1.5px solid var(--color-navy);
    border-radius: 50%;
}


/* Category name */

.kdt-category-card__name {
    margin-top: 15px;

    font-family: 'Archivo', sans-serif;
    font-size: 16px;
    font-weight: 800;

    line-height: 1.2;

    color: var(--color-navy);
}


/* ========================================
   See all machines
======================================== */

.kdt-see-all {
    width: fit-content;

    margin-top: 34px;

    display: inline-flex;
    align-items: center;

    gap: 22px;

    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.06em;

    color: var(--color-navy);

    text-decoration: none;

    transition: gap 180ms ease;
}


.kdt-see-all:hover {
    gap: 27px;
}


/* ========================================
   CTA
======================================== */

.kdt-cta {
    background-color: var(--color-navy);
}


.kdt-cta__inner {
    min-height: 106px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.kdt-cta__title {
    margin: 0;

    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-weight: 800;

    color: #fff;
}


.kdt-cta__button {
    min-width: 168px;
    height: 46px;

    padding: 0 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--color-amber);
    border-radius: 7px;

    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.07em;

    color: var(--color-amber);

    text-decoration: none;

    transition:
        background-color 180ms ease,
        color 180ms ease;
}


.kdt-cta__button:hover {
    background-color: var(--color-amber);
    color: var(--color-navy);
}


/* ========================================
   Responsive
======================================== */

@media (max-width: 767px) {

    .kdt-hero {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .kdt-hero__title {
        font-size: 36px;
    }

    .kdt-hero__description {
        font-size: 15px;
    }


    .kdt-categories {
        padding-top: 64px;
        padding-bottom: 64px;
    }


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


    .kdt-cta__inner {
        padding-top: 28px;
        padding-bottom: 28px;

        flex-direction: column;
        align-items: flex-start;
    }

}


@media (max-width: 480px) {

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

}


@media (prefers-reduced-motion: reduce) {
    .kdt-card {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .js-reveal {
        opacity: 1;
    }
}