/*   
Theme Name: BS 5 Theme
Theme URI: https://itband.pl/
Description: A Base Theme for WordPress with Bootstrap for styling.
Author: itband.pl
Author URI: https://itband.pl/
Version: 1.0
*/

/* Google Fonts */

@import url('https://use.typekit.net/lqh3joh.css');

:root {
    --bs-font-sans-serif:  "aileron", sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --swiper-theme-color: #571e61;
}

:root :where(.wp-block-cover h1:not(.has-text-color)), :root :where(.wp-block-cover h2:not(.has-text-color)), :root :where(.wp-block-cover h3:not(.has-text-color)), :root :where(.wp-block-cover h4:not(.has-text-color)), :root :where(.wp-block-cover h5:not(.has-text-color)), :root :where(.wp-block-cover h6:not(.has-text-color)) , .wp-block-button{
    color: #571e61;
}

.navbar {
    --bs-navbar-padding-y: 1rem;
}

.navbar-nav {
    --bs-nav-link-color: rgba(250,250,250,1);
    --bs-nav-link-hover-color: rgb(87, 30, 97);
    --bs-navbar-active-color: rgb(87, 30, 97);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Zapewnij że ostatnia sekcja ma wystarczającą wysokość dla ScrollSpy */
#kontakt {
    //min-height: 100vh;
    padding-bottom: 2rem;
}

/* Alternatywnie, jeśli chcesz tylko padding na dole */
#kontakt::after {
    content: "";
    display: block;
    //height: 50vh;
}

body {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: "aileron",sans-serif;
}

a {
    color: #571e61;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-weight: 200;
    color: #571e61;
    margin-bottom: 3rem;
    line-height: 1.125em;
    
}

.wp-block-heading.has-text-align-center {
    display: block;
}

h2 , .h2 {
    font-size: 80px
}

h3 , .h3 {
    font-size: 50px
} 

h4 , .h4 {
    font-size: 36px ;
    margin-bottom: 1.5rem;
}

.wp-block-button__link, .my-btn, .wp-block-button.is-style-outline .wp-block-button__link {
    border-radius: 9px;
    padding: 8px 30px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
}

.is-style-outline > .wp-block-button__link:hover, .wp-block-button__link:hover, .my-btn:hover {
    background: #571e61;
    color: #fff;
    border-color: #571e61;
}

#primary-menu {
    width: 100%;
    margin-bottom: 3rem;
}

ul#menu-main-menu {
    width: 100%;
    max-width: 645px;
    justify-content: space-between;
}

ul#menu-main-menu .nav-link {
    font-size: 18px;
    font-weight: 600;
}

.is-style-outline > .wp-block-button__link , .my-btn-outline {
    background: transparent;
    color: #571e61;
    border-color: #571e61;
}

a.navbar-brand {

}

.wp-block-cover .wp-block-cover__inner-container {
    max-width: 1080px;
    margin: 0 auto;
}

.wp-block-cover .wp-block-cover__inner-container > .wp-block-group.max-650 > .wp-block-group__inner-container {
    max-width: 650px;
}

header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    z-index: 9;
}

body.admin-bar header.site-header {
    top: 32px;
}

#onas > .wp-block-group__inner-container {
    max-width: 828px;
    margin: 0 auto;
}

.mw-685 {
    max-width: 685px;
}

.flex-list li {
    display: flex;
    gap: 1rem;
    max-width: 620px;
    margin-bottom: .95rem;
    line-height: 1.2em;
}

.flex-list li > strong:first-of-type {
    flex: 0 0 70px;
}

.flex-list  li > strong:first-of-type + * {
    flex: 1;
}

.cennik .wp-block-column {
    margin-bottom: 2rem;
}

.cennik .wp-block-cover {
    border-radius: 15px;
    padding: 40px 30px 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.cennik .wp-block-cover .wp-block-cover__image-background {
    object-fit: unset !important;
    height: auto;
    width: auto;
    right: 0;
    left: auto;
    top: 0;
    bottom: auto;
}

.cennik .wp-block-cover .wp-block-cover__background {
    mix-blend-mode: multiply;
}

.wp-block-columns.cennik {
    gap: 5rem;
}

.lh-1-2 {
    line-height: 1.2em;
}

.lh-1-9 {
    line-height: 1.9em;
}

#misja .wp-block-group__inner-container {
    max-width: 800px;
    margin: 0 auto;
}

body.scrolled a.navbar-brand > img {
    max-width: 46px;
}

body.scrolled .navbar {
    --bs-navbar-padding-y: 0;
}

body.scrolled #primary-menu {
    margin-bottom: 0;
}

body.scrolled header.site-header {
    background: rgb(87 30 97 / 95%);
    box-shadow: 0px 20px 25px -17px rgb(86 30 97);
    backdrop-filter: blur(2px);
}

body.scrolled  ul#menu-main-menu .nav-link {
    padding-top: 15px;
    padding-bottom: 15px;
    height: 100%;
    position: relative;
}

body.scrolled  ul#menu-main-menu .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
}

body.scrolled  ul#menu-main-menu .nav-link:focus , body.scrolled  ul#menu-main-menu .nav-link:hover , body.scrolled  ul#menu-main-menu .nav-link.active {
    color: #fff;
}

ul#menu-main-menu {
    position: relative;
    display: flex;
    gap: 0;
    padding-top: 2px;
    padding-bottom: 2px;
}

ul#menu-main-menu::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: #571e61;
    transition: all 0.3s ease;
}

#menu-main-menu .underline {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: #571e61;
    transition: left 0.25s ease, width 0.25s ease, opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
    border-radius: 60px 60px 0 0;
    box-shadow: 0px -1px 23px 1px #fff;
}

body.scrolled #menu-main-menu .underline {
    background: #ffffff;
}

/* ScrollSpy styles */
#menu-main-menu .nav-link.active {
    color: #571e61 !important;
    font-weight: 600;
    border-radius: 4px;
}

body.scrolled #menu-main-menu .nav-link.active {
    color: #fff !important;
}

body.scrolled #menu-main-menu .nav-link.active::after {
    color: #fff;
}


footer a:hover {
    text-shadow: 0px 0px 25px #fff;
}

footer a:hover img {
    scale: 1.1;
}

[id] { scroll-margin-top: 80px; }

button#goTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    border: 0;
    border-radius: 10px;
    padding: 0;
    line-height: 0em;
    width: 40px;
    height: 40px;
    background: #571e61;
    color: #fff;
    box-shadow: 0px 10px 28px -7px #000;
}

button#goTop:hover {
    box-shadow: 0px 10px 28px -7px #000;
} 

button#goTop svg {
    width: 20px;
    height: 20px;
    position: relative;
}

button#goTop:hover svg {
    margin-top: -5px;
}

footer {
    background: #571e61;
    color: #fff;
    padding: 3rem 0;
}

footer .h1, 
footer .h2, 
footer .h3, 
footer .h4, 
footer .h5, 
footer .h6, 
footer h1, 
footer h2, 
footer h3, 
footer h4, 
footer h5, 
footer h6 {
    color: #fff;
}

footer .wp-block-columns {
    justify-content: space-between;
}

footer .wp-block-columns .wp-block-column {
    flex-basis: auto !important;
}

footer a {
    display: inline-block;
    color: #fff;
    text-decoration: none;
}

footer a[href*="tel"] strong {
    font-size: 38px;
    font-weight: 900;
}

footer p img {
    margin-right: 30px;
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

footer .wp-block-column:first-of-type p:first-of-type {
    display: flex;
    flex-wrap: wrap;
}

footer p:first-of-type > img {
    margin-left: 7px;
    margin-right: 32px;
    flex: 0 0 21px;
    height: 29px;
}

footer p:first-of-type > img + * {
    flex: 1;
}

footer mark.has-inline-color {
    color: #fff!important;
}

footer p:not(:first-of-type) a , footer .wp-block-column:not(:first-of-type) a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

footer p {
    line-height: 1.2em;
}

footer .wp-block-column:not(:first-of-type) p a > img {
    flex: 0 0 40px;
    height: 40px;
}

footer .wp-block-column:not(:first-of-type) p a > img + * {
    flex: unset;
}

footer .wp-block-column:not(:first-of-type) a {
    justify-content: end;
    align-items: center;
}

footer a:hover {
    
}

footer .credits-text p {
    font-size: .75rem;
    color: rgba(250, 250, 250, .75);
}

footer a.credits {
    text-decoration: none;
}

footer .widget .menu {
    list-style-type: none;
    padding: 0;
    text-transform: lowercase;
}


a , a::after , a::before , .menu-item::before , .menu-item::after , button , button::after , .carousel-item * , button#goTop * , .button * , header.site-header , header.site-header * , footer img {
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

.alignwide,
.alignfull {
	margin: 0 calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
    overflow: hidden;
}

.mark, mark {
    padding: 0;
}

.my-frontpage-content > .wp-block-cover:first-of-type .wp-block-cover__inner-container {
    -webkit-animation: fadein 0.8s;
    -moz-animation: fadein 0.8s;
    -ms-animation: fadein 0.8s;
    -o-animation: fadein 0.8s;
    animation: fadein 0.8s;
    position: relative;
}

#onas > .wp-block-group__inner-container {
    -webkit-animation: fadein0 0.8s;
    -moz-animation: fadein0 0.8s;
    -ms-animation: fadein0 0.8s;
    -o-animation: fadein0 0.8s;
    animation: fadein0 0.8s;
    position: relative;
}

#cookie-notice .cn-button {
    color: #fff;
    background: #7b6492;
    font-size: 1rem;
    padding: 5px 10px;
    border-color: transparent;
}

@media (max-width: 920px) {
	.alignwide {
		margin: 0 calc( ( 767px - 920px ) / 2 );
		max-width: 920px;
		width: 920px;
	}
}

@media (max-width: 920px) {

    body.scrolled header.site-header {
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .navbar-collapse {
        border-radius: 15px;
        margin-top: 0.5rem;
        padding: 1rem 0rem;
        background: rgb(87 30 97 / 96%);
        box-shadow: 0px 20px 25px -17px rgb(86 30 97);
        backdrop-filter: blur(2px);
    }

    .navbar-collapse:not(.show) {
        padding: 0;
    }

    body a.navbar-brand > img {
        max-width: 92px;
    }

    h2, .h2 {
        font-size: 3.5rem;
    }

    /* Zmniejsz offset dla mobile */
    body[data-bs-offset] {
        scroll-padding-top: 100px;
    }
    
    /* Lepsze style dla aktywnego linku na mobile */
    #menu-main-menu .nav-link.active , .navbar-collapse .nav-link:hover , body.scrolled #menu-main-menu .nav-link.active {
        color: #571e61 !important;
        font-weight: 600;
        background: #ffffff;
    }
    
    .navbar-collapse .nav-link {
        padding: 15px 1rem;
        margin: 0.1rem 0;
        text-align: center;
    }
    
    /* Podkreślenie dla mobile menu */
    .navbar-collapse .underline {
        display: none; /* Ukryj podkreślenie w mobile menu */
    }

    button.navbar-toggler {
        background: #571e61;
        border-radius: 300px;
        width: 46px;
        height: 46px;
    }

    body .navbar {
        --bs-navbar-padding-y: 0;
    }

    header.site-header {
        position: fixed;
        top: 15px;
    }
    
    /* Zwiększ padding dla ostatniej sekcji na mobile */
    #kontakt {
        padding-bottom: 4rem;
    }
    
    /* Lepsze przewijanie na mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Obsługa viewport na mobile */
    .navbar {
        position: sticky;
        //top: 0;
        z-index: 1000;
    }

    #menu-main-menu .nav-link.active {
        border-radius: 3px;
    }
    
    /* Hamburger menu styling */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M6 24L24 6'/%3E%3C/svg%3E");
    }

    footer a[href*="tel"] strong {
        font-size: 32px!important;
    }

    footer .wp-block-columns > .wp-block-column + .wp-block-column > p {
        font-size: 28px!important;
        text-align: center;
    }

    footer .wp-block-column:not(:first-of-type) a {
        justify-content: flex-start;
        align-items: center;
    }
}

@media (min-width: 576px) {
    
}

@media (min-width: 768px) {
    
}

@media (min-width: 992px) {
   
}

@media (min-width: 1200px) {

    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1080px;
    }

}

@media (min-width: 1400px) {

    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1080px;
    }
}

@keyframes pulse {
    0% {
        bottom: 47px;
    }

    25% {
        bottom: 52px;
    }

    75% {
        bottom: 42px;
    }

    100% {
        bottom: 47px;
    }
}

@keyframes fadein0 {
    from { opacity: 0; top: 1000px; }
    to   { opacity: 1; top: 0px;}
}

/* Firefox < 16 */
@-moz-keyframes fadein0 {
    from { opacity: 0; top: 1000px; }
    to   { opacity: 1; top: 0px;}
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein0 {
    from { opacity: 0; top: 1000px; }
    to   { opacity: 1; top: 0px;}
}

/* Internet Explorer */
@-ms-keyframes fadein0 {
    from { opacity: 0; top: 1000px; }
    to   { opacity: 1; top: 0px;}
}

/* Opera < 12.1 */
@-o-keyframes fadein0 {
    from { opacity: 0; top: 1000px; }
    to   { opacity: 1; top: 0px;}
}

@keyframes fadein {
    from {
        opacity: 0;
        left: -3000px
    }

    to {
        opacity: 1;
        left: 0
    }
}

@-moz-keyframes fadein {
    from {
        opacity: 0;
        left: -3000px
    }

    to {
        opacity: 1;
        left: 0
    }
}

@-webkit-keyframes fadein {
    from {
        opacity: 0;
        left: -3000px
    }

    to {
        opacity: 1;
        left: 0
    }
}

@-ms-keyframes fadein {
    from {
        opacity: 0;
        left: -3000px
    }

    to {
        opacity: 1;
        left: 0
    }
}

@-o-keyframes fadein {
    from {
        opacity: 0;
        left: -3000px
    }

    to {
        opacity: 1;
        left: 0
    }
}