:root {
  --beige: #faeeda;
  --white: #ffffff;
  --text: #000000;
  --muted: #000000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--beige);
  color: var(--text);
  line-height: 1.6;
}

/* VALKOINEN REUNA-ALUE */
.page {
  max-width: 1200px;
  margin: 3rem auto;
  background: var(--white);
  padding: 4rem 3rem;
  border-radius: 1.5rem;
}

/* HERO */
.hero {
  text-align: center;
  margin-bottom: 5rem;
}

.hero-title {
  position: absolute;
  top: 1rem;       /* etäisyys yläreunasta */
  left: 1rem;      /* etäisyys vasemmasta reunasta */
  margin: 0;
  color: black;     /* valkoinen teksti kuvan päällä */
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* paremmin luettava kuvan päällä */
}

.hero h1 {
  font-size: 3.5rem; 
  margin-bottom: 2rem;
}

.hero-image {
  height: 360px;
  border-radius: 1.5rem;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 2rem;
}

.intro {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--muted);
}

/* OMINAISUUDET */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}


/* Features-osio – valkoinen */
.features {
  background-color: rgb(228, 207, 180);
  padding: 4rem 2rem;
}

.feature.reverse {
  direction: rtl;

}

.feature.reverse > * {
  direction: ltr;
}

.feature-image {
  height: 260px;


  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.feature-image img.feature-img {
  width: 100%;          /* täyttää divin leveyden */
  height: 300px;         /* säilyttää kuvasuhteen */
  border-radius: 0; /* POISTAA pyöristykset */
  object-fit: cover;    /* täyttää divin ja rajaa ylimääräiset */
  object-position: top; /* näyttää kuvan yläosan */

  /* Uudet ominaisuudet reunalle */
  border: 1px solid grey;  /* sininen reunaviiva, voit vaihtaa värin */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* kevyt varjo */

}

.feature-text h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.feature-text p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 420px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .page {
    padding: 2.5rem 1.5rem;
  }

  .feature {
    grid-template-columns: 1fr;
  }

  .feature.reverse {
    direction: ltr;
  }

  .feature-text p {
    max-width: none;
  }
}

.faq {
  max-width: 800px;
  margin: 0 auto 5rem;
  padding: 2rem;
}

.faq h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #1f2933;
}

/* details / summary */
.faq details {
  background: #fefefe;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}

.faq summary {
  font-weight: 600;
  position: relative;
  list-style: none; /* poistaa oletusnuolen */
  padding-left: 2rem;
}

/* +-merkki summaryyn */
.faq summary::before {
  content: "+";
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.2s ease;
}

/* kun details on avattu, vaihdetaan + -> - */
.faq details[open] summary::before {
  content: "-";
}

.faq p {
  margin-top: 0.8rem;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.5;
}

.hero-image {
  height: 360px;
  border-radius: 1.5rem;
  background-image: url('etusivu.jpg');
  background-size: cover;
  background-position: center;

  /* Uudet ominaisuudet reunalle */
  border: 3px solid grey;  /* sininen reunaviiva, voit vaihtaa värin */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* kevyt varjo */
}

.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
}

.main-content {
  flex: 3; /* 70–75% leveydestä */
}

.sidebar {
  flex: 1; /* 25–30% leveydestä */
  position: sticky;
  top: 2rem; /* pysyy näkyvillä kun rullaat */
  align-self: flex-start;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    margin-bottom: 2rem;
  }
}

.side-nav h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #1f2933;
}

.side-nav ul {
  list-style: none;
  padding: 0;
}

.side-nav li {
  margin-bottom: 0.8rem;
}

.side-nav a {
  text-decoration: none;
  color: grey; 
  font-weight: 500;
  transition: color 0.2s ease;
}

.side-nav a:hover {
  color: #4338ca;
  font-family: "Pacifico", cursive;
  color: #000;
}

.macondo-regular {
  font-family: "Macondo", cursive;
  font-weight: 700; 
  font-style: normal; 
}

.pacifico-regular {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
}

.feature-text {
  align-self: start; /* Teksti yläreunaan */
}

.side-menu a {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  color: #333;
  transition: font-family 0.2s ease, color 0.2s ease;
}

/* Hover-efekti */
.side-menu a:hover {
  font-family: "Pacifico", cursive;
  color: #000;
}

.brand-name {
  font-size: clamp(1.5rem, 3vw, 2rem); 
  color: #000;
  line-height: 1.1;
}

.feature-text p {
  margin-bottom: 1rem; /* yksi riviväli */
}

.feature-link {
  display: inline-block;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease, font-family 0.2s ease;
}

/* Hover-efekti */
.feature-link:hover {
  font-family: "Pacifico", cursive;
  color: #000;
}

.feature-link {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.feature-link:hover {
  letter-spacing: 0.05em;
}

.carousel {
  position: relative;
  height: 450px; /* sama korkeus kuin etusivun kuva */
  overflow: hidden;
  border-radius: 0; /* POISTAA pyöristykset */
  margin-bottom: 4rem;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-content {
  position: absolute;
  bottom: 15%;
  left: 8%;
  max-width: 420px;
  background: rgba(255,255,255,0.85);
  padding: 1rem;
  border-radius: 0.5rem; /* POISTAA pyöristykset */
}

.carousel-content h2 {
  margin-bottom: 0.5rem;
}

.carousel-content p {
  margin-bottom: 1.5rem;
}

.carousel-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 0.5rem; /* POISTAA pyöristykset */
  font-weight: 500;
}

.carousel-btn:hover {
  background: #333;
}

/* Navigaatiopallot */
.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 2;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dots .dot.active {
  background: #fff;
}

/* Header ja valikko */
.main-header {
  width: 100%;
  background-color: BurlyWood; /* valkoinen tausta */
  padding: 1rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky; /* pysyy ylhäällä scrollattaessa */
  top: 0;
  z-index: 1000;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  justify-content: center; /* keskittää valikon */
  gap: 3rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #000; /* hover-tumma */
}

/* Sivuston nimi */
.site-name a {
  font-size: 1.7rem;
  font-weight: 100;
  text-decoration: none;
  color: #000;
}


.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;

  display: grid;
  grid-template-columns: 260px 1fr; /* sama kuin main-content */
  align-items: center;
}

    footer {
      text-align: center;
      padding: 2rem;
      color: var(--muted);
      font-size: 0.9rem;
    }

/* Perusasetukset */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Desktop */
.nav-menu ul {
  display: flex;
  gap: 1.5rem;
}

/* Mobiili */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    width: 100%;
  }

  .nav-menu ul {
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-menu.active {
    display: block;
  }
}    