/*
Theme Name: ToHome Theme
Theme URI: https://devlancer.pro
Author: DevLancer
Author URI: https://devlancer.pro
Author Email: jgniecki.contact@gmail.com
Version: 1.0
*/
:root {
    --wp-blue: #23489E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: none!important;
    border-bottom: none !important;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--wp-blue) !important;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand__icon {
    height: 1em;
    width: auto;
    border-radius: 0.2em;
    display: inline-block;
}

.navbar-nav .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #333;
    margin: 0 8px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--wp-blue);
}

.navbar .navbar-brand .navbar-brand__text {
    margin-top: 0;
    margin-bottom: 0;
    font-family: Impact, Haettenschweiler, Franklin Gothic Bold, Charcoal, sans-serif;
    font-size: 33px;
    font-weight: 400;
    line-height: 36px;
    text-transform: uppercase;
}

.navbar .navbar-toggler {
    border: none;
}

.navbar .navbar-toggler-icon {

    background-color: var(--wp-blue); /* dokładny kolor */

    -webkit-mask-image: var(--bs-navbar-toggler-icon-bg);
    -webkit-mask-size: cover;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;

    mask-image: var(--bs-navbar-toggler-icon-bg);
    mask-size: cover;
    mask-position: center;
    mask-repeat: no-repeat;
}

.navbar .nav-item {
    color: #333333;
    letter-spacing: 1px;
    padding-top: 7px;
    padding-bottom: 7px;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    line-height: 18px;
    text-transform: uppercase;
}

.navbar .current-menu-item {
    .nav-link {
        color: var(--wp-blue) !important;
    }
}

.main-content {
    padding-top: 40px;
    padding-bottom: 80px;
    flex: 1;
}

.home-banner-container {
    margin-bottom: 24px;
    padding: 0;
}

.home-banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.home-banner-image--mobile {
    display: none;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: var(--wp-blue);
}

.projects-grid {
    margin-bottom: 80px;
}

.project-item {
    transition: transform 0.3s ease;
    height: 100%;
    background-color: #fff;
}

.project-item:hover {
    transform: scale(1.05);
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease;
}

.project-item:hover .project-img {
    filter: brightness(1.1);
}

.project-info {
    background-color: #fff;
    text-align: center;
}

.project-title {
    margin-top: 13px;
    margin-bottom: 33px;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
}

.project-category {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-excerpt {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #555;
}

.footer {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 0 30px;
    border-top: none !important;
    margin-top: 40px;
}

.content-page-card {
    margin-bottom: 20px;
}

.content-page-card__title, .content-page-title {
    letter-spacing: 0;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    font-size: 25px;
}

.content-page-card__title a {
    color: inherit;
    text-decoration: none;
}

.content-page-card__title a:hover {
    color: var(--wp-blue);
}

.content-page-card__body {
    margin-top: 12px;
    color: #333333;
}

.content-page-card__body p {
    font-size: 14px;
}

.content-page-card__body a {
    text-decoration: none;
    color: inherit;
}

.content-page-card__body a:hover {
    color: var(--wp-blue);
}

.content-page-entry {
    color: #333333;
}

.content-page-entry p {
    font-size: 14px;
}

.content-page-latest {
    padding: 16px;
    border-radius: 8px;
}

.content-page-latest h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

.content-page-latest__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-page-latest__item {
    text-align: end;
}

.content-page-latest__item + .content-page-latest__item {
    margin-top: 8px;
}

.content-page-latest__item a {
    text-decoration: none;
    color: inherit;
}

.content-page-latest__item a:hover {
    color: var(--wp-blue);
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer a {
    text-decoration: none;
}

.social-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    background-color: var(--wp-blue);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--wp-blue);
    transform: scale(1.05);
}

.phone-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--wp-blue);
    font-weight: 600;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-phone {
    display: inline-block;
}

.copyright {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #888;
}

.about-section,
.contact-section {
    padding: 60px 0;
}

.section-lead {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    color: #555;
    font-size: 1.05rem;
}

.no-posts {
    text-align: center;
    color: #666;
    font-size: 1rem;
}


.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination .page-numbers li {
    margin: 0;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d9deea;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2f3a56;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1;
    transition: all 0.2s ease;
}

.pagination .page-numbers a:hover {
    color: #fff;
    background-color: var(--wp-blue);
    border-color: var(--wp-blue);
}

.pagination .page-numbers .current {
    color: #fff;
    background-color: var(--wp-blue);
    border-color: var(--wp-blue);
}

.pagination .page-numbers .dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 4px;
}

@media (max-width: 992px) {
    .project-img {
        height: 200px;
    }

    .content-page-title,
    .content-page-latest__item {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-nav .nav-link {
        margin: 2px 0;
        text-align: center;
    }

    .main-content {
        padding-top: 30px;
    }

    .project-img {
        height: 180px;
    }

    .home-banner-image--desktop {
        display: none;
    }

    .home-banner-image--mobile {
        display: block;
        border-radius: 0;
    }
}

@media (max-width: 576px) {
    .project-img {
        height: 160px;
    }
}
