/* Only north-east link decorations are removed by PHP; gallery navigation stays intact. */
body.home .kf-about-image { background: #fff; }
body.home .kf-about-image img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}
/* Removing the banner lets normal row placement fill every column. Hidden filtered cards stay hidden. */
body .kf-portfolio-grid { grid-auto-flow: row; }
body .kf-portfolio-grid > .kf-project-card { grid-column: auto; grid-row: auto; }
body .kf-portfolio-mid-cta { display: none !important; }
body main .kf-cta-band h2 { font-size: clamp(32px, 3.4vw, 48px) !important; line-height: 1.15 !important; }
body main .kf-cta-band p:not(.kf-kicker) { font-size: 16px !important; line-height: 1.8 !important; }
body.home .kf-services-grid .kf25-clickable-service {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    padding: 26px 24px 30px;
    border: 1px solid #d6dfd7;
    border-radius: 12px;
    background: #f7f9f6;
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
body.home .kf25-clickable-service .kf25-service-card {
    color: inherit;
    text-decoration: none;
}
body.home .kf25-clickable-service .kf25-service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 12px;
    cursor: pointer;
}
body.home .kf25-clickable-service p a { position: relative; z-index: 2; }
body.home .kf25-clickable-service:focus-within {
    background: #e8eee7;
    border-color: #7c9281;
    box-shadow: 0 6px 22px #263e2e0d;
}
body.home .kf25-service-card:focus-visible { outline: none; }
body.home .kf25-service-card:focus-visible::after {
    outline: 3px solid #45664d;
    outline-offset: 4px;
}
@media (hover: hover) {
    body.home .kf25-clickable-service:hover {
        background: #e8eee7;
        border-color: #9aae9c;
        box-shadow: 0 6px 22px #263e2e0d;
    }
}
body.home .kf-process-step .kf25-process-marker {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin: 0 0 22px;
    color: #647a69;
    font: 500 15px/1 Manrope, Arial, sans-serif;
    letter-spacing: .16em;
}
body.home .kf-process-step .kf25-process-arrow {
    font-size: 35px;
    font-weight: 300;
    letter-spacing: 0;
}
body .kf-cta-band {
    background: #edf2ec !important;
    color: #202523 !important;
}
body main .kf-cta-band :is(h1,h2,h3) { color: #202523 !important; }
body main .kf-cta-band p,
body.home main .kf-cta-band p { color: #5c635f !important; }
body main .kf-cta-band p.kf-kicker,
body.home main .kf-cta-band p.kf-kicker { color: #59675d !important; }
body .kf-cta-band .kf-cta-inner { padding-block: 54px; gap: 36px; }
body .kf-cta-band .kf25-estimate-button {
    box-sizing: border-box;
    border: 1px solid #aec2b0;
    border-radius: 16px !important;
    padding: 20px 28px;
    min-height: 60px;
    color: #203629 !important;
    background: linear-gradient(110deg, #d8e8d6, #e8efd9, #c9dfd1, #d8e8d6);
    background-size: 300% 100%;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.5;
    text-align: center;
    animation: kf25-soft-pulse 5.5s ease-in-out infinite;
    transition: border-color .25s ease, color .25s ease;
}
body .kf-cta-band .kf25-estimate-button:hover,
body .kf-cta-band .kf25-estimate-button:focus-visible {
    color: #172c1f !important;
    border-color: #5b7c62;
}
body .kf-cta-band .kf25-estimate-button:focus-visible {
    outline: 3px solid #45664d;
    outline-offset: 4px;
}
@keyframes kf25-soft-pulse {
    0%, 100% { background-position: 0% 50%; box-shadow: 0 0 0 0 #6b987a00; }
    50% { background-position: 100% 50%; box-shadow: 0 0 0 7px #6b987a18; }
}
@media (max-width: 600px) {
    body.home .kf-services-grid .kf25-clickable-service { padding: 24px 22px; }
    body .kf-cta-band .kf-cta-inner { padding-block: 40px; gap: 24px; }
    body .kf-cta-band .kf25-estimate-button { max-width: 100%; padding: 18px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    body.home .kf-services-grid .kf25-clickable-service { transition: none; }
    body .kf-cta-band .kf25-estimate-button { animation: none; }
}
