/* ===== RESET ===== */
*


 {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f7fa;
    color: #222;
}
.main-content h1 {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.main-content h2 {
    font-size: 20px;
    line-height: 1.35;
    margin-top: 24px;
    margin-bottom: 10px;
}

.main-content p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 14px;
}

/* ===== BANNER ===== */
/* ===== BANNER (RESPONSIVE IMAGE) ===== */
.banner {
    width: 100%;
    aspect-ratio: 16 / 5;
    min-height: 180px;
    max-height: 350px;
    background-image: url("../images/banner.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}


.banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.25);
    color: white;
    text-align: center;
}

.banner-overlay h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

/* ===== HEADER & NAV ===== */
.top-header {
    background: linear-gradient(to bottom, #3fa2ff 0%, #0a4fa3 50%, #063a7a 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 3px 6px rgba(0,0,0,0.35);
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.top-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 6px 10px;
}

.top-nav li {
    margin: 0 12px;
}

.top-nav a {
    text-decoration: none;
    color: white;
    padding: 6px 14px;
    transition: all 0.2s ease;
}

.top-nav a:hover {
    background: linear-gradient(to bottom, #5ab4ff, #1e88e5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 4px rgba(0,0,0,0.4);
}

.top-nav a.active {
    background: linear-gradient(to bottom, #0a4fa3, #3fa2ff);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
}

.hamburger::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 7px;
    width: 24px;
    height: 2px;
    background: #000;
    box-shadow: 0 7px 0 #000, 0 14px 0 #000;
}

/* ===== PAGE LAYOUT (FIXED) ===== */
/* ===== PAGE LAYOUT ===== */
.page-container {
    display: flex;
    width: 100%;
    min-height: 500px;
}

/* LEFT SIDEBAR – FULL LEFT EDGE */
.left-sidebar {
    width: clamp(240px, 22vw, 300px);
    flex-shrink: 0;
    background: linear-gradient(to bottom, #0a4fa3 0%, #6fb7ff 60%, #ffffff 100%);
    color: #000;
    padding: 20px;
    box-shadow: inset -3px 0 6px rgba(0,0,0,0.15);

    /* THIS MAKES IT STICK TO THE VERY LEFT */
    margin: 0;
}
/* Sidebar content card */
.sidebar-box {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 16px;
    border-radius: 10px;          /* subtle, modern */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Sidebar links inside the box */
.sidebar-box a {
    color: #0b2e59;
    text-decoration: none;
    display: block;
    padding: 6px 8px;
    margin: 2px 0;
}

.sidebar-box a:hover {
    background-color: #e9f2ff;
}

/* Sidebar links */


/* Hover effect */
.left-sidebar a:hover {
    background-color: rgba(31, 79, 216, 0.08);
    color: #000;
}

/* Active / current page (optional) */
.left-sidebar a.active {
    background-color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}
.left-sidebar h2 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.left-sidebar p,
.left-sidebar li
 {
    font-size: 12px;
    line-height: 1.5;
}
.left-sidebar a {
	font-size: 14px;
	line-height: 1.5;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 30px;
    min-width: 0;
    max-width: clamp(960px, 70vw, 1600px);
    margin-left: auto;
    margin-right: auto;
}


.main-content > * {
    max-width: clamp(75ch, 80vw, 140ch);
    padding-inline: clamp(24px, 2vw, 44px);
    padding-block: 30px;
    margin-right: auto;
}



.main-content h1 {
    margin-bottom: 15px;
}

.main-content h2 {
    margin-top: 25px;
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(to bottom, #3fa2ff, #0a4fa3);
    color: white;
    text-align: center;
    padding: 15px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

    /* show hamburger */
    .hamburger {
        display: block;
    }

    /* hide menu by default */
    .top-nav {
        display: none;
        width: 100%;
        background: linear-gradient(to bottom, #3fa2ff, #0a4fa3);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 4000;
    }

    .top-nav.open {
        display: block;
    }

    .top-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .top-nav li {
        margin: 10px 0;
    }

    /* hide sidebar on mobile */
    .left-sidebar {
        display: none;
    }

    .page-container {
        flex-direction: column;
        max-width: 100%;
    }

    .main-content {
        width: 100%;
        padding: 20px;
    }
}
@media (max-width: 900px) {
    .page-container {
        flex-direction: column;
    }

    .left-sidebar {
        display: none;   /* REMOVE SIDEBAR ON MOBILE */
    }
}


/* ===== FORMS ===== */

form {
    max-width: 600px;
    margin: 2rem 0;
}

form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox group */
.checkbox-group {
    margin-top: 1rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    margin-top: 0.4rem;
}

/* Captcha */
.captcha {
    margin-top: 1rem;
}

/* Submit button */
form button,
form input[type="submit"] {
    margin-top: 1.5rem;
    padding: 0.7rem 1.2rem;
    background-color: #1f4fd8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

form button:hover,
form input[type="submit"]:hover {
    background-color: #183ea8;
}
.article-img {
    float: left;
    margin: 0 16px 10px 0;
    max-width: 40%;
}

@media (max-width: 600px) {
    .article-img {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 auto 12px;
    }
}
.page-container {
    min-height: 900px;
}
.form-message {
    max-width: 600px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border-left: 4px solid;
    font-size: 14px;
}

.form-message.error {
    background: #fdecea;
    border-color: #c0392b;
    color: #7a1f18;
}

.form-message.success {
    background: #e8f6ec;
    border-color: #2e8b57;
    color: #1f5f3a;
}
input:required:invalid,
textarea:required:invalid {
    border-color: #c0392b;
}

input:required:valid,
textarea:required:valid {
    border-color: #2e8b57;
}
/* ===============================
   OSAAMINEN – ACCORDION
================================ */

.skills-accordion {
    margin-top: 30px;
    max-width: 150ch;
}

.skill-item {
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #ffffff;
}

.skill-header {
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: bold;
    background: linear-gradient(to bottom, #f5f9ff, #e3eefc);
    border: none;
    cursor: pointer;
    position: relative;
}

.skill-header::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #0a4fa3;
}

.skill-item.active .skill-header::after {
    content: "–";
}

.skill-content {
    display: none;
    padding: 15px 20px;
    background-color: #ffffff;
}

.skill-content ul {
    padding-left: 20px;
}

.skill-content li {
    margin-bottom: 6px;
    font-size: 14px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .skill-header {
        font-size: 15px;
        padding: 12px 15px;
    }

    .skill-content li {
        font-size: 13px;
    }
}
.services-intro {
    max-width: 140ch;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
}

.services-accordion {
    max-width: 140ch;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    overflow: hidden;
}

.service-header {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.service-header:hover {
    background: rgba(0,0,0,0.03);
}

.service-icon {
    font-size: 22px;
}

.service-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    padding: 0 18px;
}

.service-card.open .service-content {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 18px;
}

.service-content p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.price {
    background: rgba(0,60,120,0.06);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.cta {
    font-style: italic;
    color: #003c78;
}
.hero-intro {
    max-width: 150ch;
}

.hero-intro h1 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero-intro .lead {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 14px;
}

.hero-intro p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.key-points {
    margin: 20px 0;
    font-size: 14px;
}

.key-points div {
    margin-bottom: 6px;
}

.soft-cta {
    font-style: italic;
    color: #003c78;
    margin-top: 18px;
}

.hero-actions {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

.btn.primary {
    background: #003c78;
    color: #fff;
}

.btn.secondary {
    border: 1px solid #003c78;
    color: #003c78;
}
.hero-title {
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.15;
    max-width: 900px;
    margin: 0;
}


.hero-title span {
    display: block;
    font-size: 0.85em;   /* smaller than H1 */
    font-weight: 400;
    opacity: 0.95;
}

/* Mobile: allow more lines naturally */
@media (max-width: 768px) {
    .hero-title {
        font-size: 26px;
        line-height: 1.25;
    }
}
