/* ===========================
   TYYLI.CSS - Kaikki sivujen yhteiset tyylit
   Värit: #0066CC (sininen), #0B2545 (tummansininen), #F4F6F8 (tausta)
   Fontit: Montserrat (otsikot), Open Sans (leipäteksti)
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
}

a {
    text-decoration: none;
    color: #0066CC;
}

a:hover {
    text-decoration: underline;
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===========================
   TYPOGRAFIA
   =========================== */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #0B2545;
    line-height: 1.2;
}

h1 {
    font-size: 48px;
    margin-bottom: 24px;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.ingressi {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 30px;
}

p {
    margin-bottom: 16px;
}

/* ===========================
   NAVIGAATIOPALKKI
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: #FFFFFF;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.navbar .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0066CC;
    text-decoration: none;
}

.navbar .logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #0066CC;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-links a.active {
    font-weight: 700;
    border-bottom: 2px solid #0066CC;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #0B2545;
    border-radius: 2px;
    transition: 0.3s;
}

/* Body offset for fixed navbar */
body {
    padding-top: 80px;
}

/* ===========================
   CTA-PAINIKKEET
   =========================== */
.btn-primary {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    background-color: #0066CC;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    background-color: #0052a3;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    background-color: transparent;
    color: #0066CC;
    border: 2px solid #0066CC;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background-color: #0066CC;
    color: #FFFFFF;
    text-decoration: none;
}

/* ===========================
   HERO-OSIO
   =========================== */
.hero {
    background-color: #F4F6F8;
    padding: 100px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 50%;
}

.hero-text h1 {
    color: #0B2545;
}

.hero-text .ingressi {
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    max-width: 50%;
}

.hero-image img {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
}

/* ===========================
   OSIOT (SEKTIOT)
   =========================== */
.section {
    padding: 100px 0;
}

.section-light {
    background-color: #FFFFFF;
}

.section-gray {
    background-color: #F4F6F8;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ===========================
   PALVELUNOSTOKORTIT (Etusivu)
   =========================== */
.service-cards {
    display: flex;
    gap: 3%;
    justify-content: center;
}

.service-card {
    flex: 1;
    max-width: 30%;
    padding: 40px;
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    text-decoration: none;
}

.service-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.service-card h3 {
    color: #0B2545;
}

.service-card p {
    color: #555555;
    font-size: 16px;
}

/* ===========================
   ARVOLUPAUS-OSIO (Etusivu)
   =========================== */
.value-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.value-text {
    flex: 6;
}

.value-image {
    flex: 4;
}

.value-image img {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
}

/* ===========================
   PALVELUT-SIVU
   =========================== */
.service-detail {
    display: flex;
    align-items: center;
    gap: 60px;
}

.service-detail.reverse {
    flex-direction: row-reverse;
}

.service-detail-text {
    flex: 6;
}

.service-detail-image {
    flex: 4;
}

.service-detail-image img {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
}

/* ===========================
   ESIMERKKEJÄ-SIVU
   =========================== */
.example-project {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 60px;
}

.example-project.reverse {
    flex-direction: row-reverse;
}

.example-text {
    flex: 6;
}

.example-image {
    flex: 4;
}

.example-image img {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
}

/* Ratkaisumallit */
.solution-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
}

.solution-card h3 {
    color: #0066CC;
}

.solution-card .label {
    font-weight: 700;
    color: #0B2545;
}

.solution-card .benefit {
    background-color: #F4F6F8;
    padding: 12px 20px;
    border-radius: 4px;
    margin-top: 16px;
    font-weight: 600;
    color: #0066CC;
}

/* ===========================
   MEISTÄ-SIVU: ARVOKORTIT
   =========================== */
.value-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.value-card {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.value-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.value-card h3 {
    color: #0B2545;
    margin-bottom: 12px;
}

/* ===========================
   MEISTÄ-SIVU: PROSESSIKUVAUS
   =========================== */
.process-steps {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    max-width: 200px;
    text-align: center;
    position: relative;
}

.process-step .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0066CC;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: #555555;
}

/* ===========================
   MEISTÄ-SIVU: TEKNOLOGIAOSIO
   =========================== */
.tech-logos {
    text-align: center;
}

.tech-logos img {
    max-width: 800px;
    margin: 0 auto;
}

/* ===========================
   MEISTÄ-SIVU: JÄLKITUKI-KOROSTUSLAATIKKO
   =========================== */
.highlight-box {
    background-color: #0066CC;
    color: #FFFFFF;
    border-radius: 8px;
    padding: 60px;
    text-align: center;
}

.highlight-box h2 {
    color: #FFFFFF;
}

.highlight-box p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.highlight-box .btn-primary {
    background-color: #FFFFFF;
    color: #0066CC;
}

.highlight-box .btn-primary:hover {
    background-color: #F4F6F8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===========================
   YHTEYSTIEDOT-SIVU
   =========================== */
.contact-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-form-wrapper {
    flex: 6;
}

.contact-info-wrapper {
    flex: 4;
}

.contact-form {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0B2545;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group .required {
    color: #CC0000;
}

.contact-info-card {
    background-color: #F4F6F8;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
}

.contact-info-card h3 {
    margin-bottom: 20px;
}

.contact-info-card p {
    margin-bottom: 12px;
}

.contact-info-card a {
    color: #0066CC;
    font-weight: 600;
}

.contact-image {
    margin-top: 30px;
}

.contact-image img {
    border-radius: 8px;
    width: 100%;
    object-fit: cover;
}

/* Kiitosilmoitus */
.thank-you-message {
    display: none;
    background-color: #E8F5E9;
    color: #2E7D32;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/* ===========================
   ALATUNNISTE (FOOTER)
   =========================== */
.footer {
    background-color: #0B2545;
    color: #FFFFFF;
    padding: 80px 0 40px;
}

.footer .container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-info {
    flex: 4;
    min-width: 250px;
}

.footer-info .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    flex: 3;
    min-width: 150px;
}

.footer-links h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4DA6FF;
    text-decoration: none;
}

.footer-contact {
    flex: 3;
    min-width: 200px;
}

.footer-contact h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-contact a {
    color: #4DA6FF;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #1E3A5F;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   RESPONSIIVISUUS - TABLETTI (max 1024px)
   =========================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .section {
        padding: 60px 0;
    }

    /* Hero */
    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image {
        max-width: 100%;
    }

    /* Palvelunostokortit */
    .service-cards {
        flex-wrap: wrap;
        gap: 20px;
    }

    .service-card {
        max-width: 48%;
        flex: 1 1 45%;
    }

    .service-card:last-child {
        max-width: 80%;
        flex: 1 1 80%;
        margin: 0 auto;
    }

    /* Arvolupaus */
    .value-section .container {
        flex-direction: column;
    }

    .value-text, .value-image {
        flex: none;
        width: 100%;
    }

    /* Palvelut-sivu */
    .service-detail,
    .service-detail.reverse {
        flex-direction: column;
    }

    .service-detail-text,
    .service-detail-image {
        flex: none;
        width: 100%;
    }

    /* Esimerkkejä */
    .example-project,
    .example-project.reverse {
        flex-direction: column;
    }

    .example-text, .example-image {
        flex: none;
        width: 100%;
    }

    /* Arvokortit */
    .value-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Yhteystiedot */
    .contact-layout {
        flex-direction: column;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        flex: none;
        width: 100%;
    }

    /* Nav */
    .nav-links a {
        font-size: 14px;
    }

    /* Footer */
    .footer .container {
        flex-direction: column;
    }

    .footer-info, .footer-links, .footer-contact {
        flex: none;
        width: 100%;
    }
}

/* ===========================
   RESPONSIIVISUUS - PUHELIN (max 768px)
   =========================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 40px 0;
    }

    /* Typografia */
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }
    .ingressi { font-size: 18px; }

    /* Navigaatio: hampurilaisvalikko */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 20px;
        gap: 15px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 16px;
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    /* Hero */
    .hero {
        padding: 40px 0;
        min-height: auto;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-text, .hero-image {
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Palvelunostokortit */
    .service-cards {
        flex-direction: column;
    }

    .service-card,
    .service-card:last-child {
        max-width: 100%;
        flex: 1 1 100%;
    }

    /* Arvolupaus */
    .value-section .container {
        flex-direction: column;
    }

    /* Palvelut */
    .service-detail,
    .service-detail.reverse {
        flex-direction: column;
    }

    /* Esimerkkejä */
    .example-project,
    .example-project.reverse {
        flex-direction: column;
    }

    /* Arvokortit */
    .value-cards {
        grid-template-columns: 1fr;
    }

    /* Prosessivaiheet */
    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-step {
        max-width: 100%;
    }

    /* Yhteystiedot */
    .contact-layout {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Highlight box */
    .highlight-box {
        padding: 40px 20px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 30px;
    }

    .footer .container {
        flex-direction: column;
    }
}
