/*
Theme Name: Pirkanmaan Yritysvälitys 
Author: Jarno
Author URI: https://wordpress.org
Description: Pirkanmaan Yritysvälityksen sivusto
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1
*/

/* --- Navigaatio yleiset --- */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@100..900&display=swap');

html {
  scroll-behavior: smooth;
}

html, body {
background-color: white;
}

:root {
  --color-blur:rgb(15, 30, 62);
  --color-gold:rgba(171, 132, 74, 1);
  --color-white: rgba(239, 239, 239, 1);
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }



body.admin-bar .site-header {
    top: 32px !important;
  }
  

  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    /* background: var(--color-white); */
    /* backdrop-filter: blur(10px); */
    z-index: 1000;
    transition: top 0.3s ease;
  }
  
  /* Piilotettu tila */
  .site-header.hide {
    top: -100px;
  }
  
  
  .nav-container {
    max-width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3%; /* Dynaaminen vaakasuuntainen padding */
    box-sizing: border-box; /* Varmistaa että padding ei ylitä leveyttä */
  }
  .nav-right-group {
    display: flex;
    gap: 20px; /* väli nappien välille */
    align-items: center;
  }
  
  /* --- Logo --- */
  /* .logo img {
    height: 70px;
    width: auto;
  } */

  .logo {
    position: relative;
    height: 70px; /* sama kuin .logo img */
    display: flex;
    align-items: center;
  }

  .logo img {
    height: 70px;
    width: auto;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease;
  }
  
  
  .logo-light {
    opacity: 1;
  }
  
  .logo-dark {
    opacity: 0;
  }
  
  .site-header.scrolled-up .logo-light {
    opacity: 0;
  }
  
  .site-header.scrolled-up .logo-dark {
    opacity: 1;
  }
  
  /* --- Menu --- */
  .main-nav {
    display: flex;
    align-items: center;
    /* font-family: 'Roboto Slab', serif; */
    /* font-family: 'Merriweather', serif; */
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    /* font-style: 'normal'; */
    font-size: 15px;

  }
  
  .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
  }
  
  .main-nav ul li {
    margin-left: 40px;
    /* padding-left: 20px; */
  }
  
  .main-nav ul li a {
    text-decoration: none;
    color: rgba(239, 239, 239, 1);
    /* font-weight: 600; */
    transition: color 0.3s ease;
  }
  
  .main-nav ul li a:hover {
    color: rgba(171, 132, 74, 1);
  }

/* Alkuasento */
.site-header {
  background: rgba(14, 29, 60, 0);
  /* backdrop-filter: blur(10px); */
  transition: all 0.3s ease;
}

.site-header .main-nav ul li a {
  color: rgba(239, 239, 239, 1);
}

.site-header .main-nav ul li a:hover {
  color: var(--color-gold);
}

.site-header .menu-toggle {
  color: white;
}

/* Piilotettu tila */
.site-header.hide {
  top: -100px;
}

/* Scrollauksen jälkeen näkyvä valkoinen navigaatio */
.site-header.scrolled-up {
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  backdrop-filter: none;
}

.site-header.scrolled-up .main-nav ul li a {
  color: #1a1a1a;
}

.site-header.scrolled-up .main-nav ul li a:hover {
  color: var(--color-gold);
}

.site-header.scrolled-up .menu-toggle {
  color: black;
}
  


/* KOHTeeT MENU*/

.main-nav-kohteet {
  display: flex;
  align-items: center;
  /* font-family: 'Roboto Slab', serif; */
  /* font-family: 'Merriweather', serif; */
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  /* font-style: 'normal'; */
  font-size: 15px;

}

.main-nav-kohteet ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-nav-kohteet ul li {
  margin-left: 40px;
  /* padding-left: 20px; */
}

.main-nav-kohteet ul li a {
  text-decoration: none;
  color: black;
  /* font-weight: 600; */
  transition: color 0.3s ease;
}

.main-nav-kohteet ul li a:hover {
  color: rgba(171, 132, 74, 1);
}

@media (max-width: 768px) {
  .main-nav-kohteet {
    display: none;
    position: absolute;
    top: 90px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    text-align: center;
  }

  .main-nav-kohteet ul {
    flex-direction: column;
    padding: 20px 0;
  }

  .main-nav-kohteet ul li {
    margin: 10px 0;
  }

  .menu-toggle-kohteet {
    display: block !important;
    color:black;
    z-index: 9999;
  }

  .main-nav-kohteet.active {
    display: block;
  }
}


/* Alkuasento */
.site-header {
background: rgba(14, 29, 60, 0);
/* backdrop-filter: blur(10px); */
transition: all 0.3s ease;
}

.site-header .main-nav ul li a {
color: rgba(239, 239, 239, 1);
}




  /* --- Hamburger-nappi --- */
  .menu-toggle {
    color:white;
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
  }

    /* --- Hamburger-nappi --- */
    .menu-toggle-kohteet {
      color:black;
      display: none;
      font-size: 30px;
      background: none;
      border: none;
      cursor: pointer;
    }
  
  /* --- Hero --- */
  /* .main-content {
    padding-top: 90px;
  } */
  
  .hero-front {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-text {
    position: relative;
    margin-top: 150px;
    z-index: 2;
    text-align: center;
    color: #efefef;
    padding: 0 1rem;
  }

  .hero-text h1 {
    font-family: 'Montserrat', serif;
    font-weight: 500;
    font-size: 4rem;
    margin: 0 0 1rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  }

  .hero-text p {
    font-family: 'Montserrat', serif;
    font-size: 1.25rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  }

  @media (max-width: 600px) {
    .hero-text p {
      display: none;
    }
    .hero-front::before {
      background: rgba(0, 0, 0, 0.0);
    }
  }

  @media (max-width: 768px) {
    .hero-text h1 {
      font-size: 3rem;
    }

    .hero-text p {
      font-size: 1.2rem;
    }
  }

  @media (max-width: 480px) {
    .hero-front {
      height: 60vh;
    }

    .hero-text h1 {
      font-size: 2.5rem;
    }

    .hero-text p {
      font-size: 1.1rem;
    }
  }

  .hero-text-kohteet {
    position: absolute;
    z-index: 2; 
    padding-top: 8rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    /* color:rgba(239, 239, 239, 1); */
    color: black;

  }
  
  .hero-text-kohteet h1 {
    font-family: 'Montserrat', serif;
    font-weight: 500;
    font-size: clamp(2rem, 8vw, 4rem);
    max-width: 800px;
    margin: 0;

    /* text-shadow: 0 0 10px rgba(0,0,0,0.6); */
  }
  
  .hero-text-kohteet p {
    font-family: 'Montserrat', serif;
    font-size: 20px;
    padding-bottom: 4rem;
  }


  
  /* --- Responsiivisuus --- */
  @media (max-width: 768px) {
    .main-nav {
      display: none;
      position: absolute;
      top: 90px;
      right: 0;
      background: rgba(255, 255, 255, 0.95);
      width: 100%;
      text-align: center;
      color:black;
    }
    .menu-item {
      color:black;
    }
  
    .main-nav ul {
      flex-direction: column;
      padding: 20px 0;
    }
  
    .main-nav ul li {
      margin: 10px 0;
    }
  
    .menu-toggle {
      display: block;
      color:black;
    }
  
    .main-nav.active {
      display: block;
      color:black;
    }
    .main-nav.active,
    .main-nav.active a,
    .main-nav.active .menu-item a {
      color: black;
    }
  }
  
/* KARUSELLI */

.logo-carousel-section {
  overflow: hidden;
  background-color: #f9f9f9;
  padding: 40px 0;
  position: relative;
}

.logo-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  gap: 60px;
  will-change: transform;
  width: max-content; /* tärkeää! mahdollistaa rivin siirtämisen */
}

.carousel-track img {
  height: 60px;
  width: 400px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Fade-reunat */
.logo-carousel::before,
.logo-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logo-carousel::before {
  left: 0;
  background: linear-gradient(to right, #f9f9f9 0%, transparent 100%);
}

.logo-carousel::after {
  right: 0;
  background: linear-gradient(to left, #f9f9f9 0%, transparent 100%);
}

/* Animaatio */
@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .split-section {
    flex-direction: column;
  }

  .split-image,
  .split-text {
    flex: 1 1 100%;
  }

  .box-container {
    flex-direction: column;
    align-items: center;

  }

  .info-box {
    width: 90%;
    margin-bottom: 20px;
  }
}


/* KOHTEET */

.hero-project {
  position: relative;
  height: 300px;
  /* background-image: url('images/punatiili_2.jpg'); */
  background-size: cover;
  background-position: center;
  color: black;
}

.hero-project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.4);  */
  z-index: 1;
}

/* US */

.hero-us {
  position: relative;
  height: 700px;
  background-image: url('images/skydiver.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

.hero-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* tämä tekee tummennuksen */
  z-index: 1;
}

/*PALVELUT*/

.split-section {
  font-family: 'Montserrat', serif;
  /* font-family: 'Merriweather', serif; */
  display: flex;
  flex-wrap: wrap;
  min-height: 300px;
  justify-content: center;
  background-color: #f9f9f9;

}


.contact-button {
  padding: 10px 18px;
  background-color: rgba(171, 132, 74, 0);
  color: white;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--color-white);
  transition: background-color 0.1s ease;
}

.site-header.scrolled-up .contact-button:hover {
  background-color: #b18a4a;
  border: 1px solid #b18a4a;
  color:white;
}

.contact-button:hover {
  background-color: #b18a4a;
  border: 1px solid #b18a4a;
}


.logo-light {
  opacity: 1;
}

.logo-dark {
  opacity: 0;
}


.site-header.scrolled-up .contact-button{
  background-color: rgba(171, 132, 74, 0);
  color: var(--color-blur);
  border: 1px solid var(--color-blur);
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  .contact-button {
    display: inline-block;
    margin: 20px auto;
  }
}

.split-image,
.split-text {
  flex: 1 1 50%;
  position: relative;
  display: flex;
  height: 400px;
  align-items: center;
  justify-content: center;
  padding: 40px;
  box-sizing: border-box;
  border-radius: 12px;
}

.split-image {
  background: 
  linear-gradient(rgba(15, 30, 62, 0.5), rgba(15, 30, 62, 0.5)),
  url('images/fin_flag.jpeg') center/cover no-repeat;
  color: var(--color-white);
  /* box-shadow: var(--box-shadow); */
  overflow: hidden;
}

.split-text {
  background: 
    linear-gradient(rgba(171, 132, 74, 0.85), rgba(171, 132, 74, 0.85)),
    url('images/sailing_boat.jpg') center/cover no-repeat;
  color: var(--color-white);
  flex-direction: column;
}

.text-overlay {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.text-overlay p {
  line-height: 1.6;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.box-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: space-between;
  margin-top: 40px;
  /* flex-wrap: wrap; */
  width: 100%;
  max-width: 1000px;
}
.info-box {
  width: 100%;
  background: rgba(255, 255, 255, 0.1); 
  color: var(--color-white);/*var(--color-blur); */
  padding: 30px;
  flex: 1 1 30%;
  border: 1px solid var(--color-white);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  min-width: 250px;
  text-align: left;
  backdrop-filter: blur(5px); 
}

.text-overlay h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);;
  font-weight: 500;
}

.info-box h2 {
  font-size: 1.6rem;
  margin-bottom: 10px; /* Lisää väliä otsikon ja tekstin väliin */
}
/* .info-box {
  background-color: white;
  color: black;
  padding: 30px;
  flex: 1 1 30%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  min-width: 250px;
  text-align: center;
} */

/* YHTEYSTIETO-OSION ASETTELU */
#yhteys {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
}

#yhteys h1 {
  font-family: 'Montserrat', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
}

#yhteys p {
  font-family: 'Montserrat', serif;
}

#yhteys .tiimi {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
  padding-top: 3rem;
}

.henkilo {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 900px;
  width: 100%;
  background-color: white;
  text-align: left;
}

.henkilo img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  display: block;
}

.henkilo-info {
  flex: 1;
  font-family: 'Montserrat', serif;
}

.henkilo-info-contact {
  flex: 1;
  padding-top: 10px;
  padding-bottom: 10px;
  font-family: 'Montserrat', serif;
}

.henkilo-info-contact strong {
  color: var(--color-gold);
  font-weight: 600;
}

/* .henkilo-info h4 {
  color: var(--color-gold);
} */

.henkilo-info h3 {
  margin-top: 0;
  font-weight: 600;
}

.yhteystiedot p {
  margin: 0;
}

.kuvaus {
  margin-top: 0.75rem;
}

/* Responsiivisuus: kuva ylös, tekstit alle */
@media (max-width: 600px) {
  .henkilo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .henkilo-info {
    text-align: center;
  }

  .henkilo-info p {
    text-align: left;
  }

  .henkilo-info-contact {
    text-align: left;
  }

  .henkilo img {
    margin-bottom: 1rem;
  }
}


/* YHTEYS */

/* #yhteys {
  background-color: #f9f9f9;
  font-weight: 500;
  font-family: 'Montserrat', serif;
}

#yhteys h1 {
  font-weight: 500;
}

.tiimi {
  font-family: 'Montserrat', serif;
  width: 100%;
  display:flex;
  flex: 1;
  flex-direction: row;
  /* align-items: center; */
  /* justify-content: space-around; */
/* } */

/* .henkilo { */
  /* border: 1px solid var(--color-gold); */
  /* flex: 0 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  height: 300px;
  width: 550px;
  background: white; */
  /* border-radius: 12px; */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  /* transition: transform 0.3s ease;
  cursor: pointer;
}

.henkilo:hover,
.henkilo.active {
  transform: translateY(-5px);
}

.henkilo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.henkilo:hover img,
.henkilo.active img {
  transform: translateY(-100%);
}

.henkilo-info {
  position: absolute;
  bottom: 0;
  padding: 1rem;
  z-index: 2;
  background: white;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.henkilo:hover .henkilo-info,
.henkilo.active .henkilo-info {
  opacity: 1;
  transform: translateY(0%);
}

.henkilo-info h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.henkilo-info p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
} */

/* MEDIA QUERIES */
/* @media (max-width: 900px) {
  .henkilo {
    flex: 0 1 45%;
    height: 300px;
  }
}

@media (max-width: 600px) {
  .henkilo {
    flex: 0 1 100%;
    height: 280px;
  }

  .henkilo-info p {
    font-size: 0.85rem;
  }
} */


/*KOHDE*/

/* Perustyylit */
/* .kohde-sivu {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: Arial, sans-serif;
} */
/* 
.hero-project {
  text-align: center;
  padding: 3rem 1rem;
  background: #f2f2f2;
  border-radius: 8px;
  margin-bottom: 3rem;
} */
.kohde-container {
  font-family: 'Montserrat', serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  /* background: #fff; */
  /* border-radius: 12px; */
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
}

.ylarivi {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.kohde-image {
  flex: 2;
  min-width: 300px;
}

.kohde-image img {
  width: 100%;
  height: auto;
  /* border-radius: 8px; */
  display: block;
}

.oikea-sisalto {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 250px;
  max-width: 350px;
}


.kohde-meta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kohde-meta li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.kohde-lomake {
  /* background-color: #f9f9f9; */
  padding: 1rem;
  /* border-left: 4px solid #0073aa; */
  /* border-radius: 8px; */
  font-size: 0.95rem;
}

.kohde-lomake h2 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: black;
}

.kohde-lomake form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kohde-lomake input[type="text"],
.kohde-lomake input[type="email"],
.kohde-lomake input[type="tel"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  /* border-radius: 4px; */
  font-size: 0.95rem;
}

.kohde-lomake input[type="submit"] {
  padding: 0.6rem;
  background-color: var(--color-blur);
  color: white;
  border: none;
  /* border-radius: 4px; */
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.kohde-lomake input[type="submit"]:hover {
  background-color: #005f87;
}

.link-back {
  font-family: 'Montserrat', serif;
  text-decoration: none;
}


/* Teksti vie enemmän tilaa ja voi jatkua alle */
.kohde-tiedot {
  position: relative;
  overflow: auto;
}

.kohde-tiedot h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.kohde-laatikko {
  float: right;
  width: 250px;
  margin: 0 0 1rem 2rem;
  padding: 1rem;
  /* background-color: #f7f9fc; */
  border: 1px solid var(--color-gold);
  /* border-left: 4px solid #0073aa; */
  /* border-radius: 8px; */
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kohde-meta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kohde-meta li {
  margin-bottom: 0.5rem;
  color: #333;
}

.kohde-kuvaus {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  /* overflow: hidden; */
}
.lomake-toggle-btn {
  display: none;
}

#meista {
  font-family: 'Montserrat', serif;
  background-color: #f9f9f9;
  /* text-align: center;
  height: 300px;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center; */
}

/* Mobiilissa pinotaan normaalisti */
@media (max-width: 768px) {
  .kohde-laatikko {
    float: none;
    width: 100%;
    margin: 1rem 0;
    /* border-left: none; */
    /* border-top: 4px solid #0073aa; */
  }
  .kohde-lomake {
    /* background-color: #f9f9f9; */
    padding: 1rem;
    width:100%;
    /* border-left: 4px solid #0073aa; */
    /* border-radius: 8px; */
    font-size: 0.95rem;
  }
  /* Piilotus ja animaatio */
#extraForm {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

/* Näkyvä tila */
#extraForm.show {
  max-height: 500px; /* tarpeeksi korkea lomakkeelle */
  opacity: 1;
}
.lomake-toggle-btn {
  display: block;
  margin: 1rem 0;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  background-color: var(--color-blur);
  color: white;
  border: none;
  cursor: pointer;
}

.lomake-toggle-btn:hover {
  background-color: var(--color-gold);
}

.ylarivi {
  justify-content: center;
}
}


.yv-flex-wrapper {
  display: flex;
  flex-wrap: wrap;
  /* background: 
  linear-gradient(rgba(171, 132, 74, 0.85), rgba(171, 132, 74, 0.85)),
  url('images/sailing_boat.jpg') center/cover no-repeat; */
  /* background-color: var(--color-blur); */
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 40px 0;
  font-family: 'Montserrat', serif;
  border-radius: 12px;
}

.yv-flex-text {
  flex: 1 1 30%;
  min-width: 280px;
  height: 300px;

  border-radius: 12px;
  color: black;
  background-color: white;
  display: flex;
  justify-content: center; /* vaakasuuntainen keskitys */
  align-items: center;     /* pystysuuntainen keskitys */
  text-align: left;      /* teksti keskitetään elementin sisällä */
}

.yv-flex-text h1 {
  font-weight:500;
  font-size: 3.5rem;
}

.yv-flex-sidebar {
  flex: 1 1 50%;
  min-width: 280px;
  border-radius: 12px;
}
.yv-flex-wrapper a.yv-product {
  background-color: rgba(255, 255, 255, 0.8); /* keltainen, 50 % läpinäkyvyys */
  color: black;

}
/* Halutessasi lisämuotoilua */
.yv-flex-text h2 {
  justify-content: center;
  text-align: center;
  align-items: center;
  font-size: 1.8rem;
  margin: 0;
}

.scroll-element {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-element.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* #meista {
  padding-top: 5rem;
  padding-bottom: 5rem;
} */


.us-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  /* gap: 10px; */
  padding-left: 5%;
  padding-right: 5%;
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* Teksti-osio */
.us-text {
  flex: 2 1 300px; /* skaalautuva, minimileveys 400px */
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  text-align: left;
  min-width: 200px;
  max-width: 600px;
}

.us-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: left;
  /* margin-bottom: 0.5rem; */
}

.us-text p {
  font-size: clamp(1rem, 2vw, 1.2rem); /* skaalautuu */
  line-height: 1.6;
  max-width: 400px;
  margin-top: 0;
}

.us-text .contact-button {
  font-size: clamp(0.9rem, 2vw, 1.2rem); /* skaalautuu */
  align-self: flex-start;
  font-weight: 600;
  margin-top: 2rem;
  color: var(--color-blur);
  border: 1px solid var(--color-blur)
}

.us-text .contact-button:hover {
  color: white;
  border: 1px solid var(--color-gold)
}

@media (max-width: 1024px) {
  .us-text h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .us-text h1 {
    font-size: 2.5rem;
    text-align: center;
  }
  .us-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 480px) {
  .us-text h1 {
    font-size: 2rem;
    text-align: center;
  }
}

/* Keskikohta tekstissä */
.us-text .text-middle {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

/* Kuva-osio */
/* .us-pic {
  flex: 3 1 0;
  min-width: 300px;
  display: flex;
  justify-content: flex-end;
}

.us-pic img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3; 
  max-height: 500px;      
  object-fit: cover;  
  border-radius: 20px;        
  box-shadow: var(--box-shadow);
  display: block;
} */

.us-pic {
  flex: 3 1 0;
  min-width: 300px;
  display: flex;
  justify-content: flex-end;
  align-items: center; /* keskittää pystysuunnassa */
}

.us-pic img {
  width: 100%;
  height: auto;                 /* ✅ tärkeä: pitää kuvasuhteen */
  max-width: 100%;
  max-height: 700px;
  object-fit: contain;          /* ✅ Näyttää koko kuvan, ei leikkaa reunoja */
  border-radius: 20px;
  /* box-shadow: var(--box-shadow); */
  display: block;
}


@media (max-width: 768px) {
  .us-container {
    flex-direction: column;
  }

  /* .us-pic {
    justify-content: center;
    margin-top: 20px;
  } */

  .us-text {
    align-items: center;
    text-align: center;
  }

  .us-text .contact-button {
    align-self: center;
  }
}


.box-section {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background-color: #fafafa;
  /* padding-top: 7rem; */
}

.boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;       /* tekee koko laatikkoryhmästä kapeamman */
  width: 100%;
  box-sizing: border-box;
}

.box1 {
  /* background-color: #f0f0f0; */
  padding: 20px;
  border-radius: 8px;
  font-family: sans-serif;
  text-align: left;
  word-wrap: break-word;
}

.box1 h1 {
  margin-top: 1rem;
  font-size: 1.3rem;
  font-family: 'Montserrat', serif;
  font-weight: 400;
  margin-bottom: 1rem;
}

.box1 p {
  font-size: 1rem;
  line-height: 1.5;
  font-family: 'Montserrat', serif;
  font-weight: 400;
}

.icon {
  display: block;
  text-align: center;
  font-size: 2rem;
  /* margin-bottom: 10px; */
  color: var(--color-gold);
}

/* Kun ruutu on kapea, kaikki laatikot menevät päällekkäin */
@media (max-width: 830px) {
  .boxes {
    grid-template-columns: 1fr; /* Yksi sarake */
    justify-content: center;
  }
}

.vid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.us-vid {
  flex: 1 1 300px;
  max-width: 600px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9-kuvasuhde */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vid-text {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Montserrat', serif;
  font-weight: 400;
  text-align: center;
  max-width: 600px;
}

.vid-text h1 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 400;
  color: var(--color-gold);
  line-height: 1.2;
}

.faq-section {
  font-family: 'Montserrat', serif;
  display: flex;
  margin: auto;
  background-color: #fafafa;
  padding-bottom: 4rem;
}

.faq-sec {
  font-family: 'Montserrat', serif;
  display: flex;
  gap: 40px;
  padding: 40px;
  max-width: 100%;
  margin: auto;
  align-items: flex-start;
  background-color: #fafafa;
  flex-wrap: wrap;
}

.faq-left {
  flex: 1;
}

.faq-left h2 {
  font-family: 'Montserrat', serif;
  font-size: 3rem;
  font-weight: 400;
}

.faq-right {
  flex: 2;
}

.faq-item {
  font-family: 'Montserrat', serif;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  overflow: hidden;
}

.faq-question {
  font-family: 'Montserrat', serif;
  background: none;
  border: none;
  width: 100%;
  color:black;
  text-align: left;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 10px;
}

.faq-question .icon {
  font-size: 1rem;
  color: #444;
  transition: transform 0.3s;
}

.faq-answer {
  font-family: 'Montserrat', serif;
  padding-top: 1rem;
  font-size: 1.2em;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

/* RESPONSIIVISUUS */
@media (max-width: 768px) {
  .faq-sec {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .faq-left h2 {
    font-size: 2rem;
    text-align: center;
  }

  .faq-question {
    font-size: 1.1rem;
  }

  .faq-answer {
    font-size: 1rem;
  }
}
.footie {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 1rem 5rem 1rem;
  margin-top: 20px;
  font-family: 'Montserrat', serif;
  font-size: 1em;
  background: white;
  gap: 2rem;
}

.first-foot-section {
  flex: 1 1 250px;
  padding: 20px;
}

.second-foot-section {
  flex: 2 1 400px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* korjattu tästä */
  align-items: flex-start;     /* lisätty */
  gap: 20px;
  padding-top: 20px;
}

.second-foot-section > div {
  flex: 1 1 150px;
  text-align: left;
  line-height: 1.5rem;
}

/* Logo responsiveness */
.logo-footer {
  height: 90px;
  max-width: 100%;
  object-fit: contain;
}

/* Responsiiviset säädöt */
@media (max-width: 768px) {
  .footie {
    flex-direction: column;
    align-items: flex-start; /* korjattu tästä */
    text-align: left;        /* korjattu tästä */
  }

  .first-foot-section,
  .second-foot-section {
    flex: 1 1 100%;
    padding: 10px 0;
  }

  .second-foot-section {
    flex-direction: column;
    align-items: flex-start;  /* korjattu tästä */
    text-align: left;         /* korjattu tästä */
  }

  .second-foot-section > div {
    flex: 1 1 100%;
    padding: 10px 0;
    text-align: left;         /* lisätty */
  }
}




.kultainen-viiva {
  border-top: 2px solid var(--color-gold); /*#D4AF37; Kultainen väri */
  margin: 2rem 0;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}