/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* Base Header, seems redundant but just comment out just in case
.my-header { padding: 14px 0; }
.my-header__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.my-header__menu{
  display:flex;
  gap:16px;
  list-style:none;
  margin:0;
  padding:0;
}
.my-header__cta{
  padding:10px 14px;
  border:1px solid currentColor;
  border-radius:10px;
  text-decoration:none;
}
*/

/* =========================================
   Custom replaced header (.my-header)
   HOME only – Sticky + Transparent over Smart Slider
   ========================================= */

/* Sticky + transparent custom header */
.home .my-header{
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999999 !important;

  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
 
  transition:
	  border-color .25s ease,
	  padding .25s ease,
	  background-color .25s ease,
	  backdrop-filter .25s ease,
	  box-shadow .25s ease;  /* Smooth transition between transparent and solid */
}

/* Menu adapt when in solid state */
/* SOLID state (after scroll OR hover) */
.home .my-header.is-solid,
.home .my-header:hover{
  background-color: rgba(255,255,255,.92) !important; /* solid */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* When header becomes solid, make links dark (optional but usually needed) */
.home .my-header.is-solid a,
.home .my-header:hover a{
  color: #111 !important;
}

/* CTA button styling in solid state (optional) */
.home .my-header.is-solid .my-header__cta,
.home .my-header:hover .my-header__cta{
  border-color: rgba(0,0,0,.25);
}

/* Admin bar offset (when logged in) */
.admin-bar.home .my-header{
  top: 32px;
}

/* Layout of your header content */
.my-header { padding: 14px 0; }
.my-header__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

/* Menu layout */
.my-header__menu{
  display:flex;
  gap:16px;
  list-style:none;
  margin:0;
  padding:0;
}

/* CTA */
.my-header__cta{
  padding:10px 14px;
  border:1px solid currentColor;
  border-radius:10px;
  text-decoration:none;
}

/* Make links readable over the hero */
.home .my-header a{
  color: #fff !important;
}

/* Optional: readable fade behind header without being "solid" */
/*
.home .my-header{
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0)) !important;
}
*/

/* Give Smart Slider room under the fixed header */
.home .n2-ss-slider{
  /*padding-top: 110px;*/
  /*box-sizing: border-box;*/
}

/* ===============================
   Logo switching (transparent ↔ solid)
   =============================== */

/* Logo container: fixed box so width never changes */
.my-header__logo{
  position: relative;
  display: inline-block;
  height: 36px;            /* match logo height */
  width: 160px;            /* set to your logo max width (adjust) */
}

/* Both logos overlap exactly */
.my-header__logo img{
  position: absolute;
  top: 0;
  left: 0;
  height: 36px;
  width: auto;
  max-width: 100%;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
}

/* Default (transparent at top) */
.home .logo--light{ opacity: 1; }
.home .logo--dark{ opacity: 0; }

/* Solid (scroll or hover) */
.home .my-header.is-solid .logo--light,
.home .my-header:hover .logo--light{ opacity: 0; }

.home .my-header.is-solid .logo--dark,
.home .my-header:hover .logo--dark{ opacity: 1; }

/*
Optional: shrink logo a bit on scroll
.home .my-header.is-solid .my-header__logo img{
  transform: scale(.9);
}
 */

/* Mobile sizing */
@media (max-width: 768px){
  .my-header__logo{ height: 28px; width: 130px; }
  .my-header__logo img{ height: 28px; }
}

/* =========================================
   Bottom line for transparent header (HOME)
   Uses pseudo-element so it always shows
   ========================================= */

/* Base header */
.home .my-header{
  position: fixed;
}

/* The line */
.home .my-header::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.45); /* visible on dark hero */
  opacity: 1;
  transition: opacity .25s ease;
  pointer-events: none;
}

/* Hide line when header is solid or hovered */
.home .my-header.is-solid::after,
.home .my-header:hover::after{
  opacity: 0;
}