/* --------------------------------------------------------------- */
/* NAVIGAATIO */

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #052352;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.nav-logo img {
    height: 42px;
    display: block;
}

/* LINKS */
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: #bfbfbf;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    font-weight: 500;
}

.nav-links a {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    transform: translateY(-1px);
}

.linkki:hover {
    background: -webkit-linear-gradient( #FF72C0, #9e3770);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

/* CTA LINK */
.nav-cta {
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FF72C0,#052352);
    color: #fff !important;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 79, 163, 0.4);
}

/* HAMBURGER ICON */
.nav-toggle {
    width: 28px;
    height: 22px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.nav-toggle span {
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* X-TILA */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* MOBILE NAV */
@media (max-width: 800px) {

    .nav-links {
        position: fixed;
        width: 100%;
        top: 72px;
        right: 0;
        background: rgba(20, 30, 80, 0.95);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

}

/* NAVBAR SCROLL MICRO-ANIMATION */
.navbar {
    transition:
        padding 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

/* oletustila (ylhäällä) */
.nav-inner {
    padding: 18px 20px;
    transition: padding 0.3s ease;
}

.nav-logo img {
    height: 42px;
    transition: height 0.3s ease;
}

/* SCROLL-TILA */
.navbar.shrink {
    background: #052352;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.navbar.shrink .nav-inner {
    padding: 10px 20px;
}

.navbar.shrink .nav-logo img {
    height: 32px;
}

.navbar.shrink .nav-links {
    top: 52px;
}

/* --------------------------------------------------------------- */
/* FOOTER */
.footer {
    background: #052352;
    color: #cbd5e1;
    margin-top: 80px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

/* BRAND */
.footer-brand img {
    height: 42px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.6;
    max-width: 360px;
    color: #94a3b8;
}

/* LINKS */
.footer h4 {
    margin-bottom: 16px;
    font-size: 20px;
    background: -webkit-linear-gradient( #FF72C0, #9e3770);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.footer a:hover {
    background: -webkit-linear-gradient( #FF72C0, #9e3770);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

.footer h3 {
    background: -webkit-linear-gradient( #FF72C0, #9e3770);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
}

/* BOTTOM */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #94a3b8;
}

@media (max-width: 800px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

/* SCROLL TO TOP BUTTON */
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 1000;

    background-color: #FF72C0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 14l6-6 6 6' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;

    box-shadow: 0 10px 30px rgba(255, 79, 163, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

/* NÄKYVÄ TILA */
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 79, 163, 0.5);
}

/* ================================
   WHATSAPP FLOAT BUTTON
================================ */

/* perus nappi */
.whatsapp-float{
  position: fixed;
  right: 25px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  z-index: 9999;
  cursor:pointer;
}

/* hover */
.whatsapp-float:hover{
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* PIILOSSA ALUSSA */
.whatsapp-hidden{
  opacity:0;
  visibility:hidden;
  transform:translateY(20px);
}

/* NÄKYVÄ */
.whatsapp-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  transition:opacity .35s ease, transform .35s ease;
}

/* PULSE KUN ILMESTYY */
.whatsapp-float.pulse{
  animation: waPulse 1.2s ease;
}

@keyframes waPulse{
  0%{ transform: scale(1);}
  40%{ transform: scale(1.18);}
  70%{ transform: scale(.95);}
  100%{ transform: scale(1);}
}

/* mobiili – ettei iPhone toolbar peitä */
@media(max-width:600px){
  .whatsapp-float{
    // bottom:90px;
    // right:16px;
  }
}
