* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


.alapalkki {
  height: 100vh;
  position: relative;
  background: #0d1321;
  pointer-events: auto;
  margin: 0;
  padding: 0;
  width: 100vw;
}


.left-half {
  width: 50%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;  
  overflow: hidden;
}

.left-half img.left-image {
  max-width: 200%;
  max-height: 200%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px #000000aa);
  
  
  transform: translate(-40px, 40px);
  opacity: 0;
  animation: fadein-left 0.6s ease forwards;
}

@keyframes fadein-left {
  to {
    opacity: 1;
    transform: translate(-40px, 80px); 
  }
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: 2rem/1.2 sans-serif;
  text-align: center;
}


.sticky-box {
  position: sticky;
  top: 50vh;
  height: 50vh;
  width: 100%;
  background: #0d1321;
  color: #f0ebdb;
  z-index: 5;
  overflow: auto;
  padding: 2rem;
  font: 1rem/1.5 sans-serif;
  border-radius: 8px 8px 0 0;
    pointer-events: auto;
}

.sticky-box h2 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}


.monivaiheinenOverlayKerros {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 52vh;
  background: #000;
  pointer-events: auto;
  z-index: 10;
  border-radius: 0 0 3vw 3vw;
  overflow: visible;
}


.overlay-tekstit {
  position: absolute;
  top: 12vh;              
  left: 7vw;
  color: #f0ebdb;
  font-size: 3.3rem;      
  font-weight: 600;
  line-height: 1.2;
  z-index: 11;
  pointer-events: auto;
}

.overlay-tekstit > div {
  margin-bottom: 0.3rem;
}



.vaihtuva-rivi {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
}

#vaihtuva-teksti {
  display: inline-block;
  position: relative;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

#vaihtuva-teksti.nousee {
  transform: translateY(-100%);
  opacity: 0;
}

#vaihtuva-teksti.laskee {
  transform: translateY(0);
  opacity: 1;
}


.nousee {
  transform: translateY(-100%);
  opacity: 0;
}

.laskee {
  transform: translateY(0);
  opacity: 1;
}


.overlay-pieni-teksti {
  font-size: 1.2rem;            
  font-weight: 400;
  margin-top: 0.7rem;         
  color: #f0ebdb;
  letter-spacing: 0.04em;
}




.split-box,
.split-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

.left-half,
.right-half {
  width: 50%;
  height: 100%;
  position: relative;
}

.right-half {
  width: 50%;
  margin-top: -2rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start; 
  padding-left: 2rem; 
  position: relative;
}




body.light-mode .alapalkki {
  background: #f0ebdb; 
}

body.light-mode .sticky-box {
  background: #f0ebdb; 
  color: #0d1321;      
}

body.light-mode .sticky-box h2 {
  color: #0d1321; 
}

body.light-mode .monivaiheinenOverlayKerros {
  background: #ffffff; 
}

body.light-mode .overlay-tekstit {
  color: #0d1321; 
}

body.light-mode .overlay-pieni-teksti {
  color: #0d1321; 
}


body.light-mode .bg-1d2d44 {
  background: #748cab;
}


body.light-mode .bg-748cab {
  background: #1d2d44;
}


body.light-mode .bg-3e5c76 {
  background: #3e5c76;
}



.list-item {
  opacity: 0;
  transform: translateY(10px);
  animation: fadein-list 0.4s ease forwards;
}

.list-item:nth-child(1) { animation-delay: 0.1s; }
.list-item:nth-child(2) { animation-delay: 0.2s; }
.list-item:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadein-list {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.list-stack:first-child {
  margin-right: 4rem; 
}
.list-columns {
  display: flex;
  flex-wrap: wrap;           
  gap: 0rem;                 
  margin-top: 8.5rem;          

  align-items: flex-start;
  max-width: 100%;           
  overflow-x: hidden;        
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;

  font-size: 1.1rem;
  color: #f0ebdb;
  line-height: 1.1;
  cursor: pointer;
}


.list-stack div {
  transition: color 0.3s ease;
}

.list-stack div:hover {
  color: #748cab; 
}

.list-stack a,
.list-stack a:link,
.list-stack a:visited {
  color: #f0ebdb !important;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.list-stack a:hover,
.list-stack a:active {
  color: #748cab !important;
  text-decoration: none;
}

.social-icons-inline {
  display: flex;
  gap: 0.6rem;
  align-items: center;

  
  margin-top: 0.5rem;        
  margin-left: 4rem;       
  padding-right: 1rem;     
}


.somet-circle {
  width: 41px;
  height: 41px;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  cursor: pointer;
}

.somet-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(93%) sepia(9%) saturate(350%) hue-rotate(318deg) brightness(101%) contrast(90%);
}

.social-icons-inline .somet-circle {
  border: 2px solid #1d2d44;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.social-icons-inline .somet-circle img {
  transition: filter 0.3s ease;
}

.social-icons-inline .somet-circle:hover {
  background-color: #f0ebdb;
}

.social-icons-inline .somet-circle:hover img {
  filter: invert(6%) sepia(17%) saturate(1282%) hue-rotate(185deg) brightness(93%) contrast(105%);
}


.social-icons-inline .somet-circle img[alt="Whatsupp"] {
  width: 110%;
  height: 110%;
  transform: scale(1.1);
}

.social-icons-inline .somet-circle img[alt="Email"] {
  width: 105%;
  height: 105%;
  transform: scale(1.05);
}


.social-icons-inline .somet-circle img[alt="TikTok"] {
  width: 97%;
  height: 97%;
  transform: scale(0.97);
}


body.light-mode .list-stack {
  color: #0d1321; 
}

body.light-mode .list-stack a {
  color: #0d1321 !important;
}

body.light-mode .social-icons-inline .somet-circle {
  border: 2px solid #748cab; 
}

body.light-mode .social-icons-inline .somet-circle:hover {
  background-color: #0d1321; 
}

body.light-mode .social-icons-inline .somet-circle:hover img {
  
  filter: invert(93%) sepia(9%) saturate(350%) hue-rotate(318deg) brightness(101%) contrast(90%);
}

body.light-mode .somet-circle img {
  
  filter: invert(6%) sepia(17%) saturate(1282%) hue-rotate(185deg) brightness(93%) contrast(105%);
}

.webula-tag {
  position: absolute;
  bottom: -2vh;
  right: 5vw;
  font-size: 1rem;
  color: #f0ebdb;
  opacity: 0.6;

  pointer-events: none; 
}


 .overlay-btn {
  --btn-line: 1.4em;
  --pad-v: 13px;

  padding: var(--pad-v) 20px var(--pad-v) 32px;
  min-height: calc(var(--btn-line) + 2 * var(--pad-v));

  position: relative;
  font-size: 1.3rem;
  background: none;
  color: #f0ebdb;
  border: 2px solid #748cab;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.4;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2vh;
  margin-left: 6rem;
  pointer-events: auto;
}

.hoitohinnat{
  --btn-line: 1.4em;
  --pad-v: 13px;

  padding: 10px 32px;
  min-height: calc(var(--btn-line) + 2 * var(--pad-v));

  position: relative;
  font-size: 1.3rem;
  background: none;
  color: #f0ebdb;
  border: 2px solid #748cab;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.4;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1vh;
  margin-left: 0rem;
  pointer-events: auto;
}

.sivujutska{
  --btn-line: 1.4em;
  --pad-v: 13px;

  padding: 10px 32px;
  min-height: calc(var(--btn-line) + 2 * var(--pad-v));

  position: relative;
  font-size: 1.3rem;
  background: none;
  color: #f0ebdb;
  border: 2px solid #748cab;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.4;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2vh;
  margin-left: 0rem;
  pointer-events: auto;
}

.eiretu {
  --btn-line: 1.4em;
  --pad-v: 13px;

  padding: var(--pad-v) 20px var(--pad-v) 32px;
  min-height: calc(var(--btn-line) + 2 * var(--pad-v));

  position: relative;
  font-size: 1.3rem;
  background: none;
  color: #f0ebdb;
  border: 2px solid #748cab;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.4;
  overflow: hidden;
  transition: background 0.3s, color 0.3s;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 38vh;
  margin-left: 6rem;
}

.overlay-btn-text-wrapper {
  display: inline-block;
  position: relative;
  height: var(--btn-line);
  line-height: var(--btn-line);
  overflow: hidden;
}

.overlay-btn-text {
  display: inline-block;
  white-space: nowrap;
  line-height: var(--btn-line);
}

.overlay-btn-text.alt {
  position: absolute;
  top: 100%;
  left: 0;
}

.letter {
  display: inline-block;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1), opacity 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

.letter.top {
  transform: translateY(0);
}

.letter.alt {
  transform: translateY(0);
}

@media (min-width: 901px) {
  .overlay-btn:hover .letter.top,
  .overlay-btn:focus-visible .letter.top,
  .overlay-btn:active .letter.top,
  .overlay-btn.is-active .letter.top,
  .overlay-btn[aria-pressed="true"] .letter.top {
    transform: translateY(-100%);
  }

  .overlay-btn:hover .letter.alt,
  .overlay-btn:focus-visible .letter.alt,
  .overlay-btn:active .letter.alt,
  .overlay-btn.is-active .letter.alt,
  .overlay-btn[aria-pressed="true"] .letter.alt {
    transform: translateY(-100%);
  }
}

@media (max-width: 900px) {
  .overlay-btn .letter,
  .eiretu .letter,
  .hoitohinnat .letter,
  .sivujutska .letter {
    transition: none !important;
    transform: none !important;
  }
}


.overlay-btn,
.overlay-btn:link,
.overlay-btn:visited { text-decoration: none; color: inherit; }
.overlay-btn .overlay-btn-text, .overlay-btn .overlay-btn-text .letter { text-decoration: none; }

.overlay-btn-icon {
  height: 1.5em;
  width: auto;
  display: inline-block;
  filter: brightness(0) saturate(100%) invert(94%) sepia(13%) saturate(172%) hue-rotate(2deg) brightness(102%) contrast(97%);
  transition: filter 0.3s, transform 0.3s;
  transform: rotate(-45deg);
}

.overlay-btn:hover .overlay-btn-icon {
  transform: rotate(-45deg);
}


.overlay-btn:hover,
.overlay-btn:focus-visible,
.hoitohinnat:hover,
.hoitohinnat:focus-visible,
.sivujutska:hover,
.sivujutska:focus-visible,
.eiretu:hover,
.eiretu:focus-visible {
  background-color: #1d2d44 !important;
  color: #f0ebdb !important; 
  transition: background-color 0.25s ease, color 0.25s ease;
}


body.light-mode .overlay-btn:hover,
body.light-mode .overlay-btn:focus-visible,
body.light-mode .hoitohinnat:hover,
body.light-mode .hoitohinnat:focus-visible,
body.light-mode .sivujutska:hover,
body.light-mode .sivujutska:focus-visible,
body.light-mode .eiretu:hover,
body.light-mode .eiretu:focus-visible {
  background-color: #f0ebdb!important;
  color: #0d1321 !important;
}


body.light-mode .webula-tag {
  color: #0d1321; 
  opacity: 0.8;   
}

body.light-mode .overlay-btn,
body.light-mode .eiretu {
  color: #0d1321;           
  border-color: #748cab;    
  background: none;
}

body.light-mode .overlay-btn:hover,
body.light-mode .eiretu:hover {
  background-color: #f0ebdb; 
  color: #0d1321;
}

body.light-mode .overlay-btn-icon {
  filter: brightness(0) saturate(100%) invert(11%) sepia(17%) saturate(1282%) hue-rotate(185deg) brightness(93%) contrast(105%);
}


@media (max-width: 1366px) {
  .sticky-box .social-icons-inline {
    margin-top: 2rem;
  }
  .sticky-box .left-half img.left-image {
    max-width: 600px;   
    height: auto;
    transform: none;
  }
}


@media (max-width: 1190px) {
  .sticky-box .social-icons-inline {
    margin-top: 2rem;
  }
  .sticky-box .left-half img.left-image {
    max-width: 500px;   
    height: auto;
    transform: none;
  }
}


@media (max-width: 1000px) {
  .sticky-box .split-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-box .left-half {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-start;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .sticky-box .left-half img.left-image {
    max-width: 500px;   
    max-height: auto;
    transform: none;
    margin-bottom: 10rem;
  }

  .sticky-box .right-half {
    width: 100%;
    margin-top: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sticky-box .list-columns {
    margin-top: -3rem;
    justify-content: center;
  }

  .sticky-box .social-icons-inline {
    margin-top: 2rem;
  }
}




@media (max-width: 686px) {
  .sticky-box .split-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-box .left-half {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-start;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .sticky-box .left-half img.left-image {
    max-width: 300px;   
    max-height: auto;
    transform: none;
    margin-bottom: 14rem;
  }

  .sticky-box .right-half {
    width: 100%;
    margin-top: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sticky-box .list-columns {
    margin-top: -6rem;
    justify-content: center;
  }

  .sticky-box .social-icons-inline {
    margin-top: 2rem;
    margin-right: 13rem;
  }
}





@media (max-width: 900px) {
  .monivaiheinenOverlayKerros {
    height: 50vh;                 
    border-radius: 0 0 24px 24px; 
  }

  .overlay-tekstit {
    top: 16vh;                     
    left: 6vw;                    
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    line-height: 1.15;
  }
  .overlay-tekstit > div { margin-bottom: 0.25rem; }

  .overlay-pieni-teksti {
    font-size: clamp(0.95rem, 3.6vw, 1.05rem);
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
  }

  
  .overlay-btn.eiretu {
    margin: 3vh auto 0;  
    left: 5vw; 
    top: 30vh;        
    margin-left: 0;               
    justify-content: center;
  }
}


@media (max-width: 480px) {
  .monivaiheinenOverlayKerros { height: 50vh; }

  .overlay-tekstit {
    top: 15vh;
    left: 6vw;
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }

  .overlay-pieni-teksti { 
    font-size: clamp(0.9rem, 3.8vw, 1rem); 
  }

  .overlay-btn.eiretu { 
    width: min(360px, 90vw); 
  }
}







@media (max-width: 423px) {
  .sticky-box {
    position: relative; 
    min-height: 320px;  
  }

  
  .sticky-box .list-columns .list-stack {
    position: absolute;
    top: -6rem;
    margin: 0 !important;
    font-size: 1rem;
  }
  .sticky-box .list-columns .list-stack:nth-of-type(1) {
    left: 1rem;
  }
  .sticky-box .list-columns .list-stack:nth-of-type(2) {
    right: 1rem;
  }

.sticky-box .social-icons-inline {
  position: absolute;
  right: 13%;

  bottom: 4.5rem; 
  display: flex;
  gap: 0.8rem;
  margin: 0 !important;
  justify-content: center;
  width: 100%;
  z-index: 2;
}
  
  .sticky-box .webula-tag,
  .sticky-box .footer-tag {
    position: absolute;
    bottom: -1rem;
    right: 5%;

    font-size: 1rem;
    opacity: 0.8;
    display: block; 
    z-index: 2;
  }
}

@media (max-width: 380px) {

  
  .sticky-box .list-columns .list-stack {
    
    font-size: 0.9rem;
  }


}




@media (max-width: 350px) {
  .sticky-box {
    padding: 1rem 1rem 1.2rem;
    overflow: visible;                 
    min-height: unset;                 
  }

  .sticky-box .split-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  
  .sticky-box .left-half {
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .sticky-box .left-half img.left-image {
    width: 420px;                  
    height: 400px;
    margin-bottom: 8.5rem;
    transform: none;
  }

  
  .sticky-box .list-columns {
    position: static !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem; 
    margin-left: -2rem;
    margin-top: 0.5rem;           
  }

  .sticky-box .list-columns .list-stack {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 auto !important;    

    width: 100vw;
    max-width: 100vw;             
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
    gap: 0.35rem;
    line-height: 1.25;
  }

  
  .sticky-box .social-icons-inline,
  .sticky-box .social-icons {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;

    order: 2;                      
    justify-content: center;
    margin-bottom: 2rem !important;
    margin-left: -4rem !important;
    padding-right: 0 !important;
    gap: 0.6rem;
    width: auto !important;
    z-index: auto !important;

  }
  .sticky-box .somet-circle {
    width: 45px;
    height: 45px;
  }

  
  .sticky-box .webula-tag,
  .sticky-box .footer-tag {
    position: static !important;
    display: block;
    margin: 0.8rem auto 0;
    text-align: center;
  }
}
