/* ===================================
   Domek Montessori - Custom Styles
   Mobile First: <992px mobile, >=992px desktop
   =================================== */

/* ===================================
   CSS Variables
   =================================== */
:root {
    --color-primary: #4b797c;
    --color-secondary: #c74d53;
    --color-accent: #edcb87;
    --color-text: #435a5b;
    --color-light: #b3d5d4;
    --color-light-alt: #bdd9db;
    --color-dark: #496265;
    --color-button: #d88488;
    --color-gray: #9a9a98;
    --color-gray-light: #c7c7c7;
    --color-white: #ffffff;
    --color-black: #000000;
    --font-family: 'Commissioner', sans-serif;
    --container-width: 980px;
    --header-height: 127px;
}

/* ===================================
   Reset & Base
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.5em;
    color: var(--color-text);
    padding-top: var(--header-height);
}

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

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style-position: inside;
}

/* ===================================
   Container
   =================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ===================================
   Flex utilities
   =================================== */
.row_ {
    display: flex;
    flex-wrap: wrap;
}

.row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.col {
    width: 100%;
}

/* ===================================
   Header
   =================================== */
#navbar {
    width: 100%;
    position: fixed;
    background: var(--color-white);
    padding: 10px 0 20px;
    top: 0;
    z-index: 9999;
}

#navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.upperbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.upperbar > img {
    max-width: 200px;
    height: auto;
}

.access {
    display: flex;
    gap: 5px;
}

.access button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.access img {
    width: 25px;
    height: 25px;
}

#navbar .logo {
    display: block;
    width: 150px;
    z-index: 995;
}

#navbar .logo img {
    width: 100%;
    height: auto;
}

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation */
#primary-navigation {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--color-white);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

#primary-navigation.active {
    transform: translateX(0);
}

#primary-navigation .nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

#primary-navigation .nav-menu li {
    margin-bottom: 15px;
}

#primary-navigation .nav-menu a {
    display: block;
    font-size: 18px;
    padding: 10px 0;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-light);
}

/* ===================================
   Buttons
   =================================== */
.btn,
.button-dark,
.button-light {
    display: inline-block;
    padding: 10px 25px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn {
    background-color: var(--color-button);
    color: var(--color-white);
    font-size: 16px;
}

.btn:hover {
    background-color: #333333;
}

.button-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.button-light {
    background-color: #5c7c7f;
    color: var(--color-white);
}

/* ===================================
   Three Columns Block
   =================================== */
.three-columns .row {
    flex-direction: column;
}

.three-columns .column {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    padding: 40px 20px;
    text-align: center;
}

.three-columns .column > img {
    width: 150px;
    height: 100px;
    object-fit: contain;
}

.three-columns .adres {
    text-align: center;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 15px;
}

.three-columns .column hr {
    height: 8px;
    width: 42px;
    background-color: var(--color-white);
    border: none;
    margin: 20px 0;
}

.three-columns .information-columns {
    color: var(--color-white);
    text-align: center;
    font-size: 18px;
    font-weight: 400;
}

.three-columns .social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.three-columns .social-links img {
    width: 40px;
    height: 40px;
}

/* ===================================
   UE Bar Block
   =================================== */
.uebar {
    text-align: center;
    padding: 20px;
    background-color: var(--color-white);
}

.uebar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.uebar img {
    max-width: 100%;
    height: auto;
}

.uebar p {
    font-size: 14px;
    font-weight: 600;
    margin: 5px 0;
}

/* ===================================
   Text Block (Czym)
   =================================== */
.text-block {
    width: 100%;
    padding: 40px 20px;
    background-color: var(--color-light);
    color: var(--color-text);
}

.text-block .text-content {
    max-width: 800px;
    margin: 0 auto;
}

.text-block h2 {
    font-weight: 700;
    margin: 0 0 15px 0;
    font-size: 22px;
}

.text-block ul {
    font-weight: 300;
    padding-left: 20px;
    list-style-type: disc;
    font-size: 16px;
}

.text-block li {
    margin-bottom: 10px;
}

.text-block span {
    font-weight: 600;
}

/* ===================================
   Media Text Block
   =================================== */
.media-text {
    width: 100%;
    color: var(--color-text);
    font-weight: 300;
}

.media-text .row_ {
    flex-direction: column;
}

.media-text .col.img {
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.media-text .col.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-text .col.text {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-text h2 {
    font-size: 24px;
    line-height: 1.25em;
    text-align: center;
    margin-bottom: 15px;
}

.media-text p {
    font-size: 16px;
    margin-bottom: 15px;
}

.media-text ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.media-text li {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.media-text .bold {
    font-weight: 600;
}

.media-text .btn {
    margin-top: 20px;
}

/* Media Text Variants */
.media-text.bg-yellow .col.text {
    background-color: var(--color-accent);
}

.media-text.bg-light .col.text {
    background-color: var(--color-light-alt);
}

/* ===================================
   Banner Block
   =================================== */
.baner {
    color: var(--color-dark);
    font-weight: 300;
    padding: 40px 20px;
    background-color: var(--color-light);
    text-align: center;
}

.baner p {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.baner .signature {
    margin-top: 20px;
    font-weight: 400;
    font-size: 14px;
}

/* ===================================
   Five Columns Block
   =================================== */
.five-columns .row {
    flex-direction: column;
}

.five-columns .column2 {
    padding: 40px 20px;
    text-align: center;
}

.five-columns .column2 > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.five-columns .column2 img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 25px;
}

.five-columns .column2 p:first-of-type {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.five-columns .column2 p:last-of-type {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 300;
    color: var(--color-white);
    max-width: 200px;
}

/* ===================================
   Two Columns Block
   =================================== */
.two-columns {
    padding: 40px 0;
}

.two-columns .container {
    font-weight: 300;
    font-size: 18px;
    color: var(--color-text);
}

.two-columns h2 {
    font-size: 32px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
}

.two-columns .row_ {
    flex-direction: column;
    margin-bottom: 30px;
}

.two-columns .col.img {
    height: 250px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.two-columns .col.text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.two-columns p {
    padding: 10px 0;
    line-height: 1.4;
}

.two-columns h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.two-columns ul {
    padding-left: 20px;
}

.two-columns li {
    margin-bottom: 5px;
}

/* ===================================
   Plan Dnia
   =================================== */
.plan-dnia {
    width: 100%;
    padding: 30px 20px;
    font-size: 15px;
    color: var(--color-text);
    font-weight: 300;
    background-color: rgb(250,250,250);
}

.plan-dnia .row_ {
    flex-direction: column;
    gap: 30px;
}

.plan-dnia .col {
    width: 100%;
}

.plan-dnia h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.plan-dnia p {
    font-size: 14px;
    line-height: 1.4;
}

.plan-dnia p > span {
    font-weight: 600;
}

.baner-img-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
}

.baner-img-text img {
    height: 60px;
    object-fit: contain;
}

.baner-img-text p {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}

/* ===================================
   Contact Block
   =================================== */
.contact-block {
    background-color: var(--color-text);
    color: var(--color-white);
    font-size: 16px;
    padding: 40px 20px;
}

.contact-block .row_ {
    flex-direction: column;
    gap: 30px;
}

.contact-block .col {
    width: 100%;
}

.contact-block .logo-map {
    margin-bottom: 20px;
}

.contact-block .logo-map img {
    max-width: 250px;
    margin-bottom: 20px;
}

.contact-block iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

.contact-block h2 {
    font-size: 22px;
    letter-spacing: 1px;
    font-weight: 300;
    margin-bottom: 30px;
}

.contact-block .wpcf7 input[type="text"],
.contact-block .wpcf7 input[type="email"],
.contact-block .wpcf7 input[type="tel"],
.contact-block .wpcf7 input[type="date"],
.contact-block .wpcf7 textarea {
    width: 100%;
    padding: 10px;
    background-color: var(--color-text);
    border: 1px solid var(--color-light-alt);
    color: var(--color-white);
    font-family: var(--font-family);
    margin-bottom: 10px;
}

.contact-block .wpcf7 input[type="submit"] {
    background-color: var(--color-button);
    color: var(--color-white);
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: 600;
}

.contact-block .wpcf7 input[type="submit"]:hover {
    background-color: #333;
}

.contact-block .message-box {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    background-color: rgba(0,0,0,0.2);
    margin-top: 20px;
}

.contact-block .agreement {
    font-size: 10px;
    font-weight: 300;
    margin-top: 20px;
}

/* ===================================
   Image Parallax Block
   =================================== */
.img-parallax {
    width: 100%;
    min-height: 300px;
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ===================================
   Files Download Block
   =================================== */
.files-download {
    padding: 40px 20px;
}

.files-download .container {
    max-width: 600px;
}

.files-download h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 10px;
}

.files-download hr {
    height: 3px;
    width: 35px;
    margin: 0 auto 30px;
    background-color: var(--color-black);
    border: none;
}

.files-download .element {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.files-download .download {
    width: 45px;
    height: 45px;
    border: 1px solid var(--color-black);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.files-download .download svg {
    width: 25px;
    height: 25px;
    transition: transform 0.3s;
}

.files-download .download:hover svg {
    transform: scale(0.8);
}

.files-download .element a {
    font-size: 14px;
    color: var(--color-text);
}

/* ===================================
   Gallery Block
   =================================== */
.gallery-block {
    padding: 40px 20px;
}

.gallery-block .gallery-top {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.gallery-block .gallery-top img {
    width: 100%;
    object-fit: cover;
}

.gallery-block .gallery-top h2 {
    background-color: var(--color-button);
    font-size: 28px;
    text-align: center;
    color: var(--color-text);
    padding: 30px 20px;
}

.gallery-block .gallery-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.gallery-block .gallery-items a {
    display: block;
}

.gallery-block .gallery-items img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Page Title Block
   =================================== */
.page-title-block {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-title-block.has-bg {
    color: var(--color-white);
}

.page-title-block.has-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.page-title-block .container {
    position: relative;
    z-index: 1;
}

.page-title-block h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-title-block .breadcrumbs {
    font-size: 14px;
}

.page-title-block .breadcrumbs a {
    text-decoration: underline;
}

.page-title-block .breadcrumbs .separator {
    margin: 0 5px;
}

/* ===================================
   Footer
   =================================== */
#site-footer {
    margin-top: 40px;
}

.footer-files {
    padding: 20px;
    text-align: center;
}

.footer-files .buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.footer-files .btn {
    font-size: 14px;
    padding: 10px 20px;
}

.footer-project {
    padding: 30px 20px;
}

.footer-project .row_ {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-project img {
    max-width: 100%;
    height: auto;
}

.footer-project .project-text {
    font-size: 12px;
}

.footer-project .project-text p {
    margin-bottom: 5px;
}

.footer-bottom {
    padding: 20px;
    text-align: center;
}

.footer-bottom .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom .footer-menu li {
    margin-bottom: 10px;
}

.footer-bottom .footer-menu a {
    font-size: 14px;
    color: var(--color-text);
}

/* ===================================
   Contrast Mode
   =================================== */
body.contrast,
body.contrast * {
    background-color: var(--color-black) !important;
    color: var(--color-white) !important;
}

body.contrast a {
    color: #FFFF00 !important;
}

body.contrast #navbar {
    background-color: var(--color-black) !important;
}

body.contrast .access img {
    filter: invert(1);
}

body.contrast .btn,
body.contrast .button-dark,
body.contrast .button-light {
    background-color: transparent !important;
    border: 2px solid #FFFF00 !important;
    color: #FFFF00 !important;
}

/* ===================================
   Desktop Styles (>=992px)
   =================================== */
@media (min-width: 992px) {
    /* Header */
    #navbar {
        padding-bottom: 20px;
    }
    
    #navbar .container {
        flex-wrap: nowrap;
    }
    
    .upperbar {
        position: absolute;
        top: 10px;
        right: 0;
        width: auto;
        margin-bottom: 0;
    }
    
    .upperbar > img {
        max-width: none;
    }
    
    .access {
        position: absolute;
        top: 10px;
        right: -100px;
    }
    
    #navbar .logo {
        position: relative;
        top: 40px;
        width: 200px;
    }
    
    .menu-toggle {
        display: none;
    }
    
    #primary-navigation {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        transform: none;
        padding: 0;
        overflow: visible;
        margin-left: auto;
        top: 10px;
    }
    
    #primary-navigation .nav-menu {
        display: flex;
        gap: 0;
    }
    
    #primary-navigation .nav-menu li {
        margin-bottom: 0;
    }
    
    #primary-navigation .nav-menu a {
        font-size: 15px;
        padding: 0 10px;
        border-bottom: none;
        color: #648689;
    }
    
    #primary-navigation .nav-menu a:hover {
        color: var(--color-text);
    }
    
    /* Columns */
    .col {
        width: 50%;
    }
    
    /* Three Columns */
    .three-columns .row {
        flex-direction: row;
    }
    
    .three-columns .column {
        flex: 0 0 33.333%;
        width: 33.333%;
        height: 500px;
        padding: 53px 0 30px;
    }
    
    .three-columns .column > img {
        width: 196px;
        height: 130px;
    }
    
    .three-columns .adres {
        font-size: 20px;
    }
    
    .three-columns .information-columns {
        font-size: 20px;
        height: 100px;
    }
    
    /* UE Bar */
    .uebar .container {
        flex-direction: row;
        justify-content: center;
    }
    
    .uebar p {
        font-size: 16px;
    }
    
    /* Text Block */
    .text-block {
        padding: 50px 0;
    }
    
    .text-block h2 {
        font-size: 24px;
    }
    
    .text-block ul {
        padding-left: 40px;
        font-size: 17px;
    }
    
    /* Media Text */
    .media-text {
        width: 1000px;
        margin: 0 auto;
    }
    
    .media-text .row_ {
        flex-direction: row;
    }
    
    .media-text.reverse .row_ {
        flex-direction: row-reverse;
    }
    
    .media-text .col {
        width: 50%;
    }
    
    .media-text .col.img {
        min-height: auto;
    }
    
    .media-text .col.text {
        padding: 50px 45px;
    }
    
    .media-text h2 {
        font-size: 30px;
        padding-top: 50px;
    }
    
    .media-text p {
        font-size: 17px;
    }
    
    .media-text ul {
        padding-left: 40px;
    }
    
    .media-text li {
        font-size: 17px;
    }
    
    /* Full width media text */
    .media-text.full-width {
        width: 100%;
    }
    
    .media-text.full-width .col.text .container {
        width: 50%;
    }
    
    /* Five Columns */
    .five-columns .row {
        flex-direction: row;
    }
    
    .five-columns .column2 {
        flex: 0 0 20%;
        width: 20%;
    }
    
    .five-columns .column2 img {
        width: 75px;
        height: 75px;
        margin-bottom: 35px;
    }
    
    .five-columns .column2 p:first-of-type {
        font-size: 18px;
        line-height: 25px;
    }
    
    .five-columns .column2 p:last-of-type {
        font-size: 16px;
        line-height: 23px;
        width: 160px;
    }
    
    /* Two Columns */
    .two-columns .container {
        width: 58%;
        padding: 50px 0;
        font-size: 22px;
    }
    
    .two-columns h2 {
        font-size: 45px;
    }
    
    .two-columns .row_ {
        flex-direction: row;
        align-items: stretch;
    }
    
    .two-columns .row_:nth-child(2n) {
        flex-direction: row-reverse;
    }
    
    .two-columns .col {
        width: 50%;
        margin: 0 50px;
    }
    
    .two-columns .col.img {
        height: 400px;
        margin-bottom: 0;
    }
    
    .two-columns p {
        padding: 20px;
    }
    
    .two-columns h4 {
        font-size: 22px;
        padding: 20px 20px 0;
    }
    
    .two-columns ul {
        padding-left: 60px;
    }
    
    /* Plan Dnia */
    .plan-dnia .row_ {
        flex-direction: row;
        width: 56%;
        margin: 0 auto;
        justify-content: space-between;
    }
    
    .plan-dnia .col {
        width: 45%;
        font-size: 16px;
        line-height: 20px;
    }
    
    .plan-dnia h3 {
        font-size: 17px;
        padding-left: 20px;
    }
    
    .baner-img-text {
        flex-direction: row;
        width: 50%;
        margin: 30px auto 0;
        justify-content: space-between;
    }
    
    .baner-img-text img {
        height: 70px;
    }
    
    .baner-img-text p {
        font-size: 24px;
    }
    
    /* Contact */
    .contact-block {
        width: 53%;
        margin: 0 auto;
        padding: 0;
    }
    
    .contact-block .row_ {
        flex-direction: row;
    }
    
    .contact-block .col {
        width: 44%;
    }
    
    .contact-block .col.form {
        padding: 40px;
        width: calc(56% - 80px);
    }
    
    .contact-block .logo-map {
        margin-top: 70px;
        margin-left: 20px;
    }
    
    .contact-block .logo-map img {
        max-width: 300px;
        margin-bottom: 55px;
    }
    
    .contact-block iframe {
        height: 565px;
    }
    
    .contact-block h2 {
        font-size: 24px;
        margin: 50px 0;
    }
    
    /* Image Parallax */
    .img-parallax {
        width: 90%;
        margin: 0 auto;
        min-height: 40vh;
        background-attachment: fixed;
    }
    
    /* Files Download */
    .files-download {
        padding: 50px 0;
    }
    
    .files-download h2 {
        font-size: 38px;
    }
    
    .files-download .element {
        height: 100px;
    }
    
    /* Gallery */
    .gallery-block {
        width: 50%;
        margin: 0 auto;
        padding: 130px 0 50px;
    }
    
    .gallery-block .gallery-top {
        flex-direction: row;
    }
    
    .gallery-block .gallery-top img {
        width: 50%;
    }
    
    .gallery-block .gallery-top h2 {
        width: 50%;
        font-size: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-block .gallery-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Page Title */
    .page-title-block {
        padding: 80px 20px;
    }
    
    .page-title-block h1 {
        font-size: 48px;
    }
    
    /* Footer */
    .footer-project .row_ {
        flex-direction: row;
        text-align: left;
        max-width: 1100px;
        margin: 0 auto;
    }
    
    .footer-project img {
        width: 600px;
        height: 75px;
        object-fit: contain;
    }
    
    .footer-project .project-text {
        flex: 0 0 350px;
        padding-left: 25px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .footer-bottom .footer-menu {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-bottom .footer-menu li {
        margin-bottom: 0;
    }
}
