/* CSS Custom Properties */
:root {
    /* Primary Colors - Green Theme */
    --primary-color: 46 125 50; /* #2E7D32 - Forest Green */
    --primary-dark: 27 94 32; /* #1B5E20 - Dark Green */
    --primary-light: 129 199 132; /* #81C784 - Light Green */
    
    /* Secondary Colors - Blue Accent */
    --secondary-color: 33 150 243; /* #2196F3 - Blue */
    --secondary-dark: 25 118 210; /* #1976D2 - Dark Blue */
    --secondary-light: 144 202 249; /* #90CAF9 - Light Blue */
    
    /* Accent Colors */
    --accent-color: #4CAF50; /* #4CAF50 - Material Green */
    --accent-light: #A5D6A7; /* #A5D6A7 - Very Light Green */
    
    /* Background Colors */
    --background: #FFFFFF; /* #FFFFFF - Pure White */
    --surface: #FFFFFF ; /* #FFFFFF - Pure White */
    --surface-alt: #FAFAFA; /* #FAFAFA - Very Light Gray */
    --surface-hover: #F5F5F5; /* #F5F5F5 - Light Gray Hover */
    
    /* Text Colors */
    --text-primary: #212121; /* #212121 - Dark Gray */
    --text-secondary: #757575; /* #757575 - Medium Gray */
    --text-muted: #9E9E9E; /* #9E9E9E - Light Gray */
    --text-on-primary: #FFFFFF; /* #FFFFFF - White on primary */
    
    /* Border Colors */
    --border-color: 224 224 224; /* #E0E0E0 - Light Border */
    --border-light: 238 238 238; /* #EEEEEE - Very Light Border */
    --border-focus: 33 150 243; /* #2196F3 - Focus Border */
    
    /* Status Colors */
    --success: 76 175 80; /* #4CAF50 - Success Green */
    --info: 33 150 243; /* #2196F3 - Info Blue */
    --warning: 255 111 97; /* #FF6F61 - Coral (no yellow) */
    --error: 244 67 54; /* #F44336 - Red */
    
    /* Shadows */
    --shadow: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.18);
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Layout */
    --max-width: 1200px;
    --container-padding: 20px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1rem;
    color: hsl(var(--text-secondary));
}

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

a:hover {
    color: hsl(var(--primary-dark));
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    background: none;
}

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

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: hsl(var(--secondary-color));
    color: hsl(var(--text-on-primary));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary-dark));
    color: hsl(var(--text-on-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid hsl(var(--primary-color));
    color: hsl(var(--primary-color));
    background-color: transparent;
}

.btn-outline:hover {
    background-color: hsl(var(--primary-color));
    color: hsl(var(--text-on-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

/* Cookie Banner & Modal Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--surface));
    border-top: 1px solid hsl(var(--border-color));
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: 20px;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 20px;
}

.modal-content {
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius);
}

.cookie-category label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    margin-top: 0.25rem;
}

.cookie-category span {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Header Styles */
.header {
    background: hsl(var(--surface));
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    color: hsl(var(--text-primary));
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover {
    color: hsl(var(--primary-color));
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(var(--primary-color));
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: hsl(var(--text-primary));
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: hsl(var(--surface));
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: hsl(var(--text-primary));
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

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

.hero-image {
    display: flex;
    justify-content: center;
}

/* Company Info Section */
.company-info {
    padding: 80px 0;
    background: hsl(var(--surface));
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    background: hsl(var(--surface));
    border: 1px solid hsl(var(--border-color));
    transition: var(--transition);
}

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

.info-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.info-card h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: hsl(var(--surface-alt));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.service-card.featured {
    border: 2px solid hsl(var(--primary-color));
    position: relative;
    grid-column: span 2;
    text-align: left;
}

.service-card.featured::before {
    content: 'Najpopularniejsze';
    position: absolute;
    top: -10px;
    left: 20px;
    background: hsl(var(--primary-color));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-card.featured .service-icon {
    justify-content: flex-start;
}

.service-card h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.service-card li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: hsl(var(--primary-color));
    font-weight: bold;
}

/* Statistics Section */
.statistics {
    padding: 60px 0;
    background: hsl(var(--primary-color));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: hsl(var(--surface));
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: hsl(var(--background));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.review-stars {
    color: hsl(var(--warning));
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: hsl(var(--text-primary));
}

.reviewer strong {
    color: hsl(var(--text-primary));
    display: block;
}

.reviewer span {
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: hsl(var(--surface-alt));
    color: hsl(var(--text-primary));
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.newsletter-text h2 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.newsletter-text p {
    color: hsl(var(--text-secondary));
    margin-bottom: 2rem;
}

.newsletter-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--text-primary));
}

.newsletter-form {
    background: hsl(var(--surface));
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid hsl(var(--border-color));
}

.form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-group input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid hsl(var(--border-color));
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsla(var(--primary-color), 0.1);
}

.form-note {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    margin: 0;
}

/* Blog Preview Section */
.blog-preview {
    padding: 80px 0;
    background: hsl(var(--background));
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: hsl(var(--surface));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 600;
    color: hsl(var(--primary-color));
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 0.75rem;
}

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

/* Contact Section */
.contact {
    padding: 80px 0;
    background: hsl(var(--surface));
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    padding: 0.75rem;
    background: hsl(var(--background));
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-item h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 0.5rem;
}

.social-links h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 1rem;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: hsl(var(--background));
    border-radius: 50%;
    color: hsl(var(--text-secondary));
    transition: var(--transition);
}

.social-icons a:hover {
    background: hsl(var(--primary-color));
    color: white;
    transform: translateY(-2px);
}

.business-hours {
    background: hsl(var(--background));
    padding: 2rem;
    border-radius: var(--border-radius);
}

.business-hours h4 {
    color: hsl(var(--text-primary));
    margin-bottom: 1.5rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border-color));
}

.hours-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Footer */
.footer {
    background: var(--text-secondary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .newsletter-content {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.featured {
        grid-column: span 1;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.info-card,
.service-card,
.review-card,
.blog-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid hsl(var(--primary-color));
    outline-offset: 2px;
}

/* Loading state styles */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid hsl(var(--primary-color));
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
