/* ============================================
   LVI MARKO MAHO — Modern CSS Design
   Conversion-focused, mobile-first, clean UI
   ============================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Primary Colors */
    --navy: #0f172a;
    --navy-light: #1e293b;
    --red: #dc2626;
    --red-dark: #b91c1c;
    --red-light: #fee2e2;
    
    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-light: #e0f2fe;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Semantic Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-red: 0 10px 30px -5px rgba(220, 38, 38, 0.3);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--navy);
    color: var(--white);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.top-bar a {
    color: var(--white);
    font-weight: 600;
}

.top-bar a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .top-bar span:first-child {
        display: none;
    }
    .top-bar .container {
        justify-content: center;
    }
}

/* ============================================
   STICKY HEADER
   ============================================ */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

.sticky-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-highlight {
    color: var(--red);
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--red);
    background: var(--red-light);
}

.btn-header {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu .nav-link {
    padding: 1rem;
    font-size: 1.125rem;
}

.btn-mobile {
    margin-top: 1rem;
    text-align: center;
}

/* Desktop Header */
@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }
    
    .desktop-nav {
        display: flex;
    }
    
    .btn-header {
        display: inline-flex;
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: var(--shadow-red);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

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

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    font-size: 1.25rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-modern {
    position: relative;
    padding: 4rem 0 5rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 50%, var(--navy-light) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(220, 38, 38, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-icon {
    background: var(--red);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.hero-modern h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
}

.trust-icon {
    font-size: 1.25rem;
}

/* Hero Visual / Floating Cards */
.hero-visual {
    display: none;
}

.service-cards-float {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.float-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 1.25rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
}

.float-card:nth-child(2) {
    animation-delay: 0.5s;
}

.float-card:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.float-text {
    display: flex;
    flex-direction: column;
}

.float-text strong {
    color: var(--navy);
    font-size: 1rem;
}

.float-text span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Desktop Hero */
@media (min-width: 1024px) {
    .hero-modern {
        padding: 6rem 0 7rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-subtitle {
        margin-left: 0;
    }
    
    .hero-cta-group {
        flex-direction: row;
    }
    
    .hero-trust {
        justify-content: flex-start;
    }
    
    .hero-visual {
        display: block;
    }
}

/* ============================================
   AREA BAR
   ============================================ */
.area-bar {
    background: var(--red);
    color: var(--white);
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    text-align: center;
}

.area-bar p {
    margin: 0;
}

@media (max-width: 768px) {
    .area-bar {
        font-size: 0.8125rem;
        padding: 0.75rem 0;
    }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-label {
    display: inline-block;
    color: var(--red);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--gray-200);
}

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

.service-card.featured {
    border: 2px solid var(--red);
    position: relative;
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-image {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--gray-100) 100%);
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.service-icon-large {
    font-size: 4rem;
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--gray-100);
}

.service-features li:last-child {
    border-bottom: none;
}

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

/* ============================================
   WHY SECTION
   ============================================ */
.why-section {
    padding: 5rem 0;
    background: var(--white);
}

.why-grid {
    display: grid;
    gap: 3rem;
}

.why-content {
    max-width: 600px;
}

.why-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--navy);
    margin: 1rem 0;
}

.why-content > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.value-props {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 4px solid var(--red);
}

.value-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.value-text h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.value-text p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin: 0;
}

/* CTA Box */
.why-cta-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
}

.cta-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-box-phone {
    margin-bottom: 1.5rem;
}

.phone-link {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.phone-link:hover {
    color: var(--red-light);
}

.cta-box-phone span {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ============================================
   AREAS SECTION
   ============================================ */
.areas-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.areas-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.area-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.area-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

.area-card ul {
    list-style: none;
    columns: 2;
}

.area-card li {
    padding: 0.375rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.areas-note {
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .area-card ul {
        columns: 1;
    }
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    text-align: center;
}

.final-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.final-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .final-cta-buttons {
        flex-direction: row;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.modern-footer {
    background: var(--navy);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid-modern {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.footer-contact-quick .quick-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--white);
}

.business-hours,
.y-tunnus {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

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

@media (min-width: 768px) {
    .footer-grid-modern {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ============================================
   FLOATING MOBILE CTA
   ============================================ */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    padding: 0.75rem;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    gap: 0.5rem;
    z-index: 999;
}

.floating-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.floating-btn-secondary {
    background: var(--navy);
}

@media (min-width: 1024px) {
    .floating-cta {
        display: none;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal,
.service-card,
.value-item,
.area-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible,
.service-card.visible,
.value-item.visible,
.area-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for cards */
.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 100ms; }
.service-card:nth-child(3) { transition-delay: 200ms; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .top-bar,
    .sticky-header,
    .floating-cta,
    .hero-cta-group,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-modern {
        background: white;
        color: black;
        padding: 2rem 0;
    }
    
    .hero-modern h1 {
        color: black;
    }
    
    .hero-subtitle {
        color: #333;
    }
}
