/* Globalne style czcionek */
p, span, li, a, div, h1, h2, h3, h4, h5, h6{
    font-family: "archivo-expanded", sans-serif !important;
    font-optical-sizing: auto !important;
     font-style: normal !important;
    font-variation-settings:
        "wdth"112.5 !important;
}

/* Ukrycie header na stronie głównej */
.home header.entry-header{
    display: none !important;
}

.post, .page {
    margin: 0 0 !important;
}


.page-content, .entry-content, .entry-summary{
    margin: 0px !important;
}
body{
    background-color: #f8f9fa;
}
/* ==========================================================
   HEADER STYLES - FIXED BY DEFAULT, STATIC ONLY IN TEMPLATES
   ========================================================== */

header#masthead {
    background-color: #383838;
    padding: 0;
    position: fixed; /* PRZYWRACAMY fixed jako domyślne */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* TYLKO w template'ach strona ma być static */
.page-template-oferta header#masthead {
    position: static;
    top: auto;
    left: auto;
    right: auto;
}

/* Transparentne tło na stronie głównej */
.home header#masthead {
    background-color: transparent;
    backdrop-filter: none;
}

/* Efekt glass po scrollowaniu - tylko na stronie głównej */
.home header#masthead.scrolled {
    background-color: rgb(0 0 0 / 74%);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Margines z body - tylko gdy menu jest fixed */
body {
    margin-top: 120px; /* PRZYWRACAMY margines */
}

/* TYLKO w template'ach usuwamy margines */
.page-template-oferta body {
    margin-top: 0;
}

.home body {
    margin-top: 0; /* Na stronie głównej też 0 */
}

/* Top contact bar */
.top-contact {
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Przywróć na innych stronach po scrollowaniu */
header#masthead.scrolled .top-contact {
    padding: 6px 15px;
    font-size: 13px;
}

.top-contact a {
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.top-contact a:hover {
    opacity: 1;
}

/* Language switcher styles */
.language-switcher .lang-link,
.language-switcher-mobile .lang-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 4px;
    padding: 2px 6px;
    transition: all 0.3s ease;
    position: relative;
}

.language-switcher .lang-link:hover,
.language-switcher-mobile .lang-link:hover {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.language-switcher .lang-link.active,
.language-switcher-mobile .lang-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.language-switcher .lang-link.active::before,
.language-switcher-mobile .lang-link.active::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: white;
}

/* Scrolled state adjustments for language switcher */
header#masthead.scrolled .language-switcher .lang-link {
    font-size: 12px;
}

/* Mobile language switcher specific styles */
.language-switcher-mobile {
    text-align: center;
}

.language-switcher-mobile .lang-link {
    font-size: 14px;
    padding: 4px 12px;
    margin: 0 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-switcher-mobile .lang-link.active {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Logo */
.site-branding img {
    max-width: 200px;
    height: auto;
    transition: all 0.3s ease;
}

/* Mniejsze logo po scrollowaniu */
header#masthead.scrolled .site-branding img {
    max-width: 160px;
}

/* Desktop Navigation */
.navbar-nav {
    gap: 2rem;
}

.navbar-nav .nav-link {
    color: white !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-transform: none;
    letter-spacing: 0.5px;
    padding: 0.5rem 0 !important;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Animacja podkreślenia z lewej do prawej */
.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

/* Efekt świecenia tekstu */
.navbar-nav .nav-link:hover {
    color: white !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Animacja dla dropdown toggle */
.navbar-nav .dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.navbar-nav .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Animacja pojawiania się dropdown menu */
.navbar-nav .dropdown-menu {
    background-color: #6c7b7f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-width: 200px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.navbar-nav .dropdown-menu .nav-item {
    margin: 0 !important;
    transform: translateX(-20px);
    opacity: 0;
    animation: slideInFromLeft 0.4s ease forwards;
}

/* Staggered animation dla elementów submenu */
.navbar-nav .dropdown-menu .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav .dropdown-menu .nav-item:nth-child(2) { animation-delay: 0.15s; }
.navbar-nav .dropdown-menu .nav-item:nth-child(3) { animation-delay: 0.2s; }
.navbar-nav .dropdown-menu .nav-item:nth-child(4) { animation-delay: 0.25s; }
.navbar-nav .dropdown-menu .nav-item:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInFromLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.navbar-nav .dropdown-menu .nav-link {
    color: white !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: none;
    padding: 0.75rem 1rem !important;
    display: block;
    width: 100%;
    border: none;
    position: relative;
    transition: all 0.3s ease;
}

/* Efekt przesunięcia dla linków w submenu */
.navbar-nav .dropdown-menu .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.6);
    transition: width 0.3s ease;
}

.navbar-nav .dropdown-menu .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    padding-left: 1.5rem !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.navbar-nav .dropdown-menu .nav-link:hover::before {
    width: 20px;
}

/* Phone button */
.phone-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white !important;
    padding: 0.5rem 1rem;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.phone-btn:hover {
    background-color: white;
    color: #6c7b7f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile hamburger */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    width: 25px;
    height: 20px;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animacja hamburger → X */
.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Offcanvas styles */
.offcanvas {
    background-color: #6c7b7f;
    color: white;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
}

.offcanvas-title {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.btn-close-white {
    filter: brightness(0) invert(1);
}

.offcanvas-body {
    padding: 2rem 1.5rem;
}

/* Mobile menu items */
.offcanvas .navbar-nav .nav-link {
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

.offcanvas .navbar-nav .nav-link:hover {
    color: #cccccc !important;
    background-color: transparent;
}

/* Mobile dropdown */
.offcanvas .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    box-shadow: none;
    margin-left: 1rem;
}

.offcanvas .dropdown-menu .nav-link {
    font-size: 14px !important;
    font-weight: 400 !important;
    text-transform: none;
    border-bottom: none;
}

/* Contact info in offcanvas */
.contact-info a {
    font-size: 14px;
    padding: 0.5rem 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .site-branding img {
        max-width: 180px;
    }
}

@media (max-width: 767px) {
    .site-branding img {
        max-width: 160px;
    }
    
    .hamburger-icon {
        width: 22px;
        height: 18px;
    }
}

.kreska-full{
    width: 100%;
    height: 2px;
    background-color: #E00717;
}

/* KONTAKT  */
.page-id-103 h1.entry-title.mt-3.fs-2.fw-bold{
    display: none !important;
}
.page-id-103 .kontakt {
    border: none !important;
}

/* Dodatkowe efekty dla scrolled state */
header#masthead.scrolled .navbar-nav .nav-link {
    font-size: 15px !important;
    padding: 0.4rem 0 !important;
}

header#masthead.scrolled .phone-btn {
    padding: 0.4rem 0.8rem;
    font-size: 13px !important;
}

/* Contact buttons wrapper */
.contact-buttons {
    flex-shrink: 0;
}

/* Email button - similar to phone but different style */
.email-btn {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    border-radius: 0;
}

.email-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white !important;
    transform: translateY(-1px);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Phone button - make it more prominent */
.phone-btn {
    background-color: transparent;
    border: 1px solid white;
    color: white !important;
    padding: 0.5rem 1rem;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.phone-btn:hover {
    background-color: white;
    color: #6c7b7f !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Scrolled state adjustments */
header#masthead.scrolled .email-btn {
    padding: 0.4rem 0.8rem;
    font-size: 13px !important;
}

header#masthead.scrolled .phone-btn {
    padding: 0.4rem 0.8rem;
    font-size: 13px !important;
}

header#masthead.scrolled .contact-buttons {
    gap: 0.5rem !important;
}

/* ==========================================================
   GLASS MORPHISM BUTTON SYSTEM - INSPIRED BY SCROLL INDICATOR
   ========================================================== */

.cta-button,
.btn-primary-custom,
.contact-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* Zmniejszone z 0.75rem */
    font-weight: 600;
    font-size: 0.85rem; /* Zmniejszone z 0.9rem */
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Zmniejszone z 1px */
    padding: 0.75rem 1.75rem; /* Zmniejszone z 1rem 2.5rem */
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(227, 6, 19, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    text-decoration: none;
    border-radius: 40px; /* Zmniejszone z 50px */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    min-width: 150px; /* Zmniejszone z 180px */
    justify-content: center;
    font-family: "archivo-expanded", sans-serif !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08); /* Zmniejszone */
}

/* Sliding glass shimmer effect */
.cta-button::before,
.btn-primary-custom::before,
.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.6s ease;
    z-index: 1;
}

.cta-button:hover::before,
.btn-primary-custom:hover::before,
.contact-btn:hover::before {
    left: 100%;
}

/* Glass hover states */
.cta-button:hover,
.btn-primary-custom:hover,
.contact-btn:hover {
    background: rgba(227, 6, 19, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-8px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(227, 6, 19, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Button text animation */
.btn-text {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.cta-button:hover .btn-text,
.btn-primary-custom:hover .btn-text,
.contact-btn:hover .btn-text {
    transform: translateX(-3px);
}

/* Icon animations - smaller glass circles */
.btn-icon {
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 26px; /* Zmniejszone z 30px */
    height: 26px; /* Zmniejszone z 30px */
    justify-content: center;
}

.cta-button:hover .btn-icon,
.btn-primary-custom:hover .btn-icon,
.contact-btn:hover .btn-icon {
    transform: translateX(5px) rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-icon i {
    font-size: 0.9rem; /* Zmniejszone z 1rem */
}

/* ==========================================================
   GLASS BUTTON VARIANTS
   ========================================================== */

/* White glass variant for dark backgrounds */
.cta-button.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-button.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(255, 255, 255, 0.2);
}

.cta-button.btn-outline .btn-icon {
    background: rgba(255, 255, 255, 0.15);
}

.cta-button.btn-outline:hover .btn-icon {
    background: rgba(255, 255, 255, 0.3);
}

/* Light glass variant - for light backgrounds */
.cta-button.btn-light {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.3);
    color: #000000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 6px 25px rgba(227, 6, 19, 0.1);
}

.cta-button.btn-light:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #000000;
    color: #000000;
    transform: translateY(-8px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button.btn-light .btn-icon {
    background: rgba(227, 6, 19, 0.1);
    color: #000000;
}

.cta-button.btn-light:hover .btn-icon {
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Shimmer effect for light variant */
.cta-button.btn-light::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(227, 6, 19, 0.1),
        transparent
    );
}

/* Solid glass variant - more opaque */
.cta-button.btn-solid {
    background: rgba(227, 6, 19, 0.8);
    border-color: rgba(227, 6, 19, 0.9);
}

.cta-button.btn-solid:hover {
    background: rgba(227, 6, 19, 0.9);
    border-color: #e30613;
}

/* Large glass variant */
.cta-button.btn-large {
    padding: 1rem 2.25rem; /* Zmniejszone z 1.25rem 3rem */
    font-size: 0.95rem; /* Zmniejszone z 1rem */
    min-width: 190px; /* Zmniejszone z 220px */
    border-radius: 50px; /* Zmniejszone z 60px */
}

.cta-button.btn-large .btn-icon {
    width: 30px; /* Zmniejszone z 35px */
    height: 30px; /* Zmniejszone z 35px */
}

/* Small glass variant */
.cta-button.btn-small {
    padding: 0.6rem 1.25rem; /* Zmniejszone z 0.75rem 1.5rem */
    font-size: 0.75rem; /* Zmniejszone z 0.8rem */
    min-width: 120px; /* Zmniejszone z 140px */
    gap: 0.4rem; /* Zmniejszone z 0.5rem */
    border-radius: 25px; /* Zmniejszone z 30px */
}

.cta-button.btn-small .btn-icon {
    width: 22px; /* Zmniejszone z 25px */
    height: 22px; /* Zmniejszone z 25px */
}

.cta-button.btn-small .btn-icon i {
    font-size: 0.8rem; /* Zmniejszone z 0.9rem */
}

/* ==========================================================
   GLASS RESPONSIVE & ACCESSIBILITY
   ========================================================== */

@media (max-width: 768px) {
    .cta-button,
    .btn-primary-custom,
    .contact-btn {
        padding: 0.65rem 1.5rem; /* Zmniejszone z 0.85rem 2rem */
        font-size: 0.8rem; /* Zmniejszone z 0.85rem */
        min-width: 140px; /* Zmniejszone z 160px */
        gap: 0.4rem; /* Zmniejszone z 0.5rem */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    
    .cta-button.btn-large {
        padding: 0.85rem 2rem; /* Zmniejszone z 1rem 2.5rem */
        font-size: 0.85rem; /* Zmniejszone z 0.9rem */
        min-width: 160px; /* Zmniejszone z 180px */
        border-radius: 40px; /* Zmniejszone z 50px */
    }
    
    /* Reduce glass effects on mobile for performance */
    .cta-button:hover,
    .btn-primary-custom:hover,
    .contact-btn:hover {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        transform: translateY(-5px);
    }
    
    .cta-button:hover .btn-icon,
    .btn-primary-custom:hover .btn-icon,
    .contact-btn:hover .btn-icon {
        transform: translateX(3px) rotate(45deg);
    }
}

/* Glass focus states */
.cta-button:focus,
.btn-primary-custom:focus,
.contact-btn:focus {
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(227, 6, 19, 0.3),
        0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Active press effect */
.cta-button:active,
.btn-primary-custom:active,
.contact-btn:active {
    transform: translateY(-4px) scale(0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* Pulse glass effect for important CTAs */
.cta-button.pulse {
    animation: glassPulse 3s infinite;
}

@keyframes glassPulse {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.1),
            0 0 0 0 rgba(227, 6, 19, 0.3);
    }
    50% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.1),
            0 0 0 15px rgba(227, 6, 19, 0);
    }
}
 