/*!
Theme Name: Hello Elementor Child
Copyright: © 2023 Killgerm Chemicals limited. All rights reserved.
Theme URI: https://crocoblock.com/
Author: Crocoblock
Author URI: https://crocoblock.com/
Description: Child theme for Hello Elementor with all CrocoBlock features compatibility.
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
Requires PHP: 7.0
Tested up to: 5.8
*/

/* Popup Styles */
.popmake-32571 {
    display: block; /* Default display */
    position: fixed; /* Fix it to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fffae6; /* Light yellow background */
    color: #333; /* Text color */
    z-index: 9999; /* Make sure it appears above other content */
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for the popup */
    text-align: center;
    font-size: 16px;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #cf2e2e; /* Match your brand's secondary color */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
}

/* Popup Styles Kg header  */
:root {
  --kg-bg: #0d2340;
  --kg-accent: #cf2e2e;
  --kg-radius: 8px;
  --kg-white: #fff;
  --kg-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.kg-header {
  background: var(--kg-bg);
  color: var(--kg-white);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--kg-shadow);
  transition: box-shadow 0.25s;
}
.kg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
}
.kg-logo {
  font-size: 2rem;
  color: var(--kg-white);
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}
.kg-logo:hover { opacity: 0.8; }

.kg-menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  height: 42px;
  width: 42px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
}
.kg-menu-toggle span {
  display: block;
  height: 4px;
  width: 26px;
  background: var(--kg-white);
  border-radius: 2px;
  transition: 0.3s;
}

.kg-nav {
  position: relative;
}

.kg-menu {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: none;
}
.kg-menu > li {
  position: relative;
  transition: background 0.18s;
}
.kg-menu > li > a {
  color: var(--kg-white);
  text-decoration: none;
  display: block;
  padding: 1rem 1.3rem;
  font-weight: 500;
  transition: color 0.18s, background 0.2s;
  border-radius: var(--kg-radius);
  position: relative;
  z-index: 1;
}
.kg-menu > li > a:hover,
.kg-menu > li.current-menu-item > a {
  color: var(--kg-accent);
  background: rgba(255,255,255,0.09);
}
.kg-menu .sub-menu {
  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--kg-white);
  min-width: 220px;
  box-shadow: var(--kg-shadow);
  border-radius: 0 0 var(--kg-radius) var(--kg-radius);
  padding: 0.4rem 0;
  z-index: 100;
  transition: opacity 0.25s, transform 0.25s;
}
.kg-menu > li:focus-within > .sub-menu,
.kg-menu > li:hover > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.kg-menu .sub-menu li a {
  color: var(--kg-bg);
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 0;
  background: none;
  transition: background 0.15s, color 0.15s;
}
.kg-menu .sub-menu li a:hover,
.kg-menu .sub-menu li.current-menu-item > a {
  background: #f3f7fb;
  color: var(--kg-accent);
}

/* Hamburger + Mobile nav */
@media (max-width: 992px) {
  .kg-menu-toggle { display: flex; }
  .kg-header-inner { flex-wrap: wrap; }
  .kg-nav {
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background: var(--kg-bg);
    border-radius: var(--kg-radius);
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.28s, transform 0.28s;
  }
  .kg-nav.open {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  .kg-menu {
    flex-direction: column;
    width: 100%;
  }
  .kg-menu > li > a {
    color: var(--kg-white);
    padding: 1.2rem 2rem;
    border-bottom: 1px solid #253e63;
    border-radius: 0;
  }
  .kg-menu .sub-menu {
    position: static;
    opacity: 1 !important;
    pointer-events: auto;
    transform: none !important;
    box-shadow: none;
    border-radius: 0;
    background: #f8fafd;
    margin-top: 0;
    padding-left: 0;
  }
  .kg-menu .sub-menu li a {
    padding-left: 2.3rem;
    background: none;
  }
}
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
