/* ----------------------------
   Yleiset asetukset
---------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f8f8; /* vaalea neutraali tausta */
  color: #222;
  line-height: 1.7;
  font-size: 16px;
}

/* ----------------------------
   Header & navigaatio
---------------------------- */
header {
  background-color: #b30000; /* tumma punainen */
  color: white;
  padding: 25px 0;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2.2em;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #ff6666; /* vaalea punainen hover */
  text-shadow: 0 0 3px rgba(0,0,0,0.3);
}

/* ----------------------------
   Container (sisältö)
---------------------------- */
.container {
  max-width: 950px;
  margin: 35px auto;
  padding: 35px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Headings */
h2 {
  color: #b30000; /* punainen otsikko */
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 5px;
}

h3 {
  color: #800000; /* tummempi punainen */
  margin-top: 25px;
  margin-bottom: 12px;
}

/* Paragraphs and lists */
p {
  margin-bottom: 18px;
}

ul {
  margin-left: 22px;
  margin-bottom: 18px;
}

ul li {
  margin-bottom: 8px;
}

/* ----------------------------
   Footer
---------------------------- */
footer {
  background-color: #222; /* musta footer */
  color: white;
  text-align: center;
  padding: 18px 0;
  margin-top: 40px;
  font-size: 0.95em;
}

/* ----------------------------
   Formit (yhteystiedot)
---------------------------- */
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  transition: border 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
  border-color: #b30000; /* punainen reunaväri fokus */
  outline: none;
}

form input[type="submit"] {
  background-color: #b30000;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

form input[type="submit"]:hover {
  background-color: #800000;
}

/* ----------------------------
   Linkit
---------------------------- */
a {
  color: #b30000;
  text-decoration: underline;
}

a:hover {
  color: #800000;
}

/* ----------------------------
   Responsiivisuus
---------------------------- */
@media (max-width: 650px) {
  nav a {
    display: block;
    margin: 6px 0;
  }

  .container {
    padding: 20px;
    margin: 20px;
  }

  header h1 {
    font-size: 1.8em;
  }
}
