/* Hero Section */
.hero-wrapper {
    position: relative;
    z-index: 3;
    margin-bottom: 4rem;
}

.hero {
    position: relative;
    height: 85vh;
    color: var(--white);
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)),
                url('../img/programok/sio.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.subtitle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.subtitle .line {
    margin: 0;
}

.subtitle span {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Stats Bar */
.stats-bar {
    position: absolute;
    bottom: -4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: min(800px, calc(var(--max-width) - 8rem));
    margin: 0 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    height: 8rem;
    z-index: 10;
}

.stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background-color: #e5e7eb;
}

.stat svg {
    color: var(--primary);
    width: 40px;
    height: 40px;
    stroke-width: 1;
    margin: 0;
    flex-shrink: 0;
}

.stat-content {
    text-align: left;
}

.stat h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.4;
}

.stat p {
    color: #6B7280;
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

/* Következő szekció padding-jának növelése */
.residences-list {
    position: relative;
    padding-top: 4rem;
    z-index: 1;
    background-color: var(--bg-light);
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-bar {
        max-width: min(700px, calc(var(--max-width) - 4rem));
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .subtitle {
        justify-content: center;
    }

    .stats-bar {
        flex-direction: column;
        height: auto;
        padding: 0;
        gap: 0;
        bottom: -12rem;
        background: transparent;
        box-shadow: none;
        width: calc(100% - 2rem);
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .stat {
        width: 100%;
        justify-content: flex-start;
        padding: 1.25rem 1.75rem;
        background: var(--white);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-bottom: 0.75rem;
    }
    
    .stat:not(:last-child)::after {
        display: none;
    }

    .stat svg {
        width: 32px;
        height: 32px;
    }

    .stat-content {
        flex: 1;
    }

    .hero-wrapper {
        margin-bottom: 14rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stats-bar {
        max-width: 100%;
        margin: 0;
    }
    
    .stat {
        padding: 1.125rem 1.5rem;
        margin-bottom: 0.5rem;
    }

    .stat svg {
        width: 28px;
        height: 28px;
    }

    .stat h3 {
        font-size: 1.1rem;
    }

    .stat p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
    }

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

    .hero-text {
        padding: 0 0.5rem;
    }

    .stats-bar {
        max-width: 100%;
        margin: 0;
    }

    .stat {
        padding: 1rem 1.25rem;
        margin-bottom: 0.5rem;
    }

    .stat svg {
        width: 24px;
        height: 24px;
    }

    .stat h3 {
        font-size: 1rem;
    }

    .stat p {
        font-size: 0.85rem;
    }
}
