html,
body {
    background-color: #f8f9fa;
    font-family: 'Roboto', sans-serif;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===================== */
/*        NAVBAR         */
/* ===================== */

.nav-item {
    font-weight: bold;
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    text-shadow: none;
}

.nav-link:hover {
    border-bottom: 2px solid #ffffff;
    transform: scale(1.05);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.navbar-brand img {
    max-height: 180px;
    transition: transform 0.3s ease, opacity 1.5s ease;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .navbar-brand img {
        max-height: 80px;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===================== */
/*        FOOTER         */
/* ===================== */
footer a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: #ffb74d;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease, text-shadow 0.3s ease, text-decoration 0.2s ease-in-out;
}

footer a:hover i {
    color: #ffb74d;
}

footer .text-white {
    color: #e0e0e0;
}

footer .text-white:hover {
    color: #ffb74d !important;
}




/* ===================== */
/*       ETUSIVU         */
/* ===================== */
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-section {
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-overlay .btn-resize {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hero-overlay .btn-resize:hover {
    transform: scale(1.1);
    background-color: #ffb74d;
}

@media (max-width: 768px) {
    .hero-overlay .btn-resize {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}


@media (max-width: 480px) {
    .hero-overlay .btn-resize {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .section-title {
        font-size: 1.5rem;
    }
}

main.container {
    text-align: center;
    margin: 1rem auto;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #222;
    margin-bottom: 0.5rem;
    position: relative;
}

main p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.2rem;
}


/* HUOLTO*/
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #000000;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #000000;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    margin-top: 5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================== */
/*      MUUT PALVELUT    */
/* ===================== */
.container {
    max-width: 100%;
    padding: 0 15px;
}

.service-block {
    margin-bottom: 3rem;
    /* Väli lohkojen välillä */
}

.service-block h4,
.service-block p {
    margin-bottom: 1rem;
    /* Väli tekstien ja kuvan välillä */
}

.service-block .image-standard {
    margin-top: 1rem;
    /* Varalta lisäväli kuvan yläpuolelle */
}

.image-standard {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.d-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
}

.d-flex .image-standard {
    width: 100%;
    max-width: 150px;
    max-height: 100px;
    margin: 0;
}


@media (min-width: 768px) {
    .image-standard {
        max-height: 300px;
    }

    .d-flex {
        flex-wrap: nowrap;
        max-width: 900px;
        margin: 0 auto;
        gap: 1rem;
    }

    .d-flex .image-standard {
        max-width: 200px;
        max-height: 150px;
    }
}


@media (min-width: 1200px) {
    .image-standard {
        max-height: 400px;
    }

    .d-flex {
        max-width: 1000px;
    }

    .d-flex .image-standard {
        max-width: 250px;
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .text-center {
        margin-bottom: 1.5rem;
    }

    .image-standard {
        max-height: 150px;
    }

    .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }

    .d-flex .image-standard {
        max-width: 200px;
        max-height: 120px;
    }

}


/* ===================== */
/*        GALLERIA       */
/* ===================== */

.carousel-item img {
    max-height: 60vh;
    width: auto;
    object-fit: contain;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    height: 50px;
    width: 50px;
    outline: black;
    background-color: rgb(0, 0, 0);
    background-size: 100%, 100%;
    border-radius: 50%;
    border: 1px solid black;
    transition: all 0.3s ease-in-out;
}



/* ===================== */
/*      OTA YHTEYTTÄ     */
/* ===================== */
.contact-section {
    width: 100%;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 1rem;
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.contact-intro>*+* {
    margin-top: 1rem;
}

.contact-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-description {
    color: #6c757d;
    font-size: 1rem;
}

.form-group-container {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #212529;
}

.form-input,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    width: 100%;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #adb5bd;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #212529;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
    outline: none;
}

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

.form-submit {
    width: 100%;
    margin-top: 1.5rem;
    background-color: #212529;
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: #212529;
}

.form-reset {
    margin: 1rem auto 0 auto;
    background-color: #6c757d;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: block;
}

.form-reset:hover {
    background-color: #5a6268;
}




h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

p,
li,
a {
    font-weight: 400;
}