/*
Theme Name: Fountax
Description: Fountax is a modern and clean Gutenverse theme for tax advisors, financial services, accountants, insurance agencies, and consulting businesses. Fountax is the perfect platform for Build a professional online presence that highlights your expertise and earns client trust.
Author: Jegtheme
Author URI: https://support.jegtheme.com/
Theme URI: https://fse.jegtheme.com/fountax/
Version: 1.0.13
Stable tag: 1.0.6
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: fountax
Domain Path: /languages
Tags: custom-logo,custom-menu,editor-style,featured-images,full-site-editing,block-patterns
Copyright: © Jegtheme. All rights reserved.
*/



.editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .block-library-block__reusable-block-container {
    max-width: 100%;
}

/*
 * KFA visual tuning:
 * - match Laryna's portrait scale to the other team cards;
 * - use a wider, mobile-only hero composition that keeps the full KFA sign.
 */
img.wp-image-4877 {
    transform: scale(1.22);
    transform-origin: 50% 35%;
}

@media (max-width: 767px) {
    body.page-id-4252 .kfa-office-hero__photo {
        background-color: #252a30;
        background-image:
            linear-gradient(
                to bottom,
                rgba(37, 42, 48, 0) 0%,
                rgba(37, 42, 48, 0) 58%,
                rgba(37, 42, 48, 0.72) 70%,
                #252a30 78%,
                #252a30 100%
            ),
            url("https://kfa-finanse.nl/wp-content/uploads/2026/09/KFA-Finanse-biuro-Rotterdam-Edyta.webp");
        background-repeat: no-repeat;
        background-position: center, 93% top;
        background-size: 100% 100%, auto 76%;
    }

    body.page-id-4252 .kfa-office-hero__photo img.wp-image-4902 {
        opacity: 0 !important;
    }
}

/*
 * KFA fixed mobile hero artwork:
 * match the accepted homepage crop independently of section content height.
 */
@media (max-width: 767px) {
    body.page-id-4252:has(.kfa-office-hero) .kfa-office-hero__photo,
    body:not(.page-id-4252):has(.kfa-office-hero) .kfa-office-hero__photo {
        background-color: #252a30;
        background-image:
            linear-gradient(
                to bottom,
                rgba(37, 42, 48, 0) 0%,
                rgba(37, 42, 48, 0) 58%,
                rgba(37, 42, 48, 0.72) 70%,
                #252a30 78%,
                #252a30 100%
            ),
            url("/wp-content/uploads/2026/09/KFA-Finanse-biuro-Rotterdam-Edyta.webp");
        background-repeat: no-repeat;
        background-position: center top, 93% top;
        background-size: 100% max(711px, 111svh), auto max(540px, 84.4svh);
    }

    body.page-id-4252:has(.kfa-office-hero) .kfa-office-hero__photo img,
    body:not(.page-id-4252):has(.kfa-office-hero) .kfa-office-hero__photo img {
        opacity: 0 !important;
    }

    body.page-id-4252:has(.kfa-office-hero) .kfa-office-hero::after,
    body:not(.page-id-4252):has(.kfa-office-hero) .kfa-office-hero::after {
        background-size: 100% max(711px, 111svh), 100% max(711px, 111svh) !important;
        background-position: center top, center top !important;
        background-repeat: no-repeat !important;
    }
}

/*
 * KFA light subpages and hero transition:
 * use one warm canvas (#ece9e4) and fade the hero into that exact colour.
 * Homepage and Contact keep their original dark continuation.
 */
body:not(.page-id-4252):not(.page-id-4274) {
    --kfa-hero-transition-rgb: 236, 233, 228;
    background-color: #ece9e4 !important;
}

body:not(.page-id-4252):not(.page-id-4274) .wp-site-blocks,
body:not(.page-id-4252):not(.page-id-4274) .guten-8kpMtj {
    background-color: #ece9e4 !important;
}

body:not(.page-id-4252):not(.page-id-4274) .kfa-office-hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: -1px;
    height: clamp(72px, 7vw, 96px);
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(var(--kfa-hero-transition-rgb), 0) 0%,
        rgba(var(--kfa-hero-transition-rgb), 0.04) 28%,
        rgba(var(--kfa-hero-transition-rgb), 0.18) 52%,
        rgba(var(--kfa-hero-transition-rgb), 0.55) 76%,
        rgba(var(--kfa-hero-transition-rgb), 0.90) 92%,
        rgb(var(--kfa-hero-transition-rgb)) 100%
    );
}

@media (max-width: 767px) {
    body:not(.page-id-4252):not(.page-id-4274) .kfa-office-hero::before {
        height: 72px;
    }
}
