@font-face {
    font-family: 'Now';
    src: url('Now-Light.woff2') format('woff2');
    font-display: swap; 
}
@font-face {
    font-family: 'Dosis';
    src: url('Dosis-Book.woff2') format('woff2');
    font-display: swap; 
}
:root{
    --vaalea: #FEFAE0;
    --fontti: 'Now', sans-serif;
    --tietosuojasel-border-radius: 4px;
}
::selection {
  color: var(--vaalea);
  background: #5d3f2e;
  }
header ::selection{
  color: #5d3f2e;
  background: var(--vaalea);
  text-shadow: none; }
html {
    scroll-behavior: smooth;
}
h1{
    font-size: clamp(1.6rem, 3vw, 1.8rem);
}
body {
    margin: 0;
    background-color:#333; 
    color:#302e2a;
    accent-color: #6b793e;
    caret-color: #6b793e;
    z-index: 0;
    overflow-x: hidden;
}
body hr {
    margin: 10px auto;
    border: none;
    border-top: 2px dashed rgb(97, 87, 53);
    height: 0;
    width: 80%;
}
/* --- Navigointipalkki ---  */
header{
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #6f5138c6;
    backdrop-filter: blur(4px);
    box-shadow: 0px 2px 12px 0 #1111119f;
    box-sizing: border-box;
    height: auto;
    overflow: hidden;
}
.navbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: clamp(2px, 0.3vw, 10px) clamp(8px, 1vw, 20px);
    height: auto;
}
.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: clamp(200px, 90vw, 1200px);
}
.logo-container{
    position: relative;
    top: 24px;
    transform: scale(1.8);
    padding-left: 1.5vw;
    padding-right: 1vw;
}
.logo {
    height: clamp(45px, 12vw, 60px);
    /* -webkit-filter: drop-shadow(0 0 5px rgb(255, 231, 184));  */
}
.slogan-container{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.slogan {
  margin-left: 0;
  text-transform: uppercase;
  font-family: 'Dosis', 'Courier New', Courier, monospace;
  font-weight: 400;
  letter-spacing: 2px;
  font-style: italic;
  color: var(--vaalea);
  font-size: clamp(0.5em, 2vw, 1em);
  white-space: nowrap;
}
.contact-info {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  height: auto;
  margin: 0;
  padding: 0 0 0 12px;
  font-size: clamp(0.7em, 2vw, 1.25em);
  color:var(--vaalea);
}
.contact-info li{
  padding: 0 clamp(1px, 0.4vw, 10px);
  justify-content: space-around;
  align-items: center;
}
.contact-info li p{
  display: flex;
}
.contact-info li a{
    display: flex;
    height: auto;
}
#copy-email-button {
    background: none; 
    border: none;   
    cursor: pointer; 
}
#copy-email-button :hover {
    background-color: #b08860;
}
#copy-notification {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background-color: #333;
    color: var(--vaalea);
    padding: 10px;
    border-radius: 5px;
    z-index: 20;
}
.email-icon{
    display: none;      
    height: clamp(18px, 2vw, 28px);
    width: auto;
    border-radius: 4px;
    }
.social-icon {
    width: clamp(18px, 2vw, 28px);
    height: auto;
    text-decoration: none;
    padding: clamp(2px,1vw,5px) clamp(2px,1vw,5px);
    border-radius: 4px;
    margin-right: 2px;
}
.social-icon:hover {
    background-color: #b08860;
}
.nav-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(0.9em, 3vw, 1.2em);
  font-family: var(--fontti);
}
.nav-links li {
  margin: 0 clamp(2px, 0.4vw, 15px);
}
.nav-links a {
  color: var(--vaalea);
  text-decoration: none;
  padding: clamp(4px, 0.5vw, 4px);
  border-radius: 4px;
  display: block;
  transition: transform 0.2s, background-color 0.2s;
}
.nav-links a:hover {
  background-color: #b08860;
  transform: scale(1.05);
}
.nav-links a:active {
  background-color: none;
}
/*  --- Nuoli ylös -nappi --- */
.scroll-to-top{
    visibility: hidden;
    opacity: 0;
    position: fixed;
    bottom: clamp(20px, 4vw, 40px);
    right: clamp(20px, 4vw, 40px);
    transition: opacity 1.2s ease;
    z-index: 5;
}
.scroll-to-top.show{
    visibility: visible;
    opacity: 1;
}
.scroll-to-top button {
    display: grid;
    justify-content: center;
    align-items: center;
    height: clamp(44px, 6vw, 55px);
    width: clamp(44px, 6vw, 55px);
    background-color: #644b35;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
svg {
    color: var(--vaalea);
    width: 100%;
    height: auto;
}
/*---                   ---*/
main {
    width: 100%;
    padding-top: 0;
}
#hero {
    background-image: url("images/kv15.webp");
    background-size: cover;
    background-position: 50% 28%;
    background-attachment: fixed;
    overflow-x: hidden;

    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
    color: var(--vaalea);
    text-align: center;
    padding-top: 150px;
}
.hero-info{
    padding: clamp(4px, 2vw, 20px) clamp(4px, 2vw, 20px);
    border-style: none
}
.hero-title h1{
    margin: 0;
    text-shadow: 0 0 6px #000, 0 0 44px #000000;
    letter-spacing: 0.8px;
}
.hero-container{
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 3vw 1vw;
    border-radius: 5px;
    border-style: none;
    height: auto;
}
.cta-button{
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: auto;
    padding: 0;
    transition: transform 0.55s;
}
.cta-button a {
    background-color: #6b793e;
    color: var(--vaalea);
    padding: 12px 12px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    transition: background-color 0.3s;
    box-shadow: 0 0 12px #000;
}
.cta-button:hover {
    transform: scale(1.25);
}
.cta-button a:hover {
    background-color: #6b793ea0;
    text-shadow: 0px 0px 4px #fff;
}
section {
    width: 100%;
    padding: 20px 0px;
    border-style: none;
    box-sizing: border-box;
    scroll-margin-top: 65px;
}
section p{
    font-size: clamp(1em, 2vw, 1.2em);
    padding: 0 30px;
    line-height: 1.3;
}
#palvelut {
    background-color:#e7d8ca;
    scroll-margin-top: 100px;
}
#esittely {
    background-color:#e7d8ca;
    scroll-margin-top: 100px;
}
#yhteydenotto {
    scroll-margin-top: 5px;
    padding: 120px 0;
    background-color: #c5905f;
    background-image: url("images/kv16.webp");
    background-size: cover;
    background-position: 20% 80%;
    background-attachment: fixed;
}
section > * {
    font-family: var(--fontti, system-ui, sans-serif);
    max-width: 800px;
    margin: 0 auto;
    text-align: none;
    border-style: none;
    border-width: 1px;
}
.main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    margin: 0 auto;
    flex-wrap: nowrap;
}
.main-content h2{
    text-align: center;
    font-size: 1.35em;
    padding: 8px 0;
    margin: 0;
}
.main-content h3{
    text-align: center;
    font-size: 1.2em;
    padding: 8px 0;
}
.main-info{
    flex: 1;
}
.main-info h2 {
    padding: 0 15px;
}
.main-services{
    color: var(--vaalea);
    background-color: #7d543c; 
    text-align: center;
}
.hinta{
    font-size: clamp(1.1em, 2vw, 1.21em);
}
.main-services ::selection {
    color: #5d3f2e;
    background: var(--vaalea);
}
.image-wrapper{
    display: flex;
    /* flex-direction: column; */
    flex: 0 0 450px;
    justify-content: center;
}
.main-image{
    padding: clamp(4px, 2vw, 20px);
    width: clamp(300px, 50vw, 520px);
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center 65%;
}
.spacer {
    display: none;
    height: 15px;
    background-color: #565656;
}
.contact{
    overflow: hidden;
    background-color: #2b2b2a6f;
    border-radius: 2px;
    color: var(--vaalea);
    padding: 30px 0;
    text-shadow: 0 0 5px #000;
    backdrop-filter: blur(1px);
        position: relative;
        opacity: 0; 
        transition: opacity 2s ease;
}
.contact.visible{
        opacity: 1; 
}
.contact-text{
    width: auto;
}
.contact-text a{
    text-decoration: underline;
    color: var(--vaalea);
}
.contact-text a:hover{
    background-color:   #5d3f2e;
    text-decoration: underline;
}
.contact-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.contact-form{
     position: relative;
}
.contact-form form p {
    text-align: center;
    font-size: 1.4em;
}
    form {
        color: #302e2a;/*#302e2a*/
        background-color: #b6c394;/*#b6c394, #545d3e*/
        border-radius: 2px;
        text-shadow: none;
        padding: 20px clamp(12px, 1vw, 20px);
        max-width: 400px;
        margin: auto;
    }
    input[type="text"],
    input[type="email"],
    textarea {
        background-color: #FAEDE0;
        width: 100%;
        max-width: 100%;
        min-width: 100%;

        padding: 10px;
        margin: 10px 0;
        border: 1px solid var(--vaalea);
        border-radius: 2px;
        box-sizing: border-box;
    }
    #viestikentta{
        min-height: 100px;
        max-height: 500px;
    }
 input[type="text"]:focus,
    input[type="email"]:focus,
    textarea:focus{
        outline: dotted 3px #6b793e;
        outline-offset: 3px;
        border-radius: 0;
    }
    .message-button {
        background-color: #6b793e;
        color: var(--vaalea);
        padding: 10px;
        border: none;
        border-radius: 3px;
        cursor: pointer;
        width: 100%;
        transition: 0.3s;
    }
    .message-button:hover {
        background-color: #6f793ea8;
        transform: scale(1.02);
        box-shadow: 0 0 8px var(--vaalea);
    }
    .disabled-button { /* Tarvitaanko tätä jos modal peittää lähetysnapin jok.tap?*/
    background-color: #666; 
    pointer-events: none; 
    cursor: not-allowed;
    opacity: 0.5;
    }

        #sending-message{
        font-size: 0.9em;
        display: none;
        text-decoration: none;
        color: var(--vaalea);
        text-shadow: none;
    }
        .loading-message {
        color: #666; 
        text-decoration: line-through;
    }
    #thank-you-message{
        text-align: center;
        font-size: 1.1em;
        display:none;
        color: var(--vaalea);
    }
    .ty-modal{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(1.5px);
    }
    .ty-modal-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #7d543c;
        border-radius: 4px;
        margin: auto;
        padding: 20px;
        max-width: 300px;
        width: 100%;
        height: auto;
        box-shadow: 0 0 8px #000;
    }
    #close-ty-modal{
        font-family: monospace;
        background-color: #333;
        color: var(--vaalea);
        font-size: 1.2em;
        display: block;
        height: 32px;
        margin-top: 20px;
        transition: 0.2s;
    }
    #close-ty-modal:hover{
        background-color: #666;
        font-size: 1.3em;
        box-shadow: 0 0 6px var(--vaalea);
        cursor: pointer;

    }
/* Arvostelut */
 /* .references h3{
    font-family: 'Dosis',Arial, sans-serif,monospace;
    font-size: 1em;
    letter-spacing: 1px;
    color: #222;
    margin: 10px 0 0;
}
.references p{
    color:#222;
    font-size: 1em;
}
.references {
    max-width: 100%;
    margin: 0;
    padding: clamp(5px, 2vw, 20px);
    text-align: center;
    background-color:#e7d8ca;
} */
/*_____ Slider-jutut _____*/
/* .references {
    display: none;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  text-align: center;
}
.slider {
  position: relative;
  width: 100%;
  height: 400px;
}
.stack {
  position: relative;
  width: 100%;
  height: 100%;
}
.reference-item {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  background: #e3e3e35e;
  padding: 12px;
  border-radius: .2em;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  box-sizing: border-box;
  text-align: center;
  align-items: center;
  border-style: none;
  
  opacity: 0;
  animation: fadeCycle 15s infinite;
  transition: opacity 1s ease;
} */
/* jokaiselle kortille eri aloitusviive */
/* .reference-item:nth-child(1) {
  animation-delay: 0s;
}
.reference-item:nth-child(2) {
  animation-delay: 5s;
}
.reference-item:nth-child(3) {
  animation-delay: 10s;
} */
/* fade-in-out animaatio */
/* @keyframes fadeCycle {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

.reference-item figure{
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.reference-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 8px;
  align-items: center;
}
.reference-item blockquote{
  margin: .5rem 0 0;
  font-size: 1rem;
  color: #444;
  font-style: italic;
} */

footer{
    list-style-type: none;
    color: #b4b4b4;
    background-color: #333;
    text-decoration: none;
    padding: 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.footer-links{
    text-align: center;
    line-height: 1.5em;
}
footer p{
    margin: 0;
}
footer a {
    display: flex;
    justify-content: center;
    color: #b4b4b4;
    text-decoration: none;
    padding: 4px 4px;
    border-radius: 4px;
    transition: background-color 0.25s;
}
footer ul {
    list-style: none;
    margin: 4px;
    padding: 4px;
}
footer ul li a{
    display: flex;
    justify-content: center;
    width: 160px;
    margin: 0 auto;
}
footer a:hover {
  background-color: #0f0f0f8d;
}
.footer-buttons{
    display: flex;
    justify-content: space-between;
}
.footer-social-icon {
  width: clamp(18px, 2vw, 28px);
  height: auto;
  text-decoration: none;
  padding: clamp(2px,1vw,5px) clamp(2px,1vw,5px);
  border-radius: 4px;
}
.footer-social-icons {
    display: flex;
    flex-grow: 1;
    justify-content: center ;
    filter: grayscale(1);
    filter: brightness(0.5);
}
/* Tietosuojaselosteikkuna */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #00000055; 
    backdrop-filter: blur(1.5px);
}
.modal h2{
    text-align: center;
}
.modal-content {
    display: flex;
    flex-direction: column;
    color: #ccc;
    font-size: clamp(1em, 3vw, 1.2em);
    text-align: left;
    background-color: #333333ee;
    margin: auto;
    padding: clamp(5px, 5vw, 30px);
    border: 1px solid #888;
    border-style: none;
    border-radius: var(--tietosuojasel-border-radius);
    box-shadow: 0 0 16px #000;
    width: clamp(250px, 85vw, 800px);
    height: 85vh;
    position: relative;
    top: 5%;
    overflow-y: scroll;
 }
 .modal-content ul li{
    list-style-type: disc;
    margin-left: 1.5em;
 }
 .privacy-info ul li a{
    display: inline;
    text-decoration: underline;
 }
#modal:target {
    display: block;}
.close {
    display: flex;
    color: #aaa;           
    background-color: transparent;
    border: none;         
    font-size: 32px;      
    font-weight: bold;   
    text-decoration: none; 
    cursor: pointer;   
    padding: 0;        
    position: absolute;
    right: 20px;
    top: 10px; 
    transition: transform 0.2s;
}
.close:hover,
.close:focus {
    color: #bbb; 
    text-shadow: 0 0 12px #eee;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.5);
}
.modal-content::-webkit-scrollbar {
    width: 1em; 
}
.modal-content::-webkit-scrollbar-track {
    background: #33333319;
    border-radius: var(--tietosuojasel-border-radius);
}
.modal-content::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: var(--tietosuojasel-border-radius);
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
#privacy-close-btn{
    display: flex;
    justify-content: center;
    font-size: clamp(12px, 1em, 16px);
    padding: 4px 4px;
    margin: 3px;
    color:#9b9b9b;
    background-color: #0000005f;
    z-index: 12;
    border: none;
}
#privacy-close-btn:hover{
     color: #000;
     background-color: #666;
}
#privacy-close-btn.active {
    color: #000;
    background-color: #d6d6d6;
}
@media screen and (max-width: 768px){
    #hero {
    justify-content: center;
    text-align: center; 
}
    .hero-container{
    padding: 3vw 1vw;
    /* backdrop-filter: blur(2px); */
}
.logo-container{
    position: relative;
    top: 15px;
    transform: scale(1.4);
}
.contact-container{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
}
}
@media screen and (max-width: 700px){
   .logo-container{
    position: relative;
    top: 10px;
    transform: scale(1.2);
} 
}
@media screen and (max-width: 480px){
.email-icon{
    display: flex;
    height: 24px;
    width: auto;
}
#email-address{
    display: none;
}
.logo-container{
    position: relative;
    top: 4px;
    transform: scale(1);
}
#palvelut{
    scroll-margin-top: 75px;
}
#esittely {
    scroll-margin-top: 80px;
}
#yhteydenotto {
    padding: 30px 0;
    scroll-margin-top: 50px;
}
}