
/*tekstin värikoodi. Muuta tämä niin se muuttaa värin joka puolella*/
:root {
  --accent-color: #d7b86a;
}

/* Perustyyli */
body {
  margin: 0;
  font-family: "Georgia", serif;
  background-color: #132d23;
  color: var(--accent-color);
  background-image: linear-gradient(to bottom, #132d23, #0f2a1e);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Yläpalkki ja logo */
header {
  background-color: #0f2a1e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 1em;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: auto;
}
.logo {
  height: 60px;
}

/* Navigaatio ja mobiilivalikko */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: #d7c3a4;
  margin: 4px 0;
}
nav {
  display: flex;
  gap: 2em;
}
nav a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
nav a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1em;
  }
  nav.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Kielivalitsin yläpalkissa */
.language-bar {
  text-align: right;
  padding: 0.5em 1em 0 1em;
  font-size: 0.9em;
  background-color: #0f2a1e;
}
.language-bar a {
  color: var(--accent-color);
  text-decoration: none;
  margin-left: 0.5em;
}
.language-bar a:hover {
  text-decoration: underline;
}
@media (max-width: 1024px) {
  .language-bar {
    width: 100%;
    text-align: right;
    margin-top: 0.5em;
    padding-left: 0;
  }
}

/* Pääsisältö */
main {
  padding: 2em;
  max-width: 1000px;
  margin: auto;
}

/* Otsikot */
h1, h2 {
  color: #d7c3a4;
}
h2 {
  border-left: 4px solid #3f6d5c;
  padding-left: 0.5em;
  margin-top: 2em;
}

/* Infoboksit */
.info-box {
  background-color: #1f3a2f;
  padding: 1em;
  margin: 1.5em 0;
  border-radius: 6px;
}

/* Taulukot */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2em;
}
th, td {
  border: 1px solid #d7c3a4;
  padding: 0.75em;
  text-align: left;
}
th {
  background-color: #1a352a;
}

/* Kuvakekuvat */
.service-image {
  width: 100%;
  max-width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 1em;
  display: block;
  transition: transform 0.3s ease;
}
.service-box {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.service-box:hover .service-image {
  transform: scale(1.05);
}

/* Alatunniste */
footer {
  background-color: #000;
  color: #fff;
  padding: 1.5em 1em;
  font-size: 0.95em;
  text-align: center;
}

/* Yhteydenottoformilta piilotetut elementit */

#hp_text_1,
#hp_text_2,
#hpot_url,
#hpot_okurl,
.h_input,
.h_check {
  display: none;
}

/*formin lähetä-nappi*/
.footer-button {
  background-color: #d7c3a4;
  color: #132d23;
  padding: 0.75em 1.5em;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  font-family: Georgia, serif;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.footer-button:hover {
  background-color: #2b5746;
  color: #fff;
}

/*formin viesinkirjoitusalueen venytys*/
textarea {
  height: 300px;
  resize: both; /* ? mahdollistaa koon muuttamisen sekä vaakasuunnassa että pystysuunnassa */
}

/*formin kenttien koko suhteelliseksi */
form input[type="text"],
form input[type="email"],
form select,
form textarea {
  width: 80%;
  max-width: 100%;
  min-width: 250px;
  box-sizing: border-box;
}
