/*style.css*/
:root {
    --primary-color: #000;
    --secondary-color: #ac815e;
    --bg-color: #f4f1ec;
    --hover-bg-color: #f4f1ec;
    --font-family: "Calibri","Georgia";
    --heading-font: "Gotham","Georgia";
    --heading-h1-weight: 500;
    --heading-h2-weight: 400;
    --heading-h3-weight: 300;
}
::selection {
    background: var(--secondary-color);
    color: #000000;
}

h2::selection, h4::selection, h3::selection {
    background: var(--secondary-color);
    -webkit-text-fill-color: #000; /* Wyłącz przezroczystość na zaznaczeniu */
    color: #000; /* Dodatkowe zabezpieczenie */
}

section {
    display: block;
    margin: 20px auto;
    max-width: 1200px; /* Ustaw maksymalną szerokość */
    padding: 20px;
    width: 100%; /* Sekcja zajmuje całą szerokość kontenera */
    box-sizing: border-box; /* Uwzględnienie paddingu w szerokości */
    
}

li {
    margin-right: 40px;
    font-family: var(--font-family);
}

h1 {
    font-family: var(--heading-font);
    font-weight: var(--heading-h1-weight);
    font-size: 2 rem;
     /* Dopasuj kolory gradientu */
    color: var(--secondary-color);


}
h2 {
    font-weight: var(--heading-h1-weight);
    font-size: 1.6rem;
    font-family: var(--heading-font);
    color: var(--secondary-color);
    margin-left:20px;
    text-align: center;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--primary-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    line-height: 1.6;
}
/*Logo tekstowe*/
/*End of Logo tekstowe*/

.top-container {
    height: 750px;
    width: 100%;
    padding: 0;
    margin: 0;
}

.img-top-container {
    position: relative;
    background-image: url('../img/main_top.jpeg');
    opacity: 0.8;
    background-size: 100% auto;
    position: inherit;
    background-position: center;
    height: 750px;
    width: 100%;
    overflow: hidden;
    background-repeat: no-repeat;
}
.img-top-container img {
    position: absolute;
    top: 0;
    right: 0;
    max-width: 500px;
    width: 100%;
    height: auto;
    opacity: 1;
    z-index: 999;
    padding-right: 100px;
    padding-top: 50px;
}


.logo-img {
    position: relative;
    max-width: 50%; /* Logo zajmuje maksymalnie 50% szerokości */
    height: auto; /* Zachowanie proporcji logo */
    z-index: 1; /* Logo nad tłem */
}

.hero-container {
    position: relative;
    width: 110%;
    height: 75vh;
    bottom: 20%;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Logo wyrównane do lewej */
    overflow: hidden;
    background-color: #f4f1ec; /* Jasne tło jako fallback */
}

.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 30%;
    transform: translate(-30%, 38%);
    width: 2000px; /* szerokość oryginalna obrazka */
    height: 1200px; /* wysokość oryginalna obrazka */
    background-image: url('img/main_top.jpeg');
    background-repeat: no-repeat;
    background-size: auto;
    background-position: top center;
    opacity: 0.7;
    z-index: -1;
    will-change: transform;
    transition: transform 0.5s ease-out;
}

.hero.scrolled::before {
    transform: translateX(-50%) translateY(-20px);
}

.hero {
    position: absolute;
    width: 100%;
    height: 100%; /* Pełna wysokość kontenera */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #ffffff; /* Jasne tło jako fallback */
    z-index: 1;
}


.hero-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: left;
    margin-left: 0px;
    background-color: white;
    width: 50%;
    height: 100%; /* Dopasowanie wysokości */
    clip-path: polygon(0 0, 65% 0, 100% 100%, 0 100%, 0 0);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}


.hero-logo img {
    margin-left:50px;
    max-width: 80%;
    height: auto;
    scale: 1.2;
}

.hero-text {
    position: absolute;
    top: 50%; /* Ustaw tekst w środku obrazu */
    left: 20%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 3rem;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-text h1 img {
    max-height: 400px;
    vertical-align: middle;
}

.scroll-down-btn {
    position: absolute;
    bottom: 15px; /* Ustaw przycisk nad krawędzią */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 3;
    font-family: var(--font-family);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1rem;
    transition: opacity 0.3s, transform 0.3s;
}

.scroll-down-btn:hover {
    opacity: 0.8;
    transform: translateX(-50%) translateY(-5px);
}

.scroll-down-btn .arrow {
    margin-top: 5px;
    width: 2px; /* Szerokość kreski */
    height: 20px; /* Wysokość kreski */
    background-color: white; /* Kolor kreski */
    animation: bounce 1.5s infinite; /* Animacja poruszania */
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0); /* Pozycja początkowa */
    }
    50% {
        transform: translateY(10px); /* Przesunięcie w dół */
    }
}



.image-text-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-image {
    flex: 1;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-text {
    flex: 1;
    padding: 20px;
}

.section-text h2 {
    color: var(--secondary-color);
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-text .subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.section-text p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.section-text a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.section-text a:hover {
    text-decoration: underline;
}

.content {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.tile {
    background-color: var(--bg-color);
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.titles-container-main {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
/* Style dla kafelków */

.tiles-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolumny na dużych ekranach */
    gap: 20px;
    padding: 40px;
    max-width: 1200px; /* Szerokość kontenera */
    margin: 40px auto; /* Centrowanie kontenera */
}



.tile:hover {
    background-color: var(--hover-bg-color);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.tile img {
    max-width: 60px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.tile:hover img {
    transform: scale(1.1);
}

.tile h4 {    
    margin: 10px 0;
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-family: var(--heading-font);
    font-weight: var(--heading-h1-weight);
}

.tile p {
    font-size: 0.9rem;
    color: #7a7a7a;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: var(--primary-color);
    color: #ffffff96;
}

h2.section-title {
    font-family: var(--heading-font);
    text-align: center;
    font-size: 1.6rem;
    font-weight: var(--heading-h2-weight);
    color: var(--secondary-color);
    margin-top: 40px;
}

h3.layout-title {
    font-family: var(--heading-font);
    text-align: center;
    font-size: 1.2rem;
    font-weight: var(--heading-h3-weight);
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.building-layouts {
    max-width: 1200px; /* Maksymalna szerokość */
    width: 100%; /* Cała szerokość w ramach max-width */
    margin: 0 auto; /* Centrowanie */
    padding: 20px; /* Dodanie wewnętrznego marginesu */
    background-color: #ffffff; /* Kolor tła */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.building-layouts h2 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: var(--heading-h2-weight);
    color: var(--secondary-color);
    margin-bottom: 50px;
}

.layout-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.layout-image {
    flex: 1;
    text-align: center;
}

.layout-image img {
    max-width: 100%;
    height: auto;
    display: none;
}

.layout-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-image img.active {
    display: block;
}

.layout-controls {
    display: flex;
    justify-content: center;
    /* align-items: center;fp */
    margin-bottom: 20px;
}

.control-btn {
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover,
.control-btn.active {
    background-color: var(--secondary-color);
    color: #fff;
}

.layout-text {
    flex: 1;
    padding: 20px;
}

.layout-text h4 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: var(--heading-h2-weight);
    margin-bottom: 10px;
    color: #000;
}

.layout-text p {
    font-size: 1rem;
    color: #555;
}

.layout-text ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    
}

.layout-text ul li {
    margin-bottom: 5px;

}

.plan-details {
    display: none;
}

.plan-details.active {
    display: block;
}


.text-only-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.text-only-section h2 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: var(--heading-h2-weight);
    margin-bottom: 20px;
}
.text-only-section h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: var(--heading-h3-weight);
    text-align: left;
    margin-left:20px;
    margin-right: 20px;
}


.text-only-section p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    font-weight: var(--heading-h2-weight);
    margin-bottom: 15px;
}


.text-only-section a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.text-only-section a:hover {
    text-decoration: underline;
}

.text-only-section-bottom {
    max-width: 1200px; /* Maksymalna szerokość */
    width: 100%; /* Cała szerokość w ramach max-width */
    margin: 20px auto; /* Centrowanie */
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center; /* Wyśrodkowanie tekstu */
    display:flex; 
    align-items:center; 
    justify-content:space-between;
}

.text-only-section-bottom h4 {
    color: var(--secondary-color);
    font-size: large;
    text-decoration: none;
    font-weight: bold;
}

.text-only-section-heading {
    background-color: var(--bg-color);
    text-align: left;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    max-width: 1200px;
}

.text-only-section-heading p {
    margin-left:20px;
}

.gallery-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-section ul {
    text-align: left;
}

.gallery-section h2 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: normal;
    margin-bottom: 10px;
    margin-left:20px;
    padding: 0;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
}
.gallery-section h4 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: normal;
    margin-left:20px;
    padding-bottom: 10px;
    align-items: center;
    text-align: center;
}


.image-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.image-buttons img {
    padding: 10px;
}

gmp-map {
    display: block;
    width: 400px;
    height: 300px;
  }

iframe {
    display: block;
    width: 500px;
    height: 400px;
    border: none;
  }


.plan-image {
    display: none;
}

.plan-image.active {
    display: block;
}

.gallery-btn {
    height: 120px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.gallery-btn.active {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.gallery-content {
    text-align: center;
}

.gallery-item {
    display: none;
}

.gallery-item.active {
    display: block;
}

.gallery-item h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 10px;
    align-items: center;
    color: var(--primary-color);
}

.gallery-item p {
    font-size: 1rem;
    color: #fff;
}

.gallery-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.gallery-item a:hover {
    text-decoration: underline;
}

.section-text h2 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    margin-left:0;
    text-align: left;
}

.section-text p {
    font-size: 0.9rem;
}

.tile h4 {
    font-family: var(--heading-font);
    font-size: 1rem;
}

.tile p {
    font-size: 0.8rem;
}

.layout-text h4 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
}

.layout-text p {
    font-size: 0.9rem;
}

.text-only-section h2 {
    font-size: 1.6rem;
}

.text-only-section p {
    font-size: 0.9rem;
    text-align: left;
    margin-left:20px;
}


.gallery-item h3 {
    font-size: 1.4rem;
    color:var(--primary-color);
}

.gallery-item p {
    font-size: 0.9rem;
}

/* Ogólny reset dla pozostałych sekcji */
section {
    display: block; /* Sekcje są jedną pod drugą */
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
}


.section-image-2 {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-image-2 img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    padding: 10px;
    object-fit: contain;
}

.section-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.icon-mail,
.icon-phone {
    display: inline-block;
    width: 30px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 10px;
}

.icon-mail {
    background-image: url('../img/mail.png');
}

.icon-phone {
    background-image: url('../img/phone.png');
}

@media (max-width: 1300px) {
    .hero-logo img {
        margin-left:20px;
        max-width: 80%;
        height: auto;
        scale: 1;
    }
}
/* Responsywność dla kafelków */
@media (max-width: 1024px) {
    .image-buttons img {
        min-width: 150px;
    }
    .top-container {
        width: 100%;
        height: auto;
     }
    .img-top-container {
        background-size: 100%;
        height: 40vh;
        background-size: 1300px auto;
    }
    .img-top-container img {
        max-width: 370px;
        width: 100%;
        padding: 40px 40px 0 0;
    }

    .hero::before {
        top: 20%;
        left: 15%;
        transform: translate(-10%, -40%);
    }
    .tiles-container {
        grid-template-columns: repeat(3, 1fr); /* 3 kolumny na średnich ekranach */
    }
    .hero-text h1 img {
        width: 40vh;
    }
}

@media (max-width: 768px) {
    .image-buttons img {
        min-width: 140px;
    }

    .img-top-container img {
        max-width: 270px;
        width: 70%;
        padding: 30px 20px 0 0;
    }

    .hero-logo img {
        margin-left:20px;
        max-width: 70%;
        height: auto;
    }
    h1{
        font-size: 2rem;
        font-weight: var(--heading-h1-weight);
    }
    .gallery-btn {
        width: 100px;
        height: 100px;
    }
    .tiles-container {
        grid-template-columns: repeat(2, 1fr); /* 2 kolumny na tabletach */
    }
    .layout-content {
        display: flex;
        flex-direction: column; /* Ustawia układ w jednej kolumnie */
    }
    .layout-image {
        order: -1; /* Umieszcza obrazek nad tekstem */
    }
    .image-text-section {
        flex-direction: column; /* Zmienia układ na kolumnowy */
    }

    .section-image {
        order: 1; /* Obrazek przechodzi pod tekst */
    }

    .section-text {
        order: 0; /* Tekst pozostaje na górze */
    }
    .layout-details {
        margin-top: 20px; /* Dodanie odstępu między obrazkiem a tekstem */
    }
}

@media (max-width: 480px) {
    iframe {
        display: block;
        width: 400px;
        height: 400px;
        border: none;
      }
    .image-buttons img {
        min-width: 110px;
    }
    .top-container {
        width: 100%;
        height: auto;
     }
    .img-top-container {
        background-size: 100%;
        height: 30vh;
        background-size: 700px auto;
    }
    .img-top-container img {
        max-width: 170px;
        width: 70%;
        padding: 30px 20px 0 0;
    }
    .hero::before {
        top: 10%;
        left: -10%;
        transform: translate(-15%, -40%);
    }
    .tiles-container {
        grid-template-columns: 1fr; /* 1 kolumna na telefonach */
    }
    .gallery-btn {
        width: 80px;
        height: 80px;
    }
    
}

/*recaptcha*/
.protected-contact {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

.protected-contact.revealed {
    color: inherit;
    text-decoration: none;
    cursor: text;
}

.download-pdf {
    color: #007bff;
    text-decoration: none;
}

.download-pdf:hover {
    text-decoration: underline;
}




