/* --- RESET I GLOBALNE STYLE --- */
:root {
    --primary-color: #0a2342; /* Głęboki granat */
    --secondary-color: #4dabf7; /* Akcent - jasnoniebieski */
    --light-gray-color: #f4f4f4;
    --dark-gray-color: #333;
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-gray-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--secondary-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #3792e2;
    transform: translateY(-3px);
}

/* --- HEADER I NAWIGACJA --- */
#main-header {
    background: var(--white-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

#logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-color);
    text-decoration: none;
}

#logo img {
    height: 50px; /* Możesz dostosować tę wartość do swojego logo */
    width: auto;
    display: block;
    flex-shrink: 0;
}

.logo-text {
    line-height: 1.2;
}

#logo .logo-main {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

#logo .logo-sub {
    font-size: 0.8rem;
    font-weight: 400;
    display: block;
}

#main-nav ul {
    list-style: none;
    display: flex;
}

#main-nav ul li {
    margin-left: 2rem;
}

#main-nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

#main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

#main-nav ul li a:hover::after {
    width: 100%;
}

/* Hamburger Menu Icon */
.menu-toggle {
    display: none; /* Ukryty na desktopie */
    font-size: 1.5rem;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* --- FOOTER --- */
#main-footer {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 2rem 0;
}

/* --- SEKCJA GŁÓWNA (HERO) - index.html --- */
#hero {
    background: linear-gradient(rgba(10, 35, 66, 0.7), rgba(10, 35, 66, 0.7)), url('https://images.pexels.com/photos/1571460/pexels-photo-1571460.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    height: 100vh;
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* --- SEKCJA O NAS - index.html --- */
#about {
    background: var(--light-gray-color);
}
#about .about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}
#about .about-text {
    flex: 1;
}
#about .about-image {
    flex: 1;
}
#about .about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- SEKCJA INWESTYCJE - index.html & inwestycje.html --- */
.investment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.investment-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.investment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.investment-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.investment-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.investment-card-content h3 {
    margin-bottom: 0.5rem;
}
.investment-card-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.investment-card-content .location {
    color: var(--dark-gray-color);
    font-weight: 600;
    margin-bottom: 1rem;
}
.investment-card-content .location i {
    color: var(--secondary-color);
    margin-right: 5px;
}
.card-content .btn {
    margin-top: auto;
}
.investment-card.completed img {
    filter: grayscale(80%);
}

/* --- SEKCJA OPINIE - index.html --- */
#testimonials {
    background-color: var(--primary-color);
    color: var(--white-color);
}
#testimonials h2 {
    color: var(--white-color);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.testimonial-card p.quote {
    font-style: italic;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 25px;
}
.testimonial-card p.quote::before {
    content: '\f10d'; /* Font Awesome quote-left icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
}
.testimonial-card .author {
    font-weight: 700;
    text-align: right;
    color: var(--secondary-color);
}

/* --- SEKCJA WPISY/NOWOŚCI - index.html --- */
#news {
    background-color: var(--light-gray-color);
}
.news-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.news-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

/* --- SEKCJA KONTAKT - index.html --- */
#contact .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}
#contact form {
    display: flex;
    flex-direction: column;
}
#contact form input, #contact form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-family);
}
#contact form input:focus, #contact form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}
#contact .contact-info ul {
    list-style: none;
}
#contact .contact-info li {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
#contact .contact-info i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1.5rem;
    width: 30px;
}

/* --- STYLE PODSTRON --- */
.page-header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 3rem 0;
    text-align: center;
    margin-top: 80px; /* Odsunięcie od stałego nagłówka */
}
.page-header h1 { color: var(--white-color); }

/* o-nas.html */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; margin-top: 3rem; }
.value-card i { font-size: 3rem; color: var(--secondary-color); margin-bottom: 1rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card { background: var(--light-gray-color); border-radius: 10px; text-align: center; padding: 2rem 1rem; }
.team-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 5px solid var(--white-color); box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-bottom: 1rem; }
.team-card h4 { margin-bottom: 0.25rem; }
.team-card p { font-style: italic; color: var(--secondary-color); }

/* nowosci.html */
.news-list-item { display: flex; gap: 2rem; margin-bottom: 2rem; background: var(--white-color); padding: 2rem; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); align-items: center; transition: transform 0.3s ease; }
.news-list-item:hover { transform: translateY(-5px); }
.news-date { text-align: center; flex-basis: 100px; flex-shrink: 0; border-right: 2px solid var(--light-gray-color); padding-right: 2rem; }
.news-date .day { font-size: 2.5rem; font-weight: 700; color: var(--primary-color); line-height: 1; }
.news-date .month { color: var(--secondary-color); text-transform: uppercase; font-weight: 600; }
.news-content h4 { margin-bottom: 0.5rem; font-size: 1.25rem; }

/* wpisy.html */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card .category { background: var(--secondary-color); color: white; padding: 3px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-bottom: 1rem; }
.card-content h3 { margin-bottom: 1rem; }
.card-content p { flex-grow: 1; margin-bottom: 1.5rem; }
.blog-card .btn { align-self: flex-start; }

/* kontakt.html */
#contact-details .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
#contact-details form { display: flex; flex-direction: column; }
#contact-details form input, #contact-details form textarea { width: 100%; padding: 1rem; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-family); font-size: 1rem; }
#contact-details form input:focus, #contact-details form textarea:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 5px rgba(77, 171, 247, 0.5); }
#contact-details .contact-info ul { list-style: none; padding: 0; }
#contact-details .contact-info li { font-size: 1.1rem; margin-bottom: 2rem; display: flex; align-items: flex-start; }
#contact-details .contact-info i { font-size: 1.5rem; color: var(--secondary-color); margin-right: 1.5rem; width: 30px; text-align: center; margin-top: 4px; }

/* opinie.html */
.testimonials-page-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; max-width: 900px; margin: 2rem auto 0 auto; }
.testimonial-full-card { background: var(--white-color); padding: 2rem; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border-left: 5px solid var(--secondary-color); }
.testimonial-full-card p.quote { font-size: 1.1rem; font-style: italic; margin-bottom: 1.5rem; color: #555; }
.testimonial-full-card .author-info { display: flex; align-items: center; gap: 1rem; }
.testimonial-full-card .author-info img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.testimonial-full-card .author-name { font-weight: 700; color: var(--primary-color); }
.testimonial-full-card .author-project { font-size: 0.9rem; color: var(--dark-gray-color); }

/* Strony pojedynczych inwestycji */
.investment-header { padding: 5rem 0; background-size: cover; background-position: center center; background-repeat: no-repeat; color: white; text-align: center; margin-top: 80px; }
.investment-header h1 { color: white; font-size: 3rem; }
.investment-details { padding: 4rem 0; }
.details-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.main-content h2 { text-align: left; }
.sidebar .feature-list { list-style: none; padding: 1.5rem; background: var(--light-gray-color); border-radius: 10px; }
.sidebar .feature-list li { display: flex; align-items: center; margin-bottom: 1rem; font-weight: 600; }
.sidebar .feature-list i { font-size: 1.2rem; color: var(--secondary-color); margin-right: 1rem; width: 25px; }
.gallery { margin-top: 3rem; }
.gallery h3 { margin-bottom: 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.gallery-grid img { width: 100%; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.back-link { display: inline-block; margin-top: 3rem; color: var(--secondary-color); text-decoration: none; font-weight: 600; }
.back-link i { margin-right: 8px; }

/* --- SCROLL TO TOP BUTTON --- */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background-color: #3792e2;
}
/* Strony pojedynczych wpisów */
.post-content { max-width: 800px; margin: 0 auto; padding-top: 80px; }
.post-content h1 { font-size: 2.8rem; margin-bottom: 1rem; }
.post-content .post-meta { font-style: italic; color: #777; margin-bottom: 2rem; }
.post-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 2rem 0; }
.post-content p { margin-bottom: 1.5rem; font-size: 1.1rem; }
.post-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; }

/* --- ANIMACJE PRZY PRZEWIJANIU --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- MEDIA QUERIES (RESPONSYWNOŚĆ) --- */
@media (max-width: 768px) {
    h2 { font-size: 2rem; }
    .menu-toggle { display: block; position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); }
    /* Zoptymalizowana animacja menu mobilnego */
    #main-nav { 
        position: absolute; top: 100%; left: 0; width: 100%; background: var(--white-color); 
        box-shadow: 0 5px 10px rgba(0,0,0,0.1); 
        overflow: hidden; 
        visibility: hidden; opacity: 0; transform: translateY(-10px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s; 
    }
    #main-nav.active { visibility: visible; opacity: 1; transform: translateY(0); }
    #main-nav ul { flex-direction: column; padding: 1rem 0; }
    #main-nav ul li { margin: 0.5rem 2rem; }
    #hero { padding-top: 80px; }
    #hero h1 { font-size: 2.5rem; }
    #about .about-content { flex-direction: column; }
    #contact .contact-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; text-align: center; }
    .news-list-item { flex-direction: column; text-align: center; }
    .news-date { border-right: none; border-bottom: 2px solid var(--light-gray-color); padding-right: 0; padding-bottom: 1rem; margin-bottom: 1rem; }
    #contact-details .contact-grid { grid-template-columns: 1fr; }
    .details-grid { grid-template-columns: 1fr; }
}