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

:root {
    /* Finnish Nature-Inspired Color Palette */
    /* Forest Greens */
    --forest-50: #f0f9f4;
    --forest-100: #dcf2e3;
    --forest-200: #b8e5c7;
    --forest-300: #86d1a3;
    --forest-400: #4db377;
    --forest-500: #2d7a47;
    --forest-600: #1a5f2e;
    --forest-700: #0d4f1c;
    --forest-800: #0a3f16;
    --forest-900: #073311;
    
    /* Primary Colors (Enhanced) */
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-200: #bbf7d0;
    --primary-300: #86efac;
    --primary-400: #4ade80;
    --primary-500: #22c55e;
    --primary-600: #16a34a;
    --primary-700: #15803d;
    --primary-800: #166534;
    --primary-900: #14532d;
    
    --primary-color: #1a5f2e;
    --primary-dark: #0d4f1c;
    --primary-light: #4db377;
    
    /* Earth Tones */
    --earth-50: #faf7f2;
    --earth-100: #f5ede0;
    --earth-200: #ead9c1;
    --earth-300: #d9be93;
    --earth-400: #c49d6b;
    --earth-500: #8b6914;
    --earth-600: #6b4423;
    --earth-700: #55351a;
    --earth-800: #442a14;
    --earth-900: #382110;
    
    /* Stone Grays */
    --stone-50: #f9fafb;
    --stone-100: #f3f4f6;
    --stone-200: #e5e7eb;
    --stone-300: #d1d5db;
    --stone-400: #9ca3af;
    --stone-500: #6b7280;
    --stone-600: #4b5563;
    --stone-700: #374151;
    --stone-800: #1f2937;
    --stone-900: #111827;
    
    /* Sky Blue Accents */
    --sky-50: #eff6ff;
    --sky-100: #dbeafe;
    --sky-200: #bfdbfe;
    --sky-300: #93c5fd;
    --sky-400: #60a5fa;
    --sky-500: #3b82f6;
    --sky-600: #2563eb;
    --sky-700: #1d4ed8;
    --sky-800: #1e40af;
    --sky-900: #1e3a8a;
    
    /* Accent Colors */
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --accent-earth: #8b6914;
    --accent-sky: #3b82f6;
    
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-tertiary: #737373;
    
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    
    --border-color: #e5e5e5;
    --border-light: #f5f5f5;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Typography Scale */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* Spacing Scale (8px base) */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;      /* 96px */
    
    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* Shadows - Modern 2025 */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Animation Timing */
    --animation-duration-fast: 0.2s;
    --animation-duration-base: 0.4s;
    --animation-duration-slow: 0.6s;
    --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --animation-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    line-height: var(--leading-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 400;
    overflow-x: hidden;
    font-feature-settings: 'kern' 1, 'liga' 1;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Optimize image loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Smooth image loading with placeholder */
.gallery-item {
    background: linear-gradient(135deg, var(--stone-100) 0%, var(--stone-200) 100%);
    background-size: 200% 200%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.gallery-item:has(.gallery-image.loaded) {
    background: none;
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item {
        animation: none;
        background: var(--stone-100);
    }
}

/* Prevent layout shift with aspect ratio */
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base), opacity 0.4s ease-in-out;
    will-change: transform, opacity;
}

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

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

/* ===================================
   Utility Classes
   =================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: var(--space-2) var(--space-4);
    z-index: 100;
    border-radius: var(--radius-md);
}

.skip-link:focus {
    top: var(--space-4);
}

/* ===================================
   Header & Navigation - Modern 2025
   =================================== */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.85);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-4);
    min-height: 72px;
    gap: var(--space-4);
    flex-wrap: nowrap;
}

.logo {
    flex-shrink: 0;
    min-width: 0;
}

.header-phone {
    display: none;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .header-phone {
        display: block;
        margin-left: auto;
    }
    
    nav .container {
        gap: var(--space-6);
    }
}

.phone-cta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.phone-cta:hover,
.phone-cta:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
    text-decoration: none;
}

.phone-icon {
    font-size: 1.125rem;
}

.phone-text {
    white-space: nowrap;
}

@media (min-width: 768px) {
    nav .container {
        padding: var(--space-5) var(--space-6);
    }
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: opacity var(--transition-fast);
}

.logo a:hover {
    opacity: 0.8;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: none; /* Hide text when logo is present */
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .logo-image {
        height: 70px;
    }
    
    .logo-text {
        display: inline; /* Show text on larger screens if needed */
        font-size: 1.5rem;
        margin-left: var(--space-2);
    }
}


/* Fallback if logo image doesn't load */
.logo a:has(.logo-image[src=""]) .logo-text,
.logo a:not(:has(img)) .logo-text {
    display: inline;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
    z-index: 1001;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    display: none;
    list-style: none;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        align-items: center;
    }
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: var(--space-4);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    gap: var(--space-2);
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: block;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background: var(--bg-secondary);
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu a.active {
    background: var(--primary-color);
    color: white;
}

.nav-menu a.active:hover,
.nav-menu a.active:focus {
    background: var(--primary-dark);
    color: white;
}

/* ===================================
   Hero Section - Modern 2025
   =================================== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    will-change: opacity, transform;
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

/* Disable fixed attachment on mobile for better performance */
@media (max-width: 768px) {
    .hero-slide {
        background-attachment: scroll;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        background-attachment: scroll;
        transform: none;
        transition: opacity 0.3s ease;
    }
    
    .hero-slide.active {
        transform: none;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(13, 79, 28, 0.85) 0%, rgba(26, 95, 46, 0.9) 50%, rgba(13, 79, 28, 0.85) 100%),
        radial-gradient(ellipse at top, rgba(26, 95, 46, 0.4) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(77, 179, 119, 0.15) 0%, transparent 40%);
    pointer-events: none;
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-overlay::before {
        animation: none;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--space-20) 0 var(--space-16);
}

.hero-content .container {
    max-width: 900px;
    position: relative;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-6);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3), 0 4px 40px rgba(0, 0, 0, 0.2);
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

.hero-title-animate {
    animation: fadeInUp 0.8s var(--animation-easing) 0.2s both;
}

.hero-subtitle-animate {
    animation: fadeInUp 0.8s var(--animation-easing) 0.4s both;
}

.hero-segments-animate {
    animation: fadeInUp 0.8s var(--animation-easing) 0.6s both;
}

.hero-cta-animate {
    animation: fadeInUp 0.8s var(--animation-easing) 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: var(--space-6);
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-segments {
    margin-bottom: var(--space-10);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-segments-text {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.hero-segments-text strong {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.hero-carousel-prev,
.hero-carousel-next {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.hero-carousel-prev:hover,
.hero-carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-carousel-indicators {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.hero-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-carousel-indicator.active {
    background: white;
    width: 30px;
    border-color: white;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.cta-button.secondary:hover,
.cta-button.secondary:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
    color: white;
}

.cta-button.secondary:active {
    transform: translateY(0) scale(0.98);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-500);
    color: white;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.0625rem;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4), 0 4px 6px -2px rgba(245, 158, 11, 0.2);
    transition: all var(--transition-base);
    text-decoration: none;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover,
.cta-button:focus {
    background: var(--accent-600);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.5), 0 6px 10px -2px rgba(245, 158, 11, 0.3), 0 0 20px rgba(245, 158, 11, 0.4);
    text-decoration: none;
    color: white;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
    transition: transform 0.1s;
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===================================
   Services Section - Modern 2025
   =================================== */
.services {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.customer-segments {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-16);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .customer-segments {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-10);
    }
}

.segment-card {
    background: var(--bg-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    text-align: center;
}

.segment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
    background: var(--bg-tertiary);
}

.segment-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-4);
    display: block;
    line-height: 1;
}

.segment-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.segment-card > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.segment-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.segment-features li {
    padding: var(--space-2) 0;
    color: var(--text-primary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.service-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.service-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: var(--accent-500);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-16px) rotateX(3deg) rotateY(-3deg) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(26, 95, 46, 0.15),
        0 0 40px rgba(26, 95, 46, 0.1);
    border-color: var(--primary-400);
    background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.service-card:active {
    transform: translateY(-10px) rotateX(1deg) rotateY(-1deg) scale(1.01);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-6);
    display: inline-block;
    transition: all var(--transition-smooth);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    line-height: 1;
    transform: translateZ(20px);
}

.service-card:hover .service-icon {
    transform: scale(1.25) rotate(8deg) translateZ(30px);
    filter: drop-shadow(0 8px 16px rgba(26, 95, 46, 0.4));
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
    flex-grow: 1;
    margin-bottom: var(--space-4);
}

.service-features {
    list-style: none;
    text-align: left;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
}

.service-features li {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: var(--space-2) 0;
    padding-left: var(--space-6);
    position: relative;
}

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

.service-phone {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.service-phone a {
    color: var(--primary-color);
    font-weight: 600;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-6);
    padding: var(--space-3) var(--space-6);
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.service-cta:hover,
.service-cta:focus {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(26, 95, 46, 0.3), 0 0 12px rgba(26, 95, 46, 0.2);
    color: white;
    text-decoration: none;
}

.service-cta:active {
    transform: translateY(-1px) scale(1.02);
    transition: transform 0.1s;
}

.service-cta.phone {
    background: var(--accent-500);
}

.service-cta.phone:hover,
.service-cta.phone:focus {
    background: var(--accent-600);
}

/* ===================================
   About Section - Modern 2025
   =================================== */
.about {
    padding: var(--space-24) 0;
    background: var(--bg-primary);
}

.about-text {
    max-width: 800px;
    margin: 0 auto var(--space-12);
    text-align: left;
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.about-text p {
    margin-bottom: var(--space-6);
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.feature-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-2);
    font-family: var(--font-heading);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    text-align: center;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    font-size: 0.9375rem;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
    background: var(--bg-primary);
}

.feature strong {
    color: var(--primary-color);
    margin-right: var(--space-2);
    font-size: 1.25rem;
    font-weight: 700;
}

/* ===================================
   Contact Section - Modern 2025
   =================================== */
.contact {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.contact h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: var(--space-16);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--space-16);
    }
}

.contact-info h3,
.contact-form h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

address {
    font-style: normal;
    line-height: 2;
    background: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

address p {
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    font-size: 0.9375rem;
}

address a {
    color: var(--primary-color);
    font-weight: 500;
    transition: color var(--transition-fast);
}

address a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    background: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
    padding: var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--bg-secondary);
    color: var(--text-primary);
    width: 100%;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--primary-200);
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(26, 95, 46, 0.15), 0 4px 12px rgba(26, 95, 46, 0.1);
    transform: translateY(-1px);
    transition: all var(--transition-base);
}

.form-group input.valid,
.form-group textarea.valid {
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-group .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: var(--space-1);
    display: none;
}

.form-group input.invalid ~ .error-message,
.form-group textarea.invalid ~ .error-message {
    display: block;
}

.form-success {
    display: none;
    background: var(--primary-100);
    border: 2px solid var(--primary-color);
    color: var(--primary-800);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    text-align: center;
}

.form-success.visible {
    display: block;
}

.form-success-icon {
    font-size: 3rem;
    margin-bottom: var(--space-2);
}

.form-success h3 {
    color: var(--primary-800);
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
}

.form-success p {
    color: var(--primary-700);
    margin: 0;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-primary);
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.char-count.warning {
    color: var(--accent-600);
}

.char-count.error {
    color: #ef4444;
}

.submit-button {
    background: var(--primary-color);
    color: white;
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    letter-spacing: 0.01em;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover,
.submit-button:focus {
    background: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(26, 95, 46, 0.3), 0 0 15px rgba(26, 95, 46, 0.2);
    color: white;
}

.submit-button:active {
    transform: translateY(-1px) scale(0.98);
    transition: transform 0.1s;
}

/* ===================================
   Footer - Modern 2025
   =================================== */
footer {
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 100%);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
    position: relative;
}

/* Ensure footer logo is visible on dark background */
.footer-logo {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    display: inline-block;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-logo {
    margin-bottom: var(--space-6);
}

.footer-logo-image {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
    /* Remove filter to show original logo colors */
}

.footer-logo-image:hover {
    opacity: 1;
}

.footer-section h4 {
    color: var(--primary-light);
    margin-bottom: var(--space-6);
    font-weight: 700;
    font-size: 1.125rem;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.footer-section p {
    color: var(--neutral-300);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-2);
}

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

.footer-section ul li {
    margin-bottom: var(--space-3);
}

.footer-section a {
    color: var(--neutral-300);
    transition: color var(--transition-fast);
    font-size: 0.9375rem;
}

.footer-section a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--neutral-400);
    font-size: 0.875rem;
}

/* ===================================
   Trust Badges / Achievements Section
   =================================== */
.trust-badges {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
    position: relative;
}

.trust-badges::before {
    content: '';
        position: absolute;
    top: 0;
        left: 0;
        right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.badges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-12);
    }
}

.badge-item {
    background: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    display: flex;
        flex-direction: column;
    align-items: center;
}

.badge-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.badge-image {
    width: 100%;
    max-width: 200px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    background: transparent;
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    transition: all var(--transition-base);
}

.badge-placeholder {
    font-size: 4rem;
    color: var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.badge-item:hover .badge-image {
    background: var(--bg-tertiary);
    transform: scale(1.05);
}

.badge-image img,
.badge-logo {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.badge-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.badge-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===================================
   Equipment Section / Kalusto
   =================================== */
.equipment {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
    position: relative;
}

.equipment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

@media (min-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-8);
    }
}

.equipment-item {
    background: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.equipment-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.equipment-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    display: block;
}

.equipment-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.equipment-item p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===================================
   References Section / Referenssit
   =================================== */
.references {
    padding: var(--space-24) 0;
    background: var(--bg-primary);
}

.references-content {
    max-width: 1200px;
    margin: 0 auto;
}

.references-intro {
    text-align: center;
    margin-bottom: var(--space-12);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.references-intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.references-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .references-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-12);
    }
}

.reference-category {
    background: var(--bg-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.reference-category:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.reference-category h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.reference-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reference-list li {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.reference-list li:last-child {
    border-bottom: none;
}

.reference-list li strong {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin-bottom: var(--space-1);
}

.references-note {
    background: var(--primary-50);
    border-left: 4px solid var(--primary-color);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin-top: var(--space-8);
}

.references-note p {
    margin: 0;
    color: var(--primary-800);
    font-size: 1rem;
    line-height: 1.7;
}

.reference-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-6);
    font-style: italic;
}

.reference-author {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-4);
}

.reference-author strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.reference-author span {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ===================================
   Gallery Section / Kuvagalleria
   =================================== */
.gallery {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    grid-auto-rows: 10px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
}

.gallery-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-base);
    cursor: pointer;
    grid-row-end: span var(--row-span, 30);
    will-change: transform;
}

/* Vary aspect ratios for masonry effect */
.gallery-item:nth-child(3n+1) {
    --row-span: 35;
    aspect-ratio: 4 / 3;
}

.gallery-item:nth-child(3n+2) {
    --row-span: 30;
    aspect-ratio: 3 / 2;
}

.gallery-item:nth-child(3n+3) {
    --row-span: 40;
    aspect-ratio: 5 / 4;
}

@media (min-width: 768px) {
    .gallery-item:nth-child(2n+1) {
        --row-span: 35;
    }
    
    .gallery-item:nth-child(2n+2) {
        --row-span: 30;
    }
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(26, 95, 46, 0.1);
    z-index: 10;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to bottom, rgba(13, 79, 28, 0.85) 0%, rgba(26, 95, 46, 0.75) 50%, rgba(13, 79, 28, 0.9) 100%);
}

.gallery-item:active {
    transform: translateY(-8px) scale(1.01);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    opacity: 0;
    transition: opacity var(--transition-base);
    padding: var(--space-4);
}

.gallery-category {
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    text-align: center;
}

.gallery-view {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.9375rem;
}

.gallery-view:hover,
.gallery-view:focus {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.15);
    filter: brightness(1.2) saturate(1.1);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-700);
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    padding: var(--space-4);
}

/* Hide placeholder when image is present */
.gallery-item:has(.gallery-image) .gallery-placeholder {
    display: none;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-prev {
    left: var(--space-4);
}

.lightbox-next {
    right: var(--space-4);
}

.lightbox-prev:hover,
.lightbox-prev:focus,
.lightbox-next:hover,
.lightbox-next:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    max-width: 100%;
    max-height: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-xl);
}

.lightbox-info {
    text-align: center;
    color: white;
    max-width: 800px;
}

.lightbox-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    color: white;
}

.lightbox-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* ===================================
   Careers Section / Tule töihin
   =================================== */
.careers {
    padding: var(--space-24) 0;
    background: var(--bg-primary);
}

.careers-content {
    display: grid;
        grid-template-columns: 1fr;
    gap: var(--space-12);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .careers-content {
        grid-template-columns: 2fr 1fr;
        gap: var(--space-16);
    }
}

.careers-text h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.careers-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.careers-text p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.careers-text ul {
    list-style: none;
    margin-bottom: var(--space-6);
}

.careers-text ul li {
    color: var(--text-secondary);
    padding: var(--space-2) 0;
    padding-left: var(--space-6);
    position: relative;
}

.careers-text ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.careers-contact {
    background: var(--bg-secondary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.careers-contact h4 {
        font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.careers-contact p {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.careers-contact a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===================================
   Marketplace Section / Myydään / Ostetaan
   =================================== */
.marketplace {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
    position: relative;
}

.marketplace::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.marketplace-content {
    display: grid;
        grid-template-columns: 1fr;
    gap: var(--space-12);
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .marketplace-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-16);
    }
}

.marketplace-section {
    background: var(--bg-primary);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.marketplace-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.marketplace-section p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.marketplace-section ul {
    list-style: none;
    margin-top: var(--space-4);
}

.marketplace-section ul li {
    color: var(--text-secondary);
    padding: var(--space-2) 0;
    padding-left: var(--space-6);
    position: relative;
}

.marketplace-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1;
}

.marketplace-section a {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
    padding: var(--space-24) 0;
    background: var(--bg-primary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    transition: all var(--transition-base);
    user-select: none;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: var(--space-4);
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-answer p {
    margin: 0;
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top-icon {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

/* ===================================
   Sticky Mobile CTA
   =================================== */
.sticky-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    padding: var(--space-4);
    z-index: 998;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

@media (max-width: 767px) {
    .sticky-mobile-cta.visible {
        display: block;
        transform: translateY(0);
    }
}

.sticky-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.sticky-cta-button:hover,
.sticky-cta-button:focus {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.sticky-cta-icon {
    font-size: 1.25rem;
}

/* ===================================
   Contact Section Updates
   =================================== */
.contact-hours {
    margin-top: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--border-color);
}

.contact-hours h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.contact-hours p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: var(--space-2);
}

.form-group select {
    padding: var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--bg-secondary);
    color: var(--text-primary);
    width: 100%;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23525252' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 767px) {
    .logo-image {
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .header-phone {
        display: none;
    }
    
    .hero {
        padding: var(--space-16) 0 var(--space-12);
        min-height: 500px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .hero-cta .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .back-to-top {
        bottom: 80px;
        right: var(--space-4);
        width: 48px;
        height: 48px;
    }
    
    .services,
    .about,
    .contact,
    .equipment,
    .references,
    .gallery,
    .careers,
    .marketplace,
    .trust-badges {
        padding: var(--space-16) 0;
    }
    
    .service-card {
        padding: var(--space-6);
    }
    
    /* Reduce 3D transforms on mobile for better performance */
    .service-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .service-card:hover .service-icon {
        transform: scale(1.1) rotate(5deg);
    }
    
    /* Optimize gallery on mobile */
    .gallery-item:hover {
        transform: translateY(-6px) scale(1.01);
    }
    
    .gallery-item:hover .gallery-image {
        transform: scale(1.05);
    }
    
    /* Touch-friendly button sizes */
    .cta-button,
    .service-cta {
        min-height: 44px;
        padding: var(--space-3) var(--space-6);
    }
    
    /* Optimize animations on mobile */
    .scroll-fade-in,
    .scroll-slide-up,
    .scroll-scale-in {
        transition-duration: 0.3s;
    }
    
    .about-text {
        text-align: center;
    }
    
    .careers-content,
    .marketplace-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo-image {
        height: 50px;
        max-width: 180px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices, use active states instead */
    .service-card:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .service-card:active {
        transform: translateY(-4px) scale(0.98);
    }
    
    .gallery-item:active {
        transform: translateY(-4px) scale(0.98);
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    header,
    .hero,
    .contact-form,
    footer {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ===================================
   Accessibility & Animations
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for better accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline-offset: 4px;
}

/* ===================================
   Scroll-Triggered Animations
   =================================== */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity var(--animation-duration-base) var(--animation-easing),
                transform var(--animation-duration-base) var(--animation-easing);
    will-change: opacity, transform;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    will-change: auto;
}

.scroll-slide-up {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity var(--animation-duration-slow) var(--animation-easing),
                transform var(--animation-duration-slow) var(--animation-easing);
    will-change: opacity, transform;
}

.scroll-slide-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    will-change: auto;
}

.scroll-scale-in {
    opacity: 0;
    transform: scale(0.9) rotate(-1deg);
    transition: opacity var(--animation-duration-base) var(--animation-easing),
                transform var(--animation-duration-base) var(--animation-easing-bounce);
    will-change: opacity, transform;
}

.scroll-scale-in.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    will-change: auto;
}

/* Staggered animations for lists */
.scroll-stagger > * {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    transition: opacity var(--animation-duration-base) var(--animation-easing),
                transform var(--animation-duration-base) var(--animation-easing);
    will-change: opacity, transform;
}

.scroll-stagger.visible > * {
    opacity: 1;
    transform: translateY(0) scale(1);
    will-change: auto;
}

.scroll-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.scroll-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.scroll-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.scroll-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.scroll-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.scroll-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.scroll-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.scroll-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }
.scroll-stagger.visible > *:nth-child(n+9) { transition-delay: 0.45s; }

/* Reduced motion support for scroll animations */
@media (prefers-reduced-motion: reduce) {
    .scroll-fade-in,
    .scroll-slide-up,
    .scroll-scale-in,
    .scroll-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}
