/* 
 * Fastclean.lu - Premium Redesign
 * Design System & Main Styles
 */

:root {
    /* Colors */
    --color-primary: #0f172a;       /* Deep Navy */
    --color-primary-light: #1e293b;
    --color-accent: #2dd4bf;        /* Vibrant Teal */
    --color-accent-hover: #14b8a6;
    --color-bg: #f8fafc;            /* Off-White */
    --color-surface: #ffffff;       /* White */
    --color-text: #334155;          /* Slate Gray */
    --color-text-light: #64748b;
    --color-text-heading: #0f172a;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-base: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

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

/* Ensure content images in grid layouts display properly */
[style*="display: grid"] > div > img,
[style*="display:grid"] > div > img {
    width: 100% !important;
    height: auto !important;
    min-height: 300px;
    object-fit: cover;
    background-color: #f1f5f9;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    font-family: var(--font-heading);
}

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

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

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-surface);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section {
    padding: var(--spacing-lg) 0;
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* Header & Nav */
.header {
    background-color: var(--color-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled .nav-container {
    height: 65px;
}

.header.scrolled .logo img {
    height: 45px !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Mobile Language Selector */
.mobile-lang-selector {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 1rem;
}

.mobile-lang-selector a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    padding: 0.25rem 0.4rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.mobile-lang-selector a.active {
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-accent);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .mobile-lang-selector {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--color-surface);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition-base);
        gap: 0.5rem;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Better spacing on mobile */
    .section {
        padding: 2.5rem 0;
    }

    /* Font sizes adjustments */
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.15rem !important;
    }

    p {
        font-size: 0.95rem !important;
    }

    /* Better grid layout on mobile - force single column */
    [style*="display: grid"],
    [style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Grid items inside - respect order */
    [style*="display: grid"] > div,
    [style*="display:grid"] > div {
        width: 100% !important;
    }

    /* Buttons larger touch targets */
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }

    /* Forms better on mobile */
    input, select, textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.875rem !important;
    }

    /* Hero sections compact */
    [style*="padding: 4rem 0 3rem"] {
        padding: 2.5rem 0 2rem !important;
    }

    /* Cards full width */
    .glass-card, .blog-card {
        margin: 0 !important;
    }

    /* Logo smaller on mobile */
    .logo img {
        height: 45px !important;
    }

    /* Made in Luxembourg badge smaller */
    .logo + .logo img,
    a[title*="Luxembourg"] img {
        height: 35px !important;
    }

    /* Language selector in mobile nav */
    .nav-links > div[style*="display: flex"] {
        justify-content: center;
        margin: 0.5rem 0;
    }

    /* Footer columns stack */
    footer [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    footer ul {
        margin-bottom: 1.5rem;
    }

    /* Icon boxes smaller */
    [style*="width: 80px"][style*="height: 80px"] {
        width: 60px !important;
        height: 60px !important;
    }

    [style*="width: 60px"][style*="height: 60px"] {
        width: 50px !important;
        height: 50px !important;
    }

    /* Service cards improvements */
    .service-card, [class*="card"] {
        padding: 1.5rem !important;
    }

    /* Tables responsive */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Images in grids */
    [style*="display: grid"] img {
        max-height: 250px;
        object-fit: cover;
        border-radius: var(--radius-md);
    }
}

/* Small phones */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.25rem !important;
    }

    .container {
        padding: 0 0.75rem;
    }

    .section {
        padding: 2rem 0;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Reduce decorative elements */
    [style*="border-radius: 20px"],
    [style*="border-radius:20px"] {
        border-radius: 12px !important;
    }
}

/* Tablet specific */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    [style*="display: grid"],
    [style*="display:grid"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    h1 {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }
}
