/* -----------------------------------
   BASE
----------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    color: #1a1a1e;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* -----------------------------------
   HEADER
----------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    gap: 8px;
    align-items: center;
}

.brand-dot {
    width: 12px;
    height: 12px;
    background: #00bcd4;
    border-radius: 50%;
}

.brand-name {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #00bcd4;
}

.main-nav {
    display: flex;
    gap: 22px;
    font-size: 0.95rem;
    font-weight: 500;
    align-items: center;
}

.main-nav a {
    color: #1a1a1e;
    opacity: 0.75;
    transition: 0.2s ease;
}

.main-nav a:hover {
    opacity: 1;
}

.nav-cta {
    margin-left: 18px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: #00bcd4;
    color: #ffffff;
    border-radius: 100px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-contact:hover {
    background: #009fb4;
}

/* -----------------------------------
   MOBILE MENU (KORJATTU, TOIMIVA)
----------------------------------- */

/* Overlay piilossa aina oletuksena — myös PC:llä */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(14px);
    z-index: 9990;
    justify-content: center;
    align-items: center;
}

/* Mobiilissa overlay näkyy vain ACTIVE-tilassa */
@media (max-width: 880px) {
    .mobile-menu-overlay.active {
        display: flex;
    }
}

/* Itse burger-button */
.mobile-menu-button {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10000;
    cursor: pointer;
    padding: 8px;
    display: none; /* näkyy vain mobiilissa */
}

/* Näkyviin mobiilissa */
@media (max-width: 880px) {
    .mobile-menu-button {
        display: block;
    }
}

/* Burger + X ikonit */
.mobile-menu-button svg {
    width: 32px;
    height: 32px;
    stroke: #00bcd4;
    transition: 0.2s ease;
}

#closeIcon {
    display: none;
}

/* Varmistetaan että vanhat bar-elementit eivät näy */
.mobile-menu-button .bar {
    display: none !important;
}

/* Mobiilin valikko sisällä */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 26px;
    text-align: center;
}

.mobile-nav a {
    font-size: 1.6rem;
    font-weight: 600;
    color: #007b8c;
}

.mobile-contact {
    background: #00bcd4;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 1.3rem !important;
}




/* -----------------------------------
   HERO
----------------------------------- */

.hero {
    padding: 60px 22px 40px;
}

.hero-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: #e0f7fa;
    color: #007b8c;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 700;
}

.hero-lead {
    font-size: 1rem;
    max-width: 540px;
    color: #4a4d52;
    margin-bottom: 24px;
}

.hero-code {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    align-items: center;
}

.hero-graphic svg {
    width: 120px;
    height: auto;
    opacity: 0.95;
}

.code-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    padding: 18px;
    font-size: 0.85rem;
    line-height: 1.45;
    border-radius: 12px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.06);
    white-space: pre-wrap;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}


/* -----------------------------------
   BUTTONS
----------------------------------- */

.btn-primary {
    display: inline-block;
    background: #00bcd4;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 100px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-primary:hover {
    background: #009fb4;
}

.btn-secondary {
    display: inline-block;
    background: #e0f7fa;
    color: #007b8c;
    padding: 12px 22px;
    border-radius: 100px;
    font-weight: 600;
    transition: 0.2s ease;
    border: 1px solid #bcebf0;
}

.btn-secondary:hover {
    background: #c9f1f6;
}


/* Mobile full-width buttons */
@media (max-width: 880px) {
    .hero-btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}


/* -----------------------------------
   SECTIONS & SPACING
----------------------------------- */

.section {
    padding: 45px 22px;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section-cta {
    background: #eef8fa;
    border-radius: 14px;
    margin-top: 20px;
    padding: 45px 22px;
}

.section-cta h2 {
    margin-top: 0;
}

.section-lead {
    max-width: 600px;
    color: #4a4d52;
    margin: 0 0 18px;
}

.cta-buttons {
    margin-top: 24px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.section-google {
    background: #f1f7fa;
    border-radius: 12px;
    padding-top: 45px;
    padding-bottom: 45px;
}

.section h2 {
    margin: 0 0 12px;
}


/* -----------------------------------
   GRID + CARDS
----------------------------------- */

.grid-3 {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 24px;
}

.card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.05);
}

.card h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.card p {
    margin: 0 0 14px;
    color: #4a4d52;
}


/* -----------------------------------
   BENEFITS
----------------------------------- */

.benefit-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.benefit-list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}


/* -----------------------------------
   ABOUT
----------------------------------- */

.about-inner {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.about-text {
    flex: 2;
}

.about-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-visual svg {
    max-width: 220px;
    height: auto;
}


/* -----------------------------------
   FOOTER
----------------------------------- */

.site-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding: 20px 22px;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}


/* -----------------------------------
   MOBILE RESPONSIVE
----------------------------------- */

@media (max-width: 880px) {

    /* Hide desktop nav */
    .main-nav {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-code {
        justify-content: center;
        margin-top: 22px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .section,
    .section-cta,
    .section-google {
        padding: 38px 18px;
    }

    .about-inner {
        flex-direction: column;
        text-align: left;
    }

    .about-visual {
        justify-content: flex-start;
    }

    html, body {
        overflow-x: hidden;

    }

/* -----------------------------------
   MOBILE FIX PATCH
----------------------------------- */
@media (max-width: 700px) {

    /* Estetään koko sivun ylivuoto */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100%;
    }

    /* HERO: pakota 1 kolumni aiemmin */
    .hero-inner {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 26px;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* HERO otsikko pienemmäksi */
    .hero h1 {
        font-size: 1.9rem !important;
        line-height: 1.25 !important;
        word-break: break-word;
    }

    /* HERO lead text full-width */
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
        max-width: 100% !important;
    }

    /* HERO code & graphic */
    .hero-code {
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        gap: 14px;
        width: 100%;
    }

    .code-card {
        max-width: 100% !important;
        font-size: 0.82rem;
        padding: 14px !important;
        overflow-wrap: break-word;
        word-break: break-word;
        margin: 0 auto;
    }

    /* Full-width buttons */
    .btn-primary, .btn-secondary, .hero-btn {
        width: 100% !important;
    }

    /* Section spacing pienemmäksi */
    .section,
    .section-cta,
    .section-google {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    /* Footer oikeaan leveyteen */
    .site-footer,
    .footer-inner {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

body.menu-open {
    overflow: hidden;
    }

.mobile-menu-overlay {
    z-index: 9999; /* Varmistaa toimivuuden */
    display: none;
    }

.mobile-menu-button {
    z-index: 10000; /* Burger on overlayn yläpuolella */
    }


    /* --- MOBILE HEADER SIZE BOOST --- */
@media (max-width: 880px) {

    .site-header {
        padding: 10px 0;
        height: 72px; /* isompi header */
    }

    .header-inner {
        padding: 20px 22px; /* lisää sisätilaa */
    }

    .brand-name {
        font-size: 1.35rem; /* isompi brändi-teksti */
    }

    .brand-dot {
        width: 14px;
        height: 14px; /* suurempi logopiste */
    }

    .mobile-menu-button .bar {
        width: 32px;  /* isompi burger */
        height: 4px;
        margin: 7px 0;
    }

}
}

}
