/* Koirankakkaroskis.fi - ulkoasu
   Raikas ja leikkisä ilme. Värit: vihreä, ruskea ja vaalea tausta.
   Tekstit muokataan content.js-tiedostosta, ei täältä. */

:root {
  --green: #4caf2e;
  --green-dark: #2e7d14;
  --green-deep: #1f5c0c;
  --green-pale: #e8f5e0;
  --brown: #6d4c2f;
  --brown-soft: #a1794f;
  --cream: #fdf9f0;
  --card: #ffffff;
  --text: #2b2b25;
  --shadow: 0 4px 16px rgba(60, 80, 30, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
}

img {
  max-width: 100%;
}

/* ---------- Yläpalkki ---------- */

#site-header {
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.brand-sticker {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.brand-name {
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-slogan {
  font-size: 13px;
  color: var(--brown-soft);
  font-weight: 700;
}

.main-nav {
  max-width: 960px;
  margin: 12px auto 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.main-nav a {
  color: var(--green-deep);
  text-decoration: none;
  padding: 7px 16px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: var(--green-pale);
}

.main-nav a.active {
  background: var(--green);
  color: #fff;
}

/* ---------- Sisältö ---------- */

#page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 56px 20px;
}

h1 {
  color: var(--green-deep);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 18px 0;
}

h2 {
  color: var(--brown);
  font-size: 24px;
  font-weight: 900;
  margin-top: 40px;
}

a {
  color: var(--green-dark);
}

p {
  margin: 0 0 14px 0;
}

/* ---------- Etusivun hero ---------- */

.hero {
  display: flex;
  align-items: center;
  gap: 36px;
  background: linear-gradient(135deg, var(--green-pale) 0%, #f4efdd 100%);
  border-radius: calc(var(--radius) * 1.5);
  padding: 36px;
  box-shadow: var(--shadow);
}

.hero-text {
  flex: 1;
}

.hero-text p {
  font-size: 17px;
}

.hero-sticker {
  width: 260px;
  max-width: 38%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(40, 70, 15, 0.25);
  transform: rotate(4deg);
}

/* ---------- Korostuslaatikot ---------- */

.note-box,
.terms-box {
  background: var(--card);
  border-radius: var(--radius);
  border: 2px dashed var(--brown-soft);
  padding: 18px 24px;
  margin: 28px 0;
}

/* ---------- Linkkilistat ---------- */

.link-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.link-list li {
  margin: 0;
}

.link-list a {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  text-decoration: none;
  font-weight: 800;
  color: var(--green-deep);
  border-bottom: 4px solid var(--green);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-list a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(60, 80, 30, 0.2);
}

.download-list a {
  border-bottom-color: var(--brown-soft);
  color: var(--brown);
}

/* ---------- Tarra-sivu ---------- */

.tarra-top {
  display: flex;
  align-items: center;
  gap: 36px;
  background: var(--green-pale);
  border-radius: calc(var(--radius) * 1.5);
  padding: 32px;
}

.tarra-top-text {
  flex: 1;
}

.tarra-image {
  width: 230px;
  max-width: 35%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(40, 70, 15, 0.25);
  transform: rotate(-4deg);
}

.additional-note {
  font-style: italic;
  color: var(--brown);
  font-weight: 700;
}

/* ---------- Kuntalista pillereinä ---------- */

.municipality-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.municipality-list li {
  background: var(--card);
  border: 2px solid var(--green-pale);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-deep);
  box-shadow: 0 1px 4px rgba(60, 80, 30, 0.08);
}

/* ---------- Historia aikajanana ---------- */

.history-subtitle {
  margin-top: 0;
  font-style: italic;
  color: var(--brown-soft);
}

.history-subtitle::before {
  content: "💩 ";
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  border-left: 4px solid var(--green);
}

.history-list li {
  position: relative;
  padding: 10px 0 10px 28px;
}

.history-list li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 4px solid var(--cream);
}

.closing-text {
  margin-top: 36px;
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-weight: 700;
}

/* ---------- Yhteystiedot ---------- */

.contact-email {
  display: inline-block;
  background: var(--card);
  border-radius: 999px;
  border: 2px solid var(--green);
  padding: 8px 20px;
  font-weight: 800;
  color: var(--green-deep);
}

/* ---------- Footer ---------- */

#site-footer {
  background: var(--green-deep);
  color: #eaf4e0;
  text-align: center;
  padding: 36px 20px;
  font-size: 15px;
  border-radius: 32px 32px 0 0;
}

.footer-name {
  font-weight: 900;
  font-size: 18px;
}

.footer-slogan {
  color: #bcd9a6;
}

.footer-email {
  margin-top: 6px;
}

#site-footer a {
  color: #fff;
  font-weight: 800;
  display: inline-block;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 20px;
  text-decoration: none;
}

#site-footer a:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* ---------- Kapeat näytöt ---------- */

@media (max-width: 600px) {
  .hero,
  .tarra-top {
    flex-direction: column;
    padding: 24px;
  }

  .hero-sticker,
  .tarra-image {
    max-width: 65%;
    transform: none;
  }

  #site-header {
    position: static;
  }
}
