/* paulsolution.nl — static overrides */
html, body { overflow-x: clip; margin: 0; padding: 0; }
.go-top, .scroll-top { display: none !important; }

/* === WA Form === */
.wa-form-wrap { max-width: 560px; margin: 20px auto; padding: 24px; background: #fff; border-radius: 14px; box-shadow: 0 4px 20px rgba(15,23,36,0.08); }
.wa-form { display: flex; flex-direction: column; gap: 16px; }
.wa-form .wa-field { display: flex; flex-direction: column; gap: 6px; }
.wa-form .wa-label { font-size: 14px; font-weight: 600; color: #334155; }
.wa-form .wa-required { color: #e11d48; }
.wa-form input[type="text"], .wa-form textarea {
    font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #d1d5db;
    border-radius: 8px; background: #f9fafb; color: #0f172a; width: 100%; box-sizing: border-box;
    transition: border-color .15s, background .15s;
}
.wa-form input:focus, .wa-form textarea:focus { outline: none; border-color: #25D366; background: #fff; }
.wa-form textarea { resize: vertical; min-height: 110px; }
.wa-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 22px; background: #25D366; color: #fff; border: 0; border-radius: 10px;
    font-size: 16px; font-weight: 700; cursor: pointer; width: 100%; box-sizing: border-box;
    transition: background .15s;
}
.wa-submit:hover { background: #1eaf54; }
.wa-submit .wa-icon { width: 22px; height: 22px; }

/* === FAB phone === */
.kb-fab-phone { display: none; }
@media (max-width: 768px) {
    .kb-fab-phone {
        display: inline-flex; align-items: center; justify-content: center;
        position: fixed; right: 16px; bottom: 20px; width: 58px; height: 58px;
        background: #25D366; color: #fff; border-radius: 50%; z-index: 9998;
        box-shadow: 0 6px 18px rgba(37,211,102,0.45), 0 2px 6px rgba(0,0,0,0.15);
        text-decoration: none; animation: kb-fab-pulse 2.4s ease-in-out infinite;
    }
    .kb-fab-phone svg { width: 28px; height: 28px; fill: #fff; }
}
@keyframes kb-fab-pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.06);} }

/* === elementor-invisible fallback === */
.elementor-invisible { visibility: visible !important; opacity: 1 !important; }

/* Hide page-transition overlay (klussen pattern) */
e-page-transition, .e-page-transition, .elementor-page-transition {
    display: none !important; opacity: 0 !important; pointer-events: none !important;
}

/* Mobile basic fixes */
@media (max-width: 768px) {
    body * { max-width: 100vw; }
    img, video, iframe { height: auto !important; max-width: 100% !important; }
    .elementor-section > .elementor-container { padding-left: 16px !important; padding-right: 16px !important; }
    h1, .elementor-heading-title { line-height: 1.15 !important; }
}

/* Hide newsletter sections (no ESP configured) */
.elementor-element.elementor-element-2c63245a,
.elementor-element.elementor-element-4148b26d,
section[data-id="2c63245a"],
section[data-id="4148b26d"] {
    display: none !important;
}

/* Hide projects sections (empty / no content configured) */
.elementor-element.elementor-element-4d129506,
.elementor-element.elementor-element-757b2a88,
.elementor-element.elementor-element-7fcbc807,
.elementor-element.elementor-element-5de28bec,
.elementor-element.elementor-element-3b219b8,
.elementor-element.elementor-element-4410638a,
section[data-id="4d129506"],
section[data-id="757b2a88"],
section[data-id="7fcbc807"],
section[data-id="5de28bec"],
section[data-id="3b219b8"],
section[data-id="4410638a"] {
    display: none !important;
}

/* Kontakt w footerze — lepsza czytelność tekstu */
.paul-contact-block .elementor-widget-container,
.paul-contact-block p,
.paul-contact-block strong,
.paul-contact-block a {
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}
.paul-contact-block p {
    margin: 0 0 4px 0 !important;
}
.paul-contact-block strong {
    color: #facc15 !important;  /* żółty akcent dla etykiet: Email / Telefon / ... */
    font-weight: 700;
}
.paul-contact-block a {
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.35);
    transition: color .15s, border-color .15s;
}
.paul-contact-block a:hover {
    color: #facc15 !important;
    border-bottom-color: #facc15;
}
/* BTW/KvK — mniejsze, subtelne */
.paul-contact-block p:nth-last-child(-n+2) {
    font-size: 13px !important;
    opacity: 0.75;
}
/* NL/EN wersje — użyj identycznej reguły dla sekcji kontakt, target wszystkie
   text-editor widgets w footerze */
[data-element_type="section"] .elementor-widget-text-editor.paul-contact-block,
footer .elementor-widget-text-editor p strong {
    color: #facc15 !important;
}

/* === Header — logo + flagi w jednej linii, ładny language switcher === */
.elementor-element-c39dcf7,
.elementor-element-c39dcf7 > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 32px !important;
    gap: 20px !important;
    flex-wrap: nowrap !important;
}
/* Logo container — po lewej */
.elementor-element-1fa8afc {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
}
.elementor-element-1fa8afc img {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
}
/* Language switcher — dropdown: widać tylko bieżącą flagę, reszta na klik */
.elementor-element-199f6a0 {
    position: relative !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 4px 8px 4px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}
.elementor-element-199f6a0:hover { background: rgba(255,255,255,0.08); }

/* Ukryj wszystkie flagi domyślnie */
.elementor-element-199f6a0 .elementor-widget-image {
    display: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 4px 0 !important;
}
.elementor-element-199f6a0 .elementor-widget-image .elementor-widget-container {
    padding: 0 !important;
}
/* Pokaż tylko bieżącą (ma klasę paul-lang-current) */
.elementor-element-199f6a0 .elementor-widget-image.paul-lang-current {
    display: flex !important;
    align-items: center;
    position: relative;
    padding: 0 16px 0 0;
}
.elementor-element-199f6a0 .elementor-widget-image.paul-lang-current::after {
    content: "▾";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 11px;
    opacity: 0.7;
    pointer-events: none;
}
/* Flaga styl */
.elementor-element-199f6a0 img {
    width: 32px !important;
    height: 22px !important;
    object-fit: cover !important;
    border-radius: 3px !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    transition: border-color .2s, transform .2s !important;
    display: block !important;
}
.elementor-element-199f6a0 a:hover img {
    border-color: #facc15 !important;
}
.elementor-element-199f6a0 a {
    display: block;
    text-decoration: none !important;
}

/* Otwarty stan — pokaż wszystkie flagi w dropdownie */
.elementor-element-199f6a0.open {
    background: rgba(15,23,36,0.95);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    z-index: 100;
}
.elementor-element-199f6a0.open .elementor-widget-image {
    display: block !important;
}
.elementor-element-199f6a0.open .elementor-widget-image.paul-lang-current {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 6px;
    margin-bottom: 4px;
}
.elementor-element-199f6a0.open .elementor-widget-image.paul-lang-current::after {
    content: "▴";
}
/* Mobile adjustment */
@media (max-width: 768px) {
    .elementor-element-c39dcf7,
    .elementor-element-c39dcf7 > .e-con-inner {
        padding: 10px 16px !important;
    }
    .elementor-element-1fa8afc img {
        max-height: 44px !important;
    }
    .elementor-element-199f6a0 img {
        width: 32px !important;
        height: 22px !important;
    }
}

/* Hero section — mniejszy padding na mobile (było 170/130) */
@media (max-width: 768px) {
    .elementor-element.elementor-element-5b7081bf,
    section.elementor-element-5b7081bf {
        padding-top: 40px !important;
        padding-bottom: 60px !important;
    }
}

/* Image carousel — większe slidy, większe strzałki */
.elementor-element-e91dad6 {
    width: 100% !important;
}
.elementor-image-carousel .swiper-slide-inner,
.elementor-image-carousel .swiper-slide-image {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 8px;
}
.elementor-image-carousel .swiper-slide {
    display: flex !important;
    align-items: center;
}
.elementor-image-carousel-wrapper .elementor-swiper-button {
    width: 40px !important;
    height: 40px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    color: #1e2f4f !important;
    font-size: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.elementor-image-carousel-wrapper .elementor-swiper-button svg {
    width: 16px; height: 16px;
}
.elementor-image-carousel-wrapper .elementor-swiper-button-prev { left: 8px !important; }
.elementor-image-carousel-wrapper .elementor-swiper-button-next { right: 8px !important; }

@media (max-width: 768px) {
    /* Carousel pełna szerokość i większe slidy */
    .elementor-element.elementor-element-e91dad6,
    .elementor-element.elementor-element-e91dad6 .elementor-widget-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .elementor-image-carousel-wrapper {
        width: 100% !important;
    }
    .elementor-image-carousel .swiper-slide-image {
        min-height: 200px;
    }
    /* Force 1 slide per view on small mobile */
    .elementor-image-carousel .swiper-slide {
        width: calc(100vw - 48px) !important;
        max-width: 340px !important;
    }
}
