/* =========================================
   PROSCAN DEVELOPMENT — v14.02.2026
   Design System & Styles
   ========================================= */

:root {
    --primary: #c8a882;
    --primary-dark: #b8986a;
    --primary-light: #e8d5c0;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --text-muted: #95a5a6;
    --bg: #f5f5f0;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.14);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --radius: 6px;
    --radius-lg: 12px;
    --nav-height: 72px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.3px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   STICKY NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15em;
    text-transform: uppercase;
    color: var(--text);
    letter-spacing: 1.5px;
    transition: color var(--transition);
}

.nav-brand:hover {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text);
    padding: 8px 0;
    position: relative;
    transition: color var(--transition);
}

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

.nav-link:hover {
    color: var(--primary-dark);
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(135deg,
            rgba(26, 26, 26, 0.55) 0%,
            rgba(26, 26, 26, 0.7) 100%), url('zdjecia_strona/olbrachta_gora/1 front.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 60px 24px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
}

.logo-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.logo-container img {
    max-height: 95px;
    display: block;
}

.hero-title {
    font-size: clamp(2em, 5vw, 3.5em);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    line-height: 1.15;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.2em;
    font-weight: 300;
    max-width: 550px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    margin-top: 32px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-cta a {
    display: inline-block;
    padding: 14px 36px;
    background: var(--primary);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius);
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(200, 168, 130, 0.4);
}

.hero-cta a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 168, 130, 0.5);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =========================================
   SECTION STYLING
   ========================================= */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-size: 2.5em;
    color: var(--text);
    margin-bottom: 12px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.05em;
    color: var(--text-light);
    margin-top: 8px;
}

/* =========================================
   PROPERTY GRID
   ========================================= */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 36px;
}

.property-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.property-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Gallery */
.property-gallery {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: #f0f0f0;
}

.gallery-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    height: 100%;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: white;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.property-price {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(30, 30, 30, 0.88);
    color: white;
    padding: 8px 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.9em;
    border-radius: var(--radius);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    border: none;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 18px;
    z-index: 5;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.property-item:hover .gallery-nav,
.gallery-nav:focus {
    opacity: 1;
}

.gallery-nav:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

/* Gallery dots */
.gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Content */
.property-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-title {
    font-size: 1.5em;
    margin-bottom: 4px;
    color: var(--text);
}

.property-location {
    color: var(--primary-dark);
    margin-bottom: 24px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg);
    padding: 20px 16px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    gap: 8px;
}

.spec-item {
    text-align: center;
}

.spec-value {
    display: block;
    font-weight: 800;
    font-size: 1.05em;
    color: var(--text);
    font-family: var(--font-heading);
}

.spec-label {
    font-size: 0.72em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

.price-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.price-label {
    font-size: 0.9em;
    color: var(--text-light);
}

.price-detail {
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font-heading);
}

.property-desc {
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.92em;
    line-height: 1.8;
    margin-bottom: 28px;
    flex-grow: 1;
}

.property-desc a {
    color: var(--text);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    transition: all 0.3s;
    padding-bottom: 1px;
}

.property-desc a:hover {
    background: var(--primary);
    color: white;
    padding: 2px 4px;
    border-radius: 2px;
}

/* Property Actions */
.property-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    border: none;
    padding: 14px 28px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius);
    font-family: var(--font-heading);
    text-align: center;
    width: 100%;
}

.btn-primary {
    background: var(--text);
    color: white;
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 168, 130, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
}

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

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
    background: var(--bg-white);
    padding: 100px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1em;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.about-feature {
    text-align: center;
    padding: 24px 16px;
}

.about-feature-icon {
    font-size: 2.5em;
    margin-bottom: 16px;
    display: block;
}

.about-feature h4 {
    font-size: 1.05em;
    color: var(--text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-feature p {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   LOCATION SECTION
   ========================================= */
.location-section {
    background: var(--bg);
    padding: 100px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.location-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}

.location-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.location-card iframe {
    width: 100%;
    height: 280px;
    border: none;
    display: block;
    transform: translateZ(0);
    will-change: transform;
}

.location-card-info {
    padding: 24px;
}

.location-card-info h3 {
    font-size: 1.15em;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-card-info p {
    color: var(--text-light);
    font-size: 0.92em;
}

/* =========================================
   COMPLETED INVESTMENTS SECTION
   ========================================= */
.completed-section {
    background: var(--bg-white);
    padding: 100px 0;
}

.completed-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #2d6a4f, #40916c);
    color: white;
    padding: 8px 18px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.85em;
    border-radius: var(--radius);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.35);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.property-item.completed {
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0.92;
    transition: all var(--transition);
}

.property-item.completed:hover {
    opacity: 1;
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.property-item.completed .property-content {
    padding: 20px 28px 24px;
}

.property-item.completed .property-title {
    font-size: 1.2em;
    margin-bottom: 2px;
}

.property-item.completed .property-location {
    margin-bottom: 0;
}

.property-item.completed .property-gallery {
    height: 220px;
}

/* Single card centering for offer section */
.section#oferta .properties-grid {
    max-width: 540px;
    margin: 0 auto;
}

.section#oferta .property-gallery {
    height: 300px;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
    background: var(--bg-dark);
    color: white;
    padding: 100px 0 80px;
}

.contact-section .section-title h2 {
    color: white;
}

.contact-section .section-title h2::after {
    background: var(--primary);
}

.contact-section .section-title p {
    color: #888;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 36px 28px;
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card p,
.contact-card a {
    color: #bbb;
    line-height: 1.9;
    font-size: 0.95em;
}

.contact-card a {
    transition: color 0.3s;
}

.contact-card a:hover {
    color: white;
}

/* Footer */
.footer {
    background: #111;
    color: #666;
    padding: 24px 0;
    text-align: center;
    font-size: 0.85em;
    letter-spacing: 0.3px;
}

/* =========================================
   MODALS
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 1100px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-image {
    max-height: 85vh;
    max-width: 100%;
    border-radius: var(--radius);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text);
    z-index: 10;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--primary);
}

/* Availability Table */
.availability-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
}

.availability-table th,
.availability-table td {
    padding: 14px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.availability-table th:nth-child(1),
.availability-table td:nth-child(1) {
    width: 10%;
}

.availability-table th:nth-child(2),
.availability-table td:nth-child(2) {
    width: 10%;
}

.availability-table th:nth-child(3),
.availability-table td:nth-child(3) {
    width: 12%;
}

.availability-table th:nth-child(4),
.availability-table td:nth-child(4) {
    width: 13%;
}

.availability-table th:nth-child(5),
.availability-table td:nth-child(5) {
    width: 13%;
}

.availability-table th:nth-child(6),
.availability-table td:nth-child(6) {
    width: 22%;
}

.availability-table th:nth-child(7),
.availability-table td:nth-child(7) {
    width: 12%;
}

.availability-table th {
    background: #fafafa;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.82em;
    font-family: var(--font-heading);
}

.availability-table tbody tr:hover {
    background: #fafafa;
}

.availability-table td {
    font-size: 0.92em;
}

.availability-status {
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.85em;
    letter-spacing: 0.3px;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-reservation {
    background: #fff3cd;
    color: #856404;
}

.status-sold {
    background: #f8d7da;
    color: #721c24;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .properties-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.2em;
    }

    .hero {
        background-attachment: scroll;
        min-height: 60vh;
    }

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

    .about-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .property-content {
        padding: 28px 20px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-align: center;
        font-size: 0.95em;
    }

    .hamburger {
        display: flex;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 1.6em;
    }

    .logo-container {
        padding: 14px 24px;
    }

    .logo-container img {
        max-height: 50px;
    }

    .property-specs {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .spec-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .spec-label {
        margin-top: 0;
    }

    .price-row {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .gallery-nav {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .property-content {
        padding: 24px 16px;
    }

    .availability-table {
        font-size: 0.75em;
    }

    .modal-content {
        padding: 24px 16px;
        width: 98%;
    }
}