/**
 * Optimized and Responsive Stylesheet
 * Author: Gemini
 * Version: 3.3
 * Description: A mobile-first, fully responsive CSS for the website, with an emphasized exclusions section.
 */

/* -------------------------------------------------------------------------- */
/* :ROOT & BASE STYLES                       */
/* -------------------------------------------------------------------------- */

:root {
    --primary-color: #2563eb; 
    --primary-hover: #1d4ed8; 
    --primary-light: #dbeafe; 
    --secondary-color: #0f172a; 
    --accent-color: #10b981; 
    --danger-color: #ef4444;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --max-width: 1200px;
    --transition: all 0.2s ease;
    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    --sticky-nav-height: 70px; 
}

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

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    font-size: 18px; 
    line-height: 1.7; 
    color: var(--text-primary); 
    background-color: var(--background-white); 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
    padding-top: var(--sticky-nav-height); 
}

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

/* -------------------------------------------------------------------------- */
/* TYPOGRAPHY                                 */
/* -------------------------------------------------------------------------- */

h1, h2, h3, h4 { 
    font-weight: 800; 
    line-height: 1.1; 
    letter-spacing: -0.02em; 
    margin-bottom: 1rem; 
}

h1 { 
    font-size: clamp(2.2rem, 6vw, 3.2rem); 
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

h2 { 
    font-size: clamp(2rem, 5vw, 2.8rem); 
    margin-bottom: 1.5rem; 
    text-align: center; 
}

h3 { 
    font-size: 1.5rem; 
    font-weight: 700; 
}

h4 { 
    font-size: 1.25rem; 
    font-weight: 600; 
    color: var(--primary-color); 
    margin-bottom: 0.75rem; 
}

p { 
    margin-bottom: 1rem; 
    line-height: 1.8; 
}

.section-intro { 
    text-align: center; 
    max-width: 700px; 
    margin: 0 auto 3rem; 
    color: var(--text-secondary); 
    font-size: 1.125rem; 
}

/* -------------------------------------------------------------------------- */
/* COMPONENTS                                */
/* -------------------------------------------------------------------------- */

/* --- Buttons --- */
.btn { 
    display: inline-flex; /* FIX: Use flex to center content vertically */
    align-items: center;   /* FIX: Center content vertically */
    justify-content: center; /* FIX: Center content horizontally */
    padding: 14px 28px; 
    font-size: 16px; 
    font-weight: 600; 
    text-decoration: none; 
    border-radius: 12px; 
    transition: var(--transition); 
    cursor: pointer; 
    border: none; 
    text-align: center; 
    position: relative; 
    overflow: hidden; 
    white-space: nowrap;
    min-height: 44px; /* Mobile touch target minimum */
    min-width: 44px;  /* Mobile touch target minimum */
}
.btn-primary { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white; 
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { 
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e40af 100%);
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}
.btn-secondary { 
    background-color: var(--secondary-color); 
    color: white; 
    box-shadow: var(--shadow-md); 
}
.btn-secondary:hover { 
    background-color: #020617; 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-lg); 
}
.btn-outline { 
    background-color: transparent; 
    color: var(--primary-color); 
    border: 2px solid var(--primary-color); 
    font-weight: 600; 
}
.btn-outline:hover { 
    background-color: var(--primary-color); 
    color: white; 
    box-shadow: var(--shadow-md); 
}
.btn-linkedin { 
    background-color: #0077B5; 
    color: white; 
    border: 2px solid #0077B5; 
}
.btn-linkedin:hover { 
    background-color: #005582; 
    border-color: #005582; 
    box-shadow: var(--shadow-md); 
}
.btn-linkedin i { 
    margin-right: 8px; 
}
.btn-large { 
    padding: 18px 36px; 
    font-size: 18px; 
}

/* --- Forms --- */
.form-group { 
    margin-bottom: 1.5rem; 
}

/* Progressive Disclosure Multi-Step Form */
.form-step {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step.hidden {
    display: none !important;
}

.form-step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-step-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.form-navigation .btn {
    flex: 1;
    max-width: 200px;
}

/* Desktop: Show all steps as one form */
@media (min-width: 768px) {
    .form-step {
        display: block !important;
        margin-bottom: 2rem;
    }
    
    .form-step:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 2rem;
    }
    
    /* Hide step navigation buttons on desktop, but keep submit button visible */
    .form-navigation {
        display: none;
    }
    
    /* Show only the final form navigation with submit button */
    .form-step:last-child .form-navigation,
    #step-3 .form-navigation {
        display: flex !important;
        justify-content: center; /* Center the submit button */
        visibility: visible !important;
    }
    
    /* Hide the back button on desktop since all steps are visible */
    .form-step:last-child .form-navigation .btn-secondary,
    #step-3 .form-navigation .btn-secondary {
        display: none;
    }
    
    /* Style the submit button prominently on desktop */
    .form-step:last-child .form-navigation .btn-primary,
    #step-3 .form-navigation .btn-primary,
    .contact-form-button-wrapper .btn-primary {
        min-width: 250px;
        padding: 16px 32px;
        font-size: 16px;
        font-weight: 600;
    }
    
    /* Center the submit button wrapper */
    .contact-form-button-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .form-step-header {
        margin-bottom: 1rem;
    }
    
    .form-step-header h3 {
        font-size: 1.1rem;
        text-align: left;
    }
    
    .progress-bar {
        display: none; /* Hide progress bar on desktop */
    }
}

@media (max-width: 767px) {
    .form-navigation {
        flex-direction: column;
    }
    
    .form-navigation .btn {
        width: 100%;
        max-width: none;
    }
    
    /* Show step progress more prominently on mobile */
    .form-step-header {
        position: sticky;
        top: calc(var(--sticky-nav-height) + 10px);
        background: white;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
        z-index: 10;
        margin-bottom: 1.5rem;
    }
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-message.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-message.success-message {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Exit Intent Popup Styles */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.exit-popup-overlay.popup-enter {
    animation: fadeIn 0.3s ease forwards;
}

.exit-popup-overlay.popup-exit {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.exit-popup-modal {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    animation: popupEnter 0.3s ease forwards;
    position: relative;
}

@keyframes popupEnter {
    to {
        transform: scale(1) translateY(0);
    }
}

.exit-popup-header {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.exit-popup-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.exit-popup-close:hover {
    background-color: var(--background-light);
    color: var(--text-primary);
}

.exit-popup-content {
    padding: 1.5rem;
}

.exit-popup-offer {
    text-align: center;
    margin-bottom: 2rem;
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.exit-popup-offer h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.exit-popup-offer p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.popup-benefits {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 12px;
}

.popup-benefits li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-weight: 500;
}

.popup-urgency {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    border: 1px solid #f59e0b;
}

.urgency-text {
    color: #92400e;
    font-weight: 600;
    font-size: 0.9rem;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-email {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.popup-email:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.popup-cta-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.popup-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.popup-cta-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.popup-privacy {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

.exit-popup-social-proof {
    padding: 1rem 1.5rem;
    text-align: center;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 20px 20px;
}

.exit-popup-social-proof small {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.popup-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.popup-success h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.popup-close-success {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
}

.popup-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .exit-popup-modal {
        max-width: 95vw;
        margin: 10px;
    }
    
    .exit-popup-header,
    .exit-popup-content {
        padding: 1rem;
    }
    
    .exit-popup-header h3 {
        font-size: 1.25rem;
        padding-right: 2rem;
    }
    
    .popup-benefits {
        font-size: 0.9rem;
    }
    
    .urgency-text {
        font-size: 0.85rem;
    }
}
.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 600; 
    color: var(--text-primary); 
}
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; 
    padding: 14px 18px; 
    border: 2px solid var(--border-color); 
    border-radius: 10px; 
    font-size: 16px; 
    font-family: inherit; 
    transition: var(--transition); 
    background-color: var(--background-light); 
    min-height: 48px; /* Enhanced touch target for form elements */
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); 
    background-color: white; 
}

/* Nowoczesny focus dla dostępności */
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
.form-consent { 
    margin: 2rem 0; 
    padding: 1.5rem; 
    background-color: var(--background-light); 
    border-radius: 10px; 
}
.form-consent-item { 
    display: flex; 
    align-items: flex-start; 
    margin-bottom: 1rem; 
}
.form-consent-item:last-child { 
    margin-bottom: 0; 
}
.form-consent-item input[type="checkbox"] { 
    margin-right: 0.75rem; 
    margin-top: 0.25rem; 
    flex-shrink: 0; 
    accent-color: var(--primary-color);
    min-width: 18px; /* Enhanced touch target for checkboxes */
    min-height: 18px;
    transform: scale(1.2); /* Slightly larger for better accessibility */ 
}
.form-consent-item label { 
    font-size: 0.875rem; 
    color: var(--text-secondary); 
    cursor: pointer; 
    line-height: 1.5; 
}
.form-consent-item a { 
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: 600; 
}
.form-consent-item a:hover { 
    text-decoration: underline; 
}

/* --- Loading & Messages --- */
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading {
    color: transparent;
    pointer-events: none;
}
.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}
.success-message, .error-message {
    padding: 16px 24px;
    color: white;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    animation: slideIn 0.3s ease;
}
.success-message { background-color: var(--accent-color); }
.error-message { background-color: var(--danger-color); }
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    min-height: 600px; 
    border-radius: 12px;
    position: relative;
}
.close-modal {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000; 
}
.close-modal:hover, .close-modal:focus { color: #000; }

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1001; 
    display: none; 
    flex-direction: column;
    text-align: center;
    gap: 15px;
    font-size: 0.9rem;
}
.cookie-banner-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 15px;
}
.cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-banner p a { color: var(--accent-color); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; justify-content: center; }
.cookie-banner .btn-cookie { 
    padding: 10px 15px;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap; 
    transition: background-color 0.2s ease;
}
.btn-accept-cookies { background-color: var(--accent-color); color: white; }
.btn-accept-cookies:hover { background-color: #0f9670; }
.btn-decline-cookies { background-color: var(--text-secondary); color: white; }
.btn-decline-cookies:hover { background-color: #525f70; }

/* --- Accessibility --- */
.skip-link {
    position: absolute;
    top: -50px; 
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0; 
    z-index: 10001; 
    transition: top 0.3s ease;
}
.skip-link:focus { top: var(--sticky-nav-height); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* -------------------------------------------------------------------------- */
/* NAVIGATION                                */
/* -------------------------------------------------------------------------- */

.sticky-nav { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    background-color: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px); 
    box-shadow: var(--shadow-sm); 
    z-index: 1000; 
    height: var(--sticky-nav-height); 
    display: flex; 
    align-items: center; 
}
.sticky-nav .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    height: var(--sticky-nav-height); /* Ensure full height */
}
.sticky-nav .logo a { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--primary-color); 
    text-decoration: none; 
    white-space: nowrap;
}
.sticky-nav .logo span { color: var(--text-primary); }
.nav-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-end;
    overflow: hidden; /* Prevent overflow */
    height: 100%; /* Full height to align all children */
}

/* --- Desktop Navigation --- */
.sticky-nav nav ul { 
    display: none; /* Hidden on mobile by default */
    list-style: none;
    align-items: center;
    height: 100%;
}

/* Force mobile menu to show on mobile only when active */
@media screen and (max-width: 767px) {
    .sticky-nav nav ul {
        display: none !important; /* Force hide by default on mobile */
    }
    
    /* Multiple selectors to ensure CSS applies */
    .sticky-nav nav ul.active,
    .sticky-nav #main-nav ul.active,
    #main-nav ul.active,
    .sticky-nav .nav-wrapper nav ul.active,
    .sticky-nav .container .nav-wrapper nav ul.active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: var(--sticky-nav-height) !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: 100% !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1) !important;
        padding: 1rem 0 !important;
        gap: 0 !important;
        z-index: 99999 !important;
        opacity: 1 !important;
        border: 1px solid #e2e8f0 !important;
        margin: 0 !important;
        list-style: none !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    /* Force white background on container levels too */
    .sticky-nav .nav-wrapper:has(ul.active),
    .sticky-nav #main-nav:has(ul.active) {
        background: transparent !important;
    }
    
    .sticky-nav nav ul.active::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: #ffffff !important;
        z-index: -1 !important;
    }
    
    .sticky-nav nav ul.active li {
        width: 100% !important;
        text-align: center !important;
        display: block !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    .sticky-nav nav ul.active li a {
        display: block !important;
        padding: 1rem !important;
        text-decoration: none !important;
        color: #475569 !important;
        font-weight: 600 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        transition: all 0.2s ease !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    .sticky-nav nav ul.active li a:hover {
        color: #2563eb !important;
        background: #f8fafc !important;
        background-color: #f8fafc !important;
    }
}
.sticky-nav .btn-nav-cta, .language-switcher {
    display: none; /* Hidden on mobile by default */
    align-self: center; /* Center vertically */
}

/* --- Hamburger Menu --- */
.hamburger-menu { 
    display: block; 
    cursor: pointer; 
    padding: 0.5rem; 
    margin-left: 1rem; 
    z-index: 1001;
    min-height: 44px; /* Touch target minimum */
    min-width: 44px;  /* Touch target minimum */
    background: none;
    border: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.hamburger-menu:hover, .hamburger-menu:focus {
    background-color: var(--primary-light);
}
.hamburger-menu div { 
    width: 25px; 
    height: 3px; 
    background-color: var(--text-primary); 
    margin: 5px 0; 
    transition: 0.3s; 
}
.hamburger-menu.active .bar1 { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger-menu.active .bar2 { opacity: 0; }
.hamburger-menu.active .bar3 { transform: rotate(45deg) translate(-5px, -6px); }

/* --- Mobile Navigation (Expanded) --- */
.sticky-nav nav ul.active,
.sticky-nav #main-nav ul.active,
nav#main-nav ul.active {
    display: flex; 
    flex-direction: column;
    position: absolute;
    top: var(--sticky-nav-height);
    left: 0;
    width: 100%;
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    gap: 0;
    z-index: 9999;
    opacity: 1 !important;
    border: 1px solid var(--border-color);
}

/* Dodatkowy backup dla problemów z cache */
@media screen and (max-width: 768px) {
    .sticky-nav nav ul.active,
    .sticky-nav #main-nav ul.active,
    nav#main-nav ul.active {
        background: rgba(255, 255, 255, 1) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}
.sticky-nav nav ul li {
    width: 100%;
    text-align: center;
}
.sticky-nav nav ul li a {
    text-decoration: none; 
    color: var(--text-secondary); 
    font-weight: 600; 
    transition: color 0.2s ease; 
    padding: 1rem;
    display: block; 
    border-bottom: 1px solid var(--border-color);
    min-height: 44px; /* Touch target minimum */
    display: flex;
    align-items: center;
    justify-content: center;
}
.sticky-nav nav ul li a:hover, .sticky-nav nav ul li a.active { 
    color: var(--primary-color); 
    border-bottom-color: var(--primary-color);
}
.language-switcher a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    height: 44px; /* Consistent height */
    min-height: 44px; /* Touch target minimum */
    min-width: 44px;  /* Touch target minimum */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.language-switcher a.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}
.language-switcher a:not(.active):hover {
    background-color: var(--background-light);
}

/* -------------------------------------------------------------------------- */
/* SECTIONS                                  */
/* -------------------------------------------------------------------------- */
section, .hero, .trust-bar, .newsletter-signup-section, .footer {
    padding: 60px 0;
}

@keyframes pulse { 
    0%, 100% { transform: scale(1); opacity: 0.5; } 
    50% { transform: scale(1.1); opacity: 0.3; } 
}

/* --- Hero Section --- */
.hero { 
    text-align: center; 
    position: relative; 
    overflow: hidden; 
    background: var(--gradient-hero);
}
.hero::before { 
    content: ''; 
    position: absolute; 
    top: -50%; 
    right: -50%; 
    width: 200%; 
    height: 200%; 
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%); 
    animation: pulse 20s ease-in-out infinite; 
}
.profile-image-container { margin-bottom: 2rem; position: relative; z-index: 1; display: inline-block; }
.profile-image { 
    width: 160px; 
    height: 160px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 5px solid white; 
    box-shadow: var(--shadow-xl); 
    transition: var(--transition); 
}
.profile-image:hover { transform: scale(1.05) rotate(5deg); }
.hero-content { position: relative; z-index: 1; }
.hero-subtitle { 
    font-size: 1.25rem; 
    color: var(--text-secondary); 
    max-width: 700px; 
    margin: 0 auto 2.5rem; 
    font-weight: 500; 
}
.hero-cta { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem; 
}

/* Thumb-zone optimization for mobile CTAs */
@media (max-width: 767px) {
    .hero-cta {
        position: relative;
        padding-bottom: 1rem;
    }
    
    /* Primary CTA positioned in comfortable thumb reach */
    .hero-cta .btn-primary {
        order: 1;
        position: sticky;
        bottom: 20px;
        z-index: 100;
        box-shadow: var(--shadow-xl);
        font-weight: 700;
    }
    
    /* Secondary actions positioned above */
    .hero-cta .btn-secondary {
        order: 2;
    }
    
    .hero-cta .btn-linkedin {
        order: 3;
    }
}
.hero-cta .btn {
    width: 100%;
    max-width: 320px;
}
.hero-cta .btn-outline { 
    border-color: var(--secondary-color); 
    color: var(--secondary-color); 
}
.hero-cta .btn-outline:hover { 
    background-color: var(--secondary-color); 
    color: white; 
}
.hero-proof { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; 
    margin-top: 2.5rem; 
    padding-top: 2.5rem; 
    border-top: 1px solid var(--border-color); 
}
.proof-item { text-align: center; }
.proof-number { 
    font-size: 2.2rem; 
    font-weight: 800; 
    color: var(--primary-color); 
    line-height: 1; 
}
.proof-label { 
    font-size: 0.875rem; 
    color: var(--text-secondary); 
    margin-top: 0.5rem; 
}

/* --- Trust Bar --- */
.trust-bar { 
    background-color: var(--secondary-color); 
    color: white; 
    padding: 20px 0; 
    text-align: center; 
    font-size: 16px; 
}
.trust-bar .container { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 20px; 
    flex-wrap: wrap; 
}
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-item strong { color: var(--accent-color); }

/* --- About Me Section --- */
.about-me .container { 
    max-width: 900px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 2rem; 
}
.about-me-image-container { flex-shrink: 0; width: 200px; height: 200px; }
.about-me-image { 
    width: 100%; 
    height: 100%; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 4px solid var(--primary-light); 
    box-shadow: var(--shadow-lg); 
}
.about-me-text { text-align: left; }
.about-me h2 { text-align: center; }
.about-me p { font-size: 1.1rem; color: var(--text-secondary); }
.about-me strong { color: var(--text-primary); font-weight: 600; }

/* --- Approach Section --- */
.approach { background-color: var(--background-light); }
.approach-grid { 
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; 
    margin-top: 3rem; 
}
.approach-item { 
    text-align: center; 
    padding: 1rem; 
}
.approach-icon { 
    width: 60px; 
    height: 60px; 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%); 
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 1.5rem; 
    color: white; 
    font-size: 28px; 
    transform: rotate(-5deg); 
    transition: var(--transition); 
}
.approach-icon i { font-size: 1.2em; }
.approach-item:hover .approach-icon { transform: rotate(0deg) scale(1.1); }
.approach-item h3 { color: var(--text-primary); margin-bottom: 0.75rem; font-size: 1.15rem; }
.approach-item p { color: var(--text-secondary); font-size: 0.9rem; }

/* --- Process Section --- */
.process-steps { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    margin-top: 3rem; 
}
.process-step { text-align: center; padding: 1rem; }
.step-number { 
    width: 60px; 
    height: 60px; 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%); 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin: 0 auto 1.5rem; 
}
.process-step h3 { font-size: 1.25rem; }

/* --- Client Panel Section --- */
.client-panel {
    background: linear-gradient(135deg, var(--background-light) 0%, #f0f9ff 100%);
    padding: 4rem 0;
}

.panel-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.panel-feature {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.panel-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.panel-feature .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.panel-feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.panel-feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.panel-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 20px;
    text-align: center;
    color: white;
}

.panel-cta-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.panel-cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.panel-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.panel-cta-buttons .btn {
    min-width: 200px;
    flex: 0 0 auto;
}

.panel-cta .btn {
    background: white;
    color: var(--primary-color);
    border: none;
}

.panel-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.panel-cta .btn:hover {
    background: var(--background-light);
    transform: translateY(-2px);
}

.panel-cta .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* --- Services Section --- */
.services-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    margin-top: 3rem; 
}
.service-card { 
    padding: 2rem; 
    border: 1px solid rgba(255, 255, 255, 0.8); 
    border-radius: 20px; 
    transition: var(--transition); 
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); 
    position: relative; 
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.service-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 4px; 
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%); 
    transform: scaleX(0); 
    transition: var(--transition); 
}
.service-card:hover { 
    border-color: var(--primary-light); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px) scale(1.02); 
}
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { font-size: 1.75rem; }
.service-card p { font-size: 1.125rem; }
.service-card ul { list-style: none; }
.service-card li { padding: 0.75rem 0 0.75rem 2rem; position: relative; color: var(--text-secondary); }
.service-card li:before { 
    content: "✓"; 
    position: absolute; 
    left: 0; 
    color: var(--accent-color); 
    font-weight: bold; 
    font-size: 1.25rem; 
}

/* --- Results Section --- */
.results-reimagined { background-color: var(--background-light); }
.results-cards-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    margin-top: 2rem; 
}
.result-metric-card { 
    background-color: var(--background-white); 
    padding: 2rem; 
    border-radius: 16px; 
    box-shadow: var(--shadow-lg); 
    text-align: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    display: flex; 
    flex-direction: column; 
}
.result-metric-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); }
.result-metric-card .metric-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }
.result-metric-card .metric-value { font-size: 2.5rem; font-weight: 800; color: var(--accent-color); margin-bottom: 0.5rem; }
.result-metric-card .metric-label { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; }
.result-metric-card .metric-description { font-size: 0.95rem; color: var(--text-secondary); flex-grow: 1; }
.results-reimagined .results-cta { 
    text-align: center; 
    margin-top: 3rem; 
}

/* Mobile thumb-zone optimization for results CTA */
@media (max-width: 767px) {
    .results-reimagined .results-cta .btn {
        position: sticky;
        bottom: 20px;
        z-index: 99;
        box-shadow: var(--shadow-xl);
        max-width: calc(100vw - 40px);
        margin: 0 20px;
    }
    
    /* Floating CTA bar for mobile */
    body {
        padding-bottom: 80px; /* Make space for floating CTA */
    }
    
    .mobile-floating-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
        padding: 12px 20px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-floating-cta .btn {
        width: 100%;
        background: white;
        color: var(--primary-color);
        font-weight: 700;
        margin: 0;
        border: none;
        box-shadow: none;
        position: relative;
    }
    
    .mobile-floating-cta .btn:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: none;
    }
}

/* --- Testimonials Section --- */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
.testimonial-card-new { 
    background-color: var(--background-light); 
    border-radius: 16px; 
    padding: 2rem; 
    box-shadow: var(--shadow-md); 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column; 
}
.testimonial-card-new:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.testimonial-header { display: flex; align-items: center; margin-bottom: 1.5rem; }
.testimonial-client-image { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-right: 1rem; border: 3px solid var(--primary-light); }
.testimonial-client-info h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.testimonial-client-info p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 0; }
.testimonial-quote-icon { font-size: 2rem; color: var(--primary-color); opacity: 0.3; margin-bottom: 0.5rem; }
.testimonial-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; flex-grow: 1; }
.testimonial-text p { margin-bottom: 0.75rem; }
.testimonials-cta { text-align: center; }

/* --- Why Me Section --- */
.why-me { background-color: var(--background-light); }
.why-me-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    margin-top: 3rem; 
}
.why-me-item { 
    text-align: center; 
    padding: 2rem; 
    background-color: var(--background-white); 
    border-radius: 16px; 
    transition: var(--transition); 
}
.why-me-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-me-icon { font-size: 3rem; margin-bottom: 1rem; }
.why-me-icon i { font-size: 1em; }

/* --- FAQ Section --- */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
.faq-item { background-color: var(--background-light); padding: 1.5rem; border-radius: 12px; }
.faq-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.faq-item h3 { color: var(--primary-color); font-size: 1.125rem; }

/* --- Exclusions Section --- */
.exclusions { 
    background-color: var(--background-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.exclusions h2 {
    color: var(--danger-color);
}
.exclusions-grid { 
    display: grid; 
    gap: 1.5rem; 
    margin-top: 3rem; 
    grid-template-columns: repeat(2, 1fr); 
}
.exclusion-item { 
    text-align: center; 
    padding: 2rem 1.5rem; 
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background-color: var(--background-light);
    transition: var(--transition);
}
.exclusion-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(239, 68, 68, 0.4);
}
.exclusion-icon { 
    font-size: 2.5rem; 
    margin-bottom: 1rem; 
    display: block; 
    color: var(--danger-color);
}
.exclusion-icon i { font-size: 1em; }
.exclusion-item h3 { 
    font-size: 1.125rem;
    color: var(--text-primary);
}
.exclusion-item p { 
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* --- Newsletter Section --- */
.newsletter-signup-section { 
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1e293b 100%); 
    color: white; 
    position: relative; 
    overflow: hidden; 
}
.newsletter-signup-section::before { 
    content: ''; 
    position: absolute; 
    top: -50%; 
    left: -50%; 
    width: 200%; 
    height: 200%; 
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%); 
    animation: pulse 15s ease-in-out infinite; 
}
.newsletter-signup-section .container { position: relative; z-index: 1; text-align: center; }
.newsletter-signup-section h3 { font-size: 1.75rem; color: white; }
.newsletter-signup-section p.section-intro { color: rgba(255,255,255,0.85); margin-bottom: 2.5rem; }
.newsletter-signup-form { max-width: 600px; margin: 0 auto; }
.newsletter-signup-form .form-fields-group { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1rem; 
    margin-bottom: 1rem; 
}
.newsletter-signup-form input[type="text"], 
.newsletter-signup-form input[type="email"] { 
    width: 100%; 
    padding: 16px 24px; 
    border: none; 
    border-radius: 12px; 
    font-size: 16px; 
    background-color: rgba(255, 255, 255, 0.95); 
    color: var(--text-primary); 
}
.newsletter-signup-form input:focus { 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3); 
}
.newsletter-signup-form .newsletter-button-wrapper { margin-top: 1rem; }
.newsletter-signup-form .form-consent { 
    margin-top: 2rem; 
    background-color: rgba(255, 255, 255, 0.05); 
    text-align: left; 
}
.newsletter-signup-form .form-consent label { color: rgba(255,255,255,0.8); }

/* --- Contact Section --- */
.contact-form { background-color: var(--background-light); }
.form-intro { 
    font-size: 1.1rem; 
    margin-bottom: 2rem; 
    text-align: center;
    color: var(--text-secondary);
}
.contact-form-element { 
    max-width: 800px; 
    margin: 0 auto; 
    background-color: var(--background-white); 
    padding: 2rem; 
    border-radius: 20px; 
    box-shadow: var(--shadow-xl); 
}
.form-row { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 0; 
    margin-bottom: 0;
}
.form-row .form-group {
    margin-bottom: 1.5rem;
}
.form-group.full-width { grid-column: 1 / -1; }
.contact-form-button-wrapper { display: flex; justify-content: center; margin-top: 1rem; }
.contact-form-element .additional-contact-options { 
    text-align: center; 
    margin-top: 2.5rem; 
    padding-top: 2.5rem; 
    border-top: 1px solid var(--border-color); 
}
.contact-form-element .additional-contact-options p { margin-bottom: 0.75rem; font-size: 1.05rem; }
.contact-form-element .additional-contact-options .email-link { 
    font-weight: 600; 
    color: var(--primary-color); 
    text-decoration: none; 
}
.contact-form-element .additional-contact-options .email-link:hover { text-decoration: underline; }

/* --- Footer --- */
.footer { 
    padding: 60px 20px; 
    background: linear-gradient(180deg, var(--secondary-color) 0%, #020617 100%); 
    color: white; 
}
.footer-content { 
    display: flex; 
    flex-direction: column; 
    text-align: center;
    gap: 2rem; 
}
.footer-info p { margin-bottom: 0.25rem; opacity: 0.8; font-size: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { 
    color: white; 
    text-decoration: none; 
    opacity: 0.8; 
    transition: var(--transition); 
    font-weight: 500; 
}
.footer-links a:hover { opacity: 1; transform: translateY(-2px); }


/* -------------------------------------------------------------------------- */
/* VERY SMALL SCREENS (MOBILE PORTRAIT) */
/* -------------------------------------------------------------------------- */
@media (max-width: 479px) {
    .exclusions-grid {
        grid-template-columns: 1fr;
    }
}


/* -------------------------------------------------------------------------- */
/* MEDIUM SCREENS (TABLETS)                        */
/* -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    section, .hero, .trust-bar, .newsletter-signup-section, .footer {
        padding: 80px 0;
    }

    .container {
        padding: 0 40px;
    }

    /* --- Components --- */
    .cookie-banner {
        flex-direction: row;
        text-align: left;
    }
    .cookie-banner-content {
        flex-direction: row;
    }

    /* --- Typography --- */
    h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
    h2 { font-size: clamp(2rem, 4vw, 3rem); }

    /* Navigation styles moved to dedicated media queries above */

    /* --- Sections --- */
    .hero-cta { 
        align-items: center; /* FIX: Keep buttons stacked on tablet */
    }
    .hero-cta .btn {
        width: 100%;
        max-width: 380px; /* Give a generous max-width for stacked buttons */
    }

    .hero-proof { gap: 40px; }
    .proof-number { font-size: 2.5rem; }

    .trust-bar { font-size: 18px; }
    .trust-bar .container { gap: 40px; }

    .about-me .container { flex-direction: row; text-align: left; }
    .about-me h2 { text-align: left; }

    .approach-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .panel-features-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; } 
    .results-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .why-me-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-grid { grid-template-columns: repeat(2, 1fr); }
    
    .exclusions-grid { grid-template-columns: repeat(3, 1fr); } 

    .newsletter-signup-form .form-fields-group { grid-template-columns: 1fr 1fr; }

    .contact-form-element { padding: 3rem; }
    .form-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .form-row .form-group { margin-bottom: 0; }
    .form-group.full-width { margin-bottom: 1.5rem; }


    .footer-content { flex-direction: row; justify-content: space-between; align-items: center; }
    .footer-links { flex-direction: row; gap: 2.5rem; }
}

/* -------------------------------------------------------------------------- */
/* FIX FOR HERO BUTTONS ON LARGER TABLETS / SMALL DESKTOPS */
/* -------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .hero-cta {
        flex-direction: row; /* FIX: Switch to row layout */
        align-items: center; /* FIX: Vertically align buttons */
    }
    .hero-cta .btn {
        width: auto; /* Allow buttons to size to their content */
        max-width: none;
    }
}


/* -------------------------------------------------------------------------- */
/* EXTRA SMALL SCREENS - COMPACT CTA TEXT          */
/* -------------------------------------------------------------------------- */
@media (max-width: 380px) {
    .sticky-nav .btn-nav-cta::after {
        content: "Discovery Call";
    }
    .sticky-nav .btn-nav-cta {
        font-size: 0; /* Hide original text */
        padding: 8px 12px;
    }
}

/* -------------------------------------------------------------------------- */
/* NAVIGATION OPTIMIZATION FOR MEDIUM SCREENS     */
/* -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Show navigation but with compact spacing */
    .hamburger-menu { display: none; }
    .sticky-nav nav ul { 
        display: flex; 
        gap: 0.5rem; /* Very tight spacing */
    }
    .sticky-nav nav ul li a {
        padding: 0.5rem 0.6rem; /* Compact padding */
        font-size: 13px; /* Smaller text */
        border-radius: 4px;
        display: flex;
        align-items: center;
        height: 44px; /* Consistent height */
        border-bottom: 2px solid transparent;
        transition: all 0.2s ease;
        white-space: nowrap;
    }
    .sticky-nav .btn-nav-cta { 
        display: inline-flex;
        align-items: center;
        padding: 6px 12px; /* Very compact button */
        font-size: 12px; 
        margin-left: 0.5rem; 
        white-space: nowrap;
        flex-shrink: 0;
        height: 44px; /* Consistent height */
    }
    .language-switcher { 
        display: flex;
        align-items: center;
        gap: 0.25rem; /* Tight spacing */
        margin-left: 0.5rem;
        height: 100%; /* Full height for alignment */
    }
    .language-switcher a {
        padding: 0.4rem 0.6rem;
        font-size: 12px;
    }
}

/* -------------------------------------------------------------------------- */
/* LARGE SCREENS (DESKTOP)                        */
/* -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    /* Standard navigation for desktop */
    .hamburger-menu { display: none; }
    .sticky-nav nav ul { 
        display: flex; 
        gap: 0.8rem; /* Reduced gap to save space */
        flex-wrap: nowrap;
        overflow: hidden;
    }
    .sticky-nav nav ul li a {
        padding: 0.6rem 0.8rem; /* Reduced padding */
        border-bottom: 2px solid transparent;
        font-size: 14px; /* Smaller font */
        white-space: nowrap;
        height: 44px; /* Exact height instead of min-height */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: all 0.2s ease;
    }
    .sticky-nav nav ul li a:hover, .sticky-nav nav ul li a.active {
        color: var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
    }
    .sticky-nav .btn-nav-cta { 
        display: inline-flex;
        align-items: center;
        padding: 8px 16px; 
        font-size: 13px; 
        margin-left: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0; /* Never shrink this button */
        height: 44px; /* Consistent height */
    }
    .language-switcher { 
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: 1rem;
        height: 100%; /* Full height for alignment */
    }
}

/* -------------------------------------------------------------------------- */
/* EXTRA LARGE SCREENS                            */
/* -------------------------------------------------------------------------- */
@media (min-width: 1150px) { /* FIX: Increased breakpoint for more spacious nav */
    /* Restore more spacious styles for navigation on large screens */
    .sticky-nav nav ul { 
        gap: 1.5rem;
    }
    .sticky-nav nav ul li a {
        font-size: 16px;
        height: 44px; /* Consistent height */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sticky-nav .btn-nav-cta { 
        display: inline-flex;
        align-items: center;
        padding: 10px 20px; 
        font-size: 15px; 
        margin-left: 1.5rem;
        height: 44px; /* Consistent height */
    }
    .language-switcher { 
        display: flex;
        align-items: center;
        margin-left: 1.5rem;
        height: 100%; /* Full height for alignment */
    }

    .approach-grid { grid-template-columns: repeat(5, 1fr); } 
    .process-steps { grid-template-columns: repeat(4, 1fr); }
    .panel-features-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .why-me-grid { grid-template-columns: repeat(4, 1fr); }
    
    .exclusions-grid { grid-template-columns: repeat(5, 1fr); } 
}
