/* css/tyyli.css */

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    height: 100%;
    background-color: #f8f4ec;
    color: #105a37;
    font-size: 1.125rem;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 150px 0 0 0;
}

/* Otsikot ja tekstielementit */

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.6rem;
}

p {
    font-size: 1.3rem;
}

.logo-title {
    position: fixed;
    top: 0px;
    left: 37px;
    font-size: 4.0em;
    font-weight: bold;
    color: #105a37;
    z-index: 1001;
    font-family: 'Arial', sans-serif;
    transition: opacity 0.3s ease;
}

.logo-title.hidden {
    opacity: 0;
    pointer-events: none;
}

#lottie-logo {
    position: fixed;
    top: -34px;
    right: 10px;
    width: 140px;
    height: 140px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#lottie-logo:hover {
    transform: scale(1.1);
}

.initiative-text h2 {
    font-size: 3em;
}

/* Navigaatio */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #105a37;
    font-weight: bold;
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:visited {
    color: #105a37;
}

nav a:hover {
    color: #0b5035;
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background: #105a37;
    height: 3px;
    width: 25px;
    margin: 3px 0;
}

/* Hero-osio */

.hero {
    min-height: 100vh;
    margin-top: -140px;
    background: url('../hero.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    z-index: 1;
}

.hero button {
    margin-top: 250px;
    padding: 1em 2em;
    font-size: 1.2em;
    background-color: rgba(16, 90, 55, 0.9);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero button:hover {
    background-color: #0b5035;
    transform: scale(1.05);
}


/* Sektiot ja taustat */

.section,
.section:nth-child(odd),
.section:nth-child(even),
.initiative-section {
    background-color: #f8f4ec;
    padding: 60px 20px;
    flex: 1;
    box-sizing: border-box;
}

.section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Initiative */

.initiative-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.initiative-text {
    flex: 1;
    min-width: 300px;
    margin-top: -100px;
}

.initiative-text p {
    font-size: 0.92em;
    line-height: 1.6;
}

.initiative-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.initiative-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px #0b5035;
}

/* Image spacer */

.image-spacer {
    width: 100%;
    height: 50vh;
    background: url('../spacer.jpg') no-repeat center center/cover;
}

/* About us */

.about-us-page,
.about-container {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-image,
.ceo-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.about-image-large {
    width: 100%;
    border-radius: 12px;
    margin-top: 2rem;
}

.about-image-medium {
    width: 100%;
    max-width: 500px;
    display: block;
    margin: 2rem auto;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    object-fit: cover;
    object-position: top;
    overflow: hidden;
}

.about-image-medium01 {
    width: 30%;
    height: auto;
}

blockquote {
    margin: 2rem;
    padding: 1rem 1.5rem;
    border-left: 4px solid #ccc;
    background-color: #f9f9f9;
    font-style: italic;
}

.ceo-section blockquote {
    font-style: italic;
    margin-top: 1rem;
    background: #f3f3f3;
    padding: 1rem;
    border-left: 4px solid #105a37;
}

h1, h2 {
    margin-top: 2rem;
    color: #105a37;
}

/* Lomake */

form input,
form textarea {
    display: block;
    margin: 10px 0;
    width: 100%;
    max-width: 500px;
    padding: 10px;
    font-size: 1em;
    box-sizing: border-box;
    color: #105a37;
    margin-left: auto;
    margin-right: auto;
}

form button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #105a37;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin: 1rem auto;  /* This centers the button horizontally */
    display: block;     /* Ensures the button is treated as a block element for centering */
}

form button:hover {
    background-color: #0b5035;
    margin-top: 1rem;
}

/* Arvot-sektio */

.values-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.values-section img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px #105a37;
}

.values-section .values-text {
    flex: 1;
    min-width: 300px;
}

/* Cookie-banneri */

.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #103a24;
    color: white;
    padding: 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner button {
    background-color: white;
    color: #103a24;
    padding: 10px 20px;
    border: none;
    font-size: 1em;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
    background-color: #e0e0e0;
}

.cookie-banner p {
    margin: 0;
    font-size: 1em;
}

/* Footer – poikkeuksena valkoinen teksti */

.footer {
    background-color: #105a37;
    color: white;
    padding: 40px 0;
    text-align: center;
    font-size: 0.95em;
    width: 100%;
    margin: 0;

}

/* Responsiivisuus */

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #f8f4ec;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        left: 20px;
    }

    .values-section {
        flex-direction: column;
        text-align: center;
    }

    .values-section img {
        margin-bottom: 20px;
    }
}
/* Slideshow-containerin ja -trackin määrittely */
/* Slideshow-containerin ja -trackin määrittely */
/* Slideshow-containerin ja -trackin määrittely */
/* Slideshow-containerin ja -trackin määrittely */
.references-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    background: #f8f4ec;
    padding: 2rem 0; /* SUUREMPI PADDING YLÖS JA ALAS */
    border-top: 0px solid #ddd;
    border-bottom: 0px solid #ddd;
  }
  
  .references-track {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 60s linear infinite;
  }
  
  .references-track span {
    display: inline-block;
    margin-right: 15rem;
    font-size: 1.50rem;
    color: #103a24;
  }
  
  @keyframes scroll-left {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  
