/* ========================================
   NAK-Polska - Corporate Website Styles
   ======================================== */

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

:root {
    /* Sidebar dimensions */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;

    /* Color palette - Sophisticated grays */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-elevated: #161616;
    --bg-card: #1a1a1a;
    --bg-hover: #222222;

    /* Text colors */
    --text-primary: #f0f0f0;
    --text-secondary: #8a8a8a;
    --text-muted: #555555;

    /* Accent */
    --accent: #e0e0e0;
    --accent-dim: #888888;

    /* Borders */
    --border-color: #2a2a2a;
    --border-light: #333333;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Sidebar Navigation
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-smooth);
    z-index: 1000;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    padding: 28px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--transition-smooth);
}

.sidebar.collapsed .brand-name {
    opacity: 0;
    pointer-events: none;
}

/* Toggle Button */
.toggle-btn {
    position: absolute;
    right: -12px;
    top: 32px;
    width: 24px;
    height: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 1001;
}

.toggle-btn:hover {
    background: var(--text-primary);
}

.toggle-btn svg {
    width: 14px;
    height: 14px;
    fill: var(--text-secondary);
    transition: all var(--transition-fast);
}

.toggle-btn:hover svg {
    fill: var(--bg-primary);
}

.sidebar.collapsed .toggle-btn svg {
    transform: rotate(180deg);
}

/* Navigation */
.nav-section {
    padding: 24px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--text-primary);
    border-radius: 0 2px 2px 0;
    transition: height var(--transition-fast);
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-item.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-item.active::before {
    height: 20px;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.nav-item:hover svg,
.nav-item.active svg {
    opacity: 1;
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    transition: opacity var(--transition-smooth);
}

.sidebar.collapsed .nav-item span {
    opacity: 0;
    pointer-events: none;
}

/* Language Toggle */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-toggle:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.lang-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.lang-text {
    transition: opacity var(--transition-smooth);
}

.sidebar.collapsed .lang-text {
    display: none;
}

/* ========================================
   Main Content
   ======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-smooth);
}

.sidebar.collapsed~.main-content {
    margin-left: var(--sidebar-collapsed);
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 60px;
}

.section-header {
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(60, 60, 60, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(40, 40, 40, 0.2) 0%, transparent 50%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 60px;
    text-align: center;
}

.hero-logo {
    max-width: 580px;
    height: auto;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero-title span {
    display: block;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 15px;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-primary) !important;
    margin-bottom: 28px !important;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat-item {
    padding: 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-fast);
}

.stat-item:hover {
    border-color: var(--border-light);
    transform: translateX(8px);
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Services Section
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.service-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-elevated);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--text-primary);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ========================================
   Products Section
   ======================================== */
.products-section {
    background: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.product-card:hover {
    border-color: var(--border-light);
    transform: scale(1.02);
}

.product-visual {
    height: 140px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-visual span {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: -1px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.products-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
    min-height: 260px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.3) brightness(0.85);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--text-secondary);
}

.contact-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

.contact-cta {
    padding: 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-cta p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 40px 60px;
    border-top: 1px solid var(--border-color);
}

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

.footer p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1;
        min-width: 200px;
    }

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

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

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

    .contact-map {
        min-height: 220px;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 28px;
    left: 20px;
    z-index: 1002;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mobile-menu-btn .menu-arrow {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.mobile-menu-btn:active .menu-arrow {
    opacity: 1;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

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

    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-smooth);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar.mobile-open ~ .mobile-menu-btn {
        display: none;
    }

    .toggle-btn {
        display: none;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .section-container {
        padding: 80px 24px;
    }

    .hero-content {
        padding: 100px 24px 40px;
    }

    .hero-logo {
        max-width: 200px;
        margin-bottom: 28px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .footer {
        padding: 32px 24px;
    }
}