/* =============================================
   GREG-BUD - Landing Page Styles (Siwy Dym)
   Inspiracja: stokowagora.pl
   Minimalistyczny, ziemisty, dużo białej przestrzeni
   ============================================= */

:root {
    --color-primary: #5C6B5E;
    --color-primary-dark: #4A5A4C;
    --color-primary-light: #E8EDE9;
    --color-accent: #8B7355;
    --color-text: #2D2D2D;
    --color-text-light: #6B6B6B;
    --color-text-muted: #9A9A9A;
    --color-bg: #FAFAF8;
    --color-bg-alt: #F3F2EF;
    --color-bg-warm: #F7F5F2;
    --color-border: #E5E3DE;
    --color-border-light: #EDEBE7;
    --color-success: #5C6B5E;
    --color-warning: #B8954F;
    --color-danger: #A85C5C;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 40px rgba(0,0,0,0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

/* =============================================
   Navigation
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.btn-primary:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text);
    transform: translateY(-1px);
}

.btn-nav {
    padding: 8px 22px;
    background: var(--color-text);
    color: white !important;
    border-radius: var(--radius-md);
}

.btn-nav:hover {
    background: #1a1a1a;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.82rem;
    background: var(--color-text);
    color: white;
}

.btn-sm:hover {
    background: #1a1a1a;
}

.btn-full {
    width: 100%;
}

/* =============================================
   Hero
   ============================================= */
.hero {
    padding: 170px 0 110px;
    background: var(--color-bg-warm);
    position: relative;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 28px;
    background: none;
    padding: 0;
    border: none;
}

.hero-badge-logo {
    height: auto;
    width: clamp(200px, 45vw, 420px);
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: -0.025em;
    color: var(--color-text);
}

.text-accent {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    gap: 52px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    letter-spacing: 0.01em;
}

/* =============================================
   Sections
   ============================================= */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--color-text-light);
}

/* =============================================
   Filter Bar
   ============================================= */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    border: 1.5px solid var(--color-border);
    border-radius: 100px;
    background: white;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--color-text-light);
    color: var(--color-text);
}

.filter-btn.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: white;
}

/* =============================================
   Property Cards
   ============================================= */
.properties {
    background: var(--color-bg-alt);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.property-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border-light);
}

.property-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.property-card.hidden {
    display: none;
}

.property-card[data-status="sprzedany"] {
    opacity: 0.65;
}

.property-card[data-status="sprzedany"]:hover {
    opacity: 0.8;
}

.property-image {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--color-bg-alt);
    cursor: pointer;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.04);
}

.status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-dostepny {
    background: #E8EDE9;
    color: #3D5240;
}

.status-rezerwacja {
    background: #F0EBE1;
    color: #7A6340;
}

.status-sprzedany {
    background: #EDE4E4;
    color: #7A4444;
}

.property-info {
    padding: 24px;
}

.property-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.property-location {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 18px;
}

.property-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
    margin-bottom: 16px;
}

.property-details span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.property-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
}

.sold-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-danger);
}

/* Gallery hint on card hover */
.gallery-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    letter-spacing: 0.01em;
}

.property-card:hover .gallery-hint {
    opacity: 1;
}

/* =============================================
   Gallery Modal
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(45, 45, 45, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: var(--color-border);
}

.modal-header {
    padding: 32px 32px 0;
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    padding-right: 40px;
    color: var(--color-text);
}

.modal-header p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.modal-gallery {
    padding: 24px 32px 32px;
}

.gallery-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-alt);
    aspect-ratio: 16 / 10;
    margin-bottom: 14px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    line-height: 1;
}

.gallery-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.06);
    box-shadow: var(--shadow-md);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-caption {
    font-size: 0.92rem;
    color: var(--color-text);
    font-weight: 500;
    text-align: center;
    min-height: 1.5em;
    margin-bottom: 4px;
}

.gallery-counter {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 16px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: thin;
}

.gallery-thumb {
    width: 80px;
    height: 56px;
    min-width: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.5;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    border-color: var(--color-primary);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =============================================
   About
   ============================================= */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.about-content > p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.about-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.about-features li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.about-features li strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 3px;
    color: var(--color-text);
}

.about-features li p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.about-image-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image-placeholder svg {
    width: 100%;
    height: auto;
}

/* =============================================
   Process
   ============================================= */
.process {
    background: var(--color-bg-alt);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.process-step {
    text-align: center;
    padding: 36px 22px;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--color-border-light);
    transition: var(--transition);
}

.process-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.step-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 18px;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.process-step p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* =============================================
   Contact
   ============================================= */
.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-text);
}

.contact-info > p {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-md);
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 1.2rem;
}

.contact-item strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 2px;
    color: var(--color-text);
}

.contact-item p {
    font-size: 0.88rem;
    color: var(--color-text-light);
}

/* Contact Form */
.contact-form {
    background: var(--color-bg-warm);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 7px;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.92rem;
    color: var(--color-text);
    background: white;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(92, 107, 94, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%239A9A9A'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: #2D2D2D;
    color: #A8A8A8;
    padding-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #7A7A7A;
    max-width: 300px;
}

.footer-links h4 {
    color: #D4D4D4;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.footer-links a {
    display: block;
    font-size: 0.88rem;
    color: #7A7A7A;
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #D4D4D4;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: #5A5A5A;
}

/* =============================================
   Animations
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border-light);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hero {
        padding: 130px 0 72px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 28px;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form {
        padding: 24px;
    }

    .modal {
        max-height: 95vh;
        border-radius: var(--radius-lg);
    }

    .modal-header {
        padding: 24px 24px 0;
    }

    .modal-gallery {
        padding: 16px 24px 24px;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    .gallery-thumb {
        width: 60px;
        height: 42px;
        min-width: 60px;
    }
}
