/* ===========================
   GOOGLE FONTS
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Open+Sans:wght@400;500&family=Playfair+Display:wght@700&display=swap');

/* ===========================
   BRAND COLORS (CSS Variables)
   =========================== */
:root {
  --metsan-vihrea: #2C4A2F;
  --tumma-puu: #623e2a;
  --sammal-vihrea: #5F7F49;
  --puunruskea: #8B5E3C;
  --vaalea-puu: #E6D3B3;
  --kivenharmaa: #6E6E6E;
  --vaalea-harmaa: #f4f1ed;

  --font-otsikko: 'Montserrat', sans-serif;
  --font-teksti: 'Open Sans', sans-serif;
  --font-hero-otsikko: 'Montserrat', sans-serif;
}

/* ===========================
   PERUSASETUS
   =========================== */
body {
  font-family: var(--font-teksti);
  font-weight: 400;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: var(--vaalea-harmaa);
  color: var(--tumma-puu);
  font-size: 20px;
  overflow-x: hidden;
}

/* ===========================
   LOGO
   =========================== */
.hero-logo {
  max-width: 200px;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* ===========================
   OTSIKOT
   =========================== */
h1, h2, h3 {
  font-family: var(--font-otsikko);
  color: var(--metsan-vihrea);
}

h2 {
  font-size: 28px;
  font-weight: 600;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

/* ===========================
   HEADER
   =========================== */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: transparent;
  padding: 1rem 0;
  text-align: center;
  box-sizing: border-box;
}

.header-tumma {
  position: relative;
  background: transparent;
  padding: 1rem 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* ===========================
   NAVIGAATIO
   =========================== */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

nav a {
  font-family: var(--font-otsikko);
  font-weight: 500;
  color: white;
  text-decoration: none;
  padding: 0.6rem 1rem;
  position: relative;
  transition: color 0.2s;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease, left 0.3s ease;
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

/* ===========================
   HERO / KANSIKUVA
   =========================== */
.hero {
  background-image: url('../kuvat/mokkiterassi_saimaalla.png');
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  z-index: 0; /* ← lisää tämä */
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero-ylateksti {
  font-family: var(--font-otsikko);
  font-weight: 200;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  color: var(--vaalea-puu);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: var(--font-hero-otsikko);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: white;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-alateksti {
  font-family: var(--font-otsikko);
  font-weight: 500;
  letter-spacing: 0.5em;
  font-size: 0.85rem;
  color: var(--vaalea-puu);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ===========================
   SIVUKOHTAISET HERO-KUVAT
   =========================== */
.sivu-yritys .hero {
  background-image: url('../kuvat/terassi-jarven-rannalla-auringonlasku.webp');
  min-height: 60vh;
}

.sivu-yhteydenotto .hero {
  background-image: url('../kuvat/suunnittelija.webp');
  min-height: 60vh;
}

.sivu-tietosuoja .hero {
  background-image: url('../kuvat/mokkiterassi.png');
  min-height: 60vh;
}

/* ===========================
   SISÄLTÖ
   =========================== */
section:not(.hero):not(.hero-slider):not(.suositukset) {
  max-width: 65%;
  margin: 0 auto;
  padding: 2rem;
}

p {
  font-family: var(--font-teksti);
  font-weight: 400;
  color: var(--tumma-puu);
}

/* ===========================
   PALVELUKORTIT
   =========================== */
.palvelut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.palvelu-kortti {
  background: transparent;
  overflow: hidden;
}

.palvelu-kuva img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.palvelu-teksti {
  border: 1px solid var(--tumma-puu);
  padding: 1.2rem;
  background: var(--vaalea-harmaa);
  margin-top: 0.75rem;
}

.palvelu-teksti h3 {
  font-family: var(--font-otsikko);
  font-weight: 600;
  color: var(--metsan-vihrea);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.palvelu-teksti p {
  font-family: var(--font-teksti);
  font-size: 0.95rem;
  color: var(--tumma-puu);
  margin: 0;
}

/* ===========================
   CTA-PAINIKE
   =========================== */
.cta-alue {
  text-align: center;
  margin-top: 2rem;
}

.btn-tumma {
  display: inline-block;
  font-family: var(--font-otsikko);
  font-weight: 700;
  background: var(--metsan-vihrea);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.btn-tumma:hover {
  background: var(--tumma-puu);
  color: white;
}

/* ===========================
   HERO-PAINIKE
   =========================== */
.btn {
  display: inline-block;
  font-family: var(--font-otsikko);
  font-weight: 700;
  background: transparent;
  color: var(--vaalea-harmaa);
  border: 2px solid white;
  padding: 0.75rem 2rem;
  border-radius: 0;
  text-decoration: none;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: white;
  color: var(--metsan-vihrea);
}

/* ===========================
   ARTIKKELIT
   =========================== */
article {
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--puunruskea);
  border-radius: 4px;
}

/* ===========================
   LINKIT
   =========================== */
a {
  color: var(--sammal-vihrea);
}

/* ===========================
   MIKSI ME
   =========================== */
.miksi-me {
  text-align: center;
}

.miksi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.miksi-kortti {
  padding: 1.5rem 1rem;
  background: var(--vaalea-harmaa);
  border: 1px solid var(--tumma-puu);
}

.miksi-ikoni {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.miksi-kortti h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--metsan-vihrea);
}

.miksi-kortti p {
  font-size: 0.9rem;
  color: var(--kivenharmaa);
  line-height: 1.6;
}

/* ===========================
   PROSESSI
   =========================== */
.prosessi {
  text-align: center;
}

.prosessi-kuvaus {
  color: var(--kivenharmaa);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

.prosessi-askeleet {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 2rem;
}

.prosessi-askel {
  flex: 1;
  padding: 0 1rem;
  text-align: center;
}

.askel-numero {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--metsan-vihrea);
  color: white;
  font-family: var(--font-otsikko);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
}

.prosessi-viiva {
  flex: 0 0 40px;
  height: 2px;
  background: var(--vaalea-puu);
  margin-top: 24px;
}

.prosessi-askel h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--metsan-vihrea);
}

.prosessi-askel p {
  font-size: 0.85rem;
  color: var(--kivenharmaa);
  line-height: 1.6;
}

/* ===========================
   YRITYSESITTELY (etusivu)
   =========================== */
.yritysesittely {
  background: var(--tumma-puu);
  border-radius: 4px;
}

.yritysesittely-sisalto {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 0;
}

.yritysesittely h2 {
  font-family: var(--font-hero-otsikko);
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.yritysesittely p {
  color: var(--vaalea-puu);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.yritysesittely .btn-tumma {
  background: white;
  color: var(--metsan-vihrea);
  margin-top: 1rem;
  display: inline-block;
}

.yritysesittely .btn-tumma:hover {
  background: var(--vaalea-puu);
  color: var(--metsan-vihrea);
}

/* ===========================
   KENELLE
   =========================== */
.kenelle {
  text-align: center;
}

.kenelle-kuvaus {
  color: var(--kivenharmaa);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.kenelle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.kenelle-kortti {
  padding: 2rem 1.5rem;
  border: 1px solid var(--tumma-puu);
  background: var(--vaalea-harmaa);
}

.kenelle-ikoni {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.kenelle-kortti h3 {
  color: var(--metsan-vihrea);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.kenelle-kortti p {
  font-size: 0.9rem;
  color: var(--kivenharmaa);
  line-height: 1.6;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--tumma-puu);
  color: var(--vaalea-puu);
  padding: 1.5rem;
  text-align: center;
  margin-top: 0;
}

footer nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer nav a {
  color: var(--vaalea-puu);
  text-decoration: none;
  font-size: 0.9rem;
}

footer p {
  font-family: var(--font-teksti);
  font-weight: 400;
  color: var(--vaalea-harmaa);
  font-size: 0.9rem;
}

/* ===========================
   MOBIILINAVIGAATIO
   =========================== */
.mobile-nav {
  display: none;
  background: var(--tumma-puu);
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  box-sizing: border-box;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center; /* ← keskittää linkit */
  text-align: center;
}

.mobile-nav a {
  font-family: var(--font-otsikko);
  font-weight: 500;
  color: white;
  text-decoration: none;
  padding: 0.6rem 1rem;
  display: block;
  position: relative;
  transition: color 0.2s;
}

.mobile-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}

.mobile-nav a:hover::after {
  width: 50%;
}

/* Poista vanha hover-taustaväri */
.mobile-nav a:hover {
  background: transparent;
}

.mobile-nav a.active::after {
  width: 50%;
}

/* ===========================
   HAMBURGER
   =========================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  margin: 0.5rem auto 0 auto;
  width: fit-content;
  position: relative;
  z-index: 200; /* ← lisää tämä */
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
}

/* ===========================
   HERO-SLIDERI
   =========================== */
.hero-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 60vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.slider-track {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 2;
}

.slider-overlay h1 {
  font-family: var(--font-hero-otsikko);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: white;
  text-transform: uppercase;
  margin: 0.5rem 0 0 0;
}

.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: white;
}

/* ===========================
   PALVELU-ESITTELY
   =========================== */
.palvelu-esittely {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.palvelu-esittely--kaannetty {
  direction: rtl;
}

.palvelu-esittely--kaannetty > * {
  direction: ltr;
}

.palvelu-esittely-teksti h2 {
  font-family: var(--font-hero-otsikko);
  font-weight: 700;
  color: var(--tumma-puu);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.palvelu-esittely-teksti p {
  color: var(--kivenharmaa);
  font-size: 0.95rem;
  line-height: 1.8;
}

.palvelu-paakuva img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.palvelu-alakuvat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.palvelu-alakuvat img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.kuvateksti {
  font-size: 0.8rem;
  color: var(--kivenharmaa);
  font-style: italic;
  text-align: center;
  border: 1px solid #d4c9b8;
  padding: 0.5rem;
  margin-top: 0;
}

/* ===========================
   SUOSITUKSET
   =========================== */
.suositukset {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 4rem;
  padding: 0;
  border-radius: 0;
  background-image: url('../kuvat/mokkiterassi.png');
  background-size: cover;
  background-position: center;
}

.suositukset-overlay {
  background: rgba(60, 30, 10, 0.75);
  padding: 4rem 2rem;
  text-align: center;
}

.suositukset-overlay h2 {
  font-family: var(--font-hero-otsikko);
  color: white;
  font-size: 2rem;
  margin-bottom: 0;
}

.suositukset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.suositus-kortti {
  color: white;
}

.lainausmerkki {
  font-size: 3rem;
  color: var(--vaalea-puu);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.suositus-kortti p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.7;
}

.suositus-nimi {
  color: var(--vaalea-puu) !important;
  font-weight: 600;
  margin-top: 1rem;
}

/* ===========================
   PALVELUT CTA
   =========================== */
.palvelut-cta {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid #d4c9b8;
  border-bottom: 1px solid #d4c9b8;
  margin: 2rem auto;
}

.palvelut-cta h2 {
  font-family: var(--font-hero-otsikko);
  color: var(--tumma-puu);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.palvelut-cta p {
  color: var(--kivenharmaa);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 2rem auto;
  line-height: 1.8;
}

/* ===========================
   YRITYS-OSIOT
   =========================== */
.yritys-osio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 65%;
  margin: 3rem auto;
  padding: 2rem;
}

.yritys-osio--kaannetty {
  direction: rtl;
}

.yritys-osio--kaannetty > * {
  direction: ltr;
}

.yritys-teksti h2 {
  font-family: var(--font-hero-otsikko);
  color: var(--tumma-puu);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.yritys-teksti p {
  color: var(--kivenharmaa);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.yritys-kuva img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ===========================
   ARVOBOKSI
   =========================== */
.yritys-arvot {
  background: var(--tumma-puu);
  max-width: 100% !important;
  margin: 2rem 0 !important;
  padding: 3rem 2rem !important;
}

.arvot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 65%;
  margin: 0 auto;
  text-align: center;
}

.arvo-kortti {
  color: white;
}

.arvo-ikoni {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.arvo-kortti h3 {
  color: var(--vaalea-puu);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.arvo-kortti p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===========================
   LOPPULAUSEKE
   =========================== */
.yritys-loppu {
  text-align: center;
  max-width: 600px !important;
  margin: 3rem auto !important;
  padding: 2rem !important;
}

.yritys-loppu h2 {
  font-family: var(--font-hero-otsikko);
  color: var(--tumma-puu);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.yritys-loppu p {
  color: var(--kivenharmaa);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.yritys-sitaatti {
  font-style: italic;
  font-size: 1.1rem !important;
  color: var(--tumma-puu) !important;
  border-left: 3px solid var(--puunruskea);
  padding-left: 1rem;
  margin: 1.5rem 0 2rem 0;
  text-align: left;
}

/* ===========================
   YHTEYDENOTTO-LOMAKE
   =========================== */
.yhteydenotto {
  max-width: 600px !important;
  margin: 4rem auto;
  padding: 2rem;
}

.yhteydenotto h2 {
  font-family: var(--font-hero-otsikko);
  color: var(--tumma-puu);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.yhteydenotto-kuvaus {
  color: var(--kivenharmaa);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.lomake-rivi {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.lomake-rivi label {
  font-family: var(--font-otsikko);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--metsan-vihrea);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lomake-rivi input,
.lomake-rivi select,
.lomake-rivi textarea {
  font-family: var(--font-teksti);
  font-size: 1rem;
  color: var(--tumma-puu);
  background: white;
  border: 1px solid #d4c9b8;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.lomake-rivi input:focus,
.lomake-rivi select:focus,
.lomake-rivi textarea:focus {
  border-color: var(--metsan-vihrea);
}

.lomake-rivi textarea {
  resize: vertical;
}

.lomake-laheta {
  margin-top: 1.5rem;
}

.lomake-laheta .btn-tumma {
  width: 30%;
  padding: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ===========================
   YHTEYSTIEDOT
   =========================== */
.yhteystiedot {
  text-align: center;
  max-width: 600px !important;
  margin: 0 auto 3rem auto !important;
}

.yhteystiedot h2 {
  color: var(--tumma-puu);
  margin-bottom: 1rem;
}

.yhteystiedot p {
  color: var(--kivenharmaa);
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

/* ===========================
   TAKAISIN YLÖS -NAPPI
   =========================== */

.ylös-nappi {

  position: fixed;
  bottom: 2rem;
  right: 2rem;

  width: 52px;
  height: 52px;

  background: var(--vaalea-puu);
  color: var(--kivenharmaa);

  border: none;
  border-radius: 50%; /* pyöreä nappi */

  display: flex;
  align-items: center;
  justify-content: center;
}

  cursor: pointer;

  opacity: 0;
  visibility: hidden;

  transition: all 0.25s ease;

  z-index: 999;

  /* pieni varjo tekee siitä “leijuvan” */
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.ylös-nappi.nakyvissa {
  opacity: 1;
  visibility: visible;
}

.ylös-nappi:hover {
  background: var(--metsan-vihrea);
  color: white;
  transform: translateY(-2px); /* kevyt hover-liike */
}

.ylös-nappi::before {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ===========================
   TIETOSUOJASELOSTE
   =========================== */
.tietosuoja {
  max-width: 700px !important;
  margin: 3rem auto !important;
  padding: 2rem !important;
}

.tietosuoja h2 {
  color: var(--tumma-puu);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.tietosuoja-paivays {
  color: var(--kivenharmaa);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.tietosuoja-osio {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #d4c9b8;
}

.tietosuoja-osio:last-child {
  border-bottom: none;
}

.tietosuoja-osio h3 {
  color: var(--metsan-vihrea);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.tietosuoja-osio p {
  color: var(--kivenharmaa);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===========================
   COOKIE-BANNERI
   =========================== */
.cookie-banneri {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--tumma-puu);
  color: var(--vaalea-puu);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 1000;
  box-sizing: border-box;
  font-size: 0.85rem;
}

.cookie-banneri p {
  color: var(--vaalea-puu);
  margin: 0;
  font-size: 0.85rem;
}

/* ===========================
   RESPONSIIVISUUS
   =========================== */
@media (max-width: 768px) {

  /* Navigaatio */
  nav ul { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.active { display: block; }
  
  .hero-logo {
  max-width: 120px; /* ← säädä haluamaksesi */
}

  /* Otsikot */
  h1 { font-size: 1.1rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }

  /* Hero-korkeudet — kiinteä kaikilla sivuilla */
  .hero { min-height: 80vh; }
  .sivu-yritys .hero { min-height: 50vh; }
  .sivu-yhteydenotto .hero { min-height: 50vh; }
  .sivu-tietosuoja .hero { min-height: 50vh; }
  .hero-slider { height: 50vh; }

  /* Sisältö — täyteen leveyteen, ei vasemmalle */
  section:not(.hero):not(.hero-slider):not(.suositukset) {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    box-sizing: border-box;
  }

  /* Palvelukortit */
  .palvelut-grid {
    grid-template-columns: 1fr;
  }

  /* Miksi me */
  .miksi-grid {
    grid-template-columns: 1fr;
  }

  /* Prosessi */
  .prosessi-askeleet {
    flex-direction: column;
    align-items: center;
  }

  .prosessi-viiva {
    width: 2px;
    height: 30px;
    flex: 0 0 30px;
    margin-top: 0;
  }

  /* Kenelle */
  .kenelle-grid {
    grid-template-columns: 1fr;
  }

  /* Palvelu-esittely */
  .palvelu-esittely {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem auto;
    max-width: 100%;
    padding: 1.25rem;
  }

  .palvelu-esittely--kaannetty {
    direction: ltr;
  }

  /* Suositukset */
  .suositukset-grid {
    grid-template-columns: 1fr;
  }

  .suositukset-overlay {
    padding: 2rem 1.25rem;
  }

  /* Slider */
  .slider-overlay h1 {
    font-size: 1.1rem;
  }

  /* Yritys-osiot */
  .yritys-osio {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
    margin: 1rem auto;
    padding: 1.25rem;
  }

  .yritys-osio--kaannetty {
    direction: ltr;
  }

  /* Arvoboksi */
  .arvot-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Lomake */
  .lomake-laheta .btn-tumma {
    width: 100%;
  }

  .yhteydenotto {
    padding: 1.25rem !important;
  }

  /* Tietosuoja */
  .tietosuoja {
    padding: 1.25rem !important;
  }

  /* Cookie-banneri mobiilissa */
  .cookie-banneri {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
  }

  /* Ylös-nappi mobiilissa */
  .ylös-nappi {
    bottom: 5rem;
    right: 1rem;
  }
}