/*
Theme Name: Pomorze Ustka
Theme URI: https://pomorzeustka.pl
Author: SOHiS (Bartosz Zimnicki)
Author URI: https://sohis.pl
Description: Szablon stworzony na potrzeby obiektu Pomorze Ustka.
Version: 1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
Text Domain: pomorzeustka
*/

:root {
    --background-color: #f5f1ec;
    --main-color: #003f5d;
    --main-color-lighter:  #bfd2cf;
    --pallete-1:  #D0462F;
    --pallete-2:  #38302b;
    --pallete-3:  #f5a057;
    --pallete-4:  #233627;
    --pallete-5:  #e7c8bc;
    --pallete-6:  #5c242b;
    --dark-color:  #312b28;
    --darker-color: #232424;
}

body {
    font-family: 'Poppins', sans-serif;
}


.main__header .dropdown-menu {
    border-radius: .3rem;
    padding: .5rem .5rem;
    font-size: .9rem;
}

.wp-block-heading {
    font-family: 'Playfair Display', 'Times New Roman', sans-serif;
}

.main__header .dropdown-menu li a:active {
    background-color: var(--pallete-1)!important;
}

.text-heading {
    font-family: 'Playfair Display', 'Times New Roman', sans-serif;
}

.text-justify {
    text-align: justify;
}

p, .page-content ul {
    line-height: 1.85;
    font-size: .95rem;
    /*letter-spacing: .02em; */
}

.text-title {
    font-family: 'Poppins', sans-serif;
}

img {
    border-radius: 4px;
}

.btn {
    border-radius: 4px;
}

.btn-main {
    background-color: var(--main-color)!important;
    border-color: var(--main-color)!important;
    color: #fff!important;
    transition: .2s ease-in-out;
}

.btn-main:hover {
    background-color: var(--pallete-1)!important;
    border-color: var(--pallete-1)!important;
    color: #fff!important; 
    transition: .2s ease-in-out;
}

.btn-main-2 {
    background-color: var(--pallete-1)!important;
    border-color: var(--pallete-1)!important;
    color: #fff!important;
    transition: .2s ease-in-out;
}

.btn-main-2:hover {
    background-color: var(--pallete-3)!important;
    border-color: var(--pallete-3)!important;
    color: #fff!important;
    transition: .2s ease-in-out;
}

.text-main {
    color: var(--main-color);
}

.btn-text {
    font-size: .85rem;
}

.offers__content .card {
    border: 0;
}

.offers__content .card .floating-badge {
    position: absolute;
    left: 0;
    top: 15px;
    background-color: rgb(255, 115, 0);
    color: #fff;
    padding: .3rem 1.5rem;
    font-size: .7rem;
    letter-spacing: .1rem;
    font-weight: 500;
}

.offers__content .card .card-img-top {
    overflow: hidden;
}

.offers__content .card .card-img-top::before {
	position: absolute;
	top: 0;
	left: -75%;
	z-index: 2;
	display: block;
	content: '';
	width: 50%;
	height: 100%;
	background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
	background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
	-webkit-transform: skewX(-25deg);
	transform: skewX(-25deg);
}

.offers__content .card:hover .card-img-top::before {
	-webkit-animation: shine .75s;
	animation: shine .75s;
}

.offers__content .card .text-main {
    transition: .2s ease-in-out;
}

.offers__content .card:hover .text-main {
    color: var(--pallete-1);
    transition: .2s ease-in-out;
}

.offers__content a {
	text-decoration: none;
    color: inherit;
}

.btn-swiper {
    background-color: transparent!important;
    border-color: var(--main-color)!important;
    color: var(--main-color)!important;
    border-radius: 2px;
    transition: .2s ease-in-out;
}

.btn-swiper:hover {
    border-color: var(--pallete-1)!important;
    color: var(--pallete-1)!important;
    transition: .2s ease-in-out;
}

.btn-main-outline {
    background-color: transparent!important;
    border-color: var(--main-color)!important;
    color: var(--main-color)!important;
    border-radius: 2px;
    transition: .2s ease-in-out;
}

.btn-main-outline:hover {
    border-color: var(--pallete-1)!important;
    color: var(--pallete-1)!important;
    transition: .2s ease-in-out;
}

@-webkit-keyframes shine {
	100% {
		left: 125%;
	}
}
@keyframes shine {
	100% {
		left: 125%;
	}
}

.about__content {
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #fff;
}

.about__content-background {
    position: absolute;
    z-index: -1;
    height: 100%;
    width: 100%;
}

.about__content-background img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.about__content-wrap {
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.about__content-wrap .card {
    margin-top: 3px;
    background: rgba(0, 0, 0, .67);
    color: #d8d8d8;
    border-color: transparent;
    backdrop-filter: blur(1px);
    text-align: center;
    border-bottom-left-radius: 0px!important;
    border-bottom-right-radius: 0px!important;
    top: 2px;
}

.about__content-wrap .card b {
    color: #fff;
}

.about__content-background::before {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    content: '';
}

.treatments__content a {
    text-decoration: none;
    color: inherit;
}

.treatments__content .card {
    position: relative;
    background-color: transparent!important;
    border: 0;
    color: #fff;
    height: 365px;
}

.treatments__content .card .card-img-body {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    width: 100%;
}

.treatments__content .card .card-img-body img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    border-radius: 5px;
}

.treatments__content .card .card-img-body {
    border-radius: 5px;  
    overflow: hidden;
}

.treatments__content .card .card-img-body::before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    content: '';
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.5));
    z-index: 10;
    border-radius: 5px;
    transition: transform .2s ease-in-out;
}

.treatments__content .card .card-body {
    z-index: 20;
    display: flex;
    align-items: start;
    flex-direction: column;
    justify-content: end;
}

/*.treatments__content .card .card-img-top {
    position: relative;
    overflow: hidden;
    height: 250px;
}*/

.treatments__content .card .card-img-body img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: transform .8s ease;
}

.treatments__content .card:hover img {
    transform: scale(1.2);
    transition: transform .8s ease;
}

.treatments__content .card:hover .card-img-body::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.5)); 
}

.restaurant__content {
    overflow: hidden;
    position: relative;
}

.bg-dark {
    background: var(--darker-color)!important;
    color: #d1d1d1!important;
}

.floating-title {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 3.5rem;
    color: #fff;
    font-family: 'Playfair Display', sans-serif;
    line-height: .95;
    text-align: center;
}

.medical__content {
    position: relative;
    overflow: hidden;
}

.swiper-reviews .card {
    border: 0;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.swiper-reviews .avatar-floating-logo {
    position: absolute;
    bottom: -2px;
    right: -4px;
    height: 23px;
    width: 23px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.swiper-reviews .review-avatar {
    position: relative;
}

.swiper-reviews .review-avatar img {
    border-radius: 50%;
    height: 45px;
    width: 45px;
    object-fit: cover;
    border: 1px solid var(--main-color);
}

.swiper-reviews .review-rate {
    background-color: #0c3b7c;
    color: #fff;
    padding: .4rem .7rem;
    border-top-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.scroll__content {
    position: relative;
}

.scroll__content-item {
    background-color: var(--darker-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
    height: 100vh;
    top: 0px;
    position: sticky;
}

.scroll__content-item p {
    color: #d6d6d6;
}

.scroll__content-wrap-mobile .item-bg {
    background-color: var(--darker-color);
    color: #d6d6d6!important;
}

.scroll__content-wrap-mobile .floating-swiper {
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 auto;
    content: '';
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-btn-srcoll-prev, .swiper-btn-srcoll-next {
    background-color: var(--darker-color)!important;
    border-color: var(--background-color)!important;
    color: #fff!important;
}

.blog__content .card {
    border: 0;
    position: relative;
}

.blog__content .card .card-img-top {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog__content .card .card-img-top img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: all .8s ease;
}

.blog__content .card:hover img {
    transform: scale(1.2);
    transition: all .8s ease;
}

.blog__content .card h2 {
    transition: .3s ease-in-out;
}

.blog__content .card:hover h2 {
    color: var(--pallete-1);
    transition: .3s ease-in-out;
}

.blog__content .card .floating-info {
    padding: .3rem 1.4rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    font-size: .8rem;
    z-index: 40;
    position: absolute;
    top: 0;
    right: 0;
}

footer {
    background-color: var(--darker-color);
    color: var(--main-color-lighter);
}

footer a {
    text-decoration: none;
    color: inherit;
}

footer ul {
    list-style-type: none;
    padding-left: 0;
}

footer ul li:not(:first-child) {
    margin-top: 12px;
}

footer .footer__links {
    font-size: .85rem;
    border-bottom: 1px solid #363636;
}

footer .footer__links .footer-links a:hover {
    color: var(--pallete-3);
    transition: .2s ease-in-out;
}

footer .footer__links a {
    letter-spacing: .1rem;
    position: relative;
    padding-bottom: 4px;
}

footer .footer__links .footer-links a::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--pallete-3);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

footer .footer__links .footer-links a:hover::before {
    transform: scaleX(1);
}

footer .footer__copyright a {
    transition: .2s ease-in-out;
}

footer .footer__copyright a:hover {
    color: var(--pallete-3);
    transition: .2s ease-in-out;
}

.container-fluid-image img {
    animation: pulse 20s linear infinite;
}

@keyframes pulse {
    0% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
    50% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    100% {
        -webkit-transform: scale(1.2);
        transform: scale(1.2);
    }
}

.page-content ul {
    padding-left: 0;
    list-style-type: none;
}

.page-content li:not(:first-child) {
    margin-top: 8px;
}

.page-content li {
    padding-left: 20px;
    line-height: 1.85;
    letter-spacing: .02em;
}

.page-content li::before {
    content:        "";
    border-color:   transparent var(--main-color);
    border-style:   solid;
    border-width:   0.35em 0 0.35em 0.45em;
    display:        block;
    height:         0;
    left:           -1em;
    position:       relative;
    top:            1.1rem;
    width:          0;
}

.gallery__content .swiper-slide {
    position: relative;
    overflow: hidden;
}

.gallery__content .swiper-slide img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: all .8s ease;
}

.gallery__content .swiper-slide:hover img {
    transform: scale(1.2);
    transition: all .8s ease;
}

.gallery__content .swiper-content {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 310px;
}

.gallery__content .swiper-slide .swiper-content-hover {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    content: '2';
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 15;
    transition: transform .2s ease-in-out;
    opacity: 0;
}

.gallery__content .swiper-slide .swiper-content:hover .swiper-content-hover {
    opacity: 1;
}

.gallery__content .swiper-slide .swiper-content:hover::after {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    content: '';
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.5));
    z-index: 10;
    border-radius: 5px;
    transition: transform .2s ease-in-out;
}

.dropdown .alert-error {
    position: absolute;
    top: -24px;
    left: 5px;
    background: #e91d1d;
    color: #fff;
    padding: .25rem .5rem;
    font-size: .8rem;
    border-radius: 5px;
}

.mobile-panel {
    position: fixed;
    bottom: -1px;
    left: 0;
    z-index: 1000;
    width: 100%;
    border-top: .5 solid #858585;
}

.mobile-panel .mobile-panel--item {
    font-size: .9rem;
    text-decoration: none;
    display: flex;
    padding: 13px 10px;
    gap: 5px;
    color: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 1;
    background-color: var(--main-color);
}

header .navbar-toggler {
    color: #fff;
    border: 1px solid #fff!important;
}

header .offcanvas {
    background: #6c6c6b;
    color: #fff;
}

header .offcanvas a {
    color: #fff;
}

header .offcanvas .dropdown-menu {
    background: #6c6c6b!important;
}

header .offcanvas .collapse.nav {
	flex-direction: column !important;
}

header .offcanvas .collapse:not(.show) {
	display: none !important;
}

header .offcanvas .collapse .nav-item {
	display: block;
}

header .offcanvas .offcanvas-overflow {
    position: relative;
    height: calc(100% - 100px);
    overflow-x: hidden;
    overflow-y: auto;
}

header .offcanvas .offcanvas-overflow::-webkit-scrollbar {
    width: 8px
}

header .offcanvas .offcanvas-overflow::-webkit-scrollbar-track {
    background: transparent
}

header .offcanvas .offcanvas-overflow::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #555;
}

header .offcanvas .offcanvas-overflow::-webkit-scrollbar-thumb:hover {
    background: #3d3d3d;
}

header .offcanvas a.nav-link {
    display: block;
    color: #fff;
    position: relative;
    margin: 0;
    padding: 14px 50px 14px 80px;
    text-align: left;
    transition: color .2s;
    cursor: pointer;
    user-select: none;
}

header .offcanvas li.is-top-level > a .nav-link-text {
	font-size: 1.2rem;
}

header .offcanvas li:not(.is-top-level) > a .nav-link-text {
	font-size: 1rem;
}

header .offcanvas a.nav-link .nav-link-text {
    position: relative;
}

header .offcanvas a.nav-link:hover .nav-link-text::before {
    transform: scale(1);
    transform-origin: top left;
    transition: transform .3s;
}

header .offcanvas a.nav-link .nav-link-text::before {
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    content: "";
    z-index: 1;
    height: 2px;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: top left;
    transition: transform .3s;
}

header .offcanvas .nav-item {
    transition: .2s ease-in-out; 
}

header .offcanvas .nav .is-top-level.nav-item:hover {
	transition: .2s ease-in-out;
	background-color: hsla(0, 0%, 100%, .05);
}

header .offcanvas .nav-item.is-top-level {
    position: relative;
}

header .offcanvas .nav-item.is-top-level::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    z-index: 1;
    height: 1px;
    background-color: hsla(0, 0%, 100%, .1);
}

header .offcanvas .collapse-icon {
    position: absolute;
    top: 50%;
    left: 50px;
    margin-top: -14px;
    transition: transform .2s;
    transform: rotateX(0deg);
    will-change: transform;
}

header .offcanvas .nav-link[aria-expanded="true"] .collapse-icon  {
    transform: rotateX(180deg);
}

header .offcanvas .nav-link[aria-expanded="false"] .collapse-icon {
    transform: rotateX(0deg);
}

.wp-block-image figure, .wp-block-image figure img, .wp-block-image {
    position: relative;
    overflow: hidden;
    transition: .3s ease-in-out;
}

.wp-block-image figure:hover img {
    transform: scale(1.15);
    transition: .3s ease-in-out;
}

.wp-block-image:hover img {
    transform: scale(1.15);
    transition: .3s ease-in-out;
}

.page-template-spa-template .overflow-hidden, .page-template-spa-template .overflow-hidden img {
    position: relative;
    overflow: hidden;
    transition: .3s ease-in-out;
}

.page-template-spa-template .overflow-hidden:hover img {
    transform: scale(1.15);
    transition: .3s ease-in-out;
}