/*
====================================================================================
POSEIDON DESIGN SYSTEM - LAYOUT
====================================================================================

Style layoutu i struktury:
1. Nawigacja (navbar, menu mobilne)
2. Sekcja Hero
3. Siatka i kolumny
4. Stopka
5. Media queries

====================================================================================
*/

/* NAWIGACJA */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(253, 253, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--neutral-200);
    transition: all var(--transition-fast);
}

.navbar .container {
    max-width: 1400px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width var(--transition-medium);
}

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

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

.nav-menu .btn-primary {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Menu hamburger */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    transition: all var(--transition-fast);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 100% 0, #73c3d3, var(--bg-secondary) 60%);
    padding-top: 160px;
    padding-bottom: var(--space-3xl);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, rgba(156, 175, 154, 0.1) 0%, rgba(107, 161, 105, 0.15) 100%);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--neutral-700);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    animation: fadeInUp 0.8s ease 0.6s both;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-card {
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--neutral-200);
    max-width: 300px;
    width: 100%;
}

/* SEKCJE */
section {
    padding: var(--space-3xl) 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-white {
    background: var(--bg-primary);
}

/* SIATKA */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* STOPKA */
.footer {
    background: var(--primary-dark);
    color: var(--neutral-50);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--neutral-50);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-50);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-green);
    transform: translateY(-2px);
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--neutral-50);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid var(--neutral-200);
    }

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

    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        text-align: center;
    }
}
