/**
 * WordPress-specific styles and theme overrides
 *
 */

/* ==========================================================================
   CSS Custom Properties Override
   Uncomment and modify to customize your brand colors
   ========================================================================== */

/*
:root {
    --theme-color: #F41E1E;
    --theme-color2: #3843C1;
    --title-color: #1D2229;
    --body-color: #6A6A6A;
}
*/

/* ==========================================================================
   WordPress Core Alignment Classes
   ========================================================================== */

.alignleft {
	float: left;
	margin-right: 1.5rem;
	margin-bottom: 1rem;
}

.alignright {
	float: right;
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	margin-left: -10%;
	margin-right: -10%;
	max-width: 120%;
	width: 120%;
}

.alignfull {
	margin-left: calc(-50vw + 50%);
	margin-right: calc(-50vw + 50%);
	max-width: 100vw;
	width: 100vw;
}

/* ==========================================================================
   WordPress Captions
   ========================================================================== */

.wp-caption {
	max-width: 100%;
}

.wp-caption img {
	display: block;
	width: 100%;
}

.wp-caption-text {
	font-size: 0.875rem;
	color: var(--body-color);
	padding: 0.5rem 0;
	text-align: center;
}

/* ==========================================================================
   WordPress Gallery
   ========================================================================== */

.gallery {
	display: grid;
	grid-gap: 1rem;
	margin-bottom: 1.5rem;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
	margin: 0;
}

.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
}

/* ==========================================================================
   Screen Reader Text
   ========================================================================== */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   WordPress Navigation Menu Compatibility
   ========================================================================== */

/* Main menu styling for WordPress output */
.main-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-menu > ul {
	display: flex;
	gap: 0;
}

.main-menu > ul > li {
	position: relative;
}

.main-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 1000;
}

.main-menu li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-menu .sub-menu li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-menu .sub-menu li:last-child {
	border-bottom: none;
}

.main-menu .sub-menu a {
	display: block;
	padding: 10px 20px;
	color: var(--title-color);
}

.main-menu .sub-menu a:hover {
	color: var(--theme-color);
}

/* Dropdown indicator for items with children */
.main-menu .menu-item-has-children > a::after {
	content: "\f107";
	font-family: "Font Awesome 6 Pro";
	font-weight: 400;
	margin-left: 5px;
}

/* Mobile menu WordPress compatibility */
.th-mobile-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.th-mobile-menu .sub-menu {
	display: none;
	padding-left: 15px;
}

.th-mobile-menu .menu-item-has-children.active > .sub-menu {
	display: block;
}

/* ==========================================================================
   WordPress Pagination
   ========================================================================== */

.th-pagination .nav-links {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

.th-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: #f5f5f5;
	border-radius: 5px;
	color: var(--title-color);
	font-weight: 600;
	transition: all 0.3s ease;
}

.th-pagination .page-numbers:hover,
.th-pagination .page-numbers.current {
	background: var(--theme-color);
	color: #fff;
}

/* ==========================================================================
   WordPress Comments
   ========================================================================== */

.comment-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	margin-bottom: 1rem;
}

.comment-form textarea {
	min-height: 150px;
}

.comment-form .form-submit {
	margin-top: 1rem;
}

.comment-form .submit {
	background: var(--theme-color);
	color: #fff;
	border: none;
	padding: 15px 30px;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.comment-form .submit:hover {
	background: var(--theme-color2);
}

/* Comment list */
.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.comment-list .comment {
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e0e0e0;
}

.comment-list .children {
	list-style: none;
	padding-left: 2rem;
	margin-top: 2rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0.5rem;
}

.comment-author img {
	border-radius: 50%;
}

.comment-author .fn {
	font-weight: 600;
	color: var(--title-color);
}

.comment-metadata {
	font-size: 0.875rem;
	color: var(--body-color);
	margin-bottom: 1rem;
}

.reply a {
	font-size: 0.875rem;
	color: var(--theme-color);
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */

.th-post-navigation {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e0e0e0;
}

.th-post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}

.th-post-navigation .nav-previous,
.th-post-navigation .nav-next {
	max-width: 48%;
}

.th-post-navigation .nav-subtitle {
	display: block;
	font-size: 0.875rem;
	color: var(--body-color);
	margin-bottom: 0.25rem;
}

.th-post-navigation .nav-title {
	display: block;
	font-weight: 600;
	color: var(--title-color);
}

.th-post-navigation a:hover .nav-title {
	color: var(--theme-color);
}

/* ==========================================================================
   Error Page
   ========================================================================== */

.th-error-wrapper {
	min-height: 60vh;
	display: flex;
	align-items: center;
}

.error-number {
	font-size: 150px;
	font-weight: 900;
	color: var(--theme-color);
	line-height: 1;
	margin-bottom: 1rem;
}

.error-title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}

.error-text {
	max-width: 500px;
	margin: 0 auto 2rem;
	color: var(--body-color);
}

/* ==========================================================================
   Site Title (when no logo)
   ========================================================================== */

.site-title {
	font-family: var(--title-font);
	font-weight: 700;
	color: var(--title-color);
	text-decoration: none;
}

.footer-wrapper .site-title {
	color: #fff;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */

.sidebar-area .widget {
	margin-bottom: 2rem;
	padding: 30px;
	background: #f8f8f8;
	border-radius: 10px;
}

.sidebar-area .widget-title {
	position: relative;
	padding-bottom: 15px;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--theme-color);
}

.sidebar-area .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-area .widget ul li {
	padding: 8px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-area .widget ul li:last-child {
	border-bottom: none;
}

.sidebar-area .widget a {
	color: var(--body-color);
}

.sidebar-area .widget a:hover {
	color: var(--theme-color);
}

/* ==========================================================================
   Tagcloud
   ========================================================================== */

.tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tagcloud a {
	display: inline-block;
	padding: 5px 15px;
	background: #f5f5f5;
	border-radius: 5px;
	font-size: 14px;
	color: var(--body-color);
	transition: all 0.3s ease;
}

.tagcloud a:hover {
	background: var(--theme-color);
	color: #fff;
}

/* ==========================================================================
   Header Overrrides 
   ========================================================================== */

.header-default .header-button {
	border-left: none;
}

/* ==========================================================================
   Custom Logo
   ========================================================================== */

.custom-logo {
	margin-bottom: 0;
	padding: 8px;
}

.custom-logo img {
	position: relative;
	z-index: 11;
	height: 90px;
	width: auto;
}

@media only screen and (min-width: 1600px) {
	.custom-logo img {
		height: 115px;
		width: auto;
	}
}

.footer-logo .custom-logo img {
	height: 80px;
}

/* ==========================================================================
   Header Logo Shrink on Scroll
   ========================================================================== */

.header-default .header-logo {
	position: absolute;
	top: 0;
	padding-top: 0;
	padding-bottom: 0;

	border-right: none;
}

.header-logo .custom-logo img {
	transition: transform 0.2s ease;
}

.sticky-wrapper.shrink .header-logo .custom-logo img {
	transform: scale(0.625);
	transform-origin: center top;
}

/* ==========================================================================
   Video Modal 
   ========================================================================== */

#product-video-dialog {
	padding: 0;
	border: none;
	border-radius: 8px;
	max-width: 900px;
	width: 90vw;
	background: #000;
	overflow: visible;
}

#product-video-dialog::backdrop {
	background: rgba(0, 0, 0, 0.8);
}

#product-video-dialog .dialog-content {
	position: relative;
	padding: 20px;
}

#product-video-dialog .dialog-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 40px;
	height: 40px;
}

#product-video-dialog .dialog-close:hover {
	opacity: 0.7;
}

#product-video-dialog .video-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

#product-video-dialog .video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ==========================================================================
   Gravity forms 
   ========================================================================== */

.ginput_container.ginput_container_consent {
	margin-top: 20px;
}

.gform_button[type="submit"] {
	width: auto;
	padding: 0 40px;
	color: #fff;
	text-transform: uppercase;
	font-weight: bold;
	background-color: var(--theme-color);
	border: 2px solid var(--theme-color);

	transition: all 0.3s ease;

	&:hover {
		background: #fff;
		color: var(--title-color);
		border: 2px solid var(--title-color);
	}
}

/* ==========================================================================
   Mega Menu - Text Only Multi-Column Layout.
   
   Add "mega-menu-item" class to a parent menu item in WP Admin.
   ========================================================================== */

/* Transform the sub-menu into a full-width mega-menu panel */
.main-menu .mega-menu-item > .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	width: 1200px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	padding: 25px 30px;
	gap: 0;
	background: #fff;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}

/* Each direct child li is a column (category group with heading + children) */
.main-menu .mega-menu-item > .sub-menu > li {
	flex: 0 0 25%;
	max-width: 25%;
	padding: 0 20px 15px;
	border: none;
}

/* Category heading links (e.g. "Safe and Sane", "Aerials") */
.main-menu .mega-menu-item > .sub-menu > li > a {
	display: block;
	padding: 0 0 8px;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--title-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid var(--theme-color);
	transition: all 0.3s ease;
}

.main-menu .mega-menu-item > .sub-menu > li > a:hover {
	color: var(--theme-color);
	background: transparent;
}

/* Remove dropdown arrow from category headings inside mega-menu */
.main-menu .mega-menu-item > .sub-menu > li.menu-item-has-children > a::after {
	display: none;
}

/* --- Nested sub-menus: display inline, NOT as hover dropdowns --- */
.main-menu .mega-menu-item .sub-menu .sub-menu {
	position: static;
	display: block;
	opacity: 1;
	visibility: visible;
	transform: none;
	box-shadow: none;
	background: transparent;
	min-width: unset;
	width: auto;
	padding: 0;
	margin: 0;
	border: none;
	z-index: auto;
}

/* Child links within each category column */
.main-menu .mega-menu-item .sub-menu .sub-menu li {
	border-bottom: none;
	padding: 0;
}

.main-menu .mega-menu-item .sub-menu .sub-menu a {
	display: block;
	padding: 4px 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--body-color);
	background: transparent;
	transition: all 0.3s ease;
}

.main-menu .mega-menu-item .sub-menu .sub-menu a:hover {
	color: var(--theme-color);
	padding-left: 5px;
	background: transparent;
}

/* Responsive: 3 columns */
@media (max-width: 1399px) {
	.main-menu .mega-menu-item > .sub-menu {
		width: 900px;
	}
	.main-menu .mega-menu-item > .sub-menu > li {
		flex: 0 0 33.333%;
		max-width: 33.333%;
	}
}

/* Responsive: 2 columns */
@media (max-width: 1199px) {
	.main-menu .mega-menu-item > .sub-menu {
		width: 700px;
	}
	.main-menu .mega-menu-item > .sub-menu > li {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

/* Mobile: revert mega-menu to single-column vertical list */
.th-mobile-menu .mega-menu-item > .sub-menu {
	flex-direction: column;
	flex-wrap: nowrap;
	padding: 0;
	width: auto;
}

.th-mobile-menu .mega-menu-item > .sub-menu > li {
	flex: none;
	max-width: 100%;
	padding: 0;
	padding-left: 20px;
}

/* ==========================================================================
   Countdown Bar
   ========================================================================== */

.countdown-bar {
	background-color: #c21911;

	color: #fff;
	padding: 10px 0 20px 0;
	font-family: var(--title-font);
}

.countdown-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.countdown-bar-label {
	font-size: 30px;
	font-weight: bold;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.countdown-bar .counter-list {
	display: flex;
	align-items: center;
	gap: 8px;
}

.countdown-bar .countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	min-width: 40px;
}

.countdown-bar .countdown-unit .day,
.countdown-bar .countdown-unit .hour,
.countdown-bar .countdown-unit .minute,
.countdown-bar .countdown-unit .seconds {
	font-size: 40px;
	font-weight: 700;
	text-align: center;
	color: #f6db21;
}

.countdown-bar .countdown-unit-label {
	font-size: 18px;
	font-weight: bold;
	text-transform: uppercase;
	opacity: 0.8;
	margin-top: 3px;
}

.countdown-bar .countdown-sep {
	font-size: 20px;
	font-weight: 700;
	padding-bottom: 12px;
	opacity: 0.7;
}

@media (max-width: 768px) {
	.countdown-bar {
		padding: 10px 0 15px 0;
	}

	.countdown-bar-inner {
		flex-direction: column;
	}

	.countdown-bar-label {
		font-size: 20px;
	}

	.countdown-bar .countdown-unit .day,
	.countdown-bar .countdown-unit .hour,
	.countdown-bar .countdown-unit .minute,
	.countdown-bar .countdown-unit .seconds {
		font-size: 20px;
	}

	.countdown-bar .countdown-sep {
		font-size: 15px;
	}

	.countdown-bar .countdown-unit-label {
		font-size: 10px;
	}
}

/* ==========================================================================
   Misc header stuff 
   ========================================================================== */

.btn-manager {
	padding: 10px 10px 12px 10px !important;
	font-size: 11px !important;
	color: #fff !important;
}

.btn-manager:hover {
	color: var(--title-color) !important;
}

/* ==========================================================================
   Page Content 
   ========================================================================== */

#apply {
	scroll-margin-top: 220px;
}

.content-columns .row > div + div {
	padding-top: 20px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 5px 6px 5px rgba(0, 0, 0, 0.05);
}

/* Youtube embed */
.embed-container {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
