/* =========================== GLOBAL RESET & VARIABLES =========================== */
:root {
    --brand-color: #1A2F50;
    --brand-light: #2C3E6B;
    --brand-dark: #0F1A2B;
    --text-dark: #111;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --transition-smooth: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

/* =========================== BASE TYPOGRAPHY =========================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #fff;
    color: var(--text-dark);
    scroll-behavior: smooth;
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 80px 0;
    position: relative;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--brand-color);
    border-radius: 2px;
}

/* =========================== LINKS & INTERACTIONS =========================== */
a {
    position: relative;
    display: inline-block;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--brand-color);
    font-weight: 600;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px) scale(1.03);
    opacity: 1;
}

a:active {
    color: var(--brand-dark);
    text-shadow: none;
    transform: translateY(0) scale(1);
    opacity: 0.8;
}

/* =========================== NAVIGATION =========================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 20px;
    width: auto;
    transition: none;
}

.brand-nav-text {
    color: var(--brand-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.nav-link {
    position: relative;
    margin: 0 0.5rem;
    padding: 0.5rem 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--brand-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* =========================== HERO SECTION =========================== */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    margin-top: 60px;
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.hero .lead {
    max-width: 720px;
    margin: 25px auto 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.hero .container {
    padding-left: 15px;
    padding-right: 15px;
}

.brand-symbol {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(26,47,80,0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.brand-name {
    font-size: clamp(3.5rem, 8vw, 4.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: clamp(2px, 2vw, 6px);
    color: var(--brand-color);
    text-shadow: 2px 2px 0 rgba(0,0,0,0.05);
    animation: glow 3s ease-in-out infinite;
    word-break: break-word;
}

@keyframes glow {
    0%, 100% { text-shadow: 2px 2px 0 rgba(26,47,80,0.1); }
    50% { text-shadow: 4px 4px 0 rgba(26,47,80,0.2); }
}

.brand-tagline {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    margin-top: 0;
    font-weight: 600;
    color: var(--brand-color);
    opacity: 0.9;
}

/* =========================== INFO SECTIONS (IKONY) =========================== */
.icon-box {
    padding: 40px 30px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.03);
}

.icon-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(26,47,80,0.1);
    border-color: var(--brand-color);
}

.icon-box i {
    margin-bottom: 20px;
    font-size: 40px;
    color: var(--brand-color);
    transition: var(--transition-smooth);
}

.icon-box:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--brand-light);
}

.icon-box h5 {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.25rem;
}

.icon-box p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* =========================== INVESTMENTS SECTION =========================== */
#inwestycje {
    padding-top: 80px;
    padding-bottom: 30px;
}

#inwestycje h2 {
    text-align: center;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#inwestycje h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.investment-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: #fff;
}

.investment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26,47,80,0.1);
}

.investment-table td {
    padding: 0.3rem 0;
    border: none;
}

.investment-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 40%;
}

.investment-table td:last-child {
    color: var(--text-light);
}

/* Statusy inwestycji - POWIĘKSZONE */
.investment-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}

.status-aktualna {
    background: #28a745;
    color: white;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.4);
}

.status-wkrotce {
    background: #ffc107;
    color: #000;
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.4);
}

.status-zrealizowana {
    background: #6c757d;
    color: white;
    box-shadow: 0 3px 12px rgba(108, 117, 125, 0.4);
}

/* Galeria w modalu */
.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.modal-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.05);
}

.modal-map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    margin: 20px 0;
    border: none;
}

/* Filtry inwestycji */
.filter-btn {
    border-radius: 30px;
    padding: 6px 20px;
    margin: 0 5px 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--brand-color);
    background: transparent;
    color: var(--brand-color);
}

.filter-btn:hover {
    transform: translateY(-2px);
    background: var(--brand-color);
    color: white;
}

.filter-btn.active {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
}

/* =========================== INVESTMENT DETAILS =========================== */
.investment-details .table-bordered {
    border: 1px solid #dee2e6;
}

.investment-details .table-bordered th,
.investment-details .table-bordered td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

.investment-details .table-dark {
    background: var(--brand-color);
    color: white;
}

.investment-details .accordion-item {
    border: 1px solid rgba(0,0,0,0.125);
    margin-bottom: 5px;
    border-radius: 8px;
    overflow: hidden;
}

.investment-details .accordion-button {
    background: #f8f9fa;
    color: var(--brand-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.investment-details .accordion-button:not(.collapsed) {
    background: var(--brand-color);
    color: white;
}

.investment-details .accordion-body {
    background: white;
    padding: 1.25rem;
}

.investment-details .list-group-item {
    border: none;
    padding: 0.5rem 0;
    background: transparent;
}

.investment-details .fa-circle {
    color: var(--brand-color);
    margin-right: 10px;
}

.investment-details h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--brand-color);
    border-left: 4px solid var(--brand-color);
    padding-left: 15px;
}

.investment-details .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

/* =========================== STATUSY DLA SEGMENTÓW - POPRAWIONE =========================== */

/* Animacja pulsowania dla wszystkich statusów */
@keyframes statusPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0,0,0,0.3);
    }
    70% {
        transform: scale(1.08);
        box-shadow: 0 0 0 6px rgba(0,0,0,0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0,0,0,0);
    }
}

/* SPRZEDANY */
.sold-row {
    background-color: rgba(220,53,69,0.05) !important;
}

.sold-row td {
    text-decoration-line: line-through !important;
    text-decoration-color: #dc3545 !important;
    text-decoration-thickness: 2px !important;
    color: #6c757d;
}

.sold-row td strong {
    text-decoration-line: line-through !important;
    text-decoration-color: #dc3545 !important;
}

.badge-sold {
    background: #dc3545;
}

/* REZERWACJA */
.reserved-row {
    background-color: rgba(255,193,7,0.08);
}

.badge-reserved {
    background: #ffc107;
    color: #000;
}

/* DOSTĘPNY */
.available-row {
    background-color: rgba(40,167,69,0.05);
}

.badge-available {
    background: #28a745;
}

/* WSPÓLNE STYLE DLA BADGE - WERSJA W LINII */
.badge-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    color: #fff;
    letter-spacing: 0.4px;
    white-space: nowrap;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: statusPulse 2s infinite;
    margin-left: 5px;
    vertical-align: middle;
}

.badge-container strong {
    display: inline-block;
    vertical-align: middle;
}

.status-badge:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.price-sold {
    font-weight: 600;
    color: #dc3545 !important;
}

.available-text {
    color: #28a745;
    font-weight: 600;
}

/* =========================== PRZYCISKI =========================== */

/* przycisk otodom */
.btn-outline-warning {
    color: #b34d1a;
    border-color: #e67e22;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background-color: #e67e22;
    color: white;
    border-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-outline-warning:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Przycisk Pobierz prospekt PDF */
.btn-outline-primary.no-scale {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.btn-outline-primary.no-scale:hover {
    transform: none !important;
    scale: none !important;
}

/* =========================== CONTACT SECTION =========================== */
#kontakt {
    padding-top: 30px;
}

.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.contact-wrapper:hover {
    box-shadow: 0 30px 60px rgba(26,47,80,0.1);
}

#kontakt p {
    margin-bottom: 15px;
    font-size: 16px;
}

#kontakt .col-md-6:first-child p {
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

#kontakt .col-md-6:first-child p:hover {
    transform: translateX(10px);
}

#kontakt .col-md-6:first-child i {
    margin-right: 12px;
    font-size: 20px;
    color: var(--brand-color);
}

#kontakt .col-md-6:last-child p {
    font-size: 16px;
    transition: none;
    transform: none;
}

#kontakt .col-md-6:last-child p:hover {
    transform: none;
}

#kontakt .col-md-6:last-child i {
    color: var(--brand-color);
    margin-right: 8px;
}

#kontakt strong {
    color: var(--brand-color);
}

/* =========================== FOOTER =========================== */
.footer {
    padding: 20px 0;
    background: linear-gradient(135deg, #f4f6f8 0%, #e9ecef 100%);
    font-size: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand-color), transparent);
}

.footer a {
    font-weight: 500;
}

.footer-cookie-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 5px;
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
}

.footer-cookie-link:hover {
    color: var(--brand-color);
    transform: translateY(-3px) scale(1.1);
    text-shadow: 0 5px 10px rgba(26,47,80,0.3);
    background: rgba(26,47,80,0.05);
    padding: 5px 15px;
}

/* =========================== COOKIE POPUP =========================== */
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
}

.cookie-modal {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal h4 {
    margin-bottom: 20px;
    color: var(--brand-color);
}

.cookie-modal p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
}

.close-btn:hover {
    color: var(--brand-color);
    transform: rotate(90deg);
}

/* =========================== AOS CUSTOM =========================== */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    #inwestycje {
        padding-bottom: 20px;
    }
    
    #kontakt {
        padding-top: 20px;
    }
    
    .brand-name {
        font-size: 3.2rem;
        letter-spacing: 4px;
    }
    
    .brand-tagline {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-top: 40px;
    }
    
    .icon-box {
        margin-bottom: 20px;
    }
    
    .contact-wrapper {
        padding: 30px 20px;
    }
    
    .footer {
        padding: 15px 0;
    }
    
    .investment-card .row {
        flex-direction: column;
    }
    
    .investment-card .col-md-5 img {
        border-radius: 20px 20px 0 0 !important;
    }
    
    .investment-badge {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .investment-details .table-bordered {
        font-size: 0.9rem;
    }
    
    .investment-details .table-bordered th,
    .investment-details .table-bordered td {
        padding: 0.5rem;
    }
    
    .investment-details .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .brand-name {
        font-size: 4.5rem;
        letter-spacing: 3px;
    }
    
    .brand-tagline {
        font-size: 2rem;
    }
    
    .modal-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .filter-btn {
        padding: 4px 15px;
        font-size: 0.8rem;
    }
    
    .investment-badge {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}