/*!
Theme Name: Kodinkoneasentajat
Theme URI: https://kodinkoneasentajat.fi
Author: Kodinkoneasentajat
Author URI: https://kodinkoneasentajat.fi
Description: Ammattimainen teema kodinkoneasennuksiin.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: kodinkoneasentajat
*/

:root {
  --color-white: #ffffff;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-900: #0f172a;
  --color-green-whatsapp: #25D366; /* WhatsApp vihreä */
  --color-amber-50: #fffbeb;
  --color-amber-200: #fcd34d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-slate-700);
  background-color: var(--color-white);
}

a { color: inherit; text-decoration: none; transition: 0.3s; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--color-slate-900); }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--color-slate-600); }

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: 0.3s;
}
.btn-primary { background: var(--color-white); color: var(--color-slate-900); }
.btn-primary:hover { background: var(--color-slate-100); }
.btn-secondary { background: var(--color-slate-900); color: white; }
.btn-secondary:hover { background: var(--color-slate-700); }
.btn-link { font-weight: 600; color: var(--color-slate-900); margin-top: 1rem; display: inline-block; }

/* --- MOBILE TOP BAR (UUSI) --- */
.mobile-top-bar {
    display: none; /* Piilotettu tietokoneella */
}

@media (max-width: 768px) {
    .mobile-top-bar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 45px;
        background-color: var(--color-slate-900);
        z-index: 2000;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .top-bar-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.85rem;
        font-weight: 600;
        height: 100%;
        border-right: 1px solid rgba(255,255,255,0.1);
        gap: 6px;
    }
    
    .top-bar-item:last-child {
        border-right: none;
        background-color: var(--color-green-whatsapp); /* WhatsApp korostus */
    }
}

/* --- NAVBAR --- */
.navbar {
    background: white;
    border-bottom: 1px solid var(--color-slate-100);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: top 0.3s;
}

/* Kun mobiilissa on yläpalkki, siirretään navia alaspäin */
@media (max-width: 768px) {
    .navbar {
        top: 45px; 
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}
.nav-logo { font-size: 1.25rem; font-weight: 800; color: var(--color-slate-900); }
.nav-menu { display: flex; gap: 2rem; align-items: center; }
.nav-link { font-weight: 500; color: var(--color-slate-700); }
.nav-link:hover { color: var(--color-slate-900); }

/* --- MOBILE MENU --- */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.mobile-menu-btn span { width: 25px; height: 3px; background: var(--color-slate-900); }

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid var(--color-slate-100);
    }
    .nav-menu.active { display: flex; }
    h1 { font-size: 2rem; }
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--color-slate-900);
  color: white;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1604335399105-a0c585fd81a1?auto=format&fit=crop&w=1600&q=80');
  background-size: cover; background-position: center;
  opacity: 0.25;
}
.hero-content { position: relative; z-index: 10; max-width: 40rem; }
.hero-title { color: white; margin-bottom: 1.5rem; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2rem; }
@media (max-width: 768px) {
    .hero { min-height: 70vh; padding-top: 3rem; } /* Pientä säätöä, ettei teksti jää palkin alle */
    .hero-cta { flex-direction: column; }
}

/* --- SERVICES & PRICING --- */
.text-center { text-align: center; }
.mb-8 { margin-bottom: 2rem; }
.section-white { background: white; }
.section-light { background: var(--color-slate-50); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: white;
    padding: 2rem;
    border: 1px solid var(--color-slate-100);
    border-radius: 0.5rem;
}
.divider { width: 40px; height: 2px; background: var(--color-slate-900); margin-bottom: 1rem; }

.pricing-grid {
    max-width: 40rem;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.pricing-item {
    display: flex; justify-content: space-between;
    padding: 1rem 0; border-bottom: 1px solid var(--color-slate-100);
}
.pricing-price { font-weight: 700; color: var(--color-slate-900); }

.alert-info {
    background: var(--color-amber-50);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    border: 1px solid var(--color-amber-200);
}

/* --- CONTACT --- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; }
.contact-list div { margin-bottom: 1.5rem; }
.contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-slate-500); font-weight: 700; }
.contact-value { font-size: 1.1rem; font-weight: 500; color: var(--color-slate-900); }

/* --- FOOTER --- */
footer {
    background: var(--color-slate-900);
    color: var(--color-slate-400);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
}