 @font-face {
      font-family: 'Kenyan Coffee';
      src: url('https://kingscrest.com/new/fonts/Kenyan-Coffee-Rg.woff2') format('woff2');
      font-weight: normal;
      font-style: normal;
      }
      @font-face {
      font-family: 'Montserrat';
      src: url('https://kingscrest.com/new/fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
      font-weight: 100 900;
      font-style: normal;
      }


    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      height: 100%;
      overflow-x: hidden;
      font-family: 'Kenyan Coffee', Arial, sans-serif;
      background: linear-gradient(180deg, #0e97ea, #00c6ff, #0ebdf7);
    }
    canvas#waves {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(-45deg);
      width: 300vw;
      height: 300vh;
      z-index: 0;
      pointer-events: none;
    }
    .floating-fruits {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 1;
    }
    .fruit-wrapper {
      position: absolute;
      animation: float 6s ease-in-out infinite;
    }
    @keyframes float {
      0% { transform: translateY(0px); }
      50% { transform: translateY(-20px); }
      100% { transform: translateY(0px); }
    }
    .fruit {
      width: var(--fruit-size, 80px);
      height: auto;
      display: block;
      opacity: 0.95;
    }
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      width: 240px;
      height: 100vh;
      background: linear-gradient(to bottom, #027dfd, #015ac7);
      color: white;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 20px 0;
    }
    .sidebar img {
      width: 140px;
      margin-bottom: 20px;
    }
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      margin-top: 10px;
    }
    .hamburger div {
      width: 25px;
      height: 3px;
      background: white;
    }
    nav.desktop-nav {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    nav.desktop-nav .nav-item {
      width: 100%;
      text-align: center;
      padding: 10px 0;
    }
    nav.desktop-nav .nav-item a {
      color: white;
      text-decoration: none;
      display: block;
    }
    .submenu {
      display: none;
      flex-direction: column;
      padding: 10px 0;
      border-top: 1px solid rgba(255,255,255,0.2);
      margin-top: 5px;
    }
    .submenu a {
      font-size: 1px;
      font-family: 'Montserrat', sans-serif;
      color: #eee;
      text-decoration: none;
      padding: 8px 0;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .submenu a:last-child {
      border-bottom: none;
    }
    .nav-item > a {
    font-family: 'Kenyan Coffee', Arial, sans-serif;
    text-transform: uppercase;
    font-size:20px;
    }

    .submenu a {
    font-family: 'Montserrat', sans-serif;
    font-size:11px;
    }

    .main-content {
      margin-left: 240px;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 93vh;
      z-index: 1;
      position: relative;
      top:50px;
    }
    .main-content img {
      max-width: 90%;
      max-height: 90vh;
      margin-top:-70px;
    }
    .slideout {
      display: none;
    }


  .overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.visible {
  display: block;
  opacity: 1;
}


#mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(to bottom, #027dfd, #015ac7);
  z-index: 999;
  padding: 40px 20px;
  gap: 20px;
  display: flex;
  flex-direction: column;

  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#mobileMenu.open {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}


#mobileMenu a {
  color: white !important;
  text-decoration: none;
  font-family: 'Kenyan Coffee', Arial, sans-serif;
  text-transform: uppercase;
}

.close-mobile-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  font-family: Arial, sans-serif;
  z-index: 1000;
}

/* Desktop fruit positions */
.fruit-wrapper.lemon {
  top: 0;
  left: 50%;
}

.fruit-wrapper.strawberry-left {
  top: 50%;
  left: 20%;
}

.fruit-wrapper.kiwi-right {
  top: 50%;
  right: 5%;
}

.fruit-wrapper.strawberry {
  top: 200px;
  right: 150px;
}

.fruit-wrapper.kiwi-left {
  top: 200px;
  left: 27%;
}

.fruit-wrapper.leaf-left {
  top: 70px;
  left: 30%;
}

.fruit-wrapper.leaf-right {
  top: 70px;
  right: 250px;
}

  .fruit.size-150,
  .fruit.size-140,
  .fruit.size-130 {
    --fruit-size: 150px;
  }
    .fruit.size-120 {
    --fruit-size: 150px;
  }
    .fruit.size-110 {
    --fruit-size: 115px;
  }

  /* === CTA BUTTON STYLES === */
.mobile-cta {
  display: none;
  justify-content: center;
  margin-top: -330px;
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 5;
}

.cta-button {
  background: linear-gradient(to bottom, #027dfd, #015ac7);
  color: white;
  font-family: 'Kenyan Coffee', sans-serif;
  text-transform: uppercase;
  font-size: 35px;
  padding: 14px 36px;
  border-radius: 20px;
  text-decoration: none;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.5s ease-out forwards 1.2s, float 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

/* Shine Animation */
.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(255,255,255,0.5), rgba(255,255,255,0.05));
  transform: skewX(-20deg);
  animation: shine 1.5s ease-in-out 0.8s 1;
}

/* Hover Effects */
.cta-button:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transform: translateY(-10px) scale(1.03);
}


/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-icons a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
}

.icon {
  width: 26px;
  height: 26px;
  fill: white;
}


/* Top mobile bar */
.mobile-header {
  display: none;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.mobile-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-logo {
  height: 80px; /* was 40px */
  max-width: 100%;
}

.hamburger-icon {
  font-size: 36px;
  cursor: pointer;
  color: white;
}

/* Slide-out menu */
.mobile-slideout {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: #111;
  z-index: 1000;
  padding: 20px;
  transition: right 0.3s ease;
}

.mobile-slideout.open {
  display: block;
  right: 0;
}

.close-icon {
  font-size: 28px;
  color: white;
  cursor: pointer;
  text-align: right;
  margin-bottom: 20px;
}

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

.mobile-nav li {
  margin-bottom: 15px;
}

.mobile-nav a {
  color: white;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
}

.mobile-slideout-header {
  display: flex;
  align-items: center;
}

.mobile-slideout-header .brand {
  font-family: 'Kenyan Coffee', sans-serif;
  font-size: 22px;
  color: white;
  white-space: nowrap;
}

.mobile-slideout-header .line {
  flex-grow: 1;
  height: 2px;
  background: white;
  opacity: 0.2;
  margin: 0 10px;
}

.mobile-slideout-header .close-icon {
  font-size: 26px;
  color: white;
  cursor: pointer;
}

.site-footer {
  position: relative;
  margin-left: 240px; /* aligns with .content */
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.85);
  z-index: 10;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-left: 10px;
}

.site-footer a:hover {
  text-decoration: underline;
}

.desktop-cta {
  position: fixed;
  bottom: 5%;
  left: 240px; /* match the sidebar width */
  width: calc(100% - 240px); /* subtract sidebar from full width */
  display: flex;
  justify-content: center;
  z-index: 999;
  pointer-events: none;
}

.desktop-cta .cta-button {
  pointer-events: auto;
}

.cta-button:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  transform: translateY(-10px) scale(1.03); /* ✅ keep float effect */
}

.desktop-only {
  display: none;
}


/* Mobile only */
@media (max-width: 768px) {
  .mobile-cta {
    display: flex;
    top:30px;
  }
  .site-footer {
    margin-left: 0;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    position: relative;
    top:30px;
  }

  .site-footer .footer-right {
    margin-left: 0;
  }

  .mobile-header {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .content {
    margin-left: 0;
    padding-top: 80px;
  }
   .main-content img {
      max-width: 110% !important;
      max-height: 100vh;
      margin-top: -400px;
      margin-left:10px;
    }

  #mobileMenu .submenu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #eee !important;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: block;
}
.sidebar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    width: 100%;
    padding: 6px 12px; /* reduced from 10px 20px */
    background: transparent !important;
    gap: 10px;
  }

  .sidebar img {
    width: 90px; /* reduced logo size */
    height: auto;
    margin-top:10px;
  }
      nav.desktop-nav {
        display: none;
      }
      .hamburger {
        display: flex;
        position: relative;
        right: 10%;
      }
      .main-content {
        margin-left: 0;
      }

  .fruit-wrapper.lemon { top: 0; left: 40%; }
  .fruit-wrapper.strawberry-left { top: 40%; left: 5%; }
  .fruit-wrapper.kiwi-right { top: 25%; right: 5%; }
  .fruit-wrapper.strawberry { top: 15%; right: 20%;}
  .fruit-wrapper.kiwi-left { top: 15%; left: 15%; }
  .fruit-wrapper.leaf-left { top: 25%; left: 1%; }
  .fruit-wrapper.leaf-right { top: 10%; right: 40%; }

  .fruit.size-150,
  .fruit.size-140,
  .fruit.size-130 {
    --fruit-size: 90px;
  }
    .fruit.size-120 {
    --fruit-size: 110px;
  }
    .fruit.size-110 {
    --fruit-size: 95px;
  }

  .desktop-only {
    display: none !important;
  }
}
