/*
Theme Name: FeltDecor v3 - Pixel Perfect
Theme URI: https://feltdecor.eu
Author: FeltDecor Team
Description: Pixel-perfect odwzorowanie feltdecor.eu - z dokładnymi wartościami z Elementora
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: feltdecor
*/

/* ==========================================
   FONT LOADING - faricy-new-web
   UWAGA: Musisz dodać własną czcionkę!
   ========================================== */

/*
WAŻNE: Czcionka 'faricy-new-web' jest custom fontem z feltdecor.eu
Opcje dodania czcionki:

1. Przez wtyczkę (NAJŁATWIEJSZE):
   - Zainstaluj "Use Any Font" lub "Custom Fonts"
   - Wgraj pliki czcionki
   
2. Przez @font-face (dla zaawansowanych):
   - Pobierz pliki .woff2 czcionki z feltdecor.eu
   - Wgraj do /fonts/ w motywie
   - Dodaj @font-face tutaj

3. Fallback (tymczasowo):
   - Motyw użyje system font stack jako fallback
   - Wygląd będzie podobny ale nie identyczny
*/

/* Fallback font stack (dopóki nie dodasz faricy-new-web) */
@font-face {
    font-family: 'faricy-new-web';
    src: local('Inter'), local('Helvetica Neue'), local('Arial');
    font-display: swap;
}

/* ==========================================
   CSS VARIABLES - DOKŁADNE Z ELEMENTORA
   ========================================== */

:root {
    /* KOLORY - bezpośrednio z site-settings.json */
    --color-primary: #24252B;
    --color-secondary: #69727D;
    --color-text: #24252B;
    --color-accent: #225386;
    --color-background-light: #F5F4F4;
    --color-white: #FFFFFF;
    
    /* TYPOGRAPHY - z Elementora */
    --font-family: 'faricy-new-web', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font sizes - CLAMP z Elementora */
    --font-size-h1: clamp(2.4rem, 2.1231rem + 1.2308vw, 3rem);
    --font-size-h2: clamp(2.1rem, 1.9154rem + 0.8205vw, 2.5rem);
    --font-size-h3: clamp(1.8rem, 1.7077rem + 0.4103vw, 2rem);
    --font-size-h4: clamp(1.8rem, 1.7077rem + 0.4103vw, 2rem);
    --font-size-h5: clamp(1.6rem, 1.5308rem + 0.3077vw, 1.75rem);
    --font-size-h6: clamp(1.4rem, 1.3538rem + 0.2051vw, 1.5rem);
    --font-size-body: 16px;
    --font-size-body-18: 18px;
    --font-size-body-20: 20px;
    
    /* Font weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    
    /* Line heights - z Elementora */
    --line-height-body: 1.5;
    --line-height-h1: 1.1;
    --line-height-h2: 1.2;
    --line-height-h3: 1.3;
    --line-height-h4: 1.25;
    --line-height-h5: 1.25;
    --line-height-h6: 1.25;
    
    /* Container - z Elementora */
    --container-width: 1280px;
    --container-padding: 0px; /* Elementor ma 0 padding! */
    
    /* Spacing - z Elementora */
    --space-widget: 1rem;
    --paragraph-spacing: 0.5rem;
    
    /* Breakpoints - z Elementora */
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1025px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ==========================================
   RESET
   ========================================== */

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

/* ==========================================
   BASE STYLES
   ========================================== */

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-body);
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* ==========================================
   TYPOGRAPHY - DOKŁADNIE Z ELEMENTORA
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    color: var(--color-text);
    margin-bottom: 0;
}

h1 {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-h1);
}

h2 {
    font-size: var(--font-size-h2);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-h2);
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-h3);
}

h4 {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-h4);
}

h5 {
    font-size: var(--font-size-h5);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-h5);
}

h6 {
    font-size: var(--font-size-h6);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-h6);
}

p {
    margin-bottom: var(--paragraph-spacing);
}

p:last-of-type {
    margin-bottom: 0;
}

/* ==========================================
   CONTAINER - 1280px Z ELEMENTORA
   ========================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ==========================================
   HEADER - Sticky minimal header
   ========================================== */

.site-header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.site-logo img {
    height: 35px;
    width: auto;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 40px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: var(--font-weight-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--color-accent);
}

/* Language switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    font-size: 14px;
    text-transform: uppercase;
}

.language-switcher a {
    padding: 5px 8px;
}

/* CTA Button - jak w Elementorze */
.btn-cta {
    border: 1px solid var(--color-background-light);
    color: var(--color-background-light);
    background: transparent;
    padding: 8px 30px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    transition: var(--transition);
    display: inline-block;
}

.btn-cta:hover {
    background: var(--color-background-light);
    color: var(--color-text);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION - Full screen z video/image
   ========================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -100px; /* Offset jak w Elementorze */
    background: var(--color-text);
    overflow: hidden;
}

/* Video/Image background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay - dokładnie 0.7 opacity jak w Elementorze */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    opacity: 0.7;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: var(--container-width);
    width: 100%;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 5rem; /* Z JSON - 5rem dla desktop */
    font-weight: var(--font-weight-medium);
    line-height: 1.1;
    color: var(--color-background-light);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem; /* Z JSON */
    font-weight: 300;
    line-height: 1.1;
    color: var(--color-background-light);
    margin-bottom: 32px; /* Spacer z JSON */
    max-width: 55%; /* Z JSON - width 55% */
}

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

/* ==========================================
   REALIZACJE SECTION - Grid z overlay
   ========================================== */

.realizacje-section {
    padding: 5rem 0; /* section-l */
    background: var(--color-white);
}

.section-header {
    max-width: var(--container-width);
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    font-size: var(--font-size-body-18);
    color: var(--color-secondary);
}

.realizacje-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.realizacja-card {
    position: relative;
    min-height: 700px; /* Z JSON */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 2rem; /* Z JSON */
    overflow: hidden;
    transition: var(--transition);
    background-size: cover;
    background-position: center;
}

.realizacja-card a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 2rem;
    text-decoration: none;
}

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

/* Background overlay dla hover */
.realizacja-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    z-index: 1;
    transition: var(--transition);
}

.realizacja-card:hover::before {
    background: rgba(0,0,0,0.1);
}

/* Gradient overlay - dokładnie z Elementora */
.realizacja-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #000000 0%, rgba(242, 41, 91, 0) 100%);
    opacity: 0.68; /* Z JSON */
    z-index: 2;
}

.realizacja-content {
    position: relative;
    z-index: 3;
    text-align: right;
}

.realizacja-content h3 {
    font-size: 3rem; /* Z JSON */
    font-weight: var(--font-weight-normal);
    line-height: 1.1;
    color: var(--color-background-light);
    margin-bottom: 0;
}

.realizacja-content p {
    font-size: 1.5rem; /* Z JSON */
    font-weight: var(--font-weight-normal);
    line-height: 1.1;
    color: var(--color-background-light);
}

/* ==========================================
   PRODUCTS SECTION
   ========================================== */

.products-section {
    padding: 5rem 0;
    background: var(--color-white);
}

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

.site-footer {
    background: var(--color-white);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 60px 0 20px;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 35px;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--color-secondary);
    line-height: var(--line-height-body);
    font-size: 0.95rem;
}

.footer-widget h4 {
    color: var(--color-text);
    margin-bottom: 20px;
    font-size: 1rem;
}

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

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: var(--color-secondary);
    font-weight: var(--font-weight-normal);
    font-size: 0.95rem;
}

.footer-widget ul li a:hover {
    color: var(--color-text);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 30px 20px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-secondary);
    font-size: 0.9rem;
}

/* ==========================================
   BUTTONS - Z Elementora
   ========================================== */

.button-primary {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 8px; /* Z JSON */
    padding: 8px 12px; /* Z JSON */
    font-family: 'Rubik', sans-serif; /* Z JSON */
    font-size: 14px;
    font-weight: 300;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}

.button-primary:hover {
    opacity: 0.9;
}

/* Icon button - z JSON */
.button-icon {
    background: transparent;
    color: var(--color-background-light);
    border: none;
    padding: 8px;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    gap: 14px; /* icon_indent z JSON */
    transition: var(--transition);
}

.button-icon:hover {
    color: var(--color-accent);
}

/* ==========================================
   RESPONSIVE - Breakpoints z Elementora
   ========================================== */

@media (max-width: 1024px) {
    .realizacje-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-content h1 {
        font-size: 3rem; /* tablet size z JSON */
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .realizacje-grid {
        grid-template-columns: 1fr;
    }
    
    .realizacja-card {
        min-height: 500px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==========================================
   UTILITIES
   ========================================== */

.section-m {
    padding: 5rem 0;
}

.section-l {
    padding: 5rem 0;
}

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

/* ==========================================
   CUSTOM CSS z Elementora
   ========================================== */

/* Section classes z customowego CSS */
.section-xxl { padding: clamp(9.375rem, 1.087vw + 9.13rem, 10rem) 0; }
.section-xl { padding: clamp(6.875rem, 1.087vw + 6.63rem, 7.5rem) 0; }
.section-l { padding: clamp(5.625rem, 1.087vw + 5.38rem, 6.25rem) 0; }
.section-m { padding: clamp(5rem, 0vw + 5rem, 5rem) 0; }
.section-s { padding: clamp(3.75rem, 0vw + 3.75rem, 3.75rem) 0; }
.section-xs { padding: clamp(2.5rem, 0vw + 2.5rem, 2.5rem) 0; }
