/* Zmienne globalne */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Resetowanie domyślnych stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
     font-family: 'Inter', sans-serif;
    font-weight: 300; /* lekka, cienka czcionka */
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    padding-top: 90px;
}

/* Pasek informacyjny nad headerem */
/* Pasek informacyjny nad headerem */
/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    font-size: 12px;
    color: #444;
    padding: 5px 0;
    z-index: 1100;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.topbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 10px;
    flex-wrap: wrap; /* ważne dla mobile */
    gap: 5px;
}

.topbar span {
    font-weight: 400;
    color: #004080;
}

/* 📱 Mobile: mniejsze ekrany */
@media (max-width: 768px) {
    .topbar {
        font-size: 11px;
        padding: 6px 0;
    }

    .topbar .container {
        flex-direction: column; /* elementy jeden pod drugim */
        align-items: center;
        text-align: center;
    }
}

/* 📱 Bardzo małe ekrany (np. telefony < 480px) */
@media (max-width: 480px) {
    .topbar {
        font-size: 10px;
        padding: 8px 0;
    }

    .topbar span {
        display: block;
        margin: 2px 0;
    }
}

/* Nagłówek */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff; /* całkowicie białe tło */
    z-index: 1200; /* wyższy niż topbar */
    padding: 8px 20px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: flex-start; /* całość od lewej */
    align-items: center;
    width: 100%; /* zajmuje całą szerokość */
    padding: 0 20px; /* odstęp od lewej i prawej krawędzi */
}

/* Logo w jednej linii */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    display: block;
    margin: 0;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;  /* usuwa podkreślenie */
}

.logo-text-link {
    font-size: 15px;
    font-weight: 300; /* lekka, biznesowa czcionka */
    color: #000000;
    text-decoration: none; /* usuwa podkreślenie */
    cursor: pointer;
    white-space: nowrap;
}

/* Nie zmienia koloru przy hover */
.logo-text-link:hover {
    color: #000000;
}
/* Menu po prawej */
.nav-menu {
    display: flex;
    list-style: none;
    margin-left: auto; /* wysuwa menu w prawo */
    padding: 0;
    align-items: center;
}

.nav-item {
    margin-left: 25px;
}

.nav-link {
    position: relative;
    display: inline-block;    /* pozwala użyć pseudo-elementu bez wpływu na tekst */
    color: var(--dark-color);
    font-weight: 600;         /* stała waga fontu dla wszystkich linków */
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Pseudo-element podkreślenia */
.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;              /* zawsze 100% szerokości linka */
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);     /* początkowo ukryty */
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Efekt hover */
.nav-link:hover:after {
    transform: scaleX(1);     /* animacja rozciągnięcia linii */
}

/* Link aktywny */
.nav-link.active:after {
    transform: scaleX(1);     /* linia zawsze widoczna dla aktywnego linka */
}

/* Kolor przy hover i aktywnym */
.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* Sekcja hero */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('zdjecia/W1.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1.5s ease;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Sekcje ogólne */
.section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}
/* Sekcja Statystyki */
.stats-section {
    background-color: #f5f5f5;
    padding: 80px 20px; /* dodany padding poziomy dla mniejszych ekranów */
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tytuł sekcji */
.stats-section .section-title h2 {
    font-size: 36px;
    color: #002244;
    margin-bottom: 10px;
    font-weight: 700;
}

.stats-section .section-title p {
    font-size: 18px;
    color: #555;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Kontener statystyk */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* Pojedyncza statystyka */
.stat-item {
    flex: 1 1 200px;
    max-width: 250px;
    text-align: center;
    padding: 25px 15px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Liczba statystyki */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1px;
}

/* Etykieta statystyki */
.stat-label {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.4;
}
/* Karty inwestycji */
.investments-grid {
    display: center;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.investment-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    animation: fadeIn 1s ease;
}

.investment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.investment-img {
    height: 220px;
    overflow: hidden;
}

.investment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.investment-card:hover .investment-img img {
    transform: scale(1.1);
}

.investment-content {
    padding: 20px;
}

.investment-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.investment-location {
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

.investment-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #777;
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Formularz kontaktowy */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Stopka */

.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.footer-privacy {
    font-size: 15px;
    color: #f7f7f7;
    margin-top: 20px;
}

.footer-privacy a {
    color: #007BFF;
    text-decoration: underline;
}

.footer-privacy a:link,
.footer-privacy a:visited,
.footer-privacy a:hover,
.footer-privacy a:active {
    color: #007BFF; /* link nie zmienia koloru w żadnym stanie */
    text-decoration: underline;
}

.footer-privacy p {
    margin: 5px 0; /* odstęp między linijkami */
}
.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after,
.footer-newsletter h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}
/* Styl dla linków w stopce */
.footer-logo a {
    color: #007BFF; /* Twój podstawowy kolor linku */
    text-decoration: none; /* jeśli nie chcesz podkreślenia */
}

/* Wszystkie stany linku */
.footer-logo a:link,
.footer-logo a:visited,
.footer-logo a:hover,
.footer-logo a:active {
    color: #007BFF; /* ten sam kolor dla wszystkich stanów */
    text-decoration: none; /* zachowaj spójność */
}

.no-link {
    -webkit-touch-callout: none;
    color: inherit;
    text-decoration: none;
}







.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Responsywność */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--box-shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .investments-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4:after,
    .footer-newsletter h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Dynamiczne przedstawienie inwestycji */
.investment-showcase {
  padding: 80px 0;
}

.showcase-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

/* Naprzemienny układ przy desktopie */
.showcase-row.reverse {
  flex-direction: row;
}

.showcase-row.show {
  opacity: 1;
  transform: translateY(0);
}

/* Tekst */
.showcase-text {
  flex: 1 1 45%;
}

.showcase-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-color, #002244);
}

.showcase-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

/* Efekt przesunięcia tekstu przy scrollowaniu */
.showcase-row:not(.reverse) .showcase-text {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.showcase-row:not(.reverse).show .showcase-text {
  opacity: 1;
  transform: translateX(0);
}

.showcase-row.reverse .showcase-text {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.showcase-row.reverse.show .showcase-text {
  opacity: 1;
  transform: translateX(0);
}

/* Obrazki */
.showcase-img {
  flex: 1 1 45%;
}

.showcase-img img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transform: scale(0.95);
  transition: transform 0.8s ease, box-shadow 0.8s ease;
}

.showcase-row.show .showcase-img img {
  transform: scale(1);
}

.showcase-img img:hover {
  transform: scale(1.05);
}
.disclaimer {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  text-align: center;
}

/* Responsywność */
@media (max-width: 992px) {
  .showcase-row,
  .showcase-row.reverse {
    flex-direction: column; /* Wszystko pod sobą na mobilkach */
  }
}
  /*info o lokalach*/

.lokale-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Responsywność – mniejsze ekrany */
  margin: 40px 0;
}

.lokal-info {
  flex: 1 1 400px; /* minimalna szerokość 400px */
  max-width: 500px;
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lokal-info h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #333;
}

/* Styl tabel */
.lokal-info table {
  width: 100%;
  border-collapse: collapse;
}

.lokal-info th, 
.lokal-info td {
  padding: 12px 15px;
  text-align: left;
}

.lokal-info thead {
  background-color: #f5f5f5;
}

.lokal-info th {
  font-weight: bold;
  border-bottom: 2px solid #ddd;
}

.lokal-info tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.lokal-info tbody tr:hover {
  background-color: #f1f1f1;
}


/* ---------------------- */
/* Sekcja pobierania dokumentów */
/* ---------------------- */
.download-section {
  max-width: 800px;
  margin: 30px auto 60px auto;
  padding: 20px 25px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.download-section h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #002244;
  text-align: center;
}

.download-section ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.download-section ul li {
  margin-bottom: 10px;
}

.download-section a {
  display: inline-block;
  padding: 10px 18px;
  background-color: #4971a5;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-section a:hover {
  background-color: #155ab6;
  transform: translateY(-2px);
}

/* ---------------------- */
/* Responsywność */
/* ---------------------- */
@media (max-width: 768px) {
  .lokal-info,
  .download-section {
    padding: 20px 15px;
  }

  .download-section ul {
    flex-direction: column;
    align-items: center;
  }

  .download-section a {
    width: 100%;
    text-align: center;
  }
}
/* ---------------------- */
/* Sekcja Informacje dodatkowe */
/* ---------------------- */
.additional-info {
  max-width: 800px;
  margin: 40px auto 60px auto;
  padding: 25px;
  background-color: #f5f8fb; /* spójne z lokal-info */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  font-family: 'Inter', sans-serif;
  color: #333;
}

.additional-info h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #002244; /* kolor nagłówka spójny z resztą */
}

.additional-info p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.additional-info ul {
  list-style-type: disc;
  padding-left: 20px;
}

.additional-info ul li {
  margin-bottom: 10px;
}

/* Responsywność */
@media (max-width: 768px) {
  .additional-info {
    padding: 20px 15px;
  }
}
.form-message {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.form-message.success {
  background-color: #e6f9f0;
  color: #1a7f4c;
  border: 1px solid #1a7f4c;
}

.form-message.error {
  background-color: #fde8e8;
  color: #a10000;
  border: 1px solid #a10000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.notification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    font-weight: 500;
    color: var(--light-color);
    background-color: var(--secondary-color);
    box-shadow: var(--box-shadow);
    transform: translateY(-100%);
    transition: var(--transition);
    z-index: 9999;
}

.notification.show {
    transform: translateY(0);
}

.notification.error {
    background-color: var(--accent-color);
}

.notification.success {
    background-color: #c0dbcc; /* zielony, pasuje do success */
}
