/* ------------------------------
   FONTIT JA VÄRIT
------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Inter:wght@300;400;500&display=swap');

:root {
  --text: #3b2f2f;
  --accent: #b5835a;
  --accent-light: #d49a6a;
  --bg-light: #f0e6d8;
  --bg-paper: #fffaf3;
  --shadow: 0 4px 12px rgba(0,0,0,0.12);
  --radius: 12px;
}

/* ------------------------------
   YLEINEN TYYLI
------------------------------ */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(#f7f2e9, #e8dcc7),
              url('https://www.transparenttextures.com/patterns/cream-pixels.png');
  background-size: cover;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

/* ------------------------------
   OTSIKOT
------------------------------ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  margin-top: 0;
}

.decorative-line {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.decorative-line::after {
  content: "✦ ✧ ✦";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 6px;
  opacity: 0.8;
}

/* ------------------------------
   HEADER
------------------------------ */
header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-light);
  box-shadow: var(--shadow);
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

/* ------------------------------
   HERO
------------------------------ */
.hero {
  position: relative;
  text-align: center;
  padding: 40px 20px;
}

.hero img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  border-radius: var(--radius);
  pointer-events: none;
}

.hero h2 {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 42px;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ------------------------------
   PAINIKE
------------------------------ */
.button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  position: relative;
  z-index: 2;
  transition: 0.3s ease;
}

.button:hover {
  background-color: var(--accent-light);
}

/* ------------------------------
   NOSTOT
------------------------------ */
.nostot {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.nostot article {
  background: var(--bg-paper);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.nostot article:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ------------------------------
   AUKIOLOAJAT
------------------------------ */
.aukiolo {
  padding: 20px;
  text-align: center;
  background-color: var(--bg-light);
  border-radius: var(--radius);
  margin: 20px;
  box-shadow: var(--shadow);
}

/* ------------------------------
   MENU & YHTEYS
------------------------------ */
.menu, .yhteys {
  padding: 20px;
  background: var(--bg-paper);
  margin: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ------------------------------
   TUOTTEET
------------------------------ */
.tuotteet {
  display: grid;
  gap: 20px;
}

.tuotteet article {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.tuotteet article:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.tuotteet img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  text-align: center;
  padding: 20px;
  background: #e8dcc7;
  margin-top: 40px;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (min-width: 768px) {
  .nostot {
    grid-template-columns: repeat(3, 1fr);
  }

  .tuotteet {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h2 {
    font-size: 52px;
  }
}

@media (min-width: 1100px) {
  body {
    font-size: 19px;
  }

  .menu ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}