/*
Theme Name: Procesujemy
Theme URI: https://procesujemy.pl
Author: Michał
Author URI: https://procesujemy.pl
Description: Minimalistyczny motyw WordPress dla procesujemy.pl z pełną obsługą Elementor
Version: 2.0.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: procesujemy
Tags: one-column, custom-colors, custom-menu, elementor, landing-page
*/

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

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

:root {
    --color-dark: #f8fafc;
    --color-surface: #ffffff;
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-accent: #0ea5e9;
    --color-text-primary: #1f2937;
    --color-text-secondary: #64748b;
    --color-border: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--color-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 80% at 50% -20%, rgba(59, 130, 246, 0.08), transparent),
        radial-gradient(ellipse 60% 80% at 100% 50%, rgba(139, 92, 246, 0.06), transparent);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(59, 130, 246, 0.02) 2px, rgba(59, 130, 246, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(59, 130, 246, 0.02) 2px, rgba(59, 130, 246, 0.02) 4px);
    pointer-events: none;
    z-index: -1;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

html {
    scroll-behavior: smooth;
}

/* === TYPOGRAPHY === */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* === LAYOUT === */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-content {
    min-height: 100vh;
}

/* === WORDPRESS CORE === */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
}

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

/* === ELEMENTOR COMPATIBILITY === */

.elementor-section {
    position: relative;
}

.elementor-widget-heading .elementor-heading-title {
    color: inherit;
}

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

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.btn-primary {
    background: var(--gradient-primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.02);
}

.card {
    background: var(--color-surface);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

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

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

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

/* === MOBILE MENU === */

#mobile-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: var(--color-text-primary);
}

#mobile-menu a:hover {
    background: rgba(59, 130, 246, 0.1);
}

/* === RESPONSIVE === */

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }
}

/* === SCREEN READER TEXT === */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* === UX IMPROVEMENTS === */

/* Cursor pointer on interactive elements */
.card a,
.card button {
    cursor: pointer;
}

/* Statistics hover effects */
#social-proof .text-center {
    transition: transform 0.3s ease, filter 0.3s ease;
    user-select: none;
}

#social-proof .text-center:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

#social-proof .gradient-text {
    transition: filter 0.3s ease;
}

#social-proof .text-center:hover .gradient-text {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

/* Animated gradient borders on cards */
.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6, #8b5cf6);
    background-size: 400% 400%;
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: gradientBorder 3s ease infinite;
}

.card:hover::before {
    opacity: 1;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    border-radius: 16px;
    z-index: -1;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.card > * {
    position: relative;
    z-index: 1;
}

/* Keep static borders on cards with border-2, disable gradient animation */
.card.border-2::before {
    display: none; /* Disable gradient border for cards with static borders */
}

/* Accessibility - Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .card::before {
        animation: none;
    }

    #social-proof .text-center {
        transition: none;
    }
}

/* === SECTION SEPARATORS === */

/* Add subtle top border to social proof section */
#social-proof {
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
}

#social-proof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}
