/*
Theme Name: Mua-Tuote Oy
Author: Miska Pietiläinen / Aatosmaailma tmi.
Version: 1.4
*/

body{
color: #6e6e6e;
}

.mua-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.container a{
    color: rgb(0, 189, 240);
    text-decoration: none;
}

.hero {
    position: relative;
    text-align: center;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    /* Tumma peitto */
    z-index: 1;
}

.hero h1{
    max-width: 700px;
    margin: auto;
    color:#fff;
}

.tuoteosio {
    background: linear-gradient(rgba(0, 40, 80, 0.8), rgba(0, 40, 80, 0.8)),
        url('/wp-content/themes/mua-tuote/assets/images/taustakuva1.webp') center center / cover no-repeat;
    position: relative;
}

.tuoteotsikko {
    font-family: 'Patua One', 'Patua One Fallback', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.tuote-ikoni {
    font-size: 2.2rem;
    color: rgb(0, 189, 240);
    /* sama kuin nappula-vaalea */
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Patua One', 'Patua One Fallback', sans-serif;
    font-weight: bold;
    color: #141414 ;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 3rem) !important;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.4rem) !important;
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem) !important;
    font-weight: 600;
    line-height: 1.4;
}

hr.zigzag {
    border: 0;
    height: 10px;
    max-width: 650px;
    margin: auto;
    margin-bottom: 30px;
    margin-top:20px;
    background: repeating-linear-gradient(-45deg,
            rgb(0, 189, 240),
            rgb(0, 189, 240) 10px,
            transparent 10px,
            transparent 20px);
}


.lead{
    font-family: 'Patua One', 'Patua One Fallback', sans-serif;
    font-size: 2rem;
}

.bg-vaalea{
    background-color: rgb(0, 189, 240) !important;
}

.color-vaalea {
    color: rgb(0, 189, 240) !important;
}

.bg-tumma{
    background-color: rgb(37, 71, 105);
}

.nav-list .menu-item-has-children>a::after {
    content: " ▼";
    font-size: 0.6em;
    margin-left: 5px;
}

.nappula-vaalea{
    background-color: rgb(0, 189, 240) !important;
    padding: 10px;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff !important;
    font-family: 'Patua One', 'Patua One Fallback', sans-serif;
    transition: .5s all;
}

.nappula-vaalea:hover{
    background-color: rgb(37, 71, 105) !important;
    transition: .5s all;
    color: #fff !important;
}

.etusivu-text h2{
    color: #000;
    font-size: 2.5rem;
}

/* NAVIGATION */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 24px;
    background: none;
    border: none;
    z-index: 1001;
}

.burger .bar {
    display: block;
    width: 24px;
    height: 3px;
    margin: 3px 0;
    background-color: #000;
    transition: 0.3s ease;
    border-radius: 2px;
}

.burger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .bar:nth-child(2) {
    opacity: 0;
}

.burger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav slide-in */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background-color: #fff;
    padding: 4rem 2rem;
    transition: left 0.4s ease;
    z-index: 1000;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-list a {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #224b6b;
    font-weight: 600;
    text-decoration: none;
}

.mobile-nav-list a:hover {
    color: #00d6ff;
}

.sub-menu{
    
}

/* Desktop nav */
.nav-list a {
    text-decoration: none;
    color: #005b7a;
    font-weight: 600;
}

.nav-list a:hover {
    color: #00d6ff;
}

.nav-list li {
    position: relative;
    list-style-type: none;
}

.nav-list li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.nav-list li:hover>ul {
    display: block;
}

.nav-list li ul li a {
    color: #333;
    display: block;
    padding: 0.4rem 0;
    text-decoration: none;
}

.nav-list li ul li a:hover {
    color: #008cba;
}

/* Desktop: hover dropdown */
@media (min-width: 992px) {
    .nav-list li {
        position: relative;
    }

    .nav-list li .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        padding: 0.5rem 1rem;
        border-radius: 0.25rem;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-list li:hover>.sub-menu {
        display: block;
    }

    .nav-list li .sub-menu a {
        color: #333;
        display: block;
        padding: 0.4rem 0;
        text-decoration: none;
    }


}

/* Mobiili: näytetään alavalikko jos vanhemmalla .open-luokka */
@media (max-width: 991px) {
    .mobile-nav-list li {
        position: relative;
    }

    .mobile-nav-list .sub-menu {
        display: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    .mobile-nav-list .open>.sub-menu {
        display: block;
    }
}



.scroll-down-icon {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-down-icon span {
    display: block;
    width: 24px;
    height: 24px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: auto;
}

/* Bouncing animation */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, 8px);
    }

    60% {
        transform: translate(-50%, 4px);
    }
}


@media (max-width: 576px) {
    .lead {
        font-size: 1.2rem;
    }
}


.page-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Tumma overlay */
    z-index: 1;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
}

.page-hero-title {
    font-family: 'Patua One', 'Patua One Fallback', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #fff;
    margin: 0;
}