/*
Theme Name:     Kadence Child
Theme URI:      n/a
Template:       kadence
Author:         RunLocal Marketing
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* -----------------------------------------
   Link Style: Underline Customization
-------------------------------------------- */
.link-style-color-underline .entry-content p a {
	text-underline-offset: 2.8px;
	text-decoration-thickness: 0.1125rem;
}

/* -----------------------------------------
   Header Fix for Non-Fixed State
-------------------------------------------- */
body:not(.header-is-fixed) .kb-header-sticky-wrapper {
	top: initial !important;
}

/* Top Header Row Background Override */
.wp-block-kadence-header-row.wp-block-kadence-header-row-top {
	background-color: #38675F !important;
}

/* -----------------------------------------
   Off-Canvas Menu Animation
-------------------------------------------- */
/* Base hidden state */
.kb-off-canvas-open .off-canvas-menu .kb-nav-link {
	opacity: 0;
	transform: translateY(20px);
	animation: fadeUp 0.5s ease forwards;
}

/* Staggered animation delays */
.kb-off-canvas-open .off-canvas-menu .kb-nav-link:nth-child(1) {
	animation-delay: 0.1s;
}
.kb-off-canvas-open .off-canvas-menu .kb-nav-link:nth-child(2) {
	animation-delay: 0.2s;
}
.kb-off-canvas-open .off-canvas-menu .kb-nav-link:nth-child(3) {
	animation-delay: 0.3s;
}
.kb-off-canvas-open .off-canvas-menu .kb-nav-link:nth-child(4) {
	animation-delay: 0.4s;
}
.kb-off-canvas-open .off-canvas-menu .kb-nav-link:nth-child(5) {
	animation-delay: 0.5s;
}
/* Add more nth-child blocks as needed */

/* Keyframe animation */
@keyframes fadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* -----------------------------------------
   Desktop-Specific Off-Canvas Animations
-------------------------------------------- */
@media (min-width: 1200px) {
	/* Navigation menu items */
	.show-off-canvas .kb-navigation.menu li {
		opacity: 0;
		transform: translate3d(0, 30px, 0) scale3d(0.95, 0.95, 1);
		transition: opacity 0.5s ease, transform 0.6s ease;
		transform-style: preserve-3d;
	}

	/* Social icons, buttons, and headings initial state */
	.kt-svg-icons.social-icons.wp-block-kadence-icon,
	.off-buttons.wp-block-kadence-advancedbtn,
	.off-can-text.wp-block-kadence-advancedheading {
		opacity: 0;
		transform: translateY(20px);
		transition: opacity 0.5s ease, transform 0.6s ease;
	}

	/* Animated state */
	.kt-svg-icons.social-icons.wp-block-kadence-icon.animate,
	.off-buttons.wp-block-kadence-advancedbtn.animate,
	.off-can-text.wp-block-kadence-advancedheading.animate {
		opacity: 1;
		transform: translateY(0);
	}

	.show-off-canvas .kb-navigation.menu li.animate {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
	}
}

/* -----------------------------------------
   Highlight Animation Effect
-------------------------------------------- */
.highlight-target.animated-highlight::after {
	transform: scaleX(1);
}

/* -----------------------------------------
   Off-Canvas Trigger Focus State
-------------------------------------------- */
.wp-block-kadence-off-canvas-trigger:focus {
	color: #fff !important;
}