/* Perusasetukset */
:root {
    --blue: #5a59deff;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

/* Yleiset apuluokat */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* 1. Hero */
.hero {
    background: var(--white);
    color: var(--blue);
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.hero-image img {
    max-width: 80%;

    height: auto;
    opacity: 1;
    animation: fadeIn 1.0s ease-in-out forwards;
    animation-delay: 0s;
}

.tyokalut-image img {
    max-width: 90%;

    height: auto;
    padding-top: 2rem;
    padding-bottom: 0rem;
    opacity: 1;
    animation: fadeIn 1.0s ease-in-out forwards;
    animation-delay: 0s;
}


.slogan {
    margin-top: 1.5rem;
    font-size: 1.6rem;
}





/* 2. Palvelut */
.services {
    background: var(--blue);
    color: var(--white);
    padding: 1rem;
}

.services-grid {
    display: flex;
    align-items: center;
}


.services-text,
.services-image {
    flex: 1;
}

.services-image img {
    max-width: 100%;
    border-radius: 8px;
    padding-left: 5rem;
}




/* 3. Yritt채j채 */
.entrepreneur {
    background: var(--white);
    color: var(--blue);
    padding: 1rem;
}

.entrepreneur-grid {
    display: flex;
    align-items: center;
}


.entrepreneur-text,
.entrepreneur-image {
    flex: 1;
}

.entrepreneur-image img {
    max-width: 90%;
    border-radius: 8px;
    padding-right: 5rem;

}


/* 4. Palaute */
.palaute {
    background: var(--blue);
    color: var(--white);
    padding: 1rem;
}

.palaute-grid {
    display: flex;
    align-items: center;
}


.palaute-text,
.palaute-image {
    flex: 1;
}

.palaute-image img {
    max-width: 100%;
    border-radius: 8px;
    padding-right: 5rem;
}

/* 4. Refernssit */

#referenssit {
	background: var(--blue);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.carousel {
    position: relative;
    max-width: 500px;
    margin: 40px auto;
	
}

.carousel-track {
    position: relative;
}

.carousel-image {
	width: 100%;
    max-height: 500px;  
    object-fit: contain;
    width: 100%;
    border-radius: 16px;
    opacity: 0;
    position: absolute;
    inset: 0;
    transition: opacity 0.6s ease;
}

.carousel-image.active {
    opacity: 1;
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: none;
    border: none;

    font-size: 40px;
    color: white;

    width: auto;          /* estää venymisen */
    height: auto;

    padding: 0.2em;       /* pieni klikkausalue */
    line-height: 1;

    cursor: pointer;
	opacity: 0.7;
    transition: opacity 0.2s;
}

.carousel-btn.prev {
    left: -5rem;
}

.carousel-btn.next {
    right: -5rem;
}
.carousel-btn:hover {
    opacity: 1;
}

.carousel-caption {
    margin-top: 12px;
    font-style: italic;
    opacity: 0.85;
}

/* Navigointipisteet */
.carousel-dots {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
}

.carousel-dots button.active {
    background: #b64e6b;
}


/* 5. Hinnasto */
.prices {
    background: var(--white);
    color: var(--blue);
    padding: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.pricing-grid {
    display: flex;
    align-items: center;
}

.pricing-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 7rem;
}

.pricing-image img {
    max-width: 100%;
    width: 40%;
}

.prices-text {
    flex: 1;
    text-align: center;

    margin-right: 9rem;

}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    padding-top: 1rem;
    padding-bottom: 1rem;

}





/* 6. Yhteydenotto */
.contact {
    background: var(--blue);
    color: var(--white);
	display: flex;
    flex-direction: column;
    align-items: center;   /* vaakasuuntainen keskitys */
	text-align: center;
	padding-top: 2.5rem;
}

form {
    width: 100%;
    max-width: 500px;
}

label {
    display: block;
    margin-top: 1rem;
}

input,
textarea {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.3rem;
    border: none;
    border-radius: 4px;
}

button {
    margin-top: 1.5rem;
    padding: 0.8rem;
    width: 100%;
    background: var(--white);
    color: var(--blue);
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

.phone-link {
    color: inherit;
    text-decoration: none;
}

.phone-link:hover {
    text-decoration: underline;
}


/* 7. Footer */
.footer {
    background: var(--white);
    color: var(--blue);
    text-align: center;
    padding: 2rem 1rem;
}

.footer img {
    padding-top: 1rem;
    width: 100px;
    margin-bottom: 1rem;
}

.footer .copyright {
    margin-top: 3rem; 
    font-size: 0.9rem;
}

/* Responsiivisuus */
@media (max-width: 768px) {
	
.carousel-btn {

	opacity: 0.0;
}

.carousel-btn.prev {
    left: -1rem;
}

.carousel-btn.next {
    right: -1rem;
}
	
	.carousel-image {
    max-height: 300px;
}


    
    .services-grid {
        flex-direction: column;
        text-align: center;
    }
	.services-image img {
        max-width: 80%;
        border-radius: 8px;
        padding: 1rem;
        padding-top: 4rem;
    }
    
    .entrepreneur-grid {
        flex-direction: column;
        text-align: center;
    }
	.entrepreneur-image img {
        max-width: 80%;
        border-radius: 8px;
        padding: 1rem;
        padding-top: 1rem;
    }
    
    .palaute-grid {
        flex-direction: column;
        text-align: center;
    }
	.palaute-image img {
        max-width: 80%;
        border-radius: 8px;
        padding: 1rem;
        padding-top: 4rem;
    }
    
    .pricing-grid {
        flex-direction: column;
    }

    .prices-text {
        order: 1; /* teksti ensin */
        padding: 3rem;
        margin: 0;
    }

    .pricing-image {
        order: 2; /* kuva alle */
        margin: 0;
    }

    .pricing-image img {
        width: 70%; 
        max-width: 300px; 
        border-radius: 8px;
        padding: 1rem;
        padding-top: 2rem;
        padding-bottom: 2rem;

    }
    
    .price {
    font-size: 2.25rem;
    }


    .hero {
        padding: 1rem 2rem;
    }
    
	.hero-image img {
        width: 100%;
        max-width: none;
        border-radius: 8px;
    }
    
	.tyokalut-image img {
        width: 100%;
        max-width: none;
        border-radius: 8px;
    }
	
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


