/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Template: twentytwentyfive
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Five Child theme for naprawa-stron-wordpress.pl
Version: 1.5.1785866713
Updated: 2026-08-18

*/

/* --- Contact Form 7 & Input Styling --- */
.wpcf7 form {
    max-width: 100%;
    margin: 0 auto;
}
.wpcf7 form p {
    margin-bottom: 1.25rem;
}
.wpcf7 form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--wp--preset--color--contrast, #0F172A);
    margin-bottom: 0.35rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--wp--preset--color--contrast, #0F172A);
    background-color: #ffffff;
    border: 1px solid var(--wp--preset--color--accent-6, #e2e8f0);
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--brand, #FF5A36);
    box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.15);
}
.wpcf7 input[type="submit"] {
    display: inline-block;
    width: 100%;
    padding: 0.9rem 1.75rem;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--wp--preset--color--brand, #FF5A36);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.wpcf7 input[type="submit"]:hover {
    background-color: #e04824;
}
.wpcf7 input[type="submit"]:active {
    transform: scale(0.99);
}
.wpcf7 .wpcf7-response-output {
    border-radius: 6px !important;
    padding: 0.75rem 1rem !important;
    margin: 1rem 0 0 0 !important;
    font-size: 0.95rem !important;
}
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #f0fdf4 !important;
    border-color: #86efac !important;
    color: #166534 !important;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background-color: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
}
.wpcf7-not-valid-tip {
    font-size: 0.85rem !important;
    color: #dc2626 !important;
    margin-top: 0.25rem !important;
}

/* --- Card Background & Interactive Hover --- */
/* Domyślnie: czysta biel, wysoki kontrast i maksymalna czytelność */
.is-style-card,
.wp-block-column.is-style-card,
.wp-block-group.is-style-card,
.wp-block-column.has-border-color {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Po najechaniu (hover): wchodzi kolorowe tło, akcent ramki i uniesienie */
.is-style-card:hover,
.wp-block-column.is-style-card:hover,
.wp-block-group.is-style-card:hover,
.wp-block-column.has-border-color:hover {
    background-color: #F8FAFC !important; /* Subtelny jasny odcień Slate 50 po najechaniu */
    border-color: var(--wp--preset--color--brand, #FF5A36) !important;
    box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06) !important;
    transform: translateY(-4px) !important;
}

/* Wyróżniona karta w ciemnym granacie (is-style-section-5) */
.wp-block-column.is-style-section-5 {
    background-color: var(--wp--preset--color--contrast, #0F172A) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wp-block-column.is-style-section-5:hover {
    border-color: var(--wp--preset--color--brand, #FF5A36) !important;
    box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.4), 0 4px 12px -2px rgba(255, 90, 54, 0.2) !important;
    transform: translateY(-4px) !important;
}

.wp-block-details {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    transition: all 0.2s ease;
}
.wp-block-details:hover {
    background-color: #F8FAFC !important;
    border-color: #CBD5E1 !important;
}
.wp-block-details[open] {
    background-color: #FFFFFF !important;
    border-color: var(--wp--preset--color--brand, #FF5A36) !important;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
}

.wp-block-button.is-style-primary-accent .wp-block-button__link {
    background-color: var(--wp--preset--color--brand, #FF5A36) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(255, 90, 54, 0.25);
    transition: all 0.2s ease;
}

.wp-block-button.is-style-primary-accent .wp-block-button__link:hover {
    background-color: #e04824 !important;
    box-shadow: 0 4px 8px rgba(255, 90, 54, 0.35);
    transform: translateY(-1px);
}

/* --- Reset Root Site Blocks Gap on Main --- */
:where(.wp-site-blocks) > main,
:where(.wp-site-blocks) > header {
    margin-block-start: 0 !important;
}

/* --- Mobile Sticky CTA Bar --- */
.mobile-sticky-cta-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 99999;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid #e2e8f0;
        padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px)) 1rem;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    }

    .mobile-sticky-cta-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        background-color: var(--wp--preset--color--brand, #FF5A36);
        color: #ffffff !important;
        font-size: 1.05rem;
        font-weight: 700;
        text-decoration: none !important;
        padding: 0.85rem 1.25rem;
        border-radius: 8px;
        box-shadow: 0 3px 8px rgba(255, 90, 54, 0.35);
        transition: transform 0.1s ease, background-color 0.2s ease;
    }

    .mobile-sticky-cta-button:active {
        transform: scale(0.98);
        background-color: #e04824;
    }

    /* Extra padding at the bottom of the page on mobile so content isn't covered by the bar */
    footer.wp-block-template-part {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* --- Clickable Cards (Stretched Link) --- */
.is-style-card.is-clickable,
.is-style-card:has(h3 a) {
    position: relative;
    cursor: pointer;
}

.is-style-card.is-clickable h3 a,
.is-style-card:has(h3 a) h3 a {
    text-decoration: none;
    color: inherit;
}

.is-style-card.is-clickable h3 a::after,
.is-style-card:has(h3 a) h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.is-style-card:has(h3 a):hover h3 a {
    color: var(--wp--preset--color--brand, #FF5A36);
}
