/**
 * Badacz.pl - Complete Premium CSS Styles
 * Version: 1.0
 */

/* ========================================
   CSS VARIABLES - Kolory i podstawowe wartości
======================================== */

:root {
    /* Kolory główne */
    --color-primary: #2C4A8F;       /* Niebieski z top bar */
    --color-gold: #C9A961;          /* Złoty akcent */
    --color-dark: #1a1a1a;          /* Ciemny tekst */
    --color-gray: #666666;          /* Szary tekst */
    --color-light-gray: #f5f5f5;    /* Jasne tło */
    --color-white: #ffffff;
    --color-beige: #F5F1E8;
    
    /* Typografia */
    --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE STYLES
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ========================================
   TOP BAR (Górny niebieski pasek)
======================================== */

.top-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.top-bar a {
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar a:hover {
    opacity: 0.8;
}

.top-bar i {
    font-size: 1rem;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */

.site-header {
    background-color: var(--color-white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo */
.site-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}

.site-logo:hover {
    opacity: 0.8;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-dark);
    font-weight: 400;
    font-size: 1rem;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-toggle,
.cart-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.search-toggle:hover,
.cart-toggle:hover {
    color: var(--color-gold);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-gold);
    color: var(--color-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    background-color: var(--color-light-gray);
    padding: var(--spacing-xl) 2rem;
    position: relative;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border-radius: 0;
}

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

.btn-primary:hover {
    background-color: #B8944D;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* ========================================
   SECTIONS
======================================== */

.section {
    padding: var(--spacing-xl) 2rem;
}

.section-light {
    background-color: var(--color-light-gray);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

/* ========================================
   SEGMENTS GRID (Dwa kafelki)
======================================== */

.segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.segment-card {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.segment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.segment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.segment-card:hover .segment-image {
    transform: scale(1.05);
}

.segment-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: var(--color-white);
}

.segment-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.segment-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.segment-link {
    color: var(--color-white);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.segment-link:hover {
    gap: 1rem;
}

.segment-link i {
    transition: var(--transition);
}

/* ========================================
   WHY US / FEATURES
======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-gold);
    box-shadow: var(--shadow-sm);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray);
    font-weight: 300;
}

/* ========================================
   PRODUCTS GRID
======================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: var(--spacing-lg);
}

.product-card {
    background: var(--color-white);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--color-gold);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-content {
    padding: 2rem;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.product-link {
    color: var(--color-dark);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.product-link:hover {
    color: var(--color-gold);
    gap: 1rem;
}

/* ========================================
   REALIZATIONS / PORTFOLIO
======================================== */

.realizations-slider {
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-lg);
}

.realizations-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.realization-slide {
    min-width: calc(33.333% - 1.35rem);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.realization-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: var(--transition);
}

.realization-slide:hover .realization-image {
    transform: scale(1.1);
}

.realization-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: var(--color-white);
}

.realization-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.realization-category {
    font-size: 1rem;
    opacity: 0.9;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-dark);
}

.slider-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}

/* ========================================
   CTA SECTION
======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-white) 100%);
    text-align: center;
    padding: var(--spacing-xl) 2rem;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.cta-quote {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--color-dark);
}

.cta-author {
    font-size: 1rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
    font-style: italic;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background-color: #1a1a1a;
    color: #d1d5db;
    padding: var(--spacing-xl) 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-description {
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 2rem;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: #d1d5db;
    opacity: 0.8;
    transition: var(--transition);
    font-weight: 300;
}

.footer-menu a:hover {
    opacity: 1;
    color: var(--color-white);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.8rem;
    font-weight: 300;
}

.contact-info i {
    color: var(--color-gold);
    margin-top: 0.2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-family: var(--font-body);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--color-gold);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: #B8944D;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
    font-weight: 300;
}

/* ========================================
   SCROLL TO TOP BUTTON
======================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-gold);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
    display: flex;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */

@media (max-width: 1024px) {
    .segments-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .realization-slide {
        min-width: calc(50% - 1rem);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */

@media (max-width: 768px) {
    /* Top Bar */
    .top-bar .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Header */
    .header-container {
        padding: 0 1rem;
    }
    
    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        padding: 2rem;
        transition: var(--transition);
        z-index: 9999;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--color-light-gray);
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    /* Hero */
    .hero-section {
        min-height: auto;
        padding: var(--spacing-lg) 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-lg) 1rem;
    }
    
    /* Segments */
    .segments-grid {
        gap: 1rem;
    }
    
    .segment-card {
        height: 400px;
    }
    
    .segment-overlay {
        padding: 2rem;
    }
    
    .segment-title {
        font-size: 1.8rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Realizations */
    .realization-slide {
        min-width: 100%;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mt-5 { margin-top: 4rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.mb-5 { margin-bottom: 4rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .top-bar,
    .site-header,
    .header-actions,
    .hero-buttons,
    .slider-controls,
    .scroll-to-top {
        display: none !important;
    }
}
