.page-template-page-hero {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    margin:0;
}
.page-template-page-hero a {
    font-family: 'Montserrat', sans-serif;
    color: #dcb8be;
}

#hero-footer-empty {
    position: relative;
}

.hero-footer-content {
    position: inherit;
    font-family: 'Montserrat', sans-serif;
    top: -30px; 
    margin-top: -30px;
    width: 100%;
    text-align: center;
    color: rgba(255,255,255,0.75);
    z-index: 10;
}    



/* --- Perustyylit (Työpöytä / Desktop) --- */

.hero-video-container {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* Poster image asetukset */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    opacity: 0; /* Aluksi nolla, JS näyttää jos latautuu */
    transition: opacity 1s ease-in-out;
}

.hero-video-bg iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0,0,0,0.0); /* Tumma tausta parantaa luettavuutta */
    border-radius: 15px;
    margin: 0 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Otsikko ja Ingress (Desktop) */
.hero-content h1 {
	color: #fff1f3;
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-content .ingress {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Pinkit Painikkeet */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    /*background-color: #FF69B4;
    color: #fff !important;*/
    
    text-transform: uppercase;
    background-color: #fff1f3;
    color: #333 !important;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 0px;
    /*font-weight: bold;*/
    transition: 0.3s;
    font-size: 1rem;
}

.hero-btn:hover {
    background-color: #dcb8be; /* #FF99E4; */
    color: #FFF !important;
    transform: translateY(-2px);
}

/* --- TABLETIT (Max 1024px) --- */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content .ingress {
        font-size: 1.2rem;
    }
}

/* --- PUHELIMET (Max 768px) --- */
@media (max-width: 768px) {
    .hero-content {
        padding: 25px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content .ingress {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    .hero-btn {
        padding: 12px 24px;
        width: 100%; /* Puhelimella painikkeet voivat olla allekkain */
        max-width: 250px;
    }
}

/* --- PUHELIMET PYSTYSUUNNASSA (Portrait - Max 480px) --- */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem; /* Pienempi otsikko kapeille näytöille */
    }
    .hero-content .ingress {
        font-size: 1rem;
        line-height: 1.4;
    }
    .hero-buttons {
        gap: 10px;
    }
}