html,
body {
    min-height: 100%;
    margin: 0;
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    background-color: #fff;
}

/* Navigaatio */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    padding: 0.8rem 1.5rem;
    box-sizing: border-box;
    z-index: 999;
    border-bottom: 1px solid #eee;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link {
    display: inline-flex;
    align-items: center;
}

.nav-logo {
    height: 42px;
    width: auto;
    display: block;
}

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

.nav-center a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.nav-center a:hover {
    color: #ff7a00;
}

/* Nuolinavigaatio */
.arrow-nav {
    position: fixed;
    right: 24px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.arrow-nav button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 122, 0, 0.7);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.arrow-nav button:hover:not(:disabled) {
    background: #ff7a00;
    transform: scale(1.05);
}

.arrow-nav button:disabled {
    opacity: 0.3;
    cursor: default;
    background: rgba(150, 150, 150, 0.4);
}

/* Osiot */
section {
    min-height: 90vh;
    padding: 5rem 2rem;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
}

#hero::after,
section:last-of-type::after {
    display: none;
}

section h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111;
}

/* Hero */
.hero {
    min-height: 92vh;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    padding: 3rem 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 0.25rem;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
}

.hero-main {
    font-size: 5rem;
    font-weight: 600;
    margin: 0.2rem 0 1rem 0;
    color: #111;
    line-height: 1.1;
}

.hero-desc {
    max-width: 650px;
    margin: 0 auto;
}

.hero-desc p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #444;
    margin: 0.5rem 0;
}

.hero-contact {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-contact-item {
    border: 1px solid #111;
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.hero-contact-item:hover {
    border-color: #ff7a00;
    color: #fff;
    background: #ff7a00;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.25);
}

/* Yritys */
.yritys {
    background: #ffffff;
}

.section-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: left;
}

.section-content h2 {
    text-align: center;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin: 1.2rem 0;
}

.lead-text {
    font-size: 1.3rem !important;
    font-weight: 500;
    color: #111 !important;
    text-align: center;
    margin-bottom: 2rem !important;
}

/* Palvelumme */
.palvelumme {
    background: #fbfbfb;
}

.palvelu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1140px;
    margin-top: 1rem;
}

.palvelu-card {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    padding: 2rem 1.6rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.palvelu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #ffd8b3;
}

.palvelu-icon {
    width: 68px;
    height: 68px;
    border: 2px solid #ff7a00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem auto;
    background: #fff8f2;
}

.palvelu-icon i {
    font-size: 28px;
    color: #ff7a00;
}

.palvelu-card h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
}

.palvelu-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: #555;
}

/* Yhteystiedot */
.yhteystiedot {
    background: #ffffff;
}

.contact-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    max-width: 1100px;
    width: 100%;
}

.contact-box {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.8rem;
    width: 290px;
    box-sizing: border-box;
}

.contact-icon {
    border: 2px solid #111;
    border-radius: 50%;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #111;
}

.contact-box h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
}

.contact-box p,
.contact-box a {
    margin: 0;
    font-size: 1.1rem;
    color: #222;
    text-decoration: none;
    line-height: 1.5;
}

.contact-box a {
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-box a:hover {
    color: #ff7a00;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #111;
    color: #eee;
    width: 100%;
    text-align: center;
    padding: 1.6rem 0;
    font-size: 0.95rem;
}

.footer p {
    margin: 0;
}

/* Responsiivisuus */
@media (max-width: 960px) {
    .palvelu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 1rem;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .nav-logo {
        height: 34px;
    }

    .nav-center {
        gap: 1rem;
    }

    .nav-center a {
        font-size: 0.95rem;
    }

    .hero-main {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    section {
        padding: 3.5rem 1.2rem;
        min-height: auto;
    }

    .palvelu-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }

    .contact-box {
        width: 100%;
        max-width: 360px;
    }

    .arrow-nav {
        right: 12px;
        bottom: 16px;
    }

    .arrow-nav button {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
}
