﻿/* Nollataan marginaalit ja paddingit kaikilta elementeiltä */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Perusfontti ja tekstin väri */
body {
    font-family: Radley;
    font-style: italic;
    color: #333;
}

/* Desktop content width control */
.container,
.container-lg,
.container-xl {
    max-width: 1320px;
}


/* Navigointipalkki */
.navbar {
    background-color: #FFFFFF;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-collapse.show {
    color: #E26B6B;
}

/* Sulava vieritys ja padding ylävalikolle */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Navbar-logo ja nimi */
.navbar-brand {
    color: #B42020;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
}

/* Get app image */
.img-getapp {
    width: 100px;
    height: auto;
    align-items: center;
}




/* Hover-efekti logolle */
.navbar-brand:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}

    /* Navbar-logon koko ja marginaali */
    .navbar-brand img {
        height: 60px;
        margin-right: 10px;
    }

/* Navbar-linkit */
.nav-link {
    color: #B42020 !important;
    margin: 0 20px;
    transition: all 0.3s;
    font-style: italic;
    font-family: Radley;
    font-size: 25px;
    font-weight: 400;
}

    /* Hover-efekti linkeille */
    .nav-link:hover {
        opacity: 0.8;
    }

    /* Aktiivisen linkin väri */
    .nav-link.active {
        color: #E26B6B !important;
        opacity: 1;
    }

/* Navbar-linkkien keskitys vaakasuunnassa */
.navbar-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsiivisuus alle 992px (tablet & mobiili) */
@media (max-width: 991px) {
    .navbar-nav {
        position: relative;
        left: 0;
        transform: none;
        text-align: center;
    }

    .nav-social-icons {
        display: flex;
        justify-content: center !important;
        margin-left: 0 !important;
    }

    .nav-social-icons-qr {
        justify-content: center !important;
        margin-left: 0 !important;
        margin-top: 10px;
    }

    .footer-social-icons {
        text-align: center;
        justify-content: center;
        margin: 15px 0;
    }
}

/* Some-ikonit navbarissa */
.nav-social-icons {
    display: flex;
    align-items: center;
}

    /* Linkit somelle ja puhelimelle */
    .nav-social-icons a {
        color: #ffffff;
        font-size: 1.5rem;
        transition: opacity 0.3s;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        cursor: pointer;
    }

        /* Hover-efekti somelinkeille */
        .nav-social-icons a:hover {
            opacity: 0.8;
        }

.nav-social-icons-qr {
    display: flex;
    align-items: center;
}

.footer-social-icons {
    display: flex;
    align-items: center;
}
    /* Linkit somelle footerissa */
    .footer-social-icons a {
        color: #ffffff;
        font-size: 1.5rem;
        margin-left: 15px;
        transition: opacity 0.3s;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        cursor: pointer;
    }
        /* Hover-efekti somelinkeille footerissa */
        .footer-social-icons a:hover {
            opacity: 0.8;
        }

/* Puhelinnumero näkyväksi hoverilla */
.phone-number {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    font-size: 1rem;
    margin-right: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

    /* Kun luokka show lisätään, numero näkyy */
    .phone-number.show {
        opacity: 1;
        max-width: 200px;
        margin-right: 10px;
    }

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 700px;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

.hero-intro {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-section .mobile-view {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain; 
}



/* Esittely-osio */
.intro-section {
    padding-top: 40px;
    text-align: center;
}

    .intro-section h1 {
        color: #ffffff;
        font-size: 2.5rem;
        margin-bottom: 20px;
        /*font-weight: bold;*/
        margin-top: 80px;
    }

.services-list {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Kolme hyöty-ikonia */
.intro-benefits {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0;
    font-size: 1.1rem;
    color: #ffffff;
}

    .intro-benefits span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .intro-benefits i {
        color: #28a745;
        font-size: 1.2rem;
    }



/* Painikkeet */
.btn-primary {
    background-color: #FAA18F !important;
    border: none;
    padding: 12px 40px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

    .btn-primary:hover {
        background-color: #2a4239 !important;
    }

/* Palvelut */
.services-section {
    padding-top: 30px;
    background-color: #ffffff;
}

    .services-section h2 {
        color: #E26B6B;
        text-align: center;
        margin-bottom: 40px;
        font-size: 2rem;
        font-family: Radley;
        font-style: italic;
        font-weight: bold;
    }

    .download-section h2 {
        color: #E26B6B;
        text-align: center;
        margin-bottom: 40px;
        font-size: 2rem;
        font-family: Radley;
        font-style: italic;
        font-weight: bold;
    }


.download-section {
    padding: 30px 0;
    background-color: #ffffff;
}

/* Yksittäinen palvelukortti */
.service-card {
    background-color: #fff;
    border-radius: 10px;
    margin: 10px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .service-card:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }

    .service-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

/* Kortin sisältö */
.service-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.service-card h3 {
    color: #FAA18F;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.services-image {
    width: 100%;
    height: 220px; /* base height */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: block;
}


/* Meistä */
.about-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

    .about-section h2 {
        color: #FAA18F;
        text-align: center;
        margin-bottom: 40px;
        font-size: 2rem;
    }

/* Esittelykuva */

.lead-text {
    font-size: 1.2rem !important;
    font-weight: 500;
    margin-bottom: 30px;
}

/* Info-boxit */
.info-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .info-box:hover {
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }

    .info-box h3 {
        color: #1d2e28;
        font-size: 1.3rem;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .info-box h3 i {
            font-size: 1.5rem;
        }

    .info-box p {
        text-align: left;
        margin: 0;
        color: #666;
        font-size: 1rem;
        line-height: 1.7;
    }

/* Yhteydenottolomake */
.contact-section {
    padding: 60px 0;
    background-color: #ffffff;
}

    .contact-section h2 {
        color: #FAA18F;
        text-align: center;
        margin-bottom: 40px;
        font-size: 2rem;
    }

/* Footer */
footer {
    background-color: #E26B6B;
    color: #ffffff;
    padding: 30px 0;
}

    footer .logo-section {
        display: flex;
        align-items: center;
    }

        footer .logo-section img {
            height: auto;
            margin-right: 10px;
        }

    footer .company-info {
        text-align: center;
    }

.logo-footer {
    height: 50px;
    width: 250px;
}


.footer-icons a {
    color: #ffffff;
    font-size: 1.5rem;
    margin-left: 15px;
    transition: opacity 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.footer-icons {
    display: flex;
    padding: 10px;
    align-items: center;
    width: 150px;
    height: auto;
}


/* Some-ikonit oikealle footerissa */
.footer-social-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Responsiivisuus alle 768px (mobiili) */
@media (max-width: 768px) {
    .hero-section {
        position: relative;
        height: 90%;
        overflow: hidden;
    }

    .intro-benefits {
        gap: 15px;
        font-size: 1rem;
    }

    .btn-primary {
        padding: 12px 35px;
        font-size: 1rem;
    }

    .navbar-nav {
        text-align: center;
        margin-bottom: 15px;
    }

    .nav-social-icons {
        display: flex;
        text-align: center;
        margin-top: 5px;
        justify-content: center;
        align-items: center;
    }

    .navbar-toggler-icon {
        background-color: #E26B6B; 
        position: relative;
        
    }
  
        .navbar-toggler-icon span {
            
            color: #E26B6B; /* Red color */
            
        }

    footer .logo-section,
    footer .company-info,
    .footer-social-icons {
        text-align: center;
        justify-content: center;
        margin: 15px 0;
    }

    .intro-section h1 {
        font-size: 1.8rem;
    }

    .services-list {
        font-size: 1rem;
    }

    .services-image {
        width: 100%;
        max-height: 219.6px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-bottom: 30px;
    }

    .about-image {
        width: 100%;
        height: 270px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-bottom: 30px;
    }

    .hero-video {
        position:absolute;
        width: 100%;
        max-width: 100%;
        height: 100%;
        display: block;
    }

    .hero-section .mobile-view {
        width: 100%;
        height: auto;
        max-height: 600px;
        object-fit: contain;
    }

    

}

/* Toast-ilmoitukset (popup) */
.toast {
    bottom: 15px;
    right: 15px;
}

/*Medium desktop responsive (1024–1280px laptops)*/
@media (min-width: 1024px) and (max-width: 1280px) {

    /* Navbar spacing */
    .nav-link {
        margin: 0 12px;
        font-size: 0.95rem;
    }

    /* Hero text slightly smaller */
    .intro-section h1 {
        font-size: 2.2rem;
    }

    .services-list {
        font-size: 1.15rem;
    }

    /* Service cards spacing */
    .service-card img {
        height: 180px;
    }

    /* About text */
    .about-section p {
        font-size: 1rem;
        max-width: 720px;
    }

    .services-image {
        width: 100%;
        max-height: 350px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-bottom: 30px;
    }

    .about-image {
        width: 100%;
        height: 600px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-bottom: 30px;
    }

    .hero-section .mobile-view {
        width: 100%;
        height: auto;
        max-height: 600px;
        object-fit: contain;
    }
}

/*Large desktop, FullHD & 4K responsive*/
@media (min-width: 1280px) and (max-width: 1600px) {
    .about-image {
        width: 100%;
        height: 700px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-bottom: 30px;
    }

    .services-image {
        width: 100%;
        max-width: 1100px;
        max-height: 550px;
        height: 500px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        margin-bottom: 30px;
    }
}


/*Large desktop, FullHD & 4K responsive*/
@media (min-width: 1600px) {

    /* Hero section balance */
    /*.hero-section {
        height: 65vh;
        max-height: 800px;
    }*/

    /* Headings scale up */
    .intro-section h1 {
        font-size: 3rem;
    }

    .services-section h2,
    .about-section h2,
    .contact-section h2 {
        font-size: 2.4rem;
    }

    /* Paragraph readability */
    .about-section p {
        font-size: 1.15rem;
        max-width: 900px;
    }

    /* Service cards */
    .service-card img {
        height: 240px;
    }

    .services-image {
        max-height: 550px;
        width: 100%;
        height: 400px;
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-image {
        height: 730px;
            
    }
}

/*tablets & small laptops*/
@media (min-width: 768px) and (max-width: 1024px) {
    .services-image {
        max-height: 400px;
        width: 100%;
        height: 360px;  
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-image {
        height: 600px;
    }

    .qr-img {
        width: 150px;
        height: auto;
    }

    .hero-section .mobile-view {
        width: 100%;
        height: auto;
        max-height: 500px;
        object-fit: contain;
    }
}



/* Responsive tweaks */
@media (max-width: 767px) {
    .footer-right {
        justify-content: center !important; 
        flex-direction: row;
        padding: 20px 10px;
        margin-top: 20px; 
    }

    .qr-img {
        max-width: 110px;
        margin-bottom: 10px;
    }
}


