/*!
Theme Name: fizjostargard
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: fizjostargard
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

fizjostargard is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/


:root {
    --font-size: 12px;
    --text: "Lato", sans-serif;

    --very-light-green: #BEE9E4;
    --light-green: rgb(125, 211, 200);
    --green: #21ab91;
	--desaturated-green: #03695d;
    --dark-green: #00312C;
    --light-blue: rgb(152, 219, 254);
	--blue: #0D83C0;
    --desaturated-blue: #015279;
    --dark-blue: #00245F;
	--very-dark-blue: #061A37;

    --transparent-white: rgba(255, 255, 255, 0.9);
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --strong-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);

    --light-green-gradient: linear-gradient(to bottom, rgba(125, 211, 200, 1), rgba(125, 211, 200, 0));
    --green-gradient: linear-gradient(to bottom, rgba(33, 171, 145, 1), rgba(33, 171, 145, 0));
    --desaturated-green-gradient: linear-gradient(to bottom, rgba(3, 105, 93, 1), rgba(3, 105, 93, 0));
    --light-blue-gradient: linear-gradient(to bottom, rgba(152, 219, 254, 1), rgba(152, 219, 254, 0));
    --blue-gradient: linear-gradient(to bottom, rgba(13, 131, 192, 1), rgba(13, 131, 192, 0));
    --desaturated-blue-gradient: linear-gradient(to bottom, rgba(1, 82, 121, 1), rgba(1, 82, 121, 0));

    --xxl-spacing: 20rem;
	--xl-spacing: 8rem;
    --l-spacing: 5rem;
    --m-spacing: 3rem;
    --s-spacing: 1.2rem;
    --xs-spacing: 0.5rem;
    --padding: 1rem 2rem;
    --medium-padding: 1.2rem 2.2rem;
    --big-padding: 3rem 2rem;

    --small-corners: 3rem;
    --big-corners: 100px;

    --transition: all 250ms ease-in-out;
}

*{
    font-family: var(--text);
    font-size: var(--font-size);
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings: "wdth" 100, "YTLC" 500;
    font-weight: 400;
    line-height: normal;
    color: #000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%; 
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: #fff;
} 
div, section {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    scroll-margin-top: 150px !important;
}

/* text */

h1, h1 span, p.huge {
    font-size: 3.815rem;
    line-height: 4.4rem;
    font-weight: 700;
    color: var(--dark-blue);
}
h2, h2 span {
	color: var(--dark-blue);
    font-size: 3.052rem;
    line-height: 3.5rem;
    font-weight: 700;
}
h2{
    margin-bottom: var(--m-spacing);
}
h3, h3 span {
	color: var(--dark-blue);
    font-size: 2.441rem;
    line-height: 2.6rem;
    font-weight: 700;
}
h4, h4 span, p.upper-title {
	color: var(--dark-blue);
    font-size: 1.953rem;
    font-weight: 700;
}
h5, h5 span {
	color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 700;
}

p, li, a {
    line-height: 20px;
    max-width: 600px;
}
p.upper-title {
    margin-bottom: var(--s-spacing);
}
p.bold {
	font-weight: 700;
}
a, a * {
	color: #fff;
    text-decoration: none;
    cursor: pointer;
} 
a:hover, a:hover p {
    color: var(--dark-blue);
}
p.dark-blue {
    color: var(--dark-blue);
}
.dark-links a, .dark-links a *, a.dark-links {
	color: #000;
}
.dark-links a:hover, .dark-links a:hover *, a.dark-links:hover {
	color: var(--blue);
}
@media screen and (max-width: 799px) {
    h1, h1 span{
        text-transform: uppercase;
        font-size: 3.052rem;
        line-height: 3.5rem;
    }
}
@media screen and (max-width: 499px) {
    :root {
        --m-spacing: 2rem;
    }
    h1, h1 * {
        font-size: 2.074rem;
        line-height: 2.5rem;
    }
    h4, h4 span, p.upper-title {
    font-size: 1.25rem;
    line-height: 1.4rem;
    }
    h5, h5 span {
    font-size: 1.175rem;
    line-height: 21px;
    }
}
@media screen and (min-width: 1366px) {
   :root {
    --font-size: 14px;
   }

}

@media screen and (min-width: 1600px) {
   :root {
    --font-size: 16px;

    --xl-spacing: 9rem;
    --l-spacing: 6rem;
    --m-spacing: 4rem;
    --s-spacing: 2rem;
    --xs-spacing: 0.5rem;
    }   
}

/* lists */

ul {
    list-style-type: none;
}
ul.bullet-list {
    list-style-type:square;
    list-style-position: inside;
}
li {
    display: flex;
    gap: var(--s-spacing);
    align-items: center;
}
ul.bullet-list li {
    padding-left: 5px;
    text-transform: uppercase;
}
ul.bullet-list li::before {
  content: "•"; 
  color: var(--blue);
}
/* li, li p, li span {
    font-size: 1.2rem;
    font-weight: 600;
} */

/* button */

button {
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    border: none;
    padding: var(--padding);
    display: inline-block;
    background: var(--blue);
    position: relative;
    z-index: 2 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    text-transform: uppercase;
    text-align: center;
    border-radius: var(--big-corners);
}
button:hover, button:focus {
    background-color: var(--desaturated-blue) !important;
    transition: all 300ms ease-in-out;
}
button.container-btn:hover, button.container-btn:focus {
	background: transparent !important;
}
button:active, button:loading {
    background-color: var(--dark-blue) !important;
}
button img {
    margin-top: 2px;
}
button.cta-btn {
    padding: var(--medium-padding);
    font-size: 1.563rem;
}
button.green-btn {
    background-color: var(--green);
}
button.cta-btn:hover, button.cta-btn:focus {
	background-color: var(--desaturated-green) !important;
}
button.light-btn {
    background-color: #fff;
    color: var(--dark-blue);
}
button.light-btn:hover, button.light-btn:focus {
	background-color: var(--light-blue) !important;
}
.button-flex {
    margin-top: 1.7rem;
    flex-wrap: wrap;
    justify-content: center;
}
@media screen and (min-width: 800px) {
    .button-flex {
	    justify-content: flex-start;
    }
}

/* photos */
picture, img {
    background-color: transparent;
}
img.photo {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: var(--big-corners);
}
.thumb {
    position: absolute;
    top: 0;
    left: 0;
}

/* icons */

.big-icon {
    height: 5rem;
}
.medium-icon {
    height: 2.5rem;
    width: auto;
}
.small-icon {
    height: 1rem;
    width: auto;
}

/* Sekcje */
section {
    padding: var(--l-spacing) 0;
    margin: 0 auto;
}
section, footer {
    position: relative;
}

/* containers */
.wrapper, .container {
    margin: 0 auto;
}
.wrapper {
    max-width: 1100px;
}
@media screen and (min-width: 1166px) {
    .wrapper.medium-wrapper {
        padding: 0 var(--xl-spacing);
    }
}
.container {
    padding: var(--m-spacing);
    max-width: 800px;
}
.text-box {
    margin: var(--s-spacing) 0;
}
.flex {
    display: flex;
    align-items: center;
    gap: var(--s-spacing);
}
.flex-col {
    flex-basis: 50%;
    height: min-content;
}
.img-col {
    flex-basis: 50%;
}
.img-col * {
    width: 100%;
}
img.flex-col{
    width: 100%;
}
.four-flex {
    .flex {
        width: 100%;
        flex-wrap: wrap;
        gap: var(--m-spacing);
        justify-content: center;
    }
    .flex * {
        overflow: visible;
        align-items: center;
    }
    .cell {
        width: max-content;
        flex-basis: calc(50% - var(--m-spacing));
    }
}
@media screen and (max-width: 799px) {
    .two-flex {
        align-items: center;
        gap: var(--m-spacing);
        flex-direction: column;
        max-width: 600px;
    }
    .container {
        padding: var(--m-spacing) 0;
    }
} 
@media screen and (min-width: 800px) {
    .img-col * {
        max-width: calc(50vw - var(--scrollbar) - var(--l-spacing));
    }
    .four-flex {
        .flex {
            flex-wrap: nowrap;
            justify-content: space-between;
        }
        .flex .cell {
            flex-basis: auto;
        }
    }
}
.tile {
    flex-basis: 16.66%;
    min-height: 16.66vw;
    position: relative;
}
.tile:hover, .img-tile:hover img {
    transition: all 150ms ease-out;
    transform: scale(105%);
}
.tile:hover {
    filter: brightness(150%) !important;
    -webkit-filter: brightness(150%) !important;
    z-index: 2;
}
.img-tile:hover img{
    opacity: 0.7;
    z-index: -1;
}
.tile a.flex {
    justify-content: center;
    align-items: center;
    min-height: 16.66vw;
    width: 100%;
    padding: 0 var(--s-spacing);
}
.tile * {
    text-align: center;
    color: #fff;
    margin-bottom: 0;
    overflow-y: hidden;
}

/* grid */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--s-spacing);
}

.cell {
    height: auto;
    width: auto;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    position: relative;
    flex-direction: column;

    .img-container {
        height: var(--xl-spacing);
        /* changing to xl until proper images are there */
        /* height: var(--xxl-spacing); */
        width: 100%;
        position: relative;
    }
    .cell-gradient {
        position: absolute;
        top: 0;
        width: 100%;
        /* changing to xl until proper images are there */
        /* height: var(--xxl-spacing); */
        height: var(--xl-spacing);
        z-index: 1;
    }
    .cell-bg {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .cell-content {
        padding: var(--big-padding);
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
    h3 {
        margin-bottom: var(--m-spacing);
        hyphens: auto;
        overflow-wrap: break-word;
    }
    h3 span {
        overflow-wrap:normal; 
    }
}
.cell:not(.big-cell) {
    button {
        white-space: normal;
        margin-top: 0;
        width: 100%;
    }
    a {
        width: 100%;
    }
} 
.cell.img-cell {
    a {
    position: absolute;
    bottom: 3rem;
    margin: 0 2rem;
    width: calc(100% - 4rem);
}
}

.cell.green {
    background-color: var(--green);
    .cell-gradient {
        background: var(--green-gradient);
    }
}
.cell.light-green, .cell.light-blue {
    .cell-content h3 {
        color: var(--dark-blue) !important;
    }
    .cell-content p {
        color: #000 !important;
    }
}
.cell.light-green {
    background-color: var(--light-green);
    .cell-gradient {
        background: var(--light-green-gradient);
    }
}
.cell.desaturated-green {
    background-color: var(--desaturated-green);
    .cell-gradient {
        background: var(--desaturated-green-gradient);
    }
}
.cell.blue {
    background-color: var(--blue);
    .cell-gradient {
        background: var(--blue-gradient);
    }
}
.cell.light-blue {
    background-color: var(--light-blue);
    .cell-gradient {
        background: var(--light-blue-gradient);
    }
}
.cell.desaturated-blue {
    background-color: var(--desaturated-blue);
    .cell-gradient {
        background: var(--desaturated-blue-gradient);
    }
}

.big-cell {
    button {
        margin-top: var(--l-spacing);
        width: 100%;
    }
    .cell-bg {
        object-fit: cover;
    }
    .cell-gradient {
        background: linear-gradient(to top, rgb(255, 255, 255, 1), rgba(255, 255, 255, 0));
    }
}
@media screen and (min-width: 520px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .big-cell {
    flex-direction: row;
        .cell-content {
            min-width: 300px;
            width: 50%;
            max-width: 600px;
            position: relative;
            z-index: 1;
        }
        .img-container {
            width: 50%;
            position: absolute;
            right: 0;
            z-index: 0;
        }
        .img-container, .cell-gradient {
            height: 100%;
        }
        .cell-gradient {
            position: absolute;
            right: 0;
            background: linear-gradient(to right, rgb(255, 255, 255, 1), rgba(255, 255, 255, 0));
        }
        h3 {
            hyphens: none;
            overflow-wrap: normal;
        }
        button {
            width: auto;
        }
    }
    .big-cell.right {
        justify-content: flex-end;
        .img-container, .cell-gradient {
            position: absolute;
            right: auto;
            left: 0;
        }
        .cell-gradient {
            background: linear-gradient(to left, rgb(255, 255, 255, 1), rgba(255, 255, 255, 0));
        }
    }
}

@media screen and (min-width: 1166px) {
    .big-cell.left {
        padding-left: var(--xl-spacing);
    }
    .big-cell.right {
        padding-right: var(--xl-spacing);
    }
}
@media screen and (min-width: 800px)  {
    .grid.three-column, .grid.four-column {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (min-width: 1150px)  {
    .grid.four-column {
        grid-template-columns: repeat(4, 1fr);
    }
}

.timeline-grid {
    display: grid;
    position: relative;

    .divider-container {
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    .divider {
        width: var(--m-spacing);
        height: var(--m-spacing);
        background-color: var(--very-light-green);
        position: relative;
        z-index: 1;
    }
    .background-slider-container {
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
    }
    .background-slider {
        height: 100%;
        width: var(--s-spacing);
        background-color: var(--very-light-green);
        margin: 0 auto;
    }

    @media screen and (max-width: 799px) {
        row-gap: var(--m-spacing);
        grid-template-areas: 'divider' 
        'left'
        'divider2'
        'right'
        'divider3'
        'left2'
        'divider4'
        'right4';

        #left {
            grid-area: left;
        }
        #divider-container {
            grid-area: divider;
        }
        #left2 {
            grid-area: left2;
        }
        #divider-container3 {
            grid-area: divider3;
        }
        .dummy {
            display: none;
        }
    }
    @media screen and (min-width: 800px) {
        display: grid;
        column-gap: var(--s-spacing);
        grid-template-columns: 1fr auto 1fr;
    }
}

/* alignment */
.margins {
    margin: 0 var(--m-spacing);
}
.center.flex {
    flex-direction: column;
}
.center > * {
    text-align: center;
}
.center > *:not(h2, h3, ul) {
    display: flex;
    gap: var(--s-spacing);
    justify-content: center;
    align-items: center;
}
.center h1::after, .center h2::after, .center h3::after {
    margin: var(--s-spacing) auto;
}
.background {
    position: absolute;
    top: 0;
    overflow-y: visible;
    pointer-events: none;   
}
.background.full-background picture, .background.full-background .pic {
    width: calc(100vw - var(--scrollbar) + 10px);
    margin-left: -3px;
    height: 100vh;
    min-height: 800px;
    object-fit: cover;
}
@media screen and (min-width: 1000px) and (max-width: 1165px) {
    .margins {
        margin: 0 var(--l-spacing);
    }
}
@media screen and (min-width: 1166px) {
    .margins {
        margin: 0 auto;
    }
}

/* interaction appearance */
.hidden {
    display: none;
}
.inactive {
    opacity: 0.5 !important;
    filter: grayscale() !important;
    -webkit-filter: grayscale() !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    /* opacity: 0.5; */
    background-color: rgba(0, 26, 73, 0.85);
    height: 100%;
    width: 100%;
    padding: var(--m-spacing);
}

/* cosmetic */
.rounded-corners {
    border-radius: var(--small-corners);
}
h1.blue, h2.blue, h3.blue, h4.blue , p.blue {
    color: var(--blue);
}
.decorator-container {
    width: 100vw;
    display: flex;
    justify-content: center;
}
.decorator {
    width: 100vw;
    min-width: 450px;
}
.decorator-upper {
    margin-bottom: var(--xl-spacing);
}
.decorator-lower {
    margin-top: var(--xl-spacing);
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}

/* google maps iframe */

.map-card {
    height: 400px;
    width: 100%;
    padding: 0;
}
