/*
Theme Name: Subversive: AgeReversalMD
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: subversive
Text Domain: subversive-agereversalmd
Tags: 
*/

body.home {
    margin-top: 0 !important;
}

.after-hero {
    z-index: 1;
    border-top-right-radius: 1rem;
    border-top-left-radius: 1rem;
    margin-top: -1rem;
    background-color: var(--wp--preset--color--white);
}

header {
    position: relative;
    z-index: 1000;
}

/* Floating Header */

#site-navigation {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
}

/* Glass Header & Animation */

#site-navigation.has-black-background-color {
    background-color: transparent !important;
}

#site-navigation.has-black-background-color:before {
    display: block;
	content: '';
	position: absolute;
	inset: 0;
	backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, .8) !important;
    transition: background-color 0.3s ease;
	z-index: 0;
}

#site-navigation.sticking.has-black-background-color {
    background-color: transparent !important;
}

#site-navigation.sticking.has-black-background-color:before {
    background-color: rgba(255, 255, 255, .08) !important;
}

#site-navigation .glass-navigation {
	position: relative;
	z-index: 1;
}

div[data-scroll-watcher] {
    margin-top: -1rem;
  }

/* Desktop Navigation Sub Menu */

.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container {
	min-width: 16rem;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
	padding: .5rem;
	border-radius .5rem;
}

/* Mobile Navigation */

html.has-modal-open .wp-block-navigation__responsive-container .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
    gap: var(--wp--preset--spacing--160);
}

html.has-modal-open :where(.wp-site-blocks *:focus) {
    outline-style: none;
}

/* Animated Button: Pulse */

.btn-pulse a{
	display: flex;
	align-items: center;
	gap: .75rem;
}

.btn-pulse a:before{
    display: block;
	content: '';
	width: .5rem;
	height: .5rem;
	border-radius: 50%;
	background-color: #7cc06b;
	animation-name: pulse;
    animation-duration: 1s;
    animation-iteration-count: infinite; /* Loop the animation forever */
    animation-direction: alternate; /* Reverse the animation on each cycle */
}

@keyframes pulse {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Sticky Column Custom Adjustment */

.is-style-sticky {
	top: 8rem !important;
}