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

:root {
  --tausta: #faf6f1;
  --tausta-vaalea: #f0e6da;
  --teksti: #3a2b22;
  --aksentti: #a8622c;
  --aksentti-tumma: #7f4a20;
  --tumma: #2e2019;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: var(--teksti);
  background: var(--tausta);
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--aksentti-tumma);
}

.cta-nappi {
  display: inline-block;
  background: var(--aksentti);
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 4px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.cta-nappi:hover {
  background: var(--aksentti-tumma);
}

/* Header */

.site-header {
  background: var(--tumma);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-sisalto {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  text-decoration: none;
}

.paavalikko ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.paavalikko a {
  color: #f0e6da;
  text-decoration: none;
  font-size: 0.95rem;
}

.paavalikko a:hover {
  color: #fff;
  text-decoration: underline;
}

.valikko-nappi {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.valikko-nappi span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--tumma), var(--aksentti-tumma));
  opacity: 0.65;
  z-index: 1;
}

.hero-sisalto {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #f0e6da;
}

/* Osiot */

.osio {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.osio-vaalea {
  max-width: none;
  background: var(--tausta-vaalea);
}

.osio-vaalea > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.osio h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.osio-intro picture {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 100%;
  height: auto;
}

.osio-intro picture img {
  display: block;
  max-width: 100%;
  height: auto;
}

.meista-sisalto {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.meista-sisalto p {
  margin-top: 1rem;
}

/* Kortit (palvelut / arvostelut) */

.kortit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.kortti {
  background: #fff;
  border: 1px solid #e8ddd0;
  border-radius: 6px;
  padding: 1.5rem;
}

.kortti h3 {
  margin-bottom: 0.5rem;
  color: var(--aksentti-tumma);
}

.hinta {
  margin-top: 0.75rem;
  font-weight: bold;
  color: var(--aksentti);
}

.arvostelu {
  background: #fff;
  border-left: 4px solid var(--aksentti);
  padding: 1.5rem;
  border-radius: 4px;
}

.arvostelu p {
  font-style: italic;
  margin-bottom: 0.75rem;
}

.arvostelu cite {
  font-style: normal;
  font-weight: bold;
  color: var(--aksentti-tumma);
}

/* Yhteystiedot */

.yhteystiedot-sisalto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}

.yhteystiedot-tiedot p {
  margin-bottom: 0.75rem;
}

.yhteydenotto-lomake {
  background: #fff;
  border: 1px solid #e8ddd0;
  border-radius: 6px;
  padding: 1.5rem;
}

.kentta {
  margin-bottom: 1rem;
}

.kentta label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: bold;
  font-size: 0.9rem;
}

.kentta input,
.kentta textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #d8cabb;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.kentta input:focus,
.kentta textarea:focus {
  outline: 2px solid var(--aksentti);
  outline-offset: 1px;
}

.virheviesti {
  color: #a3312a;
  margin-bottom: 1rem;
}

.onnistumisviesti {
  color: #2f6b3a;
  margin-bottom: 1rem;
}

/* Footer */

.site-footer {
  background: var(--tumma);
  color: #d8cabb;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* Mobiili */

@media (max-width: 700px) {
  .valikko-nappi {
    display: flex;
  }

  .paavalikko {
    display: none;
    width: 100%;
  }

  .paavalikko.auki {
    display: block;
  }

  .header-sisalto {
    flex-wrap: wrap;
  }

  .paavalikko ul {
    flex-direction: column;
    gap: 0;
    padding-top: 1rem;
  }

  .paavalikko li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .paavalikko a {
    display: block;
    padding: 0.75rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .yhteystiedot-sisalto {
    grid-template-columns: 1fr;
  }
}
