﻿/* 	UNIQUE SITE STYLE 
	   Salpamaa 
*/

/* Brand-tokenit */
:root {
  --color-forest:       #344B33;
  --color-forest-deco:  rgba(255, 255, 255, 0.06);
  --color-forest-light: #D6DBD6;
  --color-sand:         #f0ebe3;
  --color-sand-mid:     #e8e0d5;
  --color-sand-dark:    #e0d8cc;
  --color-sand-light: #EDE6E1;
  --color-murske:   #F9F4F3;
  --color-light-brown: #DCCEC0;
  --color-maa: #C5AE96;
  --color-accent-hiek:  #FF7413;
  --color-border-hiek:  #d0c8bc;
  --link-color: #2a7b26;
  --very-light-section-bg:  linear-gradient(180deg, #FFFFFF 0%, rgb(253 248 241) 100%);
  --color-white: #FFFFFF;
    --font-primary: 'Lato', Arial, sans-serif;
    --font-bold: 'Lato Bold', Arial, sans-serif;
    --paragraph-size: clamp(0.95rem, 1.4vw, 1.15rem);
}

html {
    height:100%;
    scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: var(--header-space); 
}
body {
  padding-top: var(--header-space);
}

.hero-section {
  z-index: 0;
}
.green-highlight-section {
  padding-top: var(--space);
  padding-left: var(--side-paddings);
  padding-right: var(--side-paddings);
  padding-bottom: var(--space);
}
.green-highlight-section .js-template {
  padding-bottom: var(--space);
  background-color: var(--color-forest-light);
    position: relative;
  clip-path: polygon(
    0 0,                    /* vasen ylä */
    100% 0,                 /* oikea ylä */
    100% 100%,              /* oikea ala */
    55px 100%,              /* alareuna, ennen viistoa */
    0 calc(100% - 90px)     /* vasen reuna, viiston yläpää */
  )
}
section:not(.hero-section) {
  position: relative;
  z-index: 1;
}

.a-hero-section {
   background-color: var(--color-forest);
    padding: var(--space) 0;
}
.a-hero-section .js-template {
  overflow: hidden;
 /* min-height: 340px; */
   background-color: var(--color-forest);
      background-image: url(../ikonit/logo-a-BG.png);
    background-size: contain;
    background-position: 100% 0;
    background-repeat: no-repeat;
}



.green-bg {
  background-color: var(--color-forest-light);
}
.brown-bg {
  background-color: var(--color-light-brown);
}
.dark-bg  {
    background-color: var(--color-forest);
}
.very-light-bg {
    background: var(--very-light-section-bg);
}
.light-bg {
    background-color: var(--color-murske);
}
.highlight-bg {
    background-color: var(--color-accent-hiek);
}
.white-txt {
    color: var(--color-white) !important;
}
.uppercase {
    text-transform: uppercase;
}
.highlight-2-txt {
  color: var(--color-forest);
}

hr {
    opacity: .8;
      display: block;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: auto;
    margin-inline-end: auto;
    color: var(--color-maa);
    overflow: hidden;
    border-style: inset;
    border-width: 1px;
}
footer hr, .dark-bg hr {
    opacity: .25;
}
/* MessageBox */
#messageBox {
    z-index: 99999;
    font-size: 1.25em;
    font-family: var(--font-bold);
    color: var(--color-forest);
    padding: 60px;
    max-width: 600px;
    width: 100%;
    height: auto;
    text-align: center;
    display: none;
    position: fixed;
    left: 50%;
    top: 40%;
    margin-top: -60px;
    background: #fff;
    color: var(--dark-color);
    border-radius: 5px;
    box-shadow: 10px 10px 25px 0 rgba(0,0,0,.1);
    transform: translateX(-50%);
    /* transform: translateY(-50%); */
}
#messageBox p {padding-bottom: none;}
#messageBox.fade {
  visibility: visible;
  transition: visibility 0s linear 0s, opacity 1000ms;
  z-index: 1;
  opacity: 1;
}
#messageBox.fadeout {
  transition: visibility 0s linear 1000ms, opacity 1000ms, z-index 1000ms;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
}
#messageBox {
  display: block;
  z-index: -1;
  opacity: 0;
}

p.disclaimer-txt {
  font-size: calc(var(--paragraph-size) * .8);
  opacity: .6;
}





/* 
   FONT — Lato (Google Fonts / paikallinen)
   Sijainti: /fonts/ */

@font-face {
  font-family: 'Lato italic';
  src: url('../fonts/Lato-LightItalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato Bold';
  src: url('../fonts/Lato-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 
   TYPOGRAFIA — Globaali
   Kuuluu devkit.css:ään  */

h1, h2, h3, h4, h5, h6 {
font-family: var(--font-bold);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--color-forest);
}
h5, h6 {
    color: var(--color-text);
}
h1 { font-size: clamp(2.65rem, 6.4vw, 4.8rem); }
h2, .mimic-h2 { 
  font-size: clamp(1.8rem, 1.5167rem + 1.2593vw, 2.65rem);
}
.mimic-h2 { 
  font-family: var(--font-bold);
      line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--color-forest);
}
h3 { 
  font-size: clamp(1.4rem, 1.2rem + 0.8889vw, 2rem);
 }
h4 { 
font-size: clamp(1.1rem, 1rem + 0.4444vw, 1.4rem);
    line-height: 1.5em;
 }
 h5 { 
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.5em;
 }
.highlight-header  {
  color: var(--color-forest);
  border-left: 5px solid var(--color-accent-hiek);
  padding-left: 0.75rem;
}
.pre-header { 
    text-transform: uppercase;
    margin-bottom: .7em;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-forest);
}
p {
  font-family: var(--font-primary);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.55em;
  color: var(--color-text);
}

strong, b { 
  font-family: 'Lato Bold'; 
}

ul, ol {
  font-family: var(--font-primary);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.55em;
  color: inherit;
    list-style-position: outside;
    margin-left: 1em;
}
ul li, ol li {
  margin-left: .65em;
}
ul li::marker, ol li::marker {
  color: var(--color-accent-hiek);
}
.custom-list {
  list-style: none;
  margin: var(--small-space) 0;
  padding: 0;
}
.custom-list-grid {
  list-style: none;
  margin: 0;
  padding: 1em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 32px;
}
.custom-list li,
.custom-list-grid li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px 0;
}
.custom-list li::before,
.custom-list-grid li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* Tabletti: kaksi saraketta */
@media (max-width: 991px) {
  .custom-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobiili: yksi sarake */
@media (max-width: 600px) {
  .custom-list-grid {
    grid-template-columns: 1fr;
  }
}


.product-grid {
    margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2em;
}
.product-card {
    display: grid;
  grid-template-columns: 60% 40%;
  gap: 0;
  background-color: var(--color-sand-light);
}
.product-card h4 {
    font-family: var(--font-primary);
}

.product-image {
  position: relative;
  background-position: center;
  background-size: cover;
  clip-path: polygon(
    0 0,                    /* vasen ylä */
    100% 0,                 /* oikea ylä */
    100% 100%,              /* oikea ala */
    30px 100%,              /* alareuna, ennen viistoa */
    0 calc(100% - 55px)     /* vasen reuna, viiston yläpää */
  )
}
@media (max-width: 991px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
.grecaptcha-badge {
  display: none;
}
a {
  color: inherit;
  text-decoration: none;
}
a.txt-link {
  color: var(--link-color);
 /* font-weight: 700; */
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--link-color);
   text-decoration-thickness: 1px;
  transition: all .3s ease;
}
a.txt-link:hover {
  color: var(--color-accent-hiek);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-accent-hiek);
}

.slightly-bigger-font {
font-size: clamp(1.15rem, 1.0833rem + 0.2963vw, 1.35rem);
  line-height: 1.5em;
  letter-spacing: 0.015em;
}


.bigger-font {
font-size: clamp(1.2rem, 1.0442rem + 0.6923vw, 1.65rem);
    line-height: 1.25em;
    letter-spacing: 0.01em;
}
.big-font {
    font-size: clamp(1.35rem, 2.8vw, 2.1rem);
    line-height: 1.15em;
    letter-spacing: 0.01em;
}
.very-big-font {
font-size: clamp(1.65rem, 0.6115rem + 4.6154vw, 4.65rem);
    line-height: 1.15em;
    letter-spacing: 0.01em;
}

.super-size-font {
font-size: clamp(4rem, 2.6667rem + 5.9259vw, 8rem);
line-height: .8em;
    letter-spacing: 0;
}




.section-label {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/*   HEADER */
header {
    position: fixed;
    top: 0;
    height: var(--header-space);
width: 100%;
    z-index: 100;
    padding: 0 var(--side-paddings);
    background: var(--color-forest);
    box-shadow: -2px 8px 16px 0px #00000017;
}
header .flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0;
      height: 100%;
}
header .logo a { display: block; line-height: 0; }
header .logo img { width: auto; height: 30px; display: block; }



/*

header nav.main-nav { display: flex; align-items: center; }
header ul#main-menu {
  display: flex;
  align-items: center;
  gap: 2em;
  list-style: none;
  margin: 0;
  padding: 0;
}
header ul#main-menu li a {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s, opacity 0.2s;
    white-space: nowrap;
    line-height: 1.5;
    display: inline-block;
    text-transform: uppercase;
}
header ul#main-menu li a:hover { 
    color: var(--color-accent-hiek); 
    opacity: 1;
 }
header ul#main-menu li.active > a { color: var(--color-white); }

header .main-menu-btn { display: none; cursor: pointer; padding: 8px; }
header #main-menu-state { display: none; }
header .main-menu-btn-icon,
header .main-menu-btn-icon::before,
header .main-menu-btn-icon::after {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.35s;
  position: relative;
}
header .main-menu-btn-icon::before,
header .main-menu-btn-icon::after { content: ''; position: absolute; left: 0; }
header .main-menu-btn-icon::before { top: -7px; }
header .main-menu-btn-icon::after  { top:  7px; }
header #main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon { background: transparent; }
header #main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon::before { transform: translateY(7px) rotate(45deg); }
header #main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon::after  { transform: translateY(-7px) rotate(-45deg); }


*/





/*   HERO */
.presentation-hero-with-image {
  width: 100%;
  height: calc(100dvh - var(--header-space));
  min-height: 580px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.presentation-hero-with-image .frame.side-paddings {
  height: calc(100dvh - var(--header-space));
  display: flex;
  align-items: flex-end;
}
.hero-content {
  text-align: left;
  padding-bottom: clamp(60px, 10vh, 130px);
  padding-top: 0;
}
.hero-content h1 {
  font-size: clamp(3.8rem, 9.6vw, 9rem);
  line-height: 1;
  color: var(--color-white);
  margin-bottom: var(--small-space);
}
.hero-content .headers p {
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3.4vw, 2.55rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--color-white);
  max-width: 440px;
  margin-bottom: var(--space);
}


/*  HERO VIDEO */
.presentation-hero-with-video.presentation-hero-with-image .frame.side-paddings {
  align-items: center;
}
.presentation-hero-with-video .hero-content {
  padding-bottom: 0;
  padding-top: 0;
  position: absolute;
  bottom: -2px;
  left: 0;
    right: 0;
}
.presentation-hero-with-video .bg-box { overflow: hidden; }
.presentation-hero-with-video .bg-box iframe,
.presentation-hero-with-video .bg-box video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw;
  min-height: 100%;
  min-width: 177.78vh;
  pointer-events: none;
  border: 0;
}

.layer-bg      { z-index: 1; }
.layer-content { z-index: 10; width: 100%; }

.bg-box {
  inset: 0;
  right: 0;
  bottom: 0;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}
.bg-box .module-wrap  {
  height: 100%;
}
.bg-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.52) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.05) 100%
  );
  z-index: 2;
}
.highlight-boxes .box {
            width: 33.333%;
            padding: 15px;
}
.highlight-boxes .box.two {
    border-left: 1px solid var(--color-border-hiek);
    border-right: 1px solid var(--color-border-hiek);
}
@media (max-width: 767px) {
  /*
  .presentation-hero-with-image { 
    min-height: 100svh; 
  }
*/
  .highlight-boxes .box {
              width: 100%;
                 padding: 10px;
  }
    .highlight-boxes .box.two {
      border-top: 1px solid var(--color-border-hiek);
      border-bottom: 1px solid var(--color-border-hiek);
        border-left: none;
    border-right: none;
  }
}


.regular-hero .js-template:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
background: linear-gradient(to right, rgba(0, 0, 0, 0.62) 20%, rgba(0, 0, 0, 0) 62%);
  z-index: 0;
}



/* 
   OSIO 1 — HERO  (.hero-hiek)  */
.hero-hiek {
  position: relative;
  overflow: hidden;
  min-height: 340px;
      background-image: url(../ikonit/logo-a-BG.png);
    background-size: contain;
    background-position: 100% 0;
    background-repeat: no-repeat;
    margin: var(--space) 0;
}

.hero-hiek .frame {
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: clamp(50px, 12vh, 120px);
  padding-bottom: clamp(30px, 5vh, 80px);
}

.hero-hiek__content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

/* Iso koristeltu kirjain taustalle 
.hero-hiek::after {
    content: "";
    opacity: .2;
    position: absolute;
    height: 90%;
    width: 332px;
    right: 0;
    top: 50%;
    transform: translateY(-45%);
    background-image: url(../ikonit/logo-a.png);
    background-size: contain;
    background-repeat: no-repeat;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}
*/
/* Tekstit vaaleana — section bg on tumma */
.hero-hiek .section-label { 
    color: rgba(255, 255, 255, 0.65); 
}
.hero-hiek h1,
.hero-hiek h2,
.hero-hiek p   { 
    color: var(--color-murske); 
}

/* 
   BUTTON — btn-outline
   Käyttö: <a class="btn-outline" href="#">Ota yhteyttä</a> */

.btn-outline, .light-button {
  font-family: var(--font-bold);
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-forest);
  color: var(--color-forest);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  padding: 0 0 0 20px;
  margin-top: 6px;
   margin-bottom: 6px;
  transition: background 0.35s ease, color 0.35s ease;
}
.light-button {
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
}
.btn-outline::after, .light-button::after {
 content: "";
  display: inline-block;
  width: 0;
  height: 44px;
  margin-left: 20px;
  padding-left: 50px;
  border-left: 1.5px solid var(--color-forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4a2d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='19' x2='19' y2='5'/%3E%3Cpolyline points='9 5 19 5 19 15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
}
.light-button::after {
  border-left: 1.5px solid var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='19' x2='19' y2='5'/%3E%3Cpolyline points='9 5 19 5 19 15'/%3E%3C/svg%3E");
}
.btn-outline:hover,
.two-col-flex-with-number-and-link:hover .btn-outline,
.two-col-flex-with-number-and-link:focus-within .btn-outline {
  background:var(--color-forest);
  color:  var(--color-white);
  text-decoration: none;
    border: 1.5px solid var(--color-white);
}
.btn-outline:hover::after,
.two-col-flex-with-number-and-link:hover .btn-outline::after,
.two-col-flex-with-number-and-link:focus-within .btn-outline::after {
  border-left-color: var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='19' x2='19' y2='5'/%3E%3Cpolyline points='9 5 19 5 19 15'/%3E%3C/svg%3E");
}
.light-button:hover {
  background:var(--color-white);
  color:  var(--color-accent-hiek);
  text-decoration: none;
    border: 1.5px solid var(--color-accent-hiek);
}
.light-button:hover::after {
  border-left-color: var(--color-accent-hiek);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF7413' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='19' x2='19' y2='5'/%3E%3Cpolyline points='9 5 19 5 19 15'/%3E%3C/svg%3E");
}


.btn-outline.dark {
  border: 1.5px solid var(--color-forest);
  color: var(--color-forest);
}
.btn-outline.dark:hover {
  background: var(--color-forest);
  border: 1.5px solid transparent;
  color: var(--color-white);
}
.btn-outline.dark::after {
  border-left: 1.5px solid var(--color-forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d4a2d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='19' x2='19' y2='5'/%3E%3Cpolyline points='9 5 19 5 19 15'/%3E%3C/svg%3E");
}
.btn-outline.dark:hover::after {
  border-left-color: var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='19' x2='19' y2='5'/%3E%3Cpolyline points='9 5 19 5 19 15'/%3E%3C/svg%3E");
}




/*    GENEERINEN 2-KOLUMNI  (.two-col-flex ja .muut) */
.two-col-flex .frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}
.two-col-flex-60-40 .frame {
  display: grid;
  grid-template-columns: 56% 39%;
  gap: 5%;
  align-items: end;
}
.two-col-flex-70-30 .frame {
  display: grid;
  grid-template-columns: 68% 32%;
  gap: 5%;
  align-items: end;
}
.two-col-flex--align-start .frame { align-items: start; }

.two-col-flex--reverse .two-col-flex__col:first-child { order: 2; }
.two-col-flex--reverse .two-col-flex__col:last-child  { order: 1; }

.two-col-flex__col img {
  width: 100%;
  height: auto;
  display: block;
}



.two-col-flex__col {
    height: 100%;
    display: flex;
}
.two-col-flex__col.single-news-image {
    height: 100%;
    background-position: center center;
    background-size: cover;
}
@media screen and (max-width: 991px) {
    .two-col-flex__col.single-news-image {
        height: 48vw;
    }
}



/* 2-KOLUMNI with number and link */
.two-col-flex-with-number-and-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}
@media (max-width:767px) {
  .two-col-flex-with-number-and-link {
    grid-template-columns: 1fr;
  }
}

/*** Two-col-flex hover-efekti START uusi ***/

.two-col-flex-with-number-and-link .btn-outline {
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* --- DESKTOP (hover-laitteet): kuva piilossa, näkyy hoverissa; nappi vihertyy hoverissa --- */
@media (hover: hover) {
  .two-col-flex-with-number-and-link .bg-box {
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  .two-col-flex-with-number-and-link:hover .bg-box,
  .two-col-flex-with-number-and-link:focus-within .bg-box {
    opacity: 1;
  }
  /* Nappi hover-tyyliin koko templaten hoverilla */
  .two-col-flex-with-number-and-link:hover .btn-outline,
  .two-col-flex-with-number-and-link:focus-within .btn-outline {
    background-color: #3d4a36; /* vihreä */
    color: #fff;
  }
}

/* --- TOUCH-laitteet (ei hoveria): kuva näkyy aina → nappi aina vihreä --- */
@media (hover: none) {
  .two-col-flex-with-number-and-link .btn-outline {
    background: var(--color-forest);
    color: var(--color-white);
    border: 1.5px solid var(--color-white);
  }
  .two-col-flex-with-number-and-link .btn-outline::after {
    border-left-color: var(--color-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='19' x2='19' y2='5'/%3E%3Cpolyline points='9 5 19 5 19 15'/%3E%3C/svg%3E");
  }
}

/* --- Admin: tausta aina näkyvissä CMS-muokkausta varten --- */
body.admin .two-col-flex-with-number-and-link .bg-box {
  opacity: 1 !important;
  transition: none;
}
/*** Two-col-flex hover-efekti END ***/


/* 2-KOLUMNI viewport wide */
.two-col-flex-wide {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 0;
  align-items: center;
}
.two-col-flex-wide .content-container .wrap {
  max-width: 470px;
}
.two-col-flex-wide.reverseOrder > :first-child { order: 2; }
.two-col-flex-wide.reverseOrder > :last-child  { order: 1; }
.two-col-flex-wide.reverseOrder {
  grid-template-columns: 52% 48% ;
}
@media (max-width: 991px) {
  .two-col-flex-wide > :first-child { order: 2; }
  .two-col-flex-wide > :last-child  { order: 1; }
    .two-col-flex-wide,
    .two-col-flex-wide.reverseOrder {
      grid-template-columns: 1fr;
    }
    .two-col-flex-wide .content-container .wrap {
      max-width: 100%;
    }
    .two-col-flex-wide .image-side {
      min-height: 52vw;
    }
  }
/* 2-KOLUMNI with number and link END */



/*  GENEERINEN 3-KOLUMNI  (.three-col-flex ) */
.three-col-flex  .three-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}
.three-col-flex__col  {
  width: 100%;
}
.three-col-flex__col img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 991px) {
    .three-col-flex .three-cols {
      grid-template-columns: 1fr;
    }
    .three-col-flex .content-container .wrap {
      max-width: 100%;
    }
  }





/* Kampanjan section-label ja h4 oranssina */
.two-col-flex .section-label { color: var(--color-accent-hiek); }

/* Step-rakenne */
.hiek-step {
  padding-left: 1rem;
  border-left: 3px solid var(--color-border-hiek);
  margin-bottom: var(--small-space);
}
.hiek-step:last-child { margin-bottom: 0; }

/* Info-kortit */
.hiek-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hiek-info-card {
  background: var(--color-sand-dark);
  border-radius: 8px;
  padding: 1.65em;
  margin-bottom: 2em;
}


.bg-white .hiek-info-card,
.color-bg-white .hiek-info-card { background: var(--color-sand); }


/*  OSIO 3 — QUOTE  (.quote-hiek) */

blockquote {
  font-family: var(--font-primary);
  padding-left: 5em;
}
blockquote p {
    font-size: clamp(1.4rem, 4vw, 3.5rem);
    line-height: 1.2em;
    margin: 1.35em 0;
    color: var(--color-forest);
}
blockquote::before {
    content: '';
    display: block;
    position: absolute;
    margin-top: .2em;
    margin-left: -4em;
    width: 3em;
    height: 2em;
    margin-bottom: 0.6em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 22' fill='%23FF7413'%3E%3Cpath transform='rotate(180 14 11)' d='M0 22V13.5C0 9.5 1.2 6.3 3.6 3.8S9.2 0 13 0v4c-2.3 0-4.1.8-5.5 2.3S5.5 9.8 5.5 12.5H11V22H0zm17 0V13.5c0-4 1.2-7.2 3.6-9.7S26.2 0 30 0v4c-2.3 0-4.1.8-5.5 2.3s-2 3.5-2 6.2H28V22H17z'/%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}
@media (max-width: 767px) {
  blockquote {
    padding-left: 4em;
  }
  blockquote::before {
    margin-top: .2em;
;
    width: 3em;
    height: 2em;
    margin-bottom: 0.6em;
  }
}






.service-item__num {
padding-right: 2em;
}
body.admin .service-item__num {
padding-right: 6em;
}


/*    FOOTER  (.footer-hiek)   */

.footer-hiek .frame {
    display: grid;
    grid-template-columns: 4fr 1fr 1fr 1fr;
    gap: clamp(30px, 4vw, 100px);
    align-items: start;
}
.footer-hiek__logo img {
  max-width: 400px;
  height: auto;
}
.footer-hiek h4 {
    font-weight: 700;
    color: var(--color-white);
}
.footer-hiek p + p {
    margin-top: 10px;

}
footer {
        background-color: var(--color-forest);
    padding-top: var(--small-space);
    padding-bottom: var(--small-space);
        z-index: 1;
    position: relative;
    color: var(--color-white);
}
@media (max-width: 767px) {
  .footer-hiek .frame {
    grid-template-columns: 1fr;
  }
}
footer a.txt-link {
      font-family: var(--font-primary);
      text-decoration:underline;
      text-decoration-color: transparent;
      color: #FFF;
}
footer a.txt-link:hover {
   color: #FFF;
        text-decoration-color: var(--color-accent-hiek) !important;
      text-decoration: underline;
}
/* 
   RESPONSIVE */

@media (max-width: 1199px) {
    header {
    padding: 0 4%;
    }
}






@media (max-width: 991px) {
  .two-col-flex .frame,
  .two-col-flex-60-40 .frame { grid-template-columns: 1fr; }
  .two-col-flex-70-30 .frame { grid-template-columns: 1fr; }

  .two-col-flex--reverse .two-col-flex__col:first-child,
  .two-col-flex--reverse .two-col-flex__col:last-child { order: unset; }

  .hero-hiek::after  { font-size: 14rem; opacity: 0.1; }
  .quote-hiek__block { max-width: 100%; }
  header { padding-left: var(--space); padding-right: var(--space); }

}

@media (max-width: 767px) {
 
  .hero-hiek::after { font-size: 8rem; right: -3%; }
  .hiek-info-cards  { gap: 0.75rem; }
}


/* ARTICLE HERO */

.article-hero-wrapper {
 padding-top: 110px;
}
.article-hero-wrapper:before {
content: '';
    width: 100%;
    top: 0;
    display: block;
    position: absolute;
    height: 300px;
background: var(--color-forest);

}
.article-hero-body {
    position: relative;
    background-color: var(--color-white);
    z-index: 2;
box-shadow: 0px 4px 4px 0px #00000040;

}
.article-hero-body .texts  {
    padding: 6% 6% 3% 7%; 
}
.article-hero-body .texts h1 {
  font-size: clamp(1.625rem, 1.125rem + 2.2222vw, 3.125rem);
   line-height: 1.3em;
   font-family: Lato;
font-weight: 500;
font-style: Medium;
letter-spacing: 0.03em;
}
.article-hero-body .hero-image {
   width: 100%;
    aspect-ratio: 2 / 1;   /* säädä halutun korkeuden mukaan */
    overflow: hidden;
}

.article-hero-body .hero-image .newsHeaderImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.article-hero-meta {
    gap: 8px;
    letter-spacing: 0.1em;
    margin-bottom: var(--min-space);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.article-hero-meta .pre-header {
    margin-bottom: 0;
       font-family: Lato;
font-size: clamp(0.9375rem, 0.875rem + 0.2778vw, 1.125rem);
}

.article-hero-meta-sep {
    font-size: var(--paragraph-size);
    color: var(--grey-color);
    line-height: 1;
}
.article-hero-body .wrap[data-id="6"] img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.ingress p { 
    font-size: calc(var(--paragraph-size) * 1.25);
    line-height: 1.45em;
}
.quotation {
    font-size: calc(var(--header-size) * 0.85);
    font-weight: 400;
    line-height: 1.25em;
margin: 1.85em 1em;
    padding-left: 1em;
    border-left: 2px solid #344B33;

}

/*
.news-article h2 {
    
}
.news-article p + h3 {
  margin-top: 35px;
}
*/
.single-news-details p + h4 {
    margin-top: 10px;
}
.single-news-details .info {
    color: var(--color-forest);
}
.big-news-sectioni {
  background-color: var(--color-murske);
}
.news-link {
  font-family: var(--font-bold);
  display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-forest);
}
.news-link-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}
.news-link:hover .news-link-arrow {
    transform: translateX(5px);
}
.news-link-arrow--back {
  transition: transform 0.2s ease;
}
.news-link--back:hover .news-link-arrow--back {
  transform: translateX(-4px);
}

ul.news-cat {
    list-style: none;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    flex-direction: row;
    align-items: center;
    color: var(--color-forest);
    font-size: 12px;
}
ul.news-cat li {
    font-family: var(--font-bold);
    margin: 6px 12px 6px 0;
    background: transparent;
    border: 2px solid var(--color-forest);
    border-radius: 2px;
    cursor: pointer;
    transition: all .2s ease-in-out;
}
ul.news-cat li:hover {
    border: 2px solid var(--color-forest);
       background: var(--color-forest);
       color: var(--color-murske);
}
ul.news-cat li.active  {
    background: var(--color-forest);
    color: var(--color-murske);
    z-index: 3;
    position: relative;
    border: 2px solid var(--color-forest);
}
ul.news-cat li::before {
    content: '';
    display: none;
}
ul.news-cat li span {
    font-size: 1rem;
    line-height: 1.25em;
    padding: 10px 20px;
    display: block;
}
@media screen and (max-width: 767px) {
    ul.news-cat li span {
        font-size: .9rem;
        padding: 8px 16px;
    }
}










/* social media sharing */ 
.sharing {
    display: flex;
    flex-direction: row;
    margin-left: -8px;
}
.sharing div {
    width: 36px;
    padding: 4px 7px;
    height: auto;
    margin: 0;
    cursor: pointer;
    border-radius: 50%;
    transition: all .1s ease-in-out;
}
.sharing div.fb {
   margin-right: -4px;
}
.sharing div img#share-yleinen {
   width: 80%;
    padding-top: 3px;
}
.sharing div img {
  filter: brightness(0) saturate(100%) invert(63%) sepia(0%) saturate(133%) hue-rotate(182deg) brightness(103%) contrast(82%);
   transition: all .1s ease;
}
.sharing div:hover img {
      filter: brightness(0) saturate(100%) invert(25%) sepia(4%) saturate(3289%) hue-rotate(69deg) brightness(95%) contrast(90%);
}

@media screen and (max-width: 767px) {
.article-hero-wrapper {
 padding-top: 40px;
}
    .article-hero-meta-sep {
        display: none;
    }
    .article-hero-wrapper .pre-header {
        width: 100%;
    }
    .sharing {
        margin-left: -14px;
        width: 100%;
    }
}


/***** NOORA TEKI TÄNNE ****/

/*** Collapse START ***/

/* Oletustila: laatikko on piilossa ja korkeus 0 */
body:not(.admin) .collapse {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: height 0.4s ease, visibility 0s linear 0.4s;
}
body:not(.admin) .collapse.show {
  visibility: visible;
  transition: height 0.4s ease, visibility 0s linear 0s;
}
body:not(.admin) .collapse-button {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 1rem 1rem 1rem 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  font-family: var(--font-primary);
font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 30px;
  letter-spacing: 2%;
  color: var(--color-forest);
  border-top: 1px solid var(--color-forest);
}
body:not(.admin) .collapse-button:not(.collapsed) {
   
}
body:not(.admin) .collapse-container-inner section, 
.collapse-container-inner section div.content-container {
  padding: 0;
}
body:not(.admin) .collapse-container-inner {
  padding: .5rem 1.5rem 2rem 1.5rem;
}
body:not(.admin) .collapse-button::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23344B33'%3E%3Cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
}

body:not(.admin) .collapse-button:not(.collapsed)::after {
  transform: rotate(180deg);
}
@media screen and (max-width: 440px) {
    body:not(.admin) .collapse-button {
      padding: 1rem 0 1rem .1rem;
    }
        body:not(.admin) .collapse-container-inner {
      padding: 0 0 1.5rem .1rem;
    }
  }
/*** Collapse END ***/


.product-hero-body {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 0;
    align-items: center;
    background-color: var(--color-sand);
    color: #000000;
}
.product-hero-body h1 {
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    font-family: var(--font-primary);
     padding-bottom: 12px;
}
.product-hero-body h1,.product-hero-body h2,.product-hero-body h3,.product-hero-body h4 {
     color: #000000;
}
  .product-hero-body .hero-image {
    height: 100%;
        -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-attachment: scroll;
    background-repeat: no-repeat;
  }
@media (max-width: 991px) {
  .product-hero-body {
        grid-template-columns: 1fr;
    }
    .product-hero-body .hero-image {
      height: 52vw;
    }
  }



.tabe-data-module {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-primary);
  font-size: calc(var(--paragraph-size) * .85);
  color: var(--color-forest);
  margin-top: var(--min-space);
  margin-bottom: var(--min-space);
}
.tabe-data-module tr:first-child th {
   font-family: var(--font-bold);
  background-color: var(--color-forest);
  color: #fff;
  text-align: left;
  padding: 18px 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.4;
  vertical-align: top;
}
/* Datasolut */
.tabe-data-module td {
  padding: 16px 20px;
  border: none;
}
/* Vuorottelevat rivivärit (datarivit alkavat 2. rivistä) */
.tabe-data-module tr:nth-child(odd) td {
  background-color: var(--color-forest-light);
}
.tabe-data-module tr:nth-child(even) td {
  background-color: #e3e0d6;
}

/* Ohut erotinviiva datarivien väliin */
.tabe-data-module tr:not(:last-child) td {
  border-bottom: 1px solid #d8d4c8;
}

/* ---------- MOBIILI ---------- */
@media (max-width: 600px) {
  .tabe-data-module {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .tabe-data-module td,
  .tabe-data-module th {
    white-space: normal;
  }
}



.leikkaa-alakulmaa  {
    height: 100%;
    clip-path: polygon(0 0, /* vasen ylä */ 
    100% 0, /* oikea ylä */ 
    100% 100%, /* oikea ala */ 
    9% 100%, /* alareuna, ennen viistoa */ 
    0 calc(100% - 19%) /* vasen reuna, viiston yläpää */);
}