/* =============================================
   INNO-ONNI – style.css
   Brändivärit: vihreä #5fa99d | sininen #3a4197
   ============================================= */

:root {
  --sininen: #37348B;
  --sininen-tumma: #2c2970;
  --vihrea: #009A93;
  --vihrea-tumma: #007A73;
  --vihrea-himea: rgba(0, 154, 147, 0.15);
  --tausta: #f7f6f2;
  --tausta-valkoinen: #f7f6f2;
  --teksti-tumma: #1e1e2e;
  --teksti-keski: #444455;
  --teksti-vaalea: #6b7280;
  --varjo: 0 2px 16px rgba(55, 52, 139, 0.10);
  --varjo-vahva: 0 4px 24px rgba(55, 52, 139, 0.16);
  --pyoristys: 10px;
  --pyoristys-iso: 16px;
  --osio-vali-desktop: 96px;
  --osio-vali-mobiili: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Zilla Slab', Georgia, serif;
  background: var(--tausta);
  color: var(--teksti-tumma);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--vihrea); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--vihrea-tumma); }
ul { list-style: none; }

.container {
  max-width: min(1400px, 90vw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--sininen);
  font-family: 'Zilla Slab', Georgia, serif;
  line-height: 1.25;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 20px; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { color: var(--teksti-keski); }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
  border: 2px solid transparent;
  font-family: 'Zilla Slab', Georgia, serif;
}
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--vihrea); color: #fff; border-color: var(--vihrea); }
.btn-green:hover { background: var(--vihrea-tumma); border-color: var(--vihrea-tumma); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-outline-blue { background: transparent; color: var(--sininen); border-color: var(--sininen); }
.btn-outline-blue:hover { background: var(--sininen); color: #fff; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(58,65,151,0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}
.logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.header-logo {
  display: block;
  width: auto;
  max-width: 190px;
  height: 60px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  font-size: 0.9rem;
  padding: 9px 20px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sininen);
  font-family: 'Zilla Slab', Georgia, serif;
  letter-spacing: -0.5px;
}
.main-nav > ul {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
}

.main-nav a {
  color: var(--teksti-tumma);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 5px;
  transition: color 0.2s, background 0.2s;
  font-family: 'Zilla Slab', Georgia, serif;
}
.main-nav a:hover, .main-nav a.active { color: var(--vihrea); background: var(--vihrea-himea); }

.has-dropdown { position: relative; }

.main-nav .dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  border-radius: var(--pyoristys);
  box-shadow: var(--varjo-vahva);
  padding: 8px 0;
  z-index: 100;
}

.dropdown li a { display: block; padding: 10px 18px; white-space: nowrap; }

.has-dropdown.open .dropdown {
  display: flex;
  flex-direction: column;
}

@media (min-width: 701px) {
  .has-dropdown:hover .dropdown {
    display: flex;
    flex-direction: column;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sininen);
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   TUPSU-KORISTE: oikeasta yläkulmasta, headerin alla
   ============================================= */
.ruoko-tupsu-ylakulma {
  position: absolute;
  top: 240px;
  right: 260px;
  width: 600px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.ruoko-tupsu-ylakulma img {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(-1);

  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0.92) 78%,
    rgba(0,0,0,0.72) 90%,
    rgba(0,0,0,0.38) 97%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to top,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 55%,
    rgba(0,0,0,0.92) 78%,
    rgba(0,0,0,0.72) 90%,
    rgba(0,0,0,0.38) 97%,
    rgba(0,0,0,0) 100%
  );
}
/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 70px;
  width: 100%;
}

.hero-kuva-tausta {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, #2c2970 0%, #37348B 35%, #007A73 70%, #009A93 100%);
}

.hero-kuva-tausta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(55, 52, 139, 0.88) 0%,
    rgba(55, 52, 139, 0.55) 35%,
    rgba(55, 52, 139, 0.20) 55%,
    transparent 75%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 80vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 100px;
}

.hero-tekstit {
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.80);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
  margin-bottom: 22px;
}

.hero-tekstit h1 {
  color: #fff;
  margin-bottom: 28px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.30);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.hero-tekstit h1 strong { color: #fff; }

.hero-ingress {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.90);
  margin-bottom: 42px;
  line-height: 1.6;
  max-width: 560px;
}

.hero-ctas .btn-green {
  box-shadow: 0 10px 24px rgba(0, 154, 147, 0.25);
}

.hero-ctas .btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 154, 147, 0.30);
}

/* =============================================
   OSIOT
   ============================================= */
  .section {
  padding-top: var(--osio-vali-desktop);
  padding-bottom: var(--osio-vali-desktop);
}

/* =============================================
   TARVE JA RATKAISU
   ============================================= */
.tarve-ratkaisu {
  background: var(--tausta-valkoinen);
  position: relative;
  overflow: hidden;
}

.section.tarve-ratkaisu {
  padding-top: 40px;
}

.tarve-inner {
  max-width: min(1400px, 90vw);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 100px);
  z-index: 2;
}

.tarve-leipateksti {
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.tarve-inner p:last-child {
  margin-bottom: 0;
}

.tarve-inner h2 { 
  margin-bottom: 26px;
  
}

h4.tarve-korostus {
  color: var(--vihrea) !important;
  margin-bottom: 22px;
}

.tarve-inner p {
  font-size: 1.1rem;
  color: var(--teksti-keski);
  line-height: 1.8;
  margin-bottom: 22px;
}

.tarve-leipateksti + .tarve-leipateksti {
  margin-top: 12px;
}

/* otsikko → vihreä teksti */
  .tarve-inner h2 {
    margin-bottom: 32px;
  }

  /* vihreä teksti */
  .tarve-korostus {
    margin-bottom: 28px;
  }

  /* vihreä teksti → lista */
  .tarve-lista {
    margin-bottom: 36px;
  }

.tarve-ratkaisu {
  background: var(--tausta-valkoinen);
  position: relative;
  overflow: visible;
}

.tarve-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tarve-lista li {
  position: relative;
  padding-left: 26px;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--teksti-keski);
}

.tarve-lista li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--vihrea);
  font-weight: 700;
}

.tarve-ratkaisu {
  position: relative;
}

/* =============================================
   TUOTTEET – DESKTOP
   ============================================= */
.tuotteet-osio {
  background: var(--tausta);
}

.section.tuotteet-osio {
  padding-top: var(--osio-vali-desktop);
  padding-bottom: var(--osio-vali-desktop);
}

.tuote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.tuote-kortti {
  border-radius: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent; /* EI valkoinen koko ajan */
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.tuote-kortti:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(55, 52, 139, 0.14);
  border-radius: 0 !important; /* ei pyöristy hoverissa */
}

.tuote-kuva {
  width: 100%;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
}

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

.img-placeholder {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, var(--vihrea-himea) 0%, rgba(58, 65, 151, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teksti-vaalea);
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
}

.tuote-sisalto {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  background: transparent; /* EI valkoinen normaalisti */
  transition: background-color 0.28s ease;
}

.tuote-kortti:hover .tuote-sisalto {
  background: #ffffff; /* valkoinen vasta hoverissa */
}

.tuote-sisalto h3 {
  margin: 0;
}

.tuote-tyyppi {
  margin: 0;
  font-size: 0.95rem;
  color: var(--vihrea);
  font-weight: 600;
}

.tuote-hyodyt {
  margin: 4px 0 8px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tuote-hyodyt li {
  font-size: 0.95rem;
  color: var(--teksti-keski);
  padding-left: 20px;
  position: relative;
  font-family: Arial, sans-serif;
  line-height: 1.45;
}

.tuote-hyodyt li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--vihrea);
  font-weight: 700;
}

.tuote-sisalto .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .tuote-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}
  
/* =============================================
   HYÖDYT – MODERNI PYÖREÄ DESIGN
   ============================================= */

.hyodyt-osio {
  background: var(--tausta-valkoinen);
  padding-top: var(--osio-vali-desktop);
  padding-bottom: var(--osio-vali-desktop);
  text-align: center;
  margin-bottom: 120px;
}

.hyodyt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

/* PYÖREÄ KORTTI */
.hyoty-kortti {
  width: 260px;
  height: 260px;
  margin: 0 auto;
  border-radius: 50%;

  background: linear-gradient(
    145deg,
    rgba(0, 154, 147, 0.10),
    rgba(0, 154, 147, 0.04)
  );

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;

  transition: 
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease;
}

/* HOVER – EI POMPPUA, VAAN PEHMEÄ REAKTIO */
.hyoty-kortti:hover {
  transform: scale(1.05);
  background: rgba(0, 154, 147, 0.14);
  box-shadow: 0 20px 45px rgba(55, 52, 139, 0.12);
}

/* IKONI */
.hyoty-ikoni {
  font-size: 4.8rem;
  margin-bottom: 18px;
  line-height: 1;

  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* IKONIN ANIMAATIO */
.hyoty-kortti:hover .hyoty-ikoni {
  transform: scale(1.12);
}

/* TEKSTIT */
.hyoty-kortti h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--sininen);
}

.hyoty-kortti p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--teksti-keski);
}

/* MOBIILI */
@media (max-width: 700px) {
  .hyodyt-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hyoty-kortti {
    width: 220px;
    height: 220px;
  }

  .hyoty-ikoni {
    font-size: 4rem;
  }
}

/* =============================================
   YRITYSOSIO
   ============================================= */
.yritys-osio {
  background: var(--sininen);
  padding-top: var(--osio-vali-desktop);
  padding-bottom: var(--osio-vali-desktop);
  margin-bottom: 120px;
}

.yritys-boksi {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.yritys-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: Arial, sans-serif;
}

.yritys-boksi h3 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 760px;
  margin: 0 auto 32px;
  line-height: 1.15;
  text-align: center;
}

.yritys-boksi p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 18px;
  text-align: center;
}

.yritys-boksi p + p {
  margin-top: 14px;
}

/* =============================================
   BLOGI
   ============================================= */
.blogi-osio {
  background: var(--tausta);
}

.blogi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blogi-kortti {
  background: transparent;  
  border-radius: 0;
  box-shadow: none;         
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.blogi-kortti:hover {
  background: var(--tausta-valkoinen); /* muuttuu kortiksi vasta hoverissa */
  box-shadow: var(--varjo-vahva);
  transform: translateY(-4px);
}

.blogi-kuva {
  width: 100%;
}

.blogi-kuva img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.blogi-kuva.img-placeholder {
  width: 100%;
  height: 210px;
  background: linear-gradient(135deg, var(--vihrea-himea) 0%, rgba(58,65,151,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teksti-vaalea);
  font-size: 0.9rem;
  font-family: 'Zilla Slab', Georgia, serif;
  border-bottom: 2px solid rgba(95,169,157,0.15);
}

.blogi-sisalto {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  background: transparent; /* ei valkoista alapintaa valmiiksi */
  transition: background 0.2s;
}

.blogi-kortti:hover .blogi-sisalto {
  background: var(--tausta-valkoinen); /* valkoinen osa vasta hoverissa */
}

.blogi-sisalto h4 {
  color: var(--sininen);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Zilla Slab', Georgia, serif;
  line-height: 1.25;
}

.blogi-sisalto p {
  font-size: 0.9rem;
  color: var(--teksti-keski);
  margin-bottom: 14px;
  font-family: 'Zilla Slab', Georgia, serif;
  line-height: 1.7;
}

.blogi-linkki {
  color: var(--vihrea);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Zilla Slab', Georgia, serif;
  margin-top: auto;
  transition: color 0.2s;
}

.blogi-linkki:hover {
  color: var(--vihrea-tumma);
}

/* =============================================
   BLOGI HERO
   ============================================= */

.blogi-hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background-image: url("images/blogi-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blogi-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(55, 52, 139, 0.78) 0%,
    rgba(55, 52, 139, 0.58) 38%,
    rgba(55, 52, 139, 0.18) 70%,
    rgba(55, 52, 139, 0.04) 100%
  );
}

.blogi-hero-sisalto {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
  padding: 100px 20px;
}

.blogi-hero-sisalto h1 {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  margin-bottom: 20px;
  color: #fff;
}

.blogi-hero-sisalto p {
  max-width: 640px;
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
}

/* =============================================
   LOPPUKEHOTE + RUOKONAUHA
   ============================================= */
.cta-osio {
  background: var(--tausta-valkoinen);
  border-top: none;
  position: relative;
  overflow: visible;
  padding-top: 70px;
  padding-bottom: 240px;
  min-height: auto;
}

@media (min-width: 901px) {
  .cta-osio {
    padding-top: 110px;
  }
}

.cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  padding-bottom: 70px;
  transform: translateY(50px);
}

.cta-inner h2 {
  margin-bottom: 14px;
}

.cta-inner p {
  margin-bottom: 30px;
  color: var(--teksti-keski);
}

.cta-napit {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.ruoko-ala-nauha {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1600px;
  line-height: 0;
  opacity: 0.90;
  z-index: 1;
  pointer-events: none;
}

.ruoko-ala-nauha img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(22px);
}

/* =============================================
   FOOTER – LOPULLINEN VERSIO
   ============================================= */

.site-footer {
  background: var(--sininen);
  color: rgba(255,255,255,0.88);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0));
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 64px;
  padding: 56px 0 34px;
  position: relative;
  z-index: 1;
}

.footer-brand,
.footer-nav,
.footer-contact {
  min-width: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-top {
  margin-bottom: 12px;
}

.footer-logo-text {
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  white-space: normal;
}

.footer-brand p {
  max-width: 280px;
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

.footer-nav h4,
.footer-contact h4 {
  color: #fff;
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 14px;
}

.footer-nav a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: color 0.25s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.85);
  transition: width 0.25s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-contact p {
  margin: 0 0 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
}

.footer-contact a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 10px;
  background: rgba(0, 154, 147, 0.10);
  border: 1px solid rgba(0, 154, 147, 0.35);
  border-radius: 999px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  transition: transform 0.25s ease, background 0.25s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(0, 154, 147, 0.18);
}

.footer-social svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0 22px;
  position: relative;
  z-index: 50;
}

.footer-bottom-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  position: relative;
  z-index: 51;
}

.footer-bottom span {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.95rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-company {
  margin: 4px 0 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  font-family: Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.main-nav {
  display: block;
}

.hamburger {
  display: none;
}

/* =============================================
   HERO – TEKSTIT KUNTOON
   ============================================= */

.hero-tekstit {
  display: flex;
  flex-direction: column;
  gap: 18px; /* TÄMÄ tekee tasaiset välit kaikkiin */
}


@media (min-width: 1400px) {
  .tuote-intro-inner,
  .monikayto-teksti,
  .palvelu-sisalto-inner,
  .paikallisuus-inner,
  .yritys-tarina-inner,
  .yritys-tavoite-inner,
  .arvot-grid,
  .yhteystiedot-inner,
  .tp-hero-inner,
  .tp-esittely-inner,
  .tp-sininen-inner,
  .tp-miksi-teksti,
  .yritys-hero-inner {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* =============================================
   MOBIILI
   ============================================= */
@media (max-width: 1200px) {
  .ruoko-tupsu-ylakulma {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

@media (max-width: 900px) {
  .ruoko-tupsu-ylakulma {
    display: none !important;
  }
     
.hyodyt-osio {
  padding-bottom: 120px;
}
  
.yritys-osio {
  padding-bottom: 120px;
}

.blogi-osio {
  padding-top: 120px;
  padding-bottom: 60px;
}

.cta-osio { 
  padding-bottom: 120px;
}

.yritys-hero-inner {
    padding-left: 40px;
}

  .yritys-hero-tekstit {
    max-width: 620px;
  }
}

/* =============================================
   TABLETTI – LISÄÄ REUNOILLE TILAA
   ============================================= */
@media (max-width: 1024px) {
  .header-logo {
    height: 46px;
  }
}

@media (max-width: 1100px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 1150px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 30px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav,
  .footer-contact {
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }
}

/* =============================================
   header- 900px
   ============================================= */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(58,65,151,0.12);
    padding: 16px 0;
    z-index: 999;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .main-nav a {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    background: var(--tausta);
    display: none;
    padding: 0;
    border-radius: 0;
  }

  .has-dropdown.open .dropdown {
    display: block;
  }

  .dropdown li a {
    padding-left: 36px;
  }

  .hamburger {
    display: flex;
  }

  .header-cta {
    display: none;
  }
}

/* =============================================
   header- 901px
   ============================================= */
@media (min-width: 901px) {
  .main-nav {
    display: block !important;
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .main-nav > ul {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
  }

  .hamburger {
    display: none !important;
  }

  .header-cta {
    display: inline-block;
  }

/* =============================================
   Ruokonauha- 901px
   ============================================= */

  .cta-osio {
    margin-top: 0 !important;
    padding-top: 70px !important;
    padding-bottom: 150px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .cta-inner {
    transform: translateY(50px) !important;
    padding-bottom: 70px !important;
  }
  
  .cta-napit {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.cta-napit .btn {
  display: inline-flex !important;
  width: auto !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 14px 26px !important;
  font-size: 1rem !important;
}

  .ruoko-ala-nauha {
    position: absolute !important;
    bottom: -58px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 120vw !important;
    min-width: 2200px !important;
    line-height: 0 !important;
    opacity: 0.90 !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .ruoko-ala-nauha img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    transform: translateY(22px) !important;
  }
}

/* =============================================
   HERO – RESPONSIIVISET SÄÄDÖT
   ============================================= */

@media (max-width: 1100px) and (min-width: 701px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: 620px;
    padding: 70px 32px;
    align-items: center;
  }

  .hero-tekstit {
    max-width: 100%;
  }

  .hero-tekstit h1 {
    font-size: 2.3rem;
    line-height: 1.12;
  }

  .hero-ingress {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 34px;
  }

  .hero .hero-ctas {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
  }

  .hero .hero-ctas .btn {
    width: auto !important;
    max-width: none !important;
    min-width: 260px;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    justify-content: center;
    white-space: nowrap !important;
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 100svh;
  }

  .hero-inner {
    min-height: 100svh;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-tekstit {
    width: 100%;
  }

  .hero-tekstit h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .hero-ingress {
    font-size: 1.18rem;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  .hero .hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero .hero-ctas .btn {
    width: auto !important;
    min-width: 0;
    display: inline-flex !important;
    justify-content: center;
    text-align: center;
    padding: 12px 18px !important;
    font-size: 0.95rem !important;
  }
}

/* =============================================
   MOBIILI – VIIMEISTELY
   ============================================= */
@media (max-width: 900px) {
  .hyodyt-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hyoty-kortti {
  width: 320px;
  height: 320px;
  margin: 0 auto;
}

  .blogi-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .ruoko-ala-nauha {
    display: none !important;
  }

  .section {
    padding-top: var(--osio-vali-mobiili);
    padding-bottom: var(--osio-vali-mobiili);
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
  }

  .logo-text {
    font-size: 2rem;
  }

  .header-logo {
    max-width: 190px;
  }

/* TARVE JA RATKAISU */
  .tarve-ratkaisu {
  padding-left: 0;
  padding-right: 0;
}
     
  .tarve-inner {
  max-width: 100%;
}

 .tarve-inner h2 {
    font-size: 2.5rem;
    line-height: 1.08;
    margin-bottom:40px;
    text-align: left;
  }
  
  h4.tarve-korostus {
    margin-top: 0;
    margin-bottom: 20px;
  }
    
 .tarve-inner p {
  text-align: left;
  line-height: 1.7;
  margin-bottom: 18px;
  }
  
  /* otsikko → vihreä teksti */
  .tarve-inner h2 {
    margin-bottom: 32px;
  }

  /* vihreä teksti */
  .tarve-korostus {
    margin-bottom: 28px;
  }

  /* vihreä teksti → lista */
  .tarve-lista {
    margin-bottom: 36px;
  }
  
/* kuuluu alempaan yritysosioon */
  .yritys-osio {
  padding-top: 120px;
  }
     
  .hyodyt-osio {
  padding-bottom: 120px;
  }
  
  /* PIIRRETYT KUVAT */
  .ruoko-tupsu-ylakulma img {
  width: 100%;
  height: auto;
  }
 
   .ruoko-tupsu-ylakulma {
  display: none;
  }

  /* TUOTEKORTIT */
  .tuote-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .tuote-kortti {
    overflow: hidden;
    border-radius: 0px;
  }

  .tuote-kuva {
    height: 240px;
  }

  .tuote-sisalto {
  padding:20px 24px 30px;
}
     
.tuotteet-osio h2 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 36px;
}

.tuote-sisalto h3 {
  font-size: 2rem;
  line-height: 1.08;
  margin: 0 0 6px;
  margin-top: 10px;
}

.tuote-tyyppi {
  display: block;
  font-size: 0.88rem;
  margin: 0 0 14px;
}

.tuote-hyodyt {
  margin: 0 0 28px;
}

.tuote-hyodyt li {
  font-size: 1.06rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
  
  .tuote-kortti .btn {
    min-width: 180px;
    padding: 16px 24px;
  }

 /* HYÖDYT */
.hyodyt-grid {
  grid-template-columns: 1fr;
  gap: 32px;
}

.hyodyt-osio {
  padding-bottom: 120px;
}

.hyoty-kortti {
  width: 320px;
  height: 320px;
  margin: 0 auto;
  padding: 28px 22px;
  text-align: center;
}

.hyoty-kortti p {
  font-size: 1rem;
  line-height: 1.5;
}
     
  /* YRITYSOSIO */
.yritys-boksi {
  padding: 30px 24px;
}

.yritys-boksi h3 {
  font-size: 2rem;
  line-height: 1.1;
}
     
.yritys-boksi p {
  font-size: 1rem;
  line-height: 1.7;
}   
  
.yritys-osio {
  padding-bottom: 120px;
}
     
/* CTA */
.cta-inner h2 {
  font-size: 2.2rem;
  line-height: 1.08;
}

.cta-osio { 
  padding-bottom: 120px;
  overflow: visible;
}

.cta-inner {
  transform: none;
  padding-bottom: 0;
  }

  .cta-napit {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
   }

  .cta-napit .btn {
    display: inline-flex !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: 14px 26px !important;
    font-size: 1rem !important;
   }

   .site-footer {
    margin-top: 0;
   }
     
  /* =============================================
   BLOGI MOBIILI
   ============================================= */   
  .blogi-osio {
  padding-top: 60px;
  }
     
  .blogi-grid {
  grid-template-columns: 1fr;
  gap: 50px;
  }
     
  .blogi-sisalto p {
  font-size: 1rem;
  }

  /* =============================================
     FOOTER MOBIILI
     ============================================= */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav,
  .footer-contact {
    min-width: 0;
    text-align: center;
  }

  .footer-logo-text {
    font-size: 1.9rem;
    overflow-wrap: break-word;
  }

  .footer-brand-top {
    margin-bottom: 6px;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-social {
    justify-content: center;
    margin-top: 40px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
  }

  .footer-brand p,
  .footer-contact p,
  .footer-nav a {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .footer-nav li {
    margin-bottom: 3px;
  }

  .footer-nav h4,
  .footer-contact h4 {
    margin-bottom: 8px;
  }
  
  .cta-inner {
  max-width: 100%;
 }
  
 .cta-inner {
  padding-top: 50px;
}
}

/* =============================================
   700 MOBIILI
   ============================================= */
@media (max-width: 700px) {
  .tarve-korostus {
  margin-bottom: 25px;
  }
  
  .tuote-grid { grid-template-columns: 1fr; }
  
  .tuote-kortti h4 {
  font-size: 2rem;
  }

  .tuote-sisalto p {
    font-size: 1.15rem;
  }
  
  .tuote-kortti {
  background: #fff;              
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-radius: 0;             
  overflow: hidden;
}

.tuote-sisalto {
  background: #fff;              
}

.tuote-kortti:hover .tuote-sisalto {
  background: #fff;              
}

  
.hyodyt-grid {
  grid-template-columns: 1fr;
  gap: 50px;
} 
    
/* TUOTEKORTTI – 700 MOBIILI */
  .tuote-sisalto h3 {
  font-size: 2rem;
  line-height: 1.08;
  margin: 0 0 6px;
  }

  .tuote-tyyppi {
  display: block;
  font-size: 0.9rem;
  margin: 0 0 14px;
  }

  @media (max-width: 700px) {
  .hyoty-kortti {
    width: 320px;
    height: 320px;
    margin: 0 auto;
  }
}
 
  /* footer 700 */
  .footer-bottom .container { text-align: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  
  .blogi-grid { grid-template-columns: 1fr; }
  
  .section {
    padding-top: var(--osio-vali-mobiili);
    padding-bottom: var(--osio-vali-mobiili);
  }
  
  .cta-napit {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 100px;
  }

  .cta-napit .btn {
    width: auto !important;
    max-width: none !important;
    flex: 1 1 0 !important;
    white-space: nowrap !important;
    justify-content: center !important;
    padding: 14px 16px !important;
  }
  
.cta-inner p {
  margin-bottom: 30px;
}

.cta-inner {
  padding-top: 40px;
}

/* CTA alle lisää ilmaa mobiilissa */
.cta-osio {
  padding-top: 40px;
  padding-bottom: 40px;
} 
  }
  
/* =============================================
  Hampurilaisanimaatio
   ============================================= */
.hamburger span {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
  
  
/* =============================================
   TIETOSUOJASIVU – VALMIS (DESKTOP + MOBIILI)
   ============================================= */

/* otsikot keskelle */
.tietosuoja-sivu h1,
.tietosuoja-sivu h2 {
  text-align: center;
}

/* leipäteksti siististi */
.tietosuoja-sivu p,
.tietosuoja-sivu li {
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 16px;
  hyphens: auto;
}

/* listat */
.tietosuoja-sivu ul {
  padding-left: 20px;
  margin: 16px 0 24px;
}

.tietosuoja-sivu {
  display: block !important;
  padding: 96px 24px !important;
}

.tietosuoja-sivu .container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
}

.tietosuoja-sivu h2 {
  text-align: left;
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 10px;
}

.tietosuoja-sivu p,
.tietosuoja-sivu li {
  text-align: left;
  line-height: 1.75;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}

.tietosuoja-sivu ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 20px;
}

/* =============================================
   TIETOSUOJASIVU – MOBIILI)
   ============================================= */
@media (max-width: 700px) {
  .tietosuoja-sivu {
    padding: 60px 20px !important;
  }

  .tietosuoja-sivu .container {
    max-width: 100%;
  }

  .tietosuoja-sivu h1 {
    font-size: 2rem;
    line-height: 1.15;
    margin-bottom: 24px;
  }

  .tietosuoja-sivu h2 {
    font-size: 1.15rem;
    margin-top: 28px;
    margin-bottom: 10px;
  }

  .tietosuoja-sivu p,
  .tietosuoja-sivu li {
    font-size: 1rem;
    line-height: 1.75;
  }
}

/* EVÄSTEBANNERI */
.cookie-banner,
.cookie-consent,
#cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background: #f6f1e8;
  color: #3f4354;
  border: 1px solid rgba(63, 67, 84, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 22px 24px;
  z-index: 9999;
}

.cookie-banner-content,
.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p,
.cookie-consent p,
#cookie-banner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #3f4354;
}

.cookie-banner a,
.cookie-consent a,
#cookie-banner a {
  color: #0d9a8f;
  font-weight: 600;
  text-decoration: none;
}

.cookie-banner a:hover,
.cookie-consent a:hover,
#cookie-banner a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-buttons button,
.cookie-banner button,
.cookie-consent button,
#cookie-banner button {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

#cookie-banner button {
  color: var(--sininen);
}

/* Hyväksy */
.cookie-accept {
  background: var(--sininen);
  color: #fff;
}

.cookie-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 154, 143, 0.25);
}

/* Hylkää */
.cookie-decline {
  background: transparent;
  color: #3f4354;
  border: 1px solid rgba(63, 67, 84, 0.18);
}

.cookie-decline:hover {
  background: rgba(63, 67, 84, 0.05);
}

.cookie-accept {
  background: var(--sininen);
  color: #fff !important;
}

.cookie-decline {
  background: transparent;
  color: var(--sininen) !important;
  border: 1px solid var(--sininen);
}

#cookie-banner {
  display: none;
}

/* Mobiili */
@media (max-width: 768px) {
  .cookie-banner,
  .cookie-consent,
  #cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
    border-radius: 16px;
  }

  .cookie-banner-content,
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-buttons button,
  .cookie-banner button,
  .cookie-consent button,
  #cookie-banner button {
    width: 100%;
  }
  
  html.cookies-set #cookie-banner {
  display: none !important;
}
  }

/* =============================================
   MOBIILI TYPOGRAFIA – YHTENÄINEN
   ============================================= */
@media (max-width: 700px) {

  body {
    font-size: 17px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
  }

  p,
  li {
    font-size: 1.1rem !important;
    line-height: 1.75 !important;
    font-weight: 500 !important;
  }

  .container p,
  section p {
    font-size: 1.1rem !important;
    line-height: 1.75 !important;
  }

  /* NIITTOSIVU – lista */
  .niitto-hyodyt-lista li,
  .niitto-hyoty-lista li {
    font-size: 1.1rem !important;
    line-height: 1.75 !important;
    font-weight: 500 !important;
  }

  /* väkäset takaisin vihreäksi */
  .niitto-hyodyt-lista li::before,
  .niitto-hyoty-lista li::before {
    color: var(--vihrea) !important;
  }
}

@media (max-width: 900px) {
  .hyodyt-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hyoty-kortti {
    width: 320px;
    height: 320px;
    margin: 0 auto;
    padding: 28px 22px;
  }

  .hyoty-ikoni {
    font-size: 4.4rem;
    margin-bottom: 14px;
  }

  .hyoty-kortti h3 {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .hyoty-kortti p {
    font-size: 1rem;
    line-height: 1.5;
  }
}