/*
Theme Name: Astra Child - Docieplenia Wrocław
Template: astra
Version: 1.0
Description: Zabezpieczony motyw potomny dla docieplenia.wroclaw.pl
Author: Grzegorz
*/

@import url("../astra/style.css");

/* ==========================================================================
   NOWOCZESNA PALETA KOLORÓW - BRANŻA BUDOWLANA
   ========================================================================== */

:root {
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;
    --accent-orange: #f59e0b;
    --accent-orange-dark: #d97706;
    --accent-orange-light: #fbbf24;
    --success-green: #10b981;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    --gradient-cta: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-dark) 100%);
}

/* ==========================================================================
   STABILIZACJA OBRAZÓW - ZACHOWANIE ORYGINALNYCH PROPORCJI
   ========================================================================== */

img,
.wp-post-image,
.attachment-post-thumbnail,
.hero-section img,
.widget img,
.entry-content img,
.homepage-content img,
.about-page-content img,
.stropodach-page-content img,
.malowanie-elewacji-page-content img,
.mycie-elewacji-page-content img,
.materialy-page-content img,
.realizacje-page-content img,
.kontakt-page-content img,
.kalkulator-page-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect dla wszystkich obrazów */
img:hover,
.wp-post-image:hover,
.attachment-post-thumbnail:hover,
.hero-section img:hover,
.widget img:hover,
.entry-content img:hover,
.homepage-content img:hover,
.about-page-content img:hover,
.stropodach-page-content img:hover,
.malowanie-elewacji-page-content img:hover,
.mycie-elewacji-page-content img:hover,
.materialy-page-content img:hover,
.realizacje-page-content img:hover,
.kontakt-page-content img:hover,
.kalkulator-page-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.site-header {
    min-height: 80px;
}

.hero-section {
    min-height: 400px;
}

.widget-area .widget {
    min-height: 150px;
    margin-bottom: 2rem;
}

.ast-button,
.button,
input[type="submit"] {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.gallery-item,
.wp-block-gallery .wp-block-image {
    min-height: 200px;
}

.gallery-item img,
.wp-block-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   ELEGANCKI NAGŁÓWEK - ZACHOWANIE OBECNEGO STYLU
   ========================================================================== */

.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: none;
    padding: 1rem 0;
}

.site-title a,
.custom-logo-link {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
}

.site-header a[href^="tel:"],
.site-header a[href^="mailto:"] {
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 2px solid var(--primary-blue);
}


.site-header a[href^="tel:"]:hover,
.site-header a[href^="mailto:"]:hover {
    background: var(--accent-orange) !important;
    color: var(--white) !important;
    border-color: var(--accent-orange) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}


.main-navigation a {
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: var(--gray-100);
    color: var(--primary-blue);
}

/* ==========================================================================
   TOP BAR - BRANDING KORPORACYJNY
   ========================================================================== */

.ast-above-header,
.ast-header-top-bar,
.custom-top-bar {
    background: var(--gradient-primary) !important;
    color: var(--white) !important;
    padding: 0.8rem 0 !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    z-index: 999;
}

.ast-above-header a,
.ast-header-top-bar a,
.custom-top-bar a {
    color: var(--white) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   PROFESJONALNA STOPKA - BEZ ZBĘDNYCH KRESEK
   ========================================================================== */

.site-footer {
    background: var(--gray-800);
    color: var(--gray-100);
    padding: 3rem 0 2rem 0;
    border-top: 4px solid var(--primary-blue);
}

.site-footer .widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 2rem !important;
}

/* TYTUŁY WIDGETÓW BEZ DOLNYCH KRESEK - KLUCZOWA NAPRAWA */
.site-footer .widget-title {
    color: var(--white) !important;
    border-bottom: none !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
}

.site-footer,
.site-footer p,
.site-footer li,
.site-footer span {
    color: var(--gray-100) !important;
    line-height: 1.6;
}

.site-footer a {
    color: var(--accent-orange-light) !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: var(--white) !important;
    text-decoration: underline !important;
}

/* PRZYCISKI KONTAKTOWE W STOPCE - NIEBIESKIE JAK W NAGŁÓWKU */
.site-footer a[href^="tel:"],
.site-footer a[href^="mailto:"] {
    background: var(--primary-blue) !important;
    color: var(--white) !important;
    padding: 12px 24px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0.5rem 0 !important;
    transition: all 0.3s ease !important;
    border: 2px solid var(--primary-blue) !important;
}

.site-footer a[href^="tel:"]:hover,
.site-footer a[href^="mailto:"]:hover {
    background: var(--white) !important;
    color: var(--primary-blue) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--shadow-soft) !important;
}

.site-footer ul {
    list-style: none !important;
    padding: 0 !important;
}

.site-footer li {
    margin-bottom: 0.5rem !important;
}

.site-footer img {
    max-width: 150px !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 1rem 0 !important;
}

/* ==========================================================================
   KARUZELA OPINII - DOPASOWANIE DO CIEMNEJ STOPKI
   ========================================================================== */

.testimonial-slider {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    background: transparent !important;
    padding: 0 !important;
}

.testimonial {
    display: none !important;
    text-align: center !important;
    padding: 1.5rem !important;
    background: var(--gray-700) !important;
    border: 1px solid var(--gray-600) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
}

.testimonial.active {
    display: block !important;
}

.testimonial p {
    font-size: 1rem !important;
    color: var(--gray-100) !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
    font-style: italic !important;
}

.testimonial h4 {
    font-size: 1.1rem !important;
    color: var(--accent-orange-light) !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* ==========================================================================
   USUNIĘCIE WSZYSTKICH INNYCH MOŻLIWYCH SEPARATORÓW
   ========================================================================== */

.site-footer hr,
.site-footer .ast-footer-separator,
.site-footer .ast-small-footer-separator,
.site-footer .separator,
.site-footer .wp-block-separator,
.site-footer .ast-separator,
.site-footer .divider,
.site-footer .footer-separator {
    display: none !important;
    border: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}

.site-footer .ast-small-footer-wrap::before,
.site-footer .ast-small-footer-wrap::after,
.site-footer .ast-footer-overlay::before,
.site-footer .ast-footer-overlay::after,
.site-footer .widget::before,
.site-footer .widget::after {
    display: none !important;
    content: none !important;
}

/* ==========================================================================
   OGÓLNE ULEPSZENIA STRONY
   ========================================================================== */

h1, h2, h3, h4, h5, h6,
.entry-title {
    color: var(--primary-blue);
    font-weight: 600;
}

.ast-button,
.button,
input[type="submit"],
.wp-block-button__link {
    background: var(--gradient-cta);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    border: none;
    min-height: 48px;
}

.ast-button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    color: var(--white);
    text-decoration: none;
}

.entry-content a {
    color: var(--accent-orange);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: var(--accent-orange-dark);
    text-decoration-color: var(--accent-orange-dark);
}

/* ==========================================================================
   STYLE DLA WSZYSTKICH STRON USŁUGOWYCH - SPÓJNOŚĆ KORPORACYJNA
   ========================================================================== */

/* HOVER EFFECTS DLA PRZYCISKÓW NA WSZYSTKICH STRONACH */
.homepage-content a[style*="background: #f59e0b"]:hover,
.about-page-content a[style*="background: #f59e0b"]:hover,
.stropodach-page-content a[style*="background: #f59e0b"]:hover,
.malowanie-elewacji-page-content a[style*="background: #f59e0b"]:hover,
.mycie-elewacji-page-content a[style*="background: #f59e0b"]:hover,
.materialy-page-content a[style*="background: #f59e0b"]:hover,
.realizacje-page-content a[style*="background: #f59e0b"]:hover,
.kontakt-page-content a[style*="background: #f59e0b"]:hover,
.kalkulator-page-content a[style*="background: #f59e0b"]:hover {
    background: var(--accent-orange-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

.homepage-content a[style*="background: #1e40af"]:hover,
.about-page-content a[style*="background: #1e40af"]:hover,
.stropodach-page-content a[style*="background: #1e40af"]:hover,
.malowanie-elewacji-page-content a[style*="background: #1e40af"]:hover,
.mycie-elewacji-page-content a[style*="background: #1e40af"]:hover,
.materialy-page-content a[style*="background: #1e40af"]:hover,
.realizacje-page-content a[style*="background: #1e40af"]:hover,
.kontakt-page-content a[style*="background: #1e40af"]:hover,
.kalkulator-page-content a[style*="background: #1e40af"]:hover {
    background: var(--primary-blue-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4) !important;
}

.homepage-content a[style*="border: 2px solid"]:hover,
.about-page-content a[style*="border: 2px solid"]:hover,
.stropodach-page-content a[style*="border: 2px solid"]:hover,
.malowanie-elewacji-page-content a[style*="border: 2px solid"]:hover,
.mycie-elewacji-page-content a[style*="border: 2px solid"]:hover,
.materialy-page-content a[style*="border: 2px solid"]:hover,
.realizacje-page-content a[style*="border: 2px solid"]:hover,
.kontakt-page-content a[style*="border: 2px solid"]:hover,
.kalkulator-page-content a[style*="border: 2px solid"]:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* ANIMACJE DLA NUMEROWANYCH KROKÓW */
.homepage-content div[style*="border-radius: 50%"],
.about-page-content div[style*="border-radius: 50%"],
.stropodach-page-content div[style*="border-radius: 50%"],
.malowanie-elewacji-page-content div[style*="border-radius: 50%"],
.mycie-elewacji-page-content div[style*="border-radius: 50%"],
.materialy-page-content div[style*="border-radius: 50%"],
.realizacje-page-content div[style*="border-radius: 50%"],
.kontakt-page-content div[style*="border-radius: 50%"],
.kalkulator-page-content div[style*="border-radius: 50%"] {
    transition: all 0.3s ease;
}

.homepage-content div[style*="border-radius: 50%"]:hover,
.about-page-content div[style*="border-radius: 50%"]:hover,
.stropodach-page-content div[style*="border-radius: 50%"]:hover,
.malowanie-elewacji-page-content div[style*="border-radius: 50%"]:hover,
.mycie-elewacji-page-content div[style*="border-radius: 50%"]:hover,
.materialy-page-content div[style*="border-radius: 50%"]:hover,
.realizacje-page-content div[style*="border-radius: 50%"]:hover,
.kontakt-page-content div[style*="border-radius: 50%"]:hover,
.kalkulator-page-content div[style*="border-radius: 50%"]:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

/* EFEKTY HOVER DLA KART USŁUG */
.homepage-content div[style*="box-shadow: 0 4px 6px"]:hover,
.about-page-content div[style*="box-shadow: 0 4px 6px"]:hover,
.stropodach-page-content div[style*="box-shadow: 0 4px 6px"]:hover,
.malowanie-elewacji-page-content div[style*="box-shadow: 0 4px 6px"]:hover,
.mycie-elewacji-page-content div[style*="box-shadow: 0 4px 6px"]:hover,
.materialy-page-content div[style*="box-shadow: 0 4px 6px"]:hover,
.realizacje-page-content div[style*="box-shadow: 0 4px 6px"]:hover,
.kontakt-page-content div[style*="box-shadow: 0 4px 6px"]:hover,
.kalkulator-page-content div[style*="box-shadow: 0 4px 6px"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

/* ==========================================================================
   SPECJALNA SEKCJA DLA KALKULATORA - WYMUSZONE ANIMACJE
   ========================================================================== */

/* Wszystkie przyciski na stronie kalkulatora */
.kalkulator-page-content a,
article a,
div[style*="background: #f59e0b"],
div[style*="background: #1e40af"],
a[style*="background: #f59e0b"],
a[style*="background: #1e40af"],
a[href="/kontakt"] {
    transition: all 0.3s ease !important;
}

/* Hover dla przycisków pomarańczowych */
.kalkulator-page-content a[style*="background: #f59e0b"]:hover,
article a[style*="background: #f59e0b"]:hover,
a[style*="background: #f59e0b"]:hover {
    background: #d97706 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

/* Hover dla przycisków niebieskich */
.kalkulator-page-content a[style*="background: #1e40af"]:hover,
article a[style*="background: #1e40af"]:hover,
a[style*="background: #1e40af"]:hover {
    background: #1e3a8a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4) !important;
}

/* Hover dla przycisków z borderami */
.kalkulator-page-content a[style*="border: 2px solid"]:hover,
article a[style*="border: 2px solid"]:hover,
a[style*="border: 2px solid"]:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* Numerowane kółka */
.kalkulator-page-content div[style*="border-radius: 50%"],
article div[style*="border-radius: 50%"],
div[style*="width: 40px"][style*="height: 40px"],
div[style*="width: 50px"][style*="height: 50px"],
div[style*="width: 60px"][style*="height: 60px"] {
    transition: all 0.3s ease !important;
}

.kalkulator-page-content div[style*="border-radius: 50%"]:hover,
article div[style*="border-radius: 50%"]:hover,
div[style*="width: 40px"][style*="height: 40px"]:hover,
div[style*="width: 50px"][style*="height: 50px"]:hover,
div[style*="width: 60px"][style*="height: 60px"]:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3) !important;
}

/* Karty z box-shadow */
.kalkulator-page-content div[style*="box-shadow: 0 4px 6px"],
article div[style*="box-shadow: 0 4px 6px"],
div[style*="box-shadow: 0 4px 6px"] {
    transition: all 0.3s ease !important;
}

.kalkulator-page-content div[style*="box-shadow: 0 4px 6px"]:hover,
article div[style*="box-shadow: 0 4px 6px"]:hover,
div[style*="box-shadow: 0 4px 6px"]:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Specjalne dla kalkulatora - przyciski wewnętrzne */
.jg-kalkulator-container #calculate-btn {
    transition: all 0.3s ease !important;
}

.jg-kalkulator-container #calculate-btn:hover {
    background: #e64a19 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4) !important;
}

.jg-kalkulator-container #send-btn {
    transition: all 0.3s ease !important;
}

.jg-kalkulator-container #send-btn:hover {
    background: #235a8a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(44, 123, 182, 0.4) !important;
}

/* ==========================================================================
   UNIWERSALNE SELEKTORY - ZŁAP WSZYSTKO!
   ========================================================================== */

/* Każdy element z pomarańczowym tłem */
*[style*="background: #f59e0b"],
*[style*="background:#f59e0b"],
*[style*="background-color: #f59e0b"],
*[style*="background-color:#f59e0b"] {
    transition: all 0.3s ease !important;
}

*[style*="background: #f59e0b"]:hover,
*[style*="background:#f59e0b"]:hover,
*[style*="background-color: #f59e0b"]:hover,
*[style*="background-color:#f59e0b"]:hover {
    background: #d97706 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

/* Każdy element z niebieskim tłem */
*[style*="background: #1e40af"],
*[style*="background:#1e40af"],
*[style*="background-color: #1e40af"],
*[style*="background-color:#1e40af"] {
    transition: all 0.3s ease !important;
}

*[style*="background: #1e40af"]:hover,
*[style*="background:#1e40af"]:hover,
*[style*="background-color: #1e40af"]:hover,
*[style*="background-color:#1e40af"]:hover {
    background: #1e3a8a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4) !important;
}

/* Każde okrągłe kółko */
*[style*="border-radius: 50%"] {
    transition: all 0.3s ease !important;
}

*[style*="border-radius: 50%"]:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3) !important;
}

/* Każda karta z cieniem */
*[style*="box-shadow: 0 4px 6px"] {
    transition: all 0.3s ease !important;
}

*[style*="box-shadow: 0 4px 6px"]:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   SPECJALNE STYLE DLA KALKULATORA - ZACHOWANIE ORYGINALNEJ FUNKCJONALNOŚCI
   ========================================================================== */

/* Zachowaj oryginalne style kalkulatora ale dodaj animacje */
.jg-kalkulator-container #calculate-btn:hover {
    background: #e64a19 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.4) !important;
}

.jg-kalkulator-container #send-btn:hover {
    background: #235a8a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(44, 123, 182, 0.4) !important;
}

/* Animacje dla wyników kalkulatora */
.jg-kalkulator-container .result-box {
    transition: all 0.3s ease !important;
}

.jg-kalkulator-container .result-box:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   NAPRAWA CLS - STABILIZACJA LOGO I KLUCZOWYCH ELEMENTÓW
   ========================================================================== */

/* Stabilizuj logo - główna przyczyna CLS */
.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header img[alt*="Logo"] {
    width: 150px !important;
    height: 60px !important;
    max-width: 150px !important;
    display: block !important;
    object-fit: contain !important;
}

/* Zapobiegnij przesunięciom nagłówka */
.site-header .custom-logo-link {
    width: 150px;
    height: 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Stabilizuj kontener nagłówka */
.site-header .ast-container {
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* Stabilizuj główną treść - drugi największy problem */
#content.site-content {
    min-height: 60vh;
}

/* Stabilizuj widget video jeśli powoduje przesunięcia */
.video-widget {
    min-height: 120px !important;
    transition: none !important;
}

/* ==========================================================================
   RESPONSYWNOŚĆ GLOBALNA DLA WSZYSTKICH STRON
   ========================================================================== */

@media (max-width: 768px) {
    .hero-section {
        min-height: 300px;
    }
    
    .gallery-item,
    .wp-block-gallery .wp-block-image {
        min-height: 150px;
    }
    
    .gallery-item img,
    .wp-block-gallery img {
        height: 100px;
    }

    /* Responsywność dla wszystkich stron */
    .homepage-content div[style*="grid-template-columns"],
    .about-page-content div[style*="grid-template-columns"],
    .stropodach-page-content div[style*="grid-template-columns"],
    .malowanie-elewacji-page-content div[style*="grid-template-columns"],
    .mycie-elewacji-page-content div[style*="grid-template-columns"],
    .materialy-page-content div[style*="grid-template-columns"],
    .realizacje-page-content div[style*="grid-template-columns"],
    .kontakt-page-content div[style*="grid-template-columns"],
    .kalkulator-page-content div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .homepage-content div[style*="flex"],
    .about-page-content div[style*="flex"],
    .stropodach-page-content div[style*="flex"],
    .malowanie-elewacji-page-content div[style*="flex"],
    .mycie-elewacji-page-content div[style*="flex"],
    .materialy-page-content div[style*="flex"],
    .realizacje-page-content div[style*="flex"],
    .kontakt-page-content div[style*="flex"],
    .kalkulator-page-content div[style*="flex"] {
        flex-direction: column !important;
    }
    
    .homepage-content iframe,
    .about-page-content iframe,
    .stropodach-page-content iframe,
    .malowanie-elewacji-page-content iframe,
    .mycie-elewacji-page-content iframe,
    .materialy-page-content iframe,
    .realizacje-page-content iframe,
    .kontakt-page-content iframe,
    .kalkulator-page-content iframe {
        height: 250px !important;
    }
    
    .homepage-content h1,
    .about-page-content h1,
    .stropodach-page-content h1,
    .malowanie-elewacji-page-content h1,
    .mycie-elewacji-page-content h1,
    .materialy-page-content h1,
    .realizacje-page-content h1,
    .kontakt-page-content h1,
    .kalkulator-page-content h1 {
        font-size: 2rem !important;
    }
    
    .homepage-content h2,
    .about-page-content h2,
    .stropodach-page-content h2,
    .malowanie-elewacji-page-content h2,
    .mycie-elewacji-page-content h2,
    .materialy-page-content h2,
    .realizacje-page-content h2,
    .kontakt-page-content h2,
    .kalkulator-page-content h2 {
        font-size: 1.5rem !important;
    }
    
    .ast-button,
    .button,
    input[type="submit"],
    .wp-block-button__link {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .site-footer {
        padding: 2rem 0 1rem 0;
    }
    
    .testimonial {
        padding: 1rem !important;
    }
    
    .testimonial p {
        font-size: 0.9rem !important;
    }

    /* Top Bar na mobile */
    .ast-above-header,
    .ast-header-top-bar,
    .custom-top-bar {
        font-size: 0.85rem !important;
        letter-spacing: 0.5px !important;
        padding: 0.6rem 0 !important;
    }
    
    /* Kalkulator na mobile */
    .jg-kalkulator-container .container {
        padding: 15px !important;
    }
    
    .jg-kalkulator-container h2 {
        font-size: 20px !important;
    }
    
    .jg-kalkulator-container #calculate-btn,
    .jg-kalkulator-container #send-btn {
        width: 100% !important;
        max-width: none !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    
    /* Responsive dla kart kalkulatora */
    .kalkulator-page-content div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Responsive dla przycisków kalkulatora */
    .kalkulator-page-content a[style*="padding: 18px 35px"] {
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
}

/* ==========================================================================
   OPTYMALIZACJA PERFORMANCE I SEO
   ========================================================================== */

/* Optymalizacja renderowania fontów */
@font-face {
    font-display: swap;
}

/* Lepsze renderowanie tekstu */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   DODATKOWE ANIMACJE DLA LEPSZEGO UX
   ========================================================================== */

/* Smooth scroll dla całej strony */
html {
    scroll-behavior: smooth;
}

/* Animacje fade-in dla sekcji */
.homepage-content section,
.about-page-content section,
.stropodach-page-content section,
.malowanie-elewacji-page-content section,
.mycie-elewacji-page-content section,
.materialy-page-content section,
.realizacje-page-content section,
.kontakt-page-content section,
.kalkulator-page-content section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects dla linków w treści */
.entry-content a:not([style*="background"]):not([style*="border"]) {
    position: relative;
    transition: all 0.3s ease;
}

.entry-content a:not([style*="background"]):not([style*="border"]):hover {
    color: var(--primary-blue);
}

/* Focus states dla accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* ==========================================================================
   DODATKOWE SELEKTORY DLA KALKULATORA - OSTATNIA SZANSA
   ========================================================================== */

/* Bardzo specyficzne selektory dla kalkulatora */
body .kalkulator-page-content a[style*="background"],
body article a[style*="background"],
body div a[style*="background"],
body section a[style*="background"] {
    transition: all 0.3s ease !important;
}

/* Pomarańczowe przyciski - wszystkie możliwe warianty */
body *[style*="background: #f59e0b"]:hover,
body *[style*="background:#f59e0b"]:hover,
body *[style*="background-color: #f59e0b"]:hover,
body *[style*="background-color:#f59e0b"]:hover,
body *[style*="background: rgb(245, 158, 11)"]:hover,
body *[style*="background-color: rgb(245, 158, 11)"]:hover {
    background: #d97706 !important;
    background-color: #d97706 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

/* Niebieskie przyciski - wszystkie możliwe warianty */
body *[style*="background: #1e40af"]:hover,
body *[style*="background:#1e40af"]:hover,
body *[style*="background-color: #1e40af"]:hover,
body *[style*="background-color:#1e40af"]:hover,
body *[style*="background: rgb(30, 64, 175)"]:hover,
body *[style*="background-color: rgb(30, 64, 175)"]:hover {
    background: #1e3a8a !important;
    background-color: #1e3a8a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4) !important;
}

/* Kółka numerowane - wszystkie możliwe warianty */
body *[style*="border-radius: 50%"],
body *[style*="border-radius:50%"],
body *[style*="border-radius: 50px"],
body *[style*="border-radius:50px"] {
    transition: all 0.3s ease !important;
}

body *[style*="border-radius: 50%"]:hover,
body *[style*="border-radius:50%"]:hover,
body *[style*="border-radius: 50px"]:hover,
body *[style*="border-radius:50px"]:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3) !important;
}

/* Karty z cieniem - wszystkie możliwe warianty */
body *[style*="box-shadow: 0 4px 6px"],
body *[style*="box-shadow:0 4px 6px"],
body *[style*="box-shadow: 0px 4px 6px"],
body *[style*="box-shadow:0px 4px 6px"] {
    transition: all 0.3s ease !important;
}

body *[style*="box-shadow: 0 4px 6px"]:hover,
body *[style*="box-shadow:0 4px 6px"]:hover,
body *[style*="box-shadow: 0px 4px 6px"]:hover,
body *[style*="box-shadow:0px 4px 6px"]:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   JAVASCRIPT BACKUP - GDYBY CSS NADAL NIE DZIAŁAŁ
   ========================================================================== */

/* Jeśli CSS nie zadziała, użyj tego JavaScript na końcu strony kalkulatora:

<script>
document.addEventListener('DOMContentLoaded', function() {
    console.log('Inicjalizacja animacji kalkulatora...');
    
    // Znajdź wszystkie przyciski i dodaj animacje
    const buttons = document.querySelectorAll('a[style*="background"]');
    console.log('Znaleziono przycisków:', buttons.length);
    
    buttons.forEach((button, index) => {
        console.log('Przetwarzam przycisk', index, button);
        button.style.transition = 'all 0.3s ease';
        
        // Zapisz oryginalne wartości
        const originalBg = button.style.background || button.style.backgroundColor;
        const originalTransform = button.style.transform || 'translateY(0)';
        const originalShadow = button.style.boxShadow || '';
        
        button.addEventListener('mouseenter', function() {
            console.log('Hover na przycisku', index);
            if (originalBg.includes('#f59e0b') || originalBg.includes('245, 158, 11')) {
                this.style.background = '#d97706';
                this.style.backgroundColor = '#d97706';
                this.style.transform = 'translateY(-2px)';
                this.style.boxShadow = '0 6px 20px rgba(245, 158, 11, 0.4)';
            } else if (originalBg.includes('#1e40af') || originalBg.includes('30, 64, 175')) {
                this.style.background = '#1e3a8a';
                this.style.backgroundColor = '#1e3a8a';
                this.style.transform = 'translateY(-2px)';
                this.style.boxShadow = '0 6px 20px rgba(30, 64, 175, 0.4)';
            }
        });
        
        button.addEventListener('mouseleave', function() {
            console.log('Koniec hover na przycisku', index);
            this.style.background = originalBg;
            this.style.backgroundColor = originalBg;
            this.style.transform = originalTransform;
            this.style.boxShadow = originalShadow;
        });
    });
    
    // Animacje dla kółek
    const circles = document.querySelectorAll('div[style*="border-radius: 50%"]');
    console.log('Znaleziono kółek:', circles.length);
    
    circles.forEach((circle, index) => {
        circle.style.transition = 'all 0.3s ease';
        const originalTransform = circle.style.transform || 'scale(1)';
        const originalShadow = circle.style.boxShadow || '';
        
        circle.addEventListener('mouseenter', function() {
            this.style.transform = 'scale(1.1)';
            this.style.boxShadow = '0 4px 15px rgba(30, 64, 175, 0.3)';
        });
        
        circle.addEventListener('mouseleave', function() {
            this.style.transform = originalTransform;
            this.style.boxShadow = originalShadow;
        });
    });
    
    // Animacje dla kart
    const cards = document.querySelectorAll('div[style*="box-shadow: 0 4px 6px"]');
    console.log('Znaleziono kart:', cards.length);
    
    cards.forEach((card, index) => {
        card.style.transition = 'all 0.3s ease';
        const originalTransform = card.style.transform || 'translateY(0)';
        const originalShadow = card.style.boxShadow;
        
        card.addEventListener('mouseenter', function() {
            this.style.transform = 'translateY(-5px)';
            this.style.boxShadow = '0 8px 25px rgba(0, 0, 0, 0.15)';
        });
        
        card.addEventListener('mouseleave', function() {
            this.style.transform = originalTransform;
            this.style.boxShadow = originalShadow;
        });
    });
    
    console.log('Animacje kalkulatora zainicjalizowane!');
});
</script>

*/

/* ==========================================================================
   FINALNE STYLE - ABSOLUTNY PRIORYTET
   ========================================================================== */

/* Ostateczne style z najwyższym priorytetem */
html body .kalkulator-page-content *[style*="background: #f59e0b"] {
    transition: all 0.3s ease !important;
}

html body .kalkulator-page-content *[style*="background: #f59e0b"]:hover {
    background: #d97706 !important;
    background-color: #d97706 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

html body .kalkulator-page-content *[style*="background: #1e40af"] {
    transition: all 0.3s ease !important;
}

html body .kalkulator-page-content *[style*="background: #1e40af"]:hover {
    background: #1e3a8a !important;
    background-color: #1e3a8a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4) !important;
}

html body .kalkulator-page-content *[style*="border-radius: 50%"] {
    transition: all 0.3s ease !important;
}

html body .kalkulator-page-content *[style*="border-radius: 50%"]:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3) !important;
}

html body .kalkulator-page-content *[style*="box-shadow: 0 4px 6px"] {
    transition: all 0.3s ease !important;
}

html body .kalkulator-page-content *[style*="box-shadow: 0 4px 6px"]:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   STICKY HEADER - MENU PRZYKLEJA SIĘ PODCZAS SCROLLOWANIA
   ========================================================================== */

/* Główny nagłówek - sticky */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Efekt cienia podczas scrollowania */
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Top bar też sticky (jeśli masz) */
.ast-above-header,
.ast-header-top-bar,
.custom-top-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
}

/* Stabilizacja menu mobilnego */
@media (max-width: 768px) {
    .site-header {
        position: sticky !important;
        top: 0 !important;
    }
    
    /* Menu hamburger sticky */
    .main-navigation {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
    }
}

/* Smooth scroll dla lepszego UX */
html {
    scroll-behavior: smooth !important;
}

/* Offset dla linków kotwicznych (żeby nie zakrywały nagłówka) */
:target {
    scroll-margin-top: 100px;
}

/* Dodatkowy efekt - zmniejszenie nagłówka podczas scrollowania */
.site-header.scrolled .site-title,
.site-header.scrolled .custom-logo {
    transform: scale(0.9) !important;
    transition: all 0.3s ease !important;
}

/* Lepszy wygląd na urządzeniach mobilnych */
@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 0 !important;
    }
    
    .site-header.scrolled {
        padding: 0.3rem 0 !important;
    }
}

/* ==========================================================================
   ZMNIEJSZENIE TOP BAR - NIEBIESKI PASEK
   ========================================================================== */

/* Zmniejsz wysokość top bar */
.ast-above-header,
.ast-header-top-bar,
.custom-top-bar {
    padding: 0.3rem 0 !important; /* Było 0.8rem */
    min-height: 30px !important; /* Było auto */
    font-size: 0.7rem !important; /* Było 0.95rem */
    line-height: 1.3 !important;
}

/* Zmniejsz odstępy wewnętrzne */
.ast-above-header .ast-container,
.ast-header-top-bar .ast-container,
.custom-top-bar .ast-container {
    padding: 0 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 35px !important;
}

/* Zmniejsz przyciski social media */
.ast-above-header a,
.ast-header-top-bar a,
.custom-top-bar a {
    padding: 4px 8px !important; /* Było więcej */
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
}

/* Kompaktowy layout na mobile */
@media (max-width: 768px) {
    .ast-above-header,
    .ast-header-top-bar,
    .custom-top-bar {
        padding: 0.3rem 0 !important;
        min-height: 30px !important;
        font-size: 0.75rem !important;
    }
    
    .ast-above-header a,
    .ast-header-top-bar a,
    .custom-top-bar a {
        padding: 3px 6px !important;
        font-size: 0.75rem !important;
    }
}

/* Sticky behavior dla zmniejszonego top bar */
.ast-above-header.scrolled,
.ast-header-top-bar.scrolled,
.custom-top-bar.scrolled {
    padding: 0.2rem 0 !important;
    min-height: 25px !important;
}

/* ==========================================================================
   POPRAWA CZYTELNOŚCI TEKSTU W BANERACH DOŚWIADCZENIA
   ========================================================================== */

/* Główny tekst w banerach - ciemniejszy i bardziej kontrastowy */
.homepage-content blockquote,
.about-page-content blockquote,
.stropodach-page-content blockquote,
.malowanie-elewacji-page-content blockquote,
.mycie-elewacji-page-content blockquote,
.materialy-page-content blockquote,
.realizacje-page-content blockquote,
.kontakt-page-content blockquote,
.kalkulator-page-content blockquote {
    color: #ffffff !important; /* Biały zamiast przezroczystego */
    opacity: 1 !important; /* Pełna nieprzezroczystość zamiast 0.95 */
    font-weight: 500 !important; /* Pogrubienie dla lepszej czytelności */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important; /* Cień dla kontrastu */
}

/* Tekst podpisu (Grzegorz, założyciel...) */
.homepage-content p[style*="opacity: 0.8"],
.about-page-content p[style*="opacity: 0.8"],
.stropodach-page-content p[style*="opacity: 0.8"],
.malowanie-elewacji-page-content p[style*="opacity: 0.8"],
.mycie-elewacji-page-content p[style*="opacity: 0.8"],
.materialy-page-content p[style*="opacity: 0.8"],
.realizacje-page-content p[style*="opacity: 0.8"],
.kontakt-page-content p[style*="opacity: 0.8"],
.kalkulator-page-content p[style*="opacity: 0.8"] {
    color: #ffffff !important;
    opacity: 0.95 !important; /* Lekko jaśniejszy ale nadal czytelny */
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Alternatywnie - jeśli powyższe nie zadziała, użyj bardziej specyficznych selektorów */
div[style*="background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%)"] blockquote {
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

div[style*="background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%)"] p {
    color: #ffffff !important;
    opacity: 0.95 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Jeszcze bardziej specyficzny selektor dla pewności */
[style*="background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%)"] * {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Poprawa kontrastu dla wszystkich elementów na niebieskim tle */
[style*="background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%)"] {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%) !important; /* Ciemniejszy gradient */
}


