/*
Theme Name: MWM Lean Theme
Theme URI: https://mwm-group.pl
Author: Sylwia Tur
Version: 2.4.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: mwm-lean
*/

/* ==========================================================================
   2026 Design Trends: CSS Custom Properties
   ========================================================================== */
:root {
    /* Primary Palette */
    --mwm-primary: #5A9A36;
    --mwm-primary-dark: #4A7C2E;
    --mwm-accent: #7BC053;
    --mwm-glow: rgba(90, 154, 54, 0.4);

    /* Dark Mode Colors */
    --mwm-bg-dark: #0A0A0F;
    --mwm-bg-card: rgba(20, 20, 30, 0.6);
    --mwm-bg-glass: rgba(255, 255, 255, 0.03);
    --mwm-border-glass: rgba(255, 255, 255, 0.08);

    /* Text Colors */
    --mwm-text-primary: #FFFFFF;
    --mwm-text-secondary: rgba(255, 255, 255, 0.85);
    /* Increased for contrast */
    --mwm-text-muted: rgba(255, 255, 255, 0.65);
    /* Increased for contrast */

    /* Gradients */
    --mwm-gradient-hero: linear-gradient(135deg, #0A0A0F 0%, #1a1a2e 50%, #0A0A0F 100%);
    --mwm-gradient-mesh: radial-gradient(ellipse at 20% 0%, rgba(90, 154, 54, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(123, 192, 83, 0.1) 0%, transparent 50%);
    --mwm-gradient-card: linear-gradient(135deg, rgba(90, 154, 54, 0.1) 0%, rgba(123, 192, 83, 0.05) 100%);

    /* Timing */
    --mwm-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --mwm-duration: 0.4s;

    /* Blur */
    --mwm-blur: 20px;
    --mwm-blur-heavy: 40px;
}

/* ==========================================================================
   Light Mode Theme — Comprehensive Overrides
   ========================================================================== */
[data-theme="light"] {
    /* Override Dark Mode Colors */
    --mwm-bg-dark: #F5F5F7;
    --mwm-bg-card: rgba(255, 255, 255, 0.85);
    --mwm-bg-glass: rgba(255, 255, 255, 0.6);
    --mwm-border-glass: rgba(0, 0, 0, 0.08);

    /* Override Text Colors */
    --mwm-text-primary: #1A1A2E;
    --mwm-text-secondary: rgba(26, 26, 46, 0.75);
    --mwm-text-muted: rgba(26, 26, 46, 0.55);

    /* Override Gradients */
    --mwm-gradient-hero: linear-gradient(135deg, #F5F5F7 0%, #E8E8EE 50%, #F5F5F7 100%);
    --mwm-gradient-mesh: radial-gradient(ellipse at 20% 0%, rgba(90, 154, 54, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(123, 192, 83, 0.06) 0%, transparent 50%);
    --mwm-gradient-card: linear-gradient(135deg, rgba(90, 154, 54, 0.05) 0%, rgba(123, 192, 83, 0.03) 100%);

    /* Reduced glow for light mode */
    --mwm-glow: rgba(90, 154, 54, 0.2);
}

/* ---- 1. Body & Background ---- */
[data-theme="light"] body {
    background: #F8F9FA;
    color: var(--mwm-text-primary);
}

/* Premium light background – subtle organic gradients */
[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse at 15% 0%, rgba(90, 154, 54, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 100%, rgba(123, 192, 83, 0.05) 0%, transparent 45%),
        linear-gradient(180deg, #F8F9FA 0%, #F0F1F5 50%, #F8F9FA 100%);
    animation: void-drift 90s ease-in-out infinite alternate;
}

/* ---- 2. Global Text Color Overrides ---- */
/* has-light-color: white in dark mode → dark in light mode */
[data-theme="light"] body .has-light-color,
[data-theme="light"] body .has-light-color.has-text-color {
    color: #1A1A2E !important;
}

/* All headings → dark text in light mode */
[data-theme="light"] body h1,
[data-theme="light"] body h2,
[data-theme="light"] body h3,
[data-theme="light"] body h4,
[data-theme="light"] body h5,
[data-theme="light"] body h6 {
    color: #1A1A2E;
}

/* Neutral color → readable dark with alpha */
[data-theme="light"] body .has-neutral-color,
[data-theme="light"] body .has-neutral-color.has-text-color {
    color: rgba(26, 26, 46, 0.7) !important;
}

/* Generic paragraphs and text */
[data-theme="light"] body p {
    color: rgba(26, 26, 46, 0.8);
}

/* Text glow – disabled for light mode */
[data-theme="light"] body .has-primary-color {
    text-shadow: none;
}

[data-theme="light"] body .has-accent-color {
    text-shadow: none;
}

/* Counter number glow – disabled for light mode */
[data-theme="light"] .wp-block-column .has-primary-color[style*="2.5rem"] {
    animation: none;
}

/* ---- 3. Hero Section (Classic High-Contrast Revert) ---- */
/* Reverting to white text on a subtle dark overlay for better clarity in Light Mode */
[data-theme="light"] body .wp-block-cover .has-light-color,
[data-theme="light"] body .wp-block-cover .has-light-color.has-text-color,
[data-theme="light"] body .wp-block-cover h1,
[data-theme="light"] body .wp-block-cover h2,
[data-theme="light"] body .wp-block-cover h3,
[data-theme="light"] body .wp-block-cover h4,
[data-theme="light"] body .wp-block-cover h5,
[data-theme="light"] body .wp-block-cover h6 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="light"] body .wp-block-cover .has-neutral-color,
[data-theme="light"] body .wp-block-cover .has-neutral-color.has-text-color,
[data-theme="light"] body .wp-block-cover p {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3) !important;
}

/* Hero title – gradient white → green accent (mirrors dark mode) */
[data-theme="light"] body .wp-block-cover .has-hero-font-size,
[data-theme="light"] body .wp-block-cover .has-hero-font-size span {
    background: linear-gradient(135deg, #FFFFFF 0%, #7BC053 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(0 0 18px rgba(123, 192, 83, 0.45)) !important;
}

/* Hero gradient span removal */
[data-theme="light"] .wp-block-cover .wp-block-heading span {
    filter: none !important;
}

/* Revised Hero Overlay – Slightly lighter for clarity */
html[data-theme="light"] body .wp-block-cover .wp-block-cover__background,
html[data-theme="light"] body .wp-block-cover .wp-block-cover__background.has-dark-background-color {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
}

/* Universal light mode background with subtle parallax effect */
html[data-theme="light"] body {
    background: linear-gradient(180deg, #F8F9FA 0%, #F5F6F8 50%, #F2F3F5 100%);
    background-attachment: fixed;
    background-size: 100% 200vh;
}

/* ---- 4. Header & Navigation (Light Mode Simplified) ---- */
/* ---- 4. Header & Navigation (Light Mode Adaptive) ---- */
/* White at the top, Dark when scrolled */
[data-theme="light"] body header.site-header:not(.scrolled) .wp-block-navigation,
[data-theme="light"] body header.site-header:not(.scrolled) .wp-block-navigation-item,
[data-theme="light"] body header.site-header:not(.scrolled) .wp-block-navigation-item a,
[data-theme="light"] body header.site-header:not(.scrolled) .wp-block-navigation-link {
    color: #FFFFFF !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] body header.site-header.scrolled .wp-block-navigation-link,
[data-theme="light"] body header.site-header.scrolled .wp-block-navigation-item a {
    color: #1A1A2E !important;
}

/* Always white logo at top in Light Mode, dark when scrolled */
[data-theme="light"] body .site-header:not(.scrolled) .site-logo img,
[data-theme="light"] body .site-header:not(.scrolled) .wp-block-image img {
    mix-blend-mode: screen !important;
    filter: brightness(1) !important;
}

[data-theme="light"] body .site-header.scrolled .site-logo img {
    filter: brightness(0.1) !important;
    mix-blend-mode: normal !important;
}

/* Header outline button - Adaptive */
[data-theme="light"] body .site-header:not(.scrolled) .wp-block-button__link {
    color: #FFFFFF !important;
    border: 2px solid #FFFFFF !important;
    background: transparent !important;
}

[data-theme="light"] body .site-header.scrolled .wp-block-button__link {
    color: #1A1A2E !important;
    border: 2px solid #1A1A2E !important;
}

[data-theme="light"] body .site-header .wp-block-button__link:hover {
    background: #1A1A2E !important;
    color: #FFFFFF !important;
    border-color: #1A1A2E !important;
}

/* Scrolled header: light frosted glass */
html[data-theme="light"] body header.site-header.scrolled,
html[data-theme="light"] body .wp-site-blocks header.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(90, 154, 54, 0.2);
}

/* Light mode scrolled: hamburger icon DARK */
html[data-theme="light"] body .site-header.scrolled .wp-block-navigation__responsive-container-open {
    color: #1A1A2E !important;
}

html[data-theme="light"] body .site-header.scrolled .wp-block-navigation__responsive-container-open svg {
    fill: #1A1A2E !important;
}

/* Light mode scrolled: navigation links dark */
html[data-theme="light"] body .site-header.scrolled .wp-block-navigation-item a {
    color: #1A1A2E !important;
}

/* Light mode scrolled: theme toggle border dark */
html[data-theme="light"] body .site-header.scrolled .theme-toggle {
    border-color: rgba(26, 26, 46, 0.3) !important;
}

/* Stuck header: light glass */
html[data-theme="light"] body header.site-header.is-stuck {
    background: rgba(255, 255, 255, 0.98);
}

/* ---- Hero Background Image – reliable scaling on all devices ---- */
body .wp-block-cover__image-background {
    object-fit: cover !important;
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

@media (max-width: 670px) {
    body .wp-block-cover__image-background {
        object-position: 60% center !important;
    }
}

/* ---- 5. Glassmorphism Cards ---- */
[data-theme="light"] body .wp-block-group[style*="border"] {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] body .wp-block-group[style*="border"]::before {
    background: linear-gradient(135deg, rgba(90, 154, 54, 0.1), transparent, rgba(90, 154, 54, 0.05));
}

[data-theme="light"] body .wp-block-group[style*="border"]:hover {
    border-color: rgba(90, 154, 54, 0.4);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.06),
        0 0 40px rgba(90, 154, 54, 0.08);
}

/* ---- 6. Service Cards ---- */
[data-theme="light"] body .service-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] body .service-card:hover {
    border-color: var(--mwm-primary);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.08),
        0 0 0 2px var(--mwm-primary);
}

/* About section – use universal background */
[data-theme="light"] #o-mnie {
    background: transparent !important;
}

/* Services section – use universal background */
[data-theme="light"] .services-section {
    background: transparent !important;
}

/* Services section heading (no textColor set → was inheriting white) */
[data-theme="light"] body .services-section .wp-block-heading {
    color: #1A1A2E;
}

/* Service card dark-mode variants → light */
[data-theme="light"] body .service-card-light {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] body .service-card-light .wp-block-heading {
    color: #1A1A2E !important;
}

[data-theme="light"] body .service-card-light p {
    color: rgba(26, 26, 46, 0.7) !important;
}

/* ---- 7. Content Cards ---- */
[data-theme="light"] body .content-card,
html[data-theme="light"] body .wp-site-blocks .content-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] body .content-card::after {
    background: linear-gradient(135deg, rgba(90, 154, 54, 0.06), transparent, rgba(90, 154, 54, 0.03));
}

[data-theme="light"] body .content-card:hover,
html[data-theme="light"] body .content-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(90, 154, 54, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Content card image gradient overlay – lighten */
[data-theme="light"] .content-card-image::after {
    background: linear-gradient(to bottom, transparent 60%, rgba(245, 245, 247, 0.6));
}

/* Content card tag */
[data-theme="light"] .content-card-tag {
    background: rgba(90, 154, 54, 0.08);
}

/* ---- 8. Contact Section ---- */
/* Contact headings and text */
[data-theme="light"] body #kontakt .wp-block-heading,
[data-theme="light"] body #kontakt h2,
[data-theme="light"] body #kontakt h4 {
    color: #1A1A2E !important;
}

[data-theme="light"] body #kontakt p {
    color: rgba(26, 26, 46, 0.7) !important;
}

/* Contact content cards */
[data-theme="light"] body #kontakt .content-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
}

/* Contact CTA Box */
[data-theme="light"] body .contact-cta-box {
    background: linear-gradient(135deg, rgba(90, 154, 54, 0.08) 0%, rgba(123, 192, 83, 0.04) 100%);
    border-color: rgba(90, 154, 54, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

/* Contact CTA text: forced white → dark */
[data-theme="light"] body .contact-cta-box h3,
[data-theme="light"] body .contact-cta-box p {
    color: #1A1A2E !important;
}

/* CTA particles – toned down */
[data-theme="light"] .contact-cta-box .particles::before {
    opacity: 0.3;
}

/* Contact section – use universal background */
[data-theme="light"] #kontakt {
    background: transparent !important;
}

/* ---- 9. Gallery / Bento Grid ---- */
[data-theme="light"] .gallery-section {
    background: transparent !important;
    border-top: 1px solid rgba(90, 154, 54, 0.1);
    border-bottom: 1px solid rgba(90, 154, 54, 0.1);
}

[data-theme="light"] .bento-item {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .bento-item img {
    opacity: 0.95;
}

[data-theme="light"] .bento-item:hover img {
    opacity: 1;
}

[data-theme="light"] .bento-overlay {
    background: linear-gradient(to top, rgba(26, 26, 46, 0.8) 0%, transparent 100%);
}

/* ---- 10. Process Section ---- */
[data-theme="light"] body .has-primary-border-color {
    border-color: rgba(90, 154, 54, 0.3) !important;
}

/* Process section – use universal background */
[data-theme="light"] body .has-dark-background-color.has-background {
    background: transparent !important;
    color: #1A1A2E !important;
}

[data-theme="light"] body .has-dark-background-color.has-background h2,
[data-theme="light"] body .has-dark-background-color.has-background p,
[data-theme="light"] body .has-dark-background-color.has-background .has-light-color {
    color: #1A1A2E !important;
}

/* ---- 11. Tech Marquee ---- */
[data-theme="light"] .tech-marquee-container {
    background: transparent !important;
}

[data-theme="light"] .tech-marquee-item {
    color: rgba(26, 26, 46, 0.55);
}

[data-theme="light"] .tech-marquee-item:hover {
    color: var(--mwm-primary);
    text-shadow: none;
}

/* ---- 12. Testimonials ---- */
[data-theme="light"] .testimonial-section {
    background: radial-gradient(ellipse at center, rgba(90, 154, 54, 0.04) 0%, transparent 70%);
}

[data-theme="light"] body .testimonial-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* ---- 13. Images ---- */
[data-theme="light"] .wp-block-image img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 15px rgba(90, 154, 54, 0.06);
}

[data-theme="light"] .wp-block-image:hover img {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12), 0 0 20px rgba(90, 154, 54, 0.1);
}

/* ---- 14. Footer ---- */
/* Footer logo: remove screen blend */
html[data-theme="light"] body footer.site-footer .site-logo-footer img {
    filter: brightness(0.2) contrast(1.2) !important;
    mix-blend-mode: normal !important;
}

/* Footer headings */
[data-theme="light"] body footer.site-footer .has-light-color {
    color: #1A1A2E !important;
}

/* Footer separator */
[data-theme="light"] body .site-footer .wp-block-separator {
    background: rgba(0, 0, 0, 0.1) !important;
}

/* Footer – use universal background */
html[data-theme="light"] body footer.site-footer.wp-block-group {
    background: transparent !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ---- 15. Scrollbar ---- */
[data-theme="light"] ::-webkit-scrollbar-track {
    background: #F5F5F7;
}

/* ---- 16. Selection ---- */
[data-theme="light"] ::selection {
    background: var(--mwm-primary);
    color: #ffffff;
}

/* ---- 17. Sticky Header Background ---- */
[data-theme="light"] body .wp-block-group[style*="sticky"] {
    background: rgba(245, 245, 247, 0.85) !important;
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] body .wp-block-group[style*="sticky"]:not([style*="padding-top:1rem"]) {
    background: rgba(245, 245, 247, 0.92);
}

/* ==========================================================================
   Dark/Light Toggle Button
   ========================================================================== */
.theme-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    padding: 2px;
    flex-shrink: 0;
    margin-left: 1rem;
}

.theme-toggle:hover {
    border-color: var(--mwm-primary);
}

.theme-toggle-knob {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.theme-toggle-knob svg {
    width: 12px;
    height: 12px;
    transition: all 0.4s ease;
}

/* Dark mode (default) – show moon icon */
.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
    color: #1A1A2E;
}

/* Light mode toggle: adapt based on scroll for contrast */
[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .site-header.scrolled .theme-toggle {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .theme-toggle-knob {
    transform: translateX(22px);
    background: #FFA500;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
    color: #ffffff;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

/* ==========================================================================
   Base: Dark Mode First
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

/* Reset default Gutenberg block gap - !important needed to override WP core */
html body :where(.wp-site-blocks)>* {
    margin-block-start: 0 !important;
}

/* Transparency for Seamless Flow - High specificity */
html body .wp-site-blocks,
html body .wp-site-blocks .wp-block-group,
html body .wp-site-blocks .wp-block-columns,
html body .wp-site-blocks .wp-block-column,
html body .wp-site-blocks .wp-block-cover,
html body .wp-site-blocks footer {
    background-color: transparent;
}

/* Hero Overlay Darkness - High specificity */
html body .wp-block-cover .wp-block-cover__background,
html body .wp-block-cover .wp-block-cover__background.has-dark-background-color {
    background-color: #000000;
    opacity: 0.85;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--mwm-text-primary);
    background: var(--mwm-bg-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimized Background Overlay */
/* Organic Cyber Void */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(90, 154, 54, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 10% 10%, rgba(90, 154, 54, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(123, 192, 83, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(10, 20, 40, 0.6) 0%, transparent 45%),
        radial-gradient(circle at 70% 30%, rgba(10, 20, 40, 0.6) 0%, transparent 45%),
        linear-gradient(135deg, #050508 0%, #0a0a12 100%);
    z-index: -1;
    background-size: 150% 150%;
    animation: void-drift 60s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes void-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-5%, 2%) scale(1.05);
    }

    66% {
        transform: translate(5%, -2%) scale(1.02);
    }

    100% {
        transform: translate(2%, 5%) scale(1);
    }
}


/* ==========================================================================
   Typography: Bold & Modern
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Utility Classes (Restoring functionality lost by removing global-styles)
   ========================================================================== */
.has-text-align-center {
    text-align: center !important;
}

.has-text-align-left {
    text-align: left !important;
}

.has-text-align-right {
    text-align: right !important;
}

body .has-hero-font-size {
    font-size: clamp(2.5rem, 8vw, 5rem);
    background: linear-gradient(135deg, var(--mwm-text-primary) 0%, var(--mwm-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Scroll Reveal System
   ========================================================================== */
.reveal {
    opacity: 0.01;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ==========================================================================
   Glassmorphism Cards
   ========================================================================== */
body .wp-block-group[style*="border"] {
    background: var(--mwm-bg-glass);
    backdrop-filter: blur(var(--mwm-blur));
    -webkit-backdrop-filter: blur(var(--mwm-blur));
    border: 1px solid var(--mwm-border-glass);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all var(--mwm-duration) var(--mwm-ease);
    position: relative;
}

.wp-block-group[style*="border"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(90, 154, 54, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity var(--mwm-duration) var(--mwm-ease);
}

body .wp-block-group[style*="border"]:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(90, 154, 54, 0.5);
    box-shadow:
        0 20px 60px rgba(90, 154, 54, 0.15),
        0 0 40px var(--mwm-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wp-block-group[style*="border"]:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Glowing Buttons
   ========================================================================== */
body .wp-block-button__link {
    background: linear-gradient(135deg, var(--mwm-primary) 0%, var(--mwm-accent) 100%);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--mwm-duration) var(--mwm-ease);
    position: relative;
    overflow: hidden;
}

.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s var(--mwm-ease);
}

.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 40px var(--mwm-glow),
        0 0 60px var(--mwm-glow);
}

.wp-block-button__link:hover::before {
    left: 100%;
}

/* ==========================================================================
   Animated Gradient Border
   ========================================================================== */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body .wp-block-separator {
    width: 120px;
    height: 4px;
    border: none;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--mwm-primary), var(--mwm-accent), var(--mwm-primary));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
    opacity: 1;
}

/* ==========================================================================
   Floating Elements Animation
   ========================================================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Performance optimization: Float only prominent images if needed, or simplify */
.wp-block-image.is-animated {
    animation: float 6s ease-in-out infinite;
}

.wp-block-image img {
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px var(--mwm-glow);
    transition: all var(--mwm-duration) var(--mwm-ease);
}

.wp-block-image:hover img {
    transform: scale(1.05);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px var(--mwm-glow);
}

/* ==========================================================================
   Sticky Header: Glass Effect
   ========================================================================== */
body .wp-block-group[style*="sticky"] {
    background: rgba(10, 10, 15, 0.8) !important;
    backdrop-filter: blur(var(--mwm-blur-heavy));
    -webkit-backdrop-filter: blur(var(--mwm-blur-heavy));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 99999;
    transition: all 0.3s ease;
}

body .wp-block-group[style*="sticky"]:not([style*="padding-top:1rem"]) {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: rgba(10, 10, 15, 0.9);
}

/* Header Button Specifics */
body .site-header .wp-block-button__link {
    font-size: 0.75rem;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--mwm-primary);
    background: transparent;
    color: var(--mwm-primary);
}

.site-header .wp-block-button__link:hover {
    background: var(--mwm-primary) !important;
    color: white !important;
    box-shadow: 0 0 20px var(--mwm-glow);
}

/* ==========================================================================
   Navigation & Logo Fixes
   ========================================================================== */

body .site-logo {
    animation: none;
    margin-bottom: 0;
    max-width: 180px;
    flex: 0 0 auto;
}

body .site-header .site-logo img,
body .site-header .wp-block-image img {
    max-height: 45px;
    width: auto;
    display: block;
    mix-blend-mode: screen;
    filter: brightness(1.2) contrast(1.1);
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}

/* FIX: Header parent container must have high z-index to escape Hero stacking context */
header.wp-block-template-part {
    position: relative !important;
    z-index: 99999 !important;
}

/* Hero section - ensure it stays below header */

/* Hero section - ensure it stays below header */
body .wp-block-cover,
body .wp-block-cover.alignfull {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

/* Add padding to body to account for fixed header - Removed to allow Hero to start at top */
body .wp-site-blocks {
    padding-top: 0;
}

/* Ensure sticky state (scroll) gets stronger glass */
body .site-header.is-stuck {
    background: rgba(10, 10, 15, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

body .site-head.hero-area {
    min-height: 100vh;
    padding: 0;
}

body .hero-area .wp-block-cover__inner-container {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body .site-header img {
    max-height: 60px;
    height: 60px;
}

body .wp-block-navigation {
    display: flex;
    flex-wrap: nowrap;
}

body .wp-block-navigation__container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    align-items: center;
}

body .wp-block-navigation-item {
    white-space: nowrap;
    position: relative;
}

body .wp-block-navigation-item a {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

body .wp-block-navigation-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--mwm-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

body .wp-block-navigation-item a:hover {
    color: var(--mwm-primary) !important;
}

body .wp-block-navigation-item a:hover::after {
    width: 100%;
}

@media (min-width: 671px) {
    html body .wp-block-navigation__responsive-container-open {
        display: none;
    }

    html body .wp-block-navigation .wp-block-navigation__responsive-container {
        display: flex;
        position: static;
        background: transparent;
        visibility: visible;
        opacity: 1;
        width: auto;
        height: auto;
        transform: none;
    }
}

/* ==========================================================================
   Mobile-First Responsive (≤670px) – Header, Hero, Content
   ========================================================================== */
@media (max-width: 670px) {

    /* ---- Header ---- */
    html body header.wp-block-group.site-header,
    html body .wp-site-blocks header.site-header {
        padding: 0.75rem 1rem !important;
        min-height: 60px;
        top: 10px;
        gap: 0.5rem;
    }

    html body header.site-header.scrolled,
    html body .wp-site-blocks header.site-header.scrolled {
        padding: 0.5rem 1rem !important;
    }

    html body.admin-bar header.site-header {
        top: calc(46px + 10px);
    }

    /* Logo smaller on mobile */
    html body header.site-header .site-logo img,
    html body header.site-header .wp-block-image img {
        max-height: 36px !important;
    }

    body .site-header img {
        max-height: 36px !important;
        height: 36px !important;
    }

    /* Hide desktop nav explicitly in HEADER only, show hamburger */
    html body .site-header .wp-block-navigation .wp-block-navigation__responsive-container {
        display: none !important;
    }

    html body .site-header .wp-block-navigation__responsive-container-open {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0.5rem;
    }

    html body .site-header .wp-block-navigation__responsive-container-open svg {
        width: 28px;
        height: 28px;
        fill: currentColor;
    }

    /* ---- Footer navigation: ALWAYS static and visible ---- */
    html body .site-footer .wp-block-navigation .wp-block-navigation__responsive-container {
        display: flex !important;
        position: static !important;
        background: transparent !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        animation: none !important;
    }

    html body .site-footer .wp-block-navigation__responsive-container-open,
    html body .site-footer .wp-block-navigation__responsive-container-close {
        display: none !important;
    }

    html body .site-footer .wp-block-navigation .wp-block-navigation__container {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    html body .site-footer .wp-block-navigation-item {
        border: none !important;
        animation: none !important;
        opacity: 1 !important;
    }

    html body .site-footer .wp-block-navigation-item a {
        font-size: inherit !important;
        font-weight: normal !important;
        padding: 0 !important;
        color: inherit !important;
        text-transform: none !important;
        letter-spacing: normal !important;
    }

    html body .site-footer .wp-block-navigation-item a::after {
        display: none !important;
    }

    /* ============================================================
       Premium Mobile Menu Overlay
       ============================================================ */
    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 99999999 !important;
        background: linear-gradient(160deg,
                rgba(5, 5, 10, 0.99) 0%,
                rgba(10, 15, 10, 0.99) 50%,
                rgba(5, 5, 10, 0.99) 100%) !important;
        backdrop-filter: blur(30px) saturate(1.5) !important;
        -webkit-backdrop-filter: blur(30px) saturate(1.5) !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        overflow: hidden !important;
        animation: mobileMenuFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
        box-sizing: border-box !important;
        border: none !important;
    }

    /* Decorative glow behind menu */
    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open::before {
        content: '';
        position: absolute;
        top: 35%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(90, 154, 54, 0.15) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    /* Close button - well within viewport */
    html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
        position: absolute !important;
        top: 1.5rem !important;
        right: 1.5rem !important;
        left: auto !important;
        z-index: 10 !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        color: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover {
        background: rgba(90, 154, 54, 0.3) !important;
        border-color: rgba(90, 154, 54, 0.5) !important;
        transform: rotate(90deg) !important;
    }

    html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
        width: 20px !important;
        height: 20px !important;
        fill: #ffffff !important;
        flex-shrink: 0 !important;
    }

    /* Navigation container inside overlay – centered */
    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        position: relative;
        z-index: 1;
        padding: 5rem 2rem 2rem 2rem !important;
        box-sizing: border-box !important;
    }

    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        text-align: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 320px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Individual menu items */
    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        animation: mobileMenuItemSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
        opacity: 0;
    }

    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child {
        border-bottom: none !important;
    }

    /* Stagger the entrance animation */
    html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(1) {
        animation-delay: 0.1s !important;
    }

    html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2) {
        animation-delay: 0.18s !important;
    }

    html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3) {
        animation-delay: 0.26s !important;
    }

    html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4) {
        animation-delay: 0.34s !important;
    }

    html body .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5) {
        animation-delay: 0.42s !important;
    }

    /* Menu links */
    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
        display: block !important;
        font-size: 1.6rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        color: rgba(255, 255, 255, 0.85) !important;
        text-decoration: none !important;
        padding: 1.2rem 0 !important;
        transition: all 0.3s ease !important;
        position: relative !important;
    }

    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a::after {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 0 !important;
        height: 2px !important;
        background: var(--mwm-primary, #7BC053) !important;
        transition: width 0.3s ease !important;
    }

    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover {
        color: #FFFFFF !important;
    }

    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a:hover::after {
        width: 60% !important;
    }

    /* ---- Animations ---- */
    @keyframes mobileMenuFadeIn {
        from {
            opacity: 0;
            transform: scale(1.03);
        }

        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    @keyframes mobileMenuItemSlide {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* WYCENA button – smaller on mobile */
    html body .site-header .wp-block-button__link {
        padding: 0.4rem 1rem !important;
        font-size: 0.65rem !important;
        border-radius: 20px !important;
    }

    /* Theme toggle – smaller */
    .theme-toggle {
        width: 36px !important;
        height: 20px !important;
    }

    .theme-toggle-knob {
        width: 16px !important;
        height: 16px !important;
    }

    .theme-toggle-knob svg {
        width: 10px !important;
        height: 10px !important;
    }

    /* ---- Hero Section ---- */
    body .wp-block-cover {
        min-height: 100vh;
        min-height: 100svh;
        /* safe area for mobile browsers */
    }

    body .has-hero-font-size {
        font-size: clamp(1.6rem, 9vw, 2.8rem) !important;
        line-height: 1.15 !important;
    }

    body .wp-block-cover p.has-medium-font-size,
    body .wp-block-cover p.has-large-font-size {
        font-size: clamp(0.85rem, 3.5vw, 1.1rem) !important;
    }

    /* CTA button */
    body .wp-block-cover .wp-block-button__link {
        padding: 0.9rem 2rem !important;
        font-size: 0.85rem !important;
    }

    /* Scroll hint text */
    body .scroll-hint {
        font-size: 0.65rem !important;
    }

    /* ---- General Content ---- */
    body .wp-block-group[style*="padding"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Sections vertical spacing */
    body .wp-block-group.alignfull {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    /* About section – stack and center */
    #o-mnie .wp-block-columns {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    #o-mnie .wp-block-column {
        flex-basis: 100% !important;
    }

    #o-mnie .about-photo-container {
        max-width: 250px;
        margin: 0 auto;
    }

    /* Stats row in About */
    #o-mnie .wp-block-columns .wp-block-columns {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem !important;
    }

    #o-mnie .wp-block-columns .wp-block-columns .wp-block-column {
        flex-basis: auto !important;
        text-align: center;
    }

    /* Section headings */
    body .has-xx-large-font-size {
        font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
    }

    body .has-x-large-font-size {
        font-size: clamp(1.3rem, 6vw, 1.8rem) !important;
    }

    body .has-large-font-size {
        font-size: clamp(1rem, 4vw, 1.3rem) !important;
    }

    /* Service cards – single column & reduced padding */
    html body .services-section .wp-block-column.content-card {
        flex: 0 1 100% !important;
    }

    .content-card {
        padding: 1.5rem !important;
    }

    /* Tech marquee - smaller font */
    .tech-marquee-item {
        font-size: 0.85rem !important;
        padding: 0 1.5rem !important;
    }

    /* Bento Gallery – 2-col on small screens, single col at 480px */
    .bento-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 150px !important;
        gap: 0.5rem !important;
    }

    .bento-large {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }

    .bento-tall {
        grid-row: span 1 !important;
    }

    .bento-wide {
        grid-column: span 2 !important;
    }

    /* Footer */
    body .site-footer .wp-block-columns {
        flex-direction: column !important;
    }

    body .site-footer .wp-block-column {
        flex-basis: 100% !important;
    }

    body .site-footer>.wp-block-group:last-of-type {
        flex-direction: column !important;
        text-align: center;
    }
}

/* ==========================================================================
   Small Mobile (≤420px) – extra dense
   ========================================================================== */
@media (max-width: 420px) {
    body .has-hero-font-size {
        font-size: clamp(1.4rem, 10vw, 2rem) !important;
    }

    html body header.wp-block-group.site-header,
    html body .wp-site-blocks header.site-header {
        padding: 0.5rem 0.75rem !important;
    }

    html body header.site-header .site-logo img,
    html body header.site-header .wp-block-image img {
        max-height: 28px !important;
    }

    body .site-header img {
        max-height: 28px !important;
        height: 28px !important;
    }

    .bento-grid-container {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 180px !important;
    }

    .bento-large,
    .bento-wide {
        grid-column: span 1 !important;
    }

    #o-mnie .about-photo-container {
        max-width: 200px;
    }

    /* Stats */
    #o-mnie .wp-block-columns .wp-block-columns {
        gap: 0.5rem !important;
    }

    #o-mnie p[style*="font-size:2.5rem"] {
        font-size: 1.8rem !important;
    }
}

/* ==========================================================================
   Landscape / Small-Height Screens (max-height: 500px)
   Phones held horizontally – prevents text overlap
   ========================================================================== */
@media (max-height: 500px) and (orientation: landscape) {

    /* Hero – nie zajmuj całego viewport, tylko tyle ile trzeba */
    body .wp-block-cover {
        min-height: 100svh !important;
        padding-top: 4rem !important;
        padding-bottom: 2rem !important;
    }

    /* Hero – mniejszy tytuł główny */
    body .has-hero-font-size {
        font-size: clamp(1.3rem, 5vh, 2rem) !important;
        line-height: 1.1 !important;
        margin-bottom: 0.4rem !important;
    }

    /* Hero – smaller subtitle / paragraph */
    body .wp-block-cover p,
    body .wp-block-cover p.has-medium-font-size,
    body .wp-block-cover p.has-large-font-size {
        font-size: clamp(0.75rem, 2.5vh, 1rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Hero – smaller CTA button */
    body .wp-block-cover .wp-block-button__link {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.8rem !important;
    }

    /* Scroll hint – hide on landscape to save vertical space */
    body .scroll-hint {
        display: none !important;
    }

    /* Mobile menu – smaller items to fit in viewport */
    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
        font-size: 1.1rem !important;
        padding: 0.6rem 0 !important;
    }

    /* Mobile menu container – allow scrolling when many items */
    html body .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
        padding: 3.5rem 2rem 1rem 2rem !important;
        overflow-y: auto !important;
        justify-content: flex-start !important;
    }

    /* Section vertical spacing – tighter on landscape */
    body .wp-block-group.alignfull {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    /* Headings – tighter line-height */
    body h1,
    body h2,
    body h3 {
        line-height: 1.15 !important;
    }

    /* Section headings font-size */
    body .has-xx-large-font-size {
        font-size: clamp(1.3rem, 5vh, 1.8rem) !important;
    }

    body .has-x-large-font-size {
        font-size: clamp(1.1rem, 4vh, 1.5rem) !important;
    }

    /* About section photo – smaller */
    body .about-photo img,
    body .about-photo-container img {
        max-height: 200px !important;
    }
}

/* ==========================================================================
   Landscape – Wider Screen, Small Height (e.g. iPad landscape, small laptop)
   > 670px wide but ≤ 650px tall → desktop nav shows but hero overflows header
   ========================================================================== */
@media (min-width: 671px) and (max-height: 650px) and (orientation: landscape) {

    /* Push hero content below the fixed header */
    body .wp-block-cover .wp-block-cover__inner-container {
        padding-top: 5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Smaller hero title */
    body .has-hero-font-size {
        font-size: clamp(1.8rem, 5.5vh, 3rem) !important;
        line-height: 1.05 !important;
        margin-bottom: 0.3rem !important;
    }

    /* Smaller subtitle */
    body .wp-block-cover p,
    body .wp-block-cover p.has-medium-font-size,
    body .wp-block-cover p.has-large-font-size {
        font-size: clamp(0.85rem, 2.2vh, 1.1rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 0.6rem !important;
    }

    /* CTA button – slightly smaller */
    body .wp-block-cover .wp-block-button__link {
        padding: 0.75rem 2rem !important;
        font-size: 0.85rem !important;
    }

    /* Scroll hint – hide to save space */
    body .scroll-hint {
        display: none !important;
    }

    /* Hero min-height – keep viewport */
    body .wp-block-cover {
        min-height: 100svh !important;
    }
}

/* ==========================================================================
   Section Backgrounds & Transitions
   ========================================================================== */
html body .wp-site-blocks .has-dark-background-color,
html body .wp-site-blocks .tech-marquee-container {
    background: transparent;
}

/* Merge Tech and Projects */
html body .tech-marquee-container.wp-block-group {
    padding-bottom: 0;
}

html body .wp-site-blocks #realizacje {
    position: relative;
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: transparent;
}

/* Global Atmosphere - Unified Glows */
body .wp-site-blocks {
    background: transparent;
    position: relative;
    /* overflow: hidden; Removed for sticky header */
}

body .wp-site-blocks::before {
    display: none;
}

body .wp-site-blocks>* {
    position: relative;
    z-index: 1;
}


body .has-primary-background-color {
    background: linear-gradient(135deg, var(--mwm-primary-dark) 0%, var(--mwm-primary) 100%);
}

body .has-light-background-color,
body #kontakt,
body .services-section {
    background: transparent !important;
}

body #kontakt .wp-block-heading,
body #kontakt p,
body #blog .wp-block-heading {
    color: var(--mwm-neutral) !important;
}

/* Contact cards - equal height */
body #kontakt .wp-block-columns {
    align-items: stretch !important;
}

body #kontakt .wp-block-column {
    display: flex !important;
    align-items: stretch !important;
}

body #kontakt .content-card {
    background: var(--mwm-bg-glass);
    border: 1px solid var(--mwm-border-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    min-height: 239px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contact CTA Box - Full Dark with Green Glow */
body .contact-cta-box {
    background: var(--mwm-bg-dark);
    border: 1px solid rgba(90, 154, 54, 0.4);
    box-shadow:
        0 20px 60px rgba(90, 154, 54, 0.1),
        inset 0 0 20px rgba(90, 154, 54, 0.05);
}

body .contact-cta-box h3,
body .contact-cta-box p {
    color: var(--mwm-light) !important;
}

body .has-light-background-color {
    background: transparent !important;
}

/* Dark text for light sections */
body .has-dark-color {
    color: #0A0A0F;
}

body .has-neutral-dark-color {
    color: rgba(10, 10, 15, 0.7);
}

/* ==========================================================================
   Service Cards - Light Mode
   ========================================================================== */
body .service-card {
    background: var(--mwm-bg-glass);
    border: 1px solid rgba(90, 154, 54, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(90, 154, 54, 0.1);
    transition: all var(--mwm-duration) var(--mwm-ease);
}

body .service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--mwm-primary);
    box-shadow:
        0 24px 48px rgba(90, 154, 54, 0.15),
        0 0 60px rgba(90, 154, 54, 0.1),
        0 0 0 2px var(--mwm-primary);
}

.service-card .wp-block-image {
    animation: none;
    margin-bottom: 1rem;
}

.service-card .wp-block-image img {
    box-shadow: none;
    border-radius: 12px;
}

.service-card:hover .wp-block-image img {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 8px 24px rgba(90, 154, 54, 0.2);
}

/* Primary text in light section */
.has-light-background-color .has-primary-color {
    text-shadow: none;
}

/* ==========================================================================
   Services Section - Dark Mode Restoration
   ========================================================================== */
body .services-section {
    background: var(--mwm-bg-dark);
}

body .service-card-light {
    background: var(--mwm-bg-glass);
    border: 1px solid var(--mwm-border-glass);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body .service-card-light:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--mwm-primary);
    box-shadow: 0 20px 50px var(--mwm-glow);
}

body .service-card-light .wp-block-heading {
    color: var(--mwm-light) !important;
}

body .service-card-light p {
    color: var(--mwm-neutral) !important;
}

body .service-card-light .wp-block-image {
    animation: none;
    margin-bottom: 1rem;
}

body .service-card-light .wp-block-image img {
    box-shadow: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-light:hover .wp-block-image img {
    transform: scale(1.08) rotate(2deg);
}

/* ==========================================================================
   About Section Photo
   ========================================================================== */
body .about-photo img {
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center top;
    width: 100%;
    height: 100%;
}

.about-photo-container {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    body .about-photo img {
        max-height: 350px;
    }
}

/* ==========================================================================
   Tech Stack Badges
   ========================================================================== */
body .tech-logos {
    gap: 1rem;
}

body .tech-badge {
    background: var(--mwm-bg-glass);
    border: 1px solid var(--mwm-border-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s var(--mwm-ease);
}

body .tech-badge:hover {
    border-color: var(--mwm-primary);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px var(--mwm-glow);
}

body .tech-badge p {
    margin: 0;
    white-space: nowrap;
}

/* ==========================================================================
   Tech Stack Marquee
   ========================================================================== */
@keyframes marquee {
    0% {
        transform: translateX(-33.3333%);
    }

    100% {
        transform: translateX(-66.6666%);
    }
}

/* ==========================================================================
   Tech Marquee Section - Professional Design
   ========================================================================== */
.tech-marquee-container {
    width: 100%;
    position: relative;
    background: transparent;
    padding: 1rem 0;
    overflow: hidden;
}

/* Title - Clean and separated */
.tech-marquee-container .wp-block-heading {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem !important;
    letter-spacing: 0.2em;
    color: var(--mwm-primary) !important;
}

/* Marquee wrapper with fade edges */
.tech-marquee-container .tech-marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
    will-change: transform;
    gap: 0;
}

/* Fade edges overlay */
.tech-marquee-container::before,
.tech-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 5;
    pointer-events: none;
}

.tech-marquee-container::before {
    left: 0;
}

.tech-marquee-container::after {
    right: 0;
}

/* Tech items - Premium look */
.tech-marquee-item {
    flex: 0 0 auto;
    padding: 0 3.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mwm-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.8;
    transition: all 0.4s var(--mwm-ease);
    white-space: nowrap;
    position: relative;
}

/* Separator dots between items */
.tech-marquee-item::after {
    content: '•';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mwm-primary);
    opacity: 0.5;
    font-size: 0.6rem;
}

.tech-marquee-item:hover {
    opacity: 1;
    color: var(--mwm-primary);
    text-shadow: 0 0 20px var(--mwm-glow);
}

/* Blog & Projects Sections - Premium Cards */
html body .wp-site-blocks .content-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s var(--mwm-ease);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Projects uniformity - Equal height cards */
#realizacje .wp-block-columns {
    display: flex;
    align-items: stretch;
}

#realizacje .wp-block-column.content-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#realizacje .content-card-image {
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

#realizacje .content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#realizacje .content-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

/* Ensure columns stretch to same height - High Specificity */
html body .services-section .wp-block-columns,
html body .services-section div.wp-block-columns {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap !important;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
    width: 100%;
    gap: 2rem !important;
}

html body .services-section .wp-block-column.content-card,
html body .services-section div.wp-block-column {
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: flex-start;
    align-items: center;
    flex: 0 1 calc(33.33% - 2rem);
    min-width: 300px;
    max-width: 380px;
    margin: 0;
    padding: 2.5rem 1.5rem !important;
}

/* 3+2 layout for services - first row 3 cards, second row 2 cards centered */
@media (min-width: 1025px) {
    html body .services-section .wp-block-columns {
        justify-content: center;
    }

    html body .services-section .wp-block-column.content-card:nth-child(4),
    html body .services-section .wp-block-column.content-card:nth-child(5) {
        flex: 0 1 calc(33.33% - 2rem);
    }
}

/* Mobile adjustments for services */
@media (max-width: 1024px) {
    html body .services-section .wp-block-column.content-card {
        flex: 0 1 calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    html body .services-section .wp-block-column.content-card {
        flex: 0 1 100%;
    }
}

html body .services-section .content-card .content-card-body {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
    padding: 0;
}

.icon-wrapper {
    color: var(--mwm-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s var(--mwm-ease);
}

.content-card:hover .icon-wrapper {
    transform: scale(1.1) translateY(-5px);
}

.content-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent, rgba(90, 154, 54, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

body .content-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(90, 154, 54, 0.4);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(90, 154, 54, 0.1);
}

.content-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.content-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(10, 10, 15, 0.8));
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--mwm-ease);
}

.content-card:hover .content-card-image img {
    transform: scale(1.15);
}

.content-card-body {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

body .content-card-body h3 {
    margin: 1rem 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

html body .services-section .content-card-body svg {
    display: block;
}

/* Ensure the div surrounding the SVG is also centered */
html body .services-section .content-card-body div:has(svg) {
    display: flex;
    justify-content: center;
    width: 100%;
}

html body .services-section .content-card-body h3.wp-block-heading {
    text-align: center;
    width: 100%;
    margin-top: 0;
}

/* Reset drop cap for services headers to keep them centered */
html body .services-section .content-card-body h3::first-letter {
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
}

html body .services-section .content-card-body p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

.content-info {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mwm-primary);
    margin-bottom: 0.5rem;
}

.content-card-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: rgba(90, 154, 54, 0.1);
    color: var(--mwm-primary);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Contact CTA - Bottom Section
   ========================================================================== */
body .contact-cta-box {
    background: linear-gradient(135deg, rgba(90, 154, 54, 0.15) 0%, rgba(123, 192, 83, 0.08) 100%);
    border: 1px solid rgba(90, 154, 54, 0.3);
    border-radius: 40px;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(90, 154, 54, 0.1);
}

.contact-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(90, 154, 54, 0.15) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

body .contact-cta-box .wp-block-button__link {
    font-size: 1.1rem;
    padding: 1.5rem 4rem;
    box-shadow: 0 0 30px var(--mwm-glow);
}

/* CTA Outline Button - Better visibility with green border */
body .contact-cta-box .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid var(--mwm-primary) !important;
    color: var(--mwm-primary) !important;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

body .contact-cta-box .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--mwm-primary) !important;
    color: var(--mwm-bg-dark) !important;
    box-shadow: 0 0 30px var(--mwm-glow);
}

/* ==========================================================================
   Unified Card Hover Effect - All cards same as #realizacje
   ========================================================================== */
html body .content-card {
    transition: all 0.5s var(--mwm-ease);
}

html body .content-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(90, 154, 54, 0.4);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(90, 154, 54, 0.15);
}

html body .content-card:hover .content-card-image img {
    transform: scale(1.15);
}

html body .content-card:hover .icon-wrapper {
    transform: scale(1.1) translateY(-5px);
}

html body .content-card:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Testimonial Section
   ========================================================================== */
.testimonial-section {
    background: radial-gradient(ellipse at center, rgba(90, 154, 54, 0.08) 0%, transparent 70%);
}

body .testimonial-card {
    background: var(--mwm-bg-glass);
    border: 1px solid var(--mwm-border-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 4px;
    background: linear-gradient(90deg, var(--mwm-primary), var(--mwm-accent), var(--mwm-primary));
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

/* ==========================================================================
   Animated Particles Background
   ========================================================================== */
@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-30px) translateX(-5px);
        opacity: 0.4;
    }

    75% {
        transform: translateY(-15px) translateX(-10px);
        opacity: 0.5;
    }
}

.wp-block-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(90, 154, 54, 0.4) 1px, transparent 0),
        radial-gradient(2px 2px at 40% 70%, rgba(123, 192, 83, 0.3) 1px, transparent 0),
        radial-gradient(2px 2px at 60% 40%, rgba(90, 154, 54, 0.35) 1px, transparent 0),
        radial-gradient(3px 3px at 80% 60%, rgba(123, 192, 83, 0.25) 1px, transparent 0),
        radial-gradient(2px 2px at 10% 80%, rgba(90, 154, 54, 0.3) 1px, transparent 0),
        radial-gradient(2px 2px at 90% 20%, rgba(123, 192, 83, 0.35) 1px, transparent 0);
    animation: particle-float 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Scroll Indicator Animation
   ========================================================================== */
@keyframes bounce-scroll {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

.wp-block-cover .has-neutral-color:last-child {
    animation: bounce-scroll 2s ease-in-out infinite;
}

/* ==========================================================================
   Counter Number Animation
   ========================================================================== */
@keyframes count-glow {

    0%,
    100% {
        text-shadow: 0 0 20px var(--mwm-glow);
    }

    50% {
        text-shadow: 0 0 40px var(--mwm-glow), 0 0 60px var(--mwm-glow);
    }
}

.wp-block-column .has-primary-color[style*="2.5rem"] {
    animation: count-glow 3s ease-in-out infinite;
}

/* ==========================================================================
   Text Glow Effects
   ========================================================================== */
body .has-primary-color {
    color: var(--mwm-primary);
    text-shadow: 0 0 20px var(--mwm-glow);
}

body .has-accent-color {
    color: var(--mwm-accent);
    text-shadow: 0 0 30px rgba(123, 192, 83, 0.5);
}

body .has-light-color {
    color: var(--mwm-text-primary);
}

body .has-neutral-color {
    color: var(--mwm-text-secondary);
}

/* ==========================================================================
   Icon Animations
   ========================================================================== */
h3:first-letter {
    font-size: 1.5em;
}

/* Service card icons */
.wp-block-column .wp-block-group h3 {
    transition: all var(--mwm-duration) var(--mwm-ease);
}

.wp-block-column .wp-block-group:hover h3 {
    transform: scale(1.1);
}

/* ==========================================================================
   Responsive Design (RWD) 2026
   ========================================================================== */

/* Large Desktop */
@media (min-width: 1400px) {
    .wp-block-columns.alignwide {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .wp-block-columns.alignwide {
        flex-wrap: wrap;
    }

    body .wp-block-columns.alignwide>.wp-block-column {
        flex-basis: 48%;
        margin-bottom: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body .wp-block-columns.alignwide>.wp-block-column {
        flex-basis: 100%;
    }

    body .has-hero-font-size {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    body .wp-block-cover {
        min-height: 90vh;
    }

    body .wp-block-group[style*="padding"] {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Stack About section */
    body .wp-block-columns[style*="40%"] {
        flex-direction: column;
    }

    body .wp-block-columns[style*="40%"]>.wp-block-column {
        flex-basis: 100%;
    }

    .wp-block-columns[style*="40%"] .wp-block-image {
        max-width: 250px;
        margin: 0 auto 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    body .wp-block-button__link {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    body .wp-block-group[style*="border"] {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Focus & Accessibility
   ========================================================================== */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
    outline: 2px solid var(--mwm-accent);
    outline-offset: 4px;
}

/* ==========================================================================
   Smooth Reveal Animation
   ========================================================================== */
@keyframes reveal {
    from {
        opacity: 0.01;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-block-group.alignfull {
    animation: reveal 0.8s var(--mwm-ease) forwards;
}

/* Staggered animations */
.wp-block-columns>.wp-block-column:nth-child(1) {
    animation-delay: 0.1s;
}

.wp-block-columns>.wp-block-column:nth-child(2) {
    animation-delay: 0.2s;
}

.wp-block-columns>.wp-block-column:nth-child(3) {
    animation-delay: 0.3s;
}

.wp-block-columns>.wp-block-column:nth-child(4) {
    animation-delay: 0.4s;
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--mwm-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--mwm-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mwm-accent);
}

/* ==========================================================================
   Selection Color
   ========================================================================== */
::selection {
    background: var(--mwm-primary);
    color: var(--mwm-bg-dark);
}

/* ==========================================================================
   Header Styles - Clean CSS (Refactored from !important overrides)
   Using high specificity selectors instead of !important
   ========================================================================== */
html body header.wp-block-group.site-header,
html body .wp-site-blocks header.site-header {
    display: flex;
    visibility: visible;
    opacity: 1;
    z-index: 999999;
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 1rem 4rem;
    min-height: 80px;
    border-bottom: none;
    border-top: none;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust for WordPress Admin Bar */
html body.admin-bar header.site-header {
    top: calc(32px + 20px);
}

@media screen and (max-width: 782px) {
    html body.admin-bar header.site-header {
        top: calc(46px + 20px);
    }
}

/* Scrolled state */
html body header.site-header.scrolled,
html body .wp-site-blocks header.site-header.scrolled {
    top: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid #7BC053;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

html body.admin-bar header.site-header.scrolled {
    top: 32px;
}

@media screen and (max-width: 782px) {
    html body.admin-bar header.site-header.scrolled {
        top: 46px;
    }
}

html body header.site-header * {
    visibility: visible;
    opacity: 1;
}

/* Logo Visibility */
html body header.site-header .site-logo img,
html body header.site-header .wp-block-image img {
    display: block;
    visibility: visible;
    opacity: 1;
    width: auto;
    height: auto;
    max-height: 50px;
}

/* Navigation Visibility */
html body header.site-header .wp-block-navigation,
html body header.site-header .wp-block-navigation-item,
html body header.site-header .wp-block-navigation-link {
    display: flex;
    visibility: visible;
    opacity: 1;
    color: #ffffff;
}

html body header.site-header.is-stuck {
    background: rgba(10, 10, 15, 0.9);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
html body footer.site-footer.wp-block-group {
    background: transparent;
    position: relative;
    z-index: 10;
}

/* Footer Logo - Bigger */
html body footer.site-footer .site-logo-footer img {
    max-height: 70px;
    height: auto;
    width: auto;
    margin-bottom: 1.5rem;
    animation: none;
    box-shadow: none;
    border-radius: 0;
    filter: brightness(1.2) contrast(1.1);
    mix-blend-mode: screen;
}

body .site-footer .site-logo-footer {
    animation: none;
    margin-bottom: 0;
}

/* Footer columns - prevent overlap */
body .site-footer .wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

body .site-footer .wp-block-column {
    flex: 1 1 auto;
    min-width: 150px;
}

body .site-footer .wp-block-column:first-child {
    flex: 1 1 280px;
    max-width: 350px;
}

/* Footer headings */
html body footer.site-footer h4.wp-block-heading {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Footer navigation */
body .site-footer .wp-block-navigation {
    display: block !important;
}

body .site-footer .wp-block-navigation-item {
    display: block;
    margin-bottom: 0.5rem;
}

body .site-footer .wp-block-navigation-item a {
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

body .site-footer .wp-block-navigation-item a::after {
    display: none;
}

/* Footer bottom row - prevent overlap */
body .site-footer>.wp-block-group:last-of-type {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
}

body .site-footer>.wp-block-group:last-of-type p {
    margin: 0;
    white-space: nowrap;
}

/* Remove glow from footer images */
body .site-footer .wp-block-image img {
    box-shadow: none !important;
}

body .site-footer .wp-block-image {
    animation: none !important;
}

/* Footer separator */
body .site-footer .wp-block-separator {
    margin: 0 auto 2rem;
    opacity: 0.3;
    animation: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile footer */
@media (max-width: 768px) {
    body .site-footer .wp-block-columns {
        flex-direction: column;
    }

    body .site-footer .wp-block-column {
        flex-basis: 100% !important;
        width: 100%;
    }

    body .site-footer .wp-block-column:first-child {
        max-width: 100%;
    }

    body .site-footer>.wp-block-group:last-of-type {
        flex-direction: column;
        text-align: center;
    }

    body .site-footer>.wp-block-group:last-of-type p {
        white-space: normal;
    }
}

/* ==========================================================================
   Gallery Section - Bento Grid
   ========================================================================== */
.gallery-section {
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(90, 154, 54, 0.03) 0%, transparent 60%);
}

.bento-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
    width: 100%;
}

.bento-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.4s ease;
    opacity: 0.75;
}

.bento-item:hover {
    transform: translateY(-4px);
    border-color: var(--mwm-primary);
    box-shadow: 0 8px 24px -8px rgba(90, 154, 54, 0.15);
    z-index: 2;
}

.bento-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Overlay with text */
.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bento-item:hover .bento-overlay {
    transform: translateY(0);
}

.bento-overlay span {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--mwm-primary);
    padding-bottom: 0.25rem;
}

/* Grid Spanning */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .bento-grid-container {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .bento-item {
        height: 200px;
    }

    .bento-overlay {
        transform: translateY(0);
        padding: 0.75rem;
    }
}