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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden; /* Estää vaakasuuntaisen vierityspalkin */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Navigointi */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.logo span {
    color: #3b82f6;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:hover {
    color: #3b82f6;
}

/* Painikkeet */
.btn-primary {
    display: inline-block;
    background: #3b82f6;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-small {
    background: #0f172a;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.btn-primary:hover, .btn-small:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- UUSI HERO-OSIO TAUSTAVIDEOLLA --- */
.hero {
    position: relative;
    padding: 160px 0 140px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
}

/* 1. Alin kerros: Video taustalle */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; 
}

/* 2. Keskikerros: Tumma kalvo videon päälle (parantaa tekstin luettavuutta) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75); /* Tummansininen/musta läpinäkyvä */
    z-index: 2; 
}

/* 3. Ylin kerros: Tekstisisältö pakotetaan kalvon ja videon päälle */
.hero .hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero .subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 1.5rem;
}

.hero p:not(.subtitle) {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
}

/* Palvelut */
.services {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.service-card {
    padding: 30px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    transition: 0.3s;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #3b82f6;
    transform: translateY(-5px); /* Pieni nosto hover-efektinä */
}

.service-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Testimonial */
.testimonial {
    background: #0f172a;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.quote-box {
    max-width: 700px;
    margin: 0 auto;
}

.quote-box p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Yhteystiedot */
.contact {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-info, .contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1rem;
}

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

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

/* Mobiilioptimointi */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 120px 0 100px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}