/*
Theme Name: jk-default-theme
Author: Jürgen Koenen
Description: A flexible starter theme with customizable header layouts.
Version: 1.0
*/

:root {
  --body-font: sans-serif;
  --heading-font: sans-serif;
}
/* Fonts */
@font-face {
  font-family: 'Comico';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Comico/Comico-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Comico/Comico-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Comico/Comico-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'DancingScript';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/DancingScript/DancingScript-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/DancingScript/DancingScript-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/DancingScript/DancingScript-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Kalam';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Kalam/Kalam-Bold.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Kalam/Kalam-Bold.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Kalam/Kalam-Bold.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'PublicSans';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/PublicSans/PublicSans-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/PublicSans/PublicSans-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/PublicSans/PublicSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Satoshi/Satoshi-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Satoshi/Satoshi-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Satoshi/Satoshi-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Synonym';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Synonym/Synonym-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Synonym/Synonym-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Synonym/Synonym-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Supreme';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Supreme/Supreme-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Supreme/Supreme-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Supreme/Supreme-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Ranade';
  src: url('/wp-content/themes/jk-default-theme/assets/Fonts/Ranade/Ranade-Regular.woff2') format('woff2'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Ranade/Ranade-Regular.woff') format('woff'),
       url('/wp-content/themes/jk-default-theme/assets/Fonts/Ranade/Ranade-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

/* ------------------------------------- */
body,p {
  font-family: var(--body-font);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
}

.container a {color:#333;
   text-decoration: none;
   font-weight:bold;
  }

.container a:hover {
  border-bottom:solid 2px #333;
  transition: opacity 0.3sec;
}

html, body {
  height: 100%;
  margin: 0;
}

.site-wrapper {
 /* display: flex;
  flex-direction: column;*/
  min-height: 100vh;
}

.site-content {
  flex: 1;
}

/* Top Bar */
.jk-topbar {
  background-color: var(--topbar-bg);  
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
}

.jk-topbar-items {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  justify-content: flex-end; /* Aligns items to the right */
}

.jk-topbar-items li {
  position: relative;
  padding-right: 15px;
  margin-right: 15px;
}

.jk-topbar-items li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 1px;
  background-color: #eee; /* Adjust color to match your theme */
}


.jk-topbar-items li a {
  display: flex;
  align-items: center; /* Vertically centers icon and text */
  gap: 6px;             /* Space between icon and text */
  color: var(--topbar-link-color);
  text-decoration: none;
}


.jk-topbar-items i {
  margin-right: 5px;
}

.jk-topbar-items a:hover {
  opacity: 0.8;
}



/* Base layout */
body {
  margin: 0;
  font-family: sans-serif;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.site-branding .site-description {
  font-size:1.5rem;
}


.site-title {
  margin: 0;
  font-size: 1.5rem;
}

.header-wrapper {
  display: flex;
  align-items: center;
  padding: 20px 20px 10px;
  border-bottom: solid 5px #cccccc;
  background: #eee;
}

.layout-logo-left {
  gap: 30px;
}

.layout-logo-right {
  flex-direction: row-reverse;
  gap: 30px;
}

.layout-logo-center {
  flex-direction: column;
  text-align: center;
}

.layout-logo-center .logo img {
  padding-bottom: 15px;;
}

.logo img {
  max-height: 100px;
  height: auto;
  width: auto;
}

.menu-search {
  margin-left: auto;
}



/* menu */
/* Reset list styles */
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.menu li {
  position: relative;
}

.menu a {
  background: var(--outer-bg);
  border-radius:15px;
  text-decoration: none;
  color: var(--menu-link-color);
  padding: 5px 15px;
  display: block;
  transition: background 0.3s ease;
}

menu a:hover {
  opacity: 0.8;
}


/* Submenu styling */
.menu ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 180px;
  gap: 3px;
}

.menu ul ul li {
  width: 100%;
  list-style: none;
}

.menu li:hover > ul {
  display: flex;
}

.menu ul ul {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu li:hover > ul {
  opacity: 1;
  pointer-events: auto;
}



.sub-menu {
  display: none;
  transition: all 0.3s ease;
} 

.menu li:hover .sub-menu{
  padding:3px 0 0 2rem;
}

#mobile-menu ul.sub-menu{
  background: rgba(0,0,0,0,0.9)!important;
  margin: 1rem 0 0 0;
}
.sub-menu a{
  color:#fff;
}

.submenu-open + .sub-menu {
  display: block;
  padding:3px 0 0 2rem;
}

.sub-menu li {
    border-bottom: 0 solid #ddd!important;
    list-style: none;
}





@media (max-width: 768px) {
  .sub-menu {
    display: none;
  }

  .submenu-open + .sub-menu {
    display: block;
  }
}



.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  position:absolute;
  right:20px;
}

/* Mobile menu on desktop*/

.mobile-menu-jk {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background-color: var(--outer-bg);
  color: #333;
  /*transition: right 0.3s ease;*/
  overflow-y: auto;
  z-index:3000;
  box-shadow: -3px 5px #eee;
  opacity:100%;
    -webkit-animation: fadeInFromNone 0.7 ease-out;
    -moz-animation: fadeInFromNone 0.7s ease-out;
    -o-animation: fadeInFromNone 0.7s ease-out;
    animation: fadeInFromNone 0.7s ease-out;
}

@-webkit-keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
        right:-100%;
    }

    1% {
        display: block;
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
        right:0;
    }
}

.mobile-menu-jk-wrapper{
  padding:1rem 2rem 0 0;
  margin-top: 10%;
}
.menu-close {
  border-radius: 100%;
  border: solid 1px #555;
  padding:7px;
  color:#555;
  position:absolute;
  right:20px;
  top:60px;
  z-index:4000;
}

.pos{
  position:relative;
  width:100%;
}

.mobile-menu-jk.open {
  right: 0;
}

.mobile-menu-jk {
  display: none;
}

.mobile-menu-jk.open {
  display: block;
}


#menu-main {
  padding:5px;
}


.mobile-menu-items {
  list-style: none;
}

.mobile-menu-items li {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  text-align: left;
  background: rgba(0,0,0,0.06);
}

.mobile-menu-items li:hover {
  background: rgba(0,0,0,0.1);
}

.mobile-menu-items li {
  position: relative;
 /* padding-left: 1.5em;*/
}

.mobile-menu-items li::before {
  content: "\f0a9"; /* Font Awesome icon code (e.g. check-circle) */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* Required for solid icons */
  position: absolute;
  font-size: 1.5em;
  left: -10px;
  top: 10px;
  color: var(--menu-link-color, #fff); /* Customize icon color */
}


.mobile-menu-items a {
  text-decoration: none;
  color: var(--menu-link-color);
  margin-left: 1.5em;
}

#mobile-menu .sub-menu li::before {
  content: "\f0a9"; 
  font-size: 1.1rem; /* Adjust size here */
   color: var(--menu-link-color, #fff); /* Optional: arrow color */
  position: absolute;
  left: -8px;
  top: 15px;
}

#mobile-menu .sub-menu li {
  border-top: 1px solid #fff;
}

#mobile-menu .sub-menu li li::before {
  content: "\f0a9"; 
  font-size: 0.8rem; /* Adjust size here */
  color: var(--menu-link-color, #fff); /* Optional: arrow color */
  position: absolute;
  left: -5px;
  top: 20px;
}


/* Responsive toggle */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
  body nav.menu {
    display: block;
  }
  body .mobile-menu {
    display: none !important;
  }

  /* If mobile menu is forced on desktop */
body.show-mobile-menu-desktop nav.menu {
  display: none;
}

body.show-mobile-menu-desktop .mobile-menu {
  display: block;
}
}

@media (max-width: 768px) {
  .menu, .jk-topbar {
    display: none !important;
  }
  .mobile-menu-jk {
  top: 0;
  }
  .logo img {max-height:60px;}

  .site-branding .site-description {
  font-size:0.9rem;
  }
.container {
  padding: 0 20px;
}

}

@media (min-width:451px) {
  .phone-only {
    display: none;
  }
  .no-phone {
    display: block;
  }
}

@media (max-width:450px) {
  .phone-only {
    display: block;
  }
  .no-phone {
    display: none;
  }
}

/* Optional: show mobile menu on desktop if enabled */
body.show-mobile-menu-desktop .menu-toggle {
  display: block;
}

body.show-mobile-menu-desktop .mobile-menu {
  display: none;
}

body.show-mobile-menu-desktop .mobile-menu.active {
  display: flex;
}


/* Search form inline */
.menu-search .search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field {
  margin-top:2px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-submit {
  margin-top:2px;
  padding: 6px 10px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.layout-logo-right li.menu-search {
  position: absolute!important;
  left:20px;}

.layout-logo-left li.menu-search {
  position: absolute!important;
  right:20px;}

  .ajax-search {
  position: relative;
  width: 100%;
  max-width: 300px;
}

#ajax-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#ajax-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding:5px;
  background: #ddd;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 5px;
  max-height: 300px;
  min-height:100px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  font-size: 80%;
  color: #000;
}

#ajax-search-results ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#ajax-search-results li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

#ajax-search-results li a {
  text-decoration: none;
  color: #333;
}

#ajax-search-results li:hover {
  background: #f0f0f0;
}


  @media (max-width: 768px) {
  .menu-search {
    display: none;
  }
}

/* content */
.wp-block-button__link { 
    background-color: var(--topbar-bg, #333);
    color: var(--topbar-link-color,#fff)!important;
}



  /* footer */
  footer.site-footer {
  background-color: var(--footer-bg); /* or #222 for slightly lighter */
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}



footer.site-footer a {
  color: #fff;
  text-decoration: underline;
}

footer.site-footer a:hover {
  color: #ccc;
}

.footer-legal-links {
  margin-bottom: 2rem;
  text-align: center;
}

.footer-links-headline {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links-list a {
  text-decoration: none;
  color: #999;
  font-size: 0.9rem;
}

.footer-links-list a:hover {
  color: #333;
}

.footer-legal-links h4.footer-links-headline {
  color:#fff;
}

#scrollToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: none;
  background: lightblue;
  color: #fff;
  border: none;
  border-radius: 100%;
  padding: 0.75rem 1.2rem;
  font-size: 1.5rem;
  font-weight:900;
  cursor: pointer;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

#scrollToTop:hover {
  background: #555;
}



/* video section */
.intro-video-section {
  width: 100%;
  background: #000;
  padding: 0;
}

.video-wrapper {
  max-width: 1920px;
  margin: 0 auto;
  max-height: 550px;
  height: 550px; /* optional: force height */
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Alignment classes */
.video-align-top video{
  object-position: top center;
}

.video-align-center video{
  object-position: center center;
}

.video-align-bottom video{
  object-position: bottom center;
}


.youtube-embed {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


@keyframes h2SlideFadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

body.h2-animated h2.animate-in {
  opacity: 0;
  animation: h2SlideFadeLeft 1s ease-out forwards;
}

.outer-wrapper {
  background-color: var(--outer-bg, #000);
}

.inner-wrapper {
  max-width: 1920px;
  margin: 0 auto;
  background-color: var(--inner-bg, #fff);
}

.site-branding.layout-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-branding.layout-stacked {
  text-align: center;
  display: block;
}

.site-branding .branding-text {
  font-size: 1rem;
  line-height: 1.4;
}

.site-branding .site-description {
  font-weight: 700;
}


/* Sidebar */
.content-area {
  display: flex;
  gap: 2rem;
}

.sidebar {
  width: 30%;
}

.main-content {
  width: 70%;
}
