/* 
 * MasterPUR Design System 4.0
 * Based on: Geometric Professional Theme
 * Fonts: Oswald (Headings), Manrope (Body)
 * Primary: #9bc32d (Lime) | Dark: #2c3e50 (Slate) | Body: #546e7a
 */

:root {
    /* --- COLOR PALETTE --- */
    --primary-lime: #9bc32d;
    --primary-hover: #8ab024;
    --dark-slate: #2c3e50;
    --body-text: #546e7a;
    --light-bg: #f8f9fa;
    --pure-white: #ffffff;
    
    /* --- TYPOGRAPHY --- */
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Manrope', sans-serif;

    /* --- SHAPES & EFFECTS --- */
    --radius-soft: 4px;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(155, 195, 45, 0.15);
    --clip-diagonal: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* --- BACKWARD COMPATIBILITY --- */
    --brand-lime: #9bc32d;
    --brand-dark: #2c3e50;
    --brand-gray: #546e7a;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: var(--font-body);
    color: var(--body-text);
    background-color: var(--pure-white);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .big-title {
    font-family: var(--font-head);
    color: var(--dark-slate);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.big-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
}

/* --- UTILITIES --- */
.text-lime { color: var(--primary-lime) !important; }
.bg-lime { background-color: var(--primary-lime) !important; }
.lime-text { color: var(--primary-lime) !important; }

.section-padding { padding: 100px 0; }

.badge-tech, .badge-pur {
    background: rgba(155, 195, 45, 0.1);
    color: var(--primary-lime);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
    border-radius: 2px;
}

/* --- BUTTONS --- */
.btn-lime, .btn-premium {
    background: var(--primary-lime);
    color: white;
    padding: 14px 35px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--radius-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-lime::after, .btn-premium::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: -1;
    transform: skewX(-20deg);
}

.btn-lime:hover::after, .btn-premium:hover::after { width: 150%; }
.btn-lime:hover, .btn-premium:hover { 
    color: white; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(155,195,45,0.4); 
}

.btn-outline-dark {
    border: 2px solid var(--dark-slate);
    color: var(--dark-slate);
    padding: 12px 30px;
    font-family: var(--font-head);
    font-weight: 600;
    border-radius: var(--radius-soft);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-outline-dark:hover {
    background: var(--dark-slate);
    color: white;
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: var(--transition);
}
.navbar-brand {
    font-family: var(--font-head);
    font-size: 1.8rem;
    letter-spacing: -1px;
    font-weight: 700;
    color: var(--dark-slate) !important;
}
.nav-link {
    font-weight: 600;
    color: var(--dark-slate) !important;
    margin: 0 12px;
    font-size: 0.95rem;
    position: relative;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px; left: 0; width: 0; height: 2px;
    background: var(--primary-lime);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero, .parallax-section {
    position: relative;
    padding: 140px 0 180px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f4f6f8 100%);
    overflow: hidden;
    clip-path: var(--clip-diagonal);
}
.parallax-section.section-1 {
    background: linear-gradient(135deg, #ffffff 0%, #f4f6f8 100%);
    height: auto;
    background-attachment: scroll;
}
.hero::before, .parallax-section::before {
    content: '';
    position: absolute;
    top: -50px; right: -100px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(155,195,45,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content { position: relative; z-index: 2; }

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-family: var(--font-head);
}

.hero-img-container {
    position: relative;
    z-index: 2;
}
.hero-img {
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
    width: 100%;
}
.hero-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* --- STATS SECTION --- */
.stats-section {
    margin-top: -80px;
    position: relative;
    z-index: 3;
    padding-bottom: 80px;
}
.stat-card {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-card);
    border-bottom: 3px solid var(--primary-lime);
    height: 100%;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-lime);
    font-family: var(--font-head);
    line-height: 1;
    margin-bottom: 10px;
}
.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark-slate);
    font-family: var(--font-body);
}

/* --- CARDS --- */
.glass-card, .service-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-card);
}
.glass-card:hover, .service-card:hover {
    border-color: var(--primary-lime);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}
.icon-box {
    width: 70px; height: 70px;
    background: rgba(155, 195, 45, 0.1);
    color: var(--primary-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    margin-bottom: 25px;
}

/* --- REGION / CITIES --- */
.region-section {
    background: var(--light-bg);
    position: relative;
}
.city-tag {
    background: white;
    border: 1px solid #eee;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--body-text);
    transition: var(--transition);
    display: inline-block;
    margin: 0 5px 10px 0;
    cursor: default;
    font-family: var(--font-body);
}
.city-tag:hover {
    border-color: var(--primary-lime);
    color: var(--primary-lime);
    transform: translateY(-2px);
}

/* --- CTA --- */
.cta-section, .contact-section {
    background: var(--dark-slate);
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-section::before, .contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.03) 10px,
        transparent 10px,
        transparent 20px
    );
}
.cta-section h2, .contact-section h2, .cta-section .big-title, .contact-section .big-title {
    color: white;
}

/* --- FOOTER --- */
footer {
    background: #fff;
    padding-top: 80px;
    border-top: 1px solid #eee;
}
.footer-logo {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
}

/* --- BLOG LIST --- */
.blog-header {
    padding: 160px 0 80px 0;
    background: linear-gradient(135deg, var(--dark-slate) 0%, #34495e 100%);
    margin-top: -80px;
    clip-path: var(--clip-diagonal);
}
.blog-header h1 {
    color: white;
    font-size: 3.5rem;
}
.blog-header p {
    color: rgba(255,255,255,0.7);
}

/* --- POST SINGLE --- */
.post-header {
    padding: 140px 0 60px 0;
    background: white;
    border-bottom: 1px solid #eee;
    margin-top: 80px;
}
.post-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}
.breadcrumb {
    background: transparent;
    padding: 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.breadcrumb-item a {
    color: var(--body-text);
    text-decoration: none;
}
.breadcrumb-item.active {
    color: var(--primary-lime);
    font-weight: 600;
}

/* --- FEATURE LISTS --- */
.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    font-family: var(--font-body);
}
.feature-list i {
    color: var(--primary-lime);
    margin-top: 5px;
    margin-right: 12px;
}

/* --- WIZARD / KALKULATOR (zachowane z wycena.php) --- */
.wizard-step { 
    animation: fadeInStep 0.5s ease-out; 
    font-family: var(--font-body);
}
@keyframes fadeInStep { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.btn-check:checked + .config-card {
    background-color: var(--primary-lime);
    border-color: var(--primary-lime);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(155, 195, 45, 0.4);
}
.btn-check:checked + .config-card i { color: white !important; }

.config-card { 
    transition: 0.2s; 
    border-width: 2px; 
    background: white; 
    color: var(--dark-slate);
    font-family: var(--font-body);
    border-radius: var(--radius-soft);
    border: 2px solid #eee;
}
.config-card:hover { 
    background-color: rgba(155, 195, 45, 0.05); 
    border-color: var(--primary-lime); 
}
.progress-bar { 
    transition: width 0.5s ease-in-out; 
    background-color: var(--primary-lime) !important;
}

/* FOCUS MODE DLA KALKULATORA */
.wizard-focus-backdrop {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(5px);
    z-index: 1040; opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
body.focus-mode-active .wizard-focus-backdrop { opacity: 1; pointer-events: auto; }
body.focus-mode-active #wizard-container { 
    position: relative; z-index: 1050; 
    box-shadow: 0 0 40px rgba(0,0,0,0.5) !important; 
}

/* --- FLOATING ELEMENTS --- */
.contact-gadget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}
.contact-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    transform: scale(0);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    pointer-events: auto;
}
.contact-menu.active {
    transform: scale(1);
    opacity: 1;
}
.contact-item {
    background: var(--dark-slate);
    color: white;
    padding: 14px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 1px solid var(--primary-lime);
    font-family: var(--font-body);
    font-weight: 600;
    transition: var(--transition);
}
.contact-item:hover {
    transform: translateX(-5px);
    color: white;
}
.main-fab {
    width: 75px;
    height: 75px;
    background: var(--primary-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(155, 195, 45, 0.4);
    transition: 0.3s;
    border: none;
    position: relative;
    pointer-events: auto;
}
.main-fab.active {
    transform: rotate(135deg);
    background: #ff3e3e;
    box-shadow: 0 10px 30px rgba(255, 62, 62, 0.3);
}
.fab-badge {
    position: absolute;
    top: -12px;
    right: -5px;
    background: #ff3e3e;
    color: white;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    animation: pulse-red 2s infinite;
    font-family: var(--font-body);
    white-space: nowrap;
}

/* --- SMART SELECTOR --- */
#smart-selector-widget {
    position: fixed;
    left: 20px;
    bottom: 30px;
    width: 340px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    z-index: 10001;
    border: 1px solid rgba(155, 195, 45, 0.3);
    overflow: hidden;
    display: none;
    font-family: var(--font-body);
}
@media (max-width: 576px) {
    #smart-selector-widget {
        width: calc(100% - 40px);
        left: 20px;
        bottom: 120px;
    }
}

/* --- THERMAL SCANNER --- */
#thermalScannerCard {
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
}
#thermalScreen {
    background: radial-gradient(circle, #001f3f 0%, #111 100%);
    transition: background 0.5s ease;
}
.blink-text { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* --- COOKIE BANNER --- */
.cookie-banner-glass {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(155, 195, 45, 0.3);
    z-index: 99999;
    padding: 20px 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner-glass.show {
    transform: translateY(0);
}
.cookie-icon-wrapper {
    background: rgba(155, 195, 45, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(155, 195, 45, 0.3);
}

/* --- ANIMATIONS --- */
@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 62, 62, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 62, 62, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 62, 62, 0); }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -60%); }
    15% { opacity: 1; transform: translate(-50%, -50%); }
    85% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -40%); }
}

.fade-in-out { animation: fadeInOut 3s forwards; }

/* --- UTILITIES --- */
.object-fit-cover { object-fit: cover; }
.font-heading { font-family: var(--font-head) !important; }
.font-body { font-family: var(--font-body) !important; }
.heading-spacing { letter-spacing: 0.5px; }

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .hero-title, .big-title { font-size: 2.8rem; }
    .hero, .parallax-section { 
        padding: 100px 0 50px 0; 
        clip-path: none; 
        height: auto;
    }
    .hero-img { margin-top: 40px; transform: none; }
    .stats-section { margin-top: 0; padding-top: 50px; }
    .hero::before, .parallax-section::before { display: none; }
    .section-padding { padding: 60px 0; }
    .blog-header { padding: 120px 0 60px 0; }
    .blog-header h1 { font-size: 2.5rem; }
    .post-header h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 10px 0; }
    .big-title { font-size: 2.2rem; }
    .contact-gadget { right: 15px; bottom: 15px; }
    .main-fab { width: 60px; height: 60px; font-size: 1.5rem; }
}