/*
Theme Name: Kiddin Child
Template:   kiddin
Theme URI: https://1.envato.market/kiddin-wp
Description: Kiddin Child Theme
Author: AwaikenThemes
Author URI: https://awaikenthemes.com/
Version: 1.0.0
Text Domain: kiddin-child
*/

/* Warmley Park: compact responsive sticky navigation. */
/* Samsung/phone portrait: close the narrow space above the hero and
   bring the branding up to a legible, restrained size. Tablet untouched. */
@media (max-width: 767px) and (orientation: portrait) {
  body.home:not(.elementor-editor-active) .ekit-template-content-header {
    margin-top: -24px !important;
  }
  body.home:not(.elementor-editor-active) .elementor-1494 .elementor-element.elementor-element-46ec627 {
    align-items: center !important;
  }
  body.home:not(.elementor-editor-active) .elementor-1494 .elementor-element.elementor-element-2373e41 {
    width: 330px !important;
    max-width: 88vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.home:not(.elementor-editor-active) .elementor-1494 .elementor-element.elementor-element-2373e41 img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
}
/* Phone portrait: Elementor's header container still reserves additional height. */
@media (max-width: 767px) and (orientation: portrait) {
  body.home:not(.elementor-editor-active) .ekit-template-content-header {
    margin-bottom: -130px !important;
  }
  body.home:not(.elementor-editor-active) .elementor-1494 .elementor-element.elementor-element-698c63f {
    padding-top: 6px !important;
    margin-top: 0 !important;
  }
}
/* On small screens the Elementor header reserves empty flow space above the hero.
   Pull the hero underneath that transparent header while keeping its sticky child intact. */
@media (max-width: 1024px) {
  body.home:not(.elementor-editor-active) .ekit-template-content-header {
    margin-bottom: -60px !important;
    position: relative;
    z-index: 20;
  }
  body.home:not(.elementor-editor-active) .elementor-9624 {
    position: relative;
    z-index: 1;
  }
}
@media (max-width: 1024px) {
  /* Keep the header flush with the top edge on tablets and phones. */
  body:not(.elementor-editor-active) .ekit-template-content-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body:not(.elementor-editor-active) .elementor-1494 .elementor-element.elementor-element-60f7148 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  /* The orange sticky wrapper must size to its toggle, not form a large banner. */
  body:not(.elementor-editor-active) .elementor-1494 .elementor-element.elementor-element-698c63f {
    min-height: 0 !important;
    height: auto !important;
    padding: 6px 10px !important;
    margin-top: 0 !important;
    align-content: center !important;
    justify-content: center !important;
  }
  /* Make the bar edge-to-edge only after ElementsKit makes it sticky. */
  body:not(.elementor-editor-active) .elementor-1494 .elementor-element.elementor-element-698c63f:is(.ekit-sticky--active, .ekit-sticky--effects) {
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
  }
  body:not(.elementor-editor-active) .elementor-1494 .elementor-element.elementor-element-8517de4 {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body:not(.elementor-editor-active) .elementor-1494 .elementor-element.elementor-element-8517de4 .elementor-menu-toggle {
    width: 44px;
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto !important;
    padding: 8px !important;
    line-height: 1 !important;
  }
}
/* Phone portrait override comes AFTER tablet rules so it wins the cascade. */
@media (max-width: 767px) and (orientation: portrait) {
  body.home:not(.elementor-editor-active) .ekit-template-content-header {
    margin-bottom: -130px !important;
  }
}
