/**
 * Hero Slider Styles
 *
 * Styles for the hero slider component with Swiper.js integration
 *
 * @package Huh_OOO_Hero_Slider
 * @since   1.0.0
 */

/* ===================================
   Hero Slider Container
   =================================== */

.hero-slider-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.hero-swiper {
	width: 100%;
	height: auto;
	min-height: 540px;
}

/* ===================================
   Individual Slide
   =================================== */

.hero-slide {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 540px;
	overflow: hidden;
    height:auto;
}

/* Background and Content Container */
.hero-slide__background-and-content {
	width: 100%;
	height: 100%;
	align-self: stretch;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Background Image Container */
.hero-slide__background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
}

.hero-slide__bg-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: bottom;
	display: block;
}

/* Content Wrapper */
.hero-slide__content-wrapper {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
	height: 100%;
	align-self: stretch;
}

.hero-slide__content {
	text-align: center;
	color: #fff;
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}

.hero-slide__main-content {
	display: flex;
	flex-direction: column;
	gap: 3em;
}

.hero-slide__header{
        gap: .5em;
    display: flex;
    flex-direction: column;
}

/* ===================================
   Typography
   =================================== */

.hero-slide__title {
	font-family: 'Jost', sans-serif;
	font-size: clamp(2.25rem, 8vw, 4rem)!important;
	font-weight: 700 !important;
	line-height: 1.2!important;
	margin: 0 0 .5rem 0;
	color: #fff;
    letter-spacing: .1rem;
}

.hero-slide__subtitle {
	font-family: 'Jost', sans-serif;
	font-size: clamp(2.5rem, 4.5vw, 3rem);
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	color: #fff;
    letter-spacing: .1rem;
}

.hero-slide__blurb {
	font-family: "Jost", sans-serif;
    font-size: clamp(1.8rem, 2vw, 1.25rem);
    line-height: 1.5;
    margin: 0;
    color: #fff;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: .5em 1em;
    display: inline-block;
    border-radius: 50px;
}

/* ===================================
   Buttons
   =================================== */

.hero-slide__buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 1.5em;
}

.hero-slide__button {
	display: inline-block;
	padding: 0.875rem 4rem;
	font-family: 'Jost', sans-serif;
	font-size: clamp(1rem, 4vw, 2.25rem);
	font-weight: 600;
	text-decoration: none;
	border-radius: 50px;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
	text-align: center;
    letter-spacing: .1rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-slide__button:hover {
    transition: all 0.3s ease;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-slide__button:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Button focus state for accessibility */
.hero-slide__button:focus {
	outline: 3px solid rgba(255, 255, 255, 0.5);
	outline-offset: 2px;
}

.hero-slide__button:focus:not(:focus-visible) {
	outline: none;
}

.hero-slide__button:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.5);
	outline-offset: 2px;
}

/* ===================================
   Swiper Navigation
   =================================== */

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
	width: 74px;
	height: 74px;
	background: none;
	border-radius: 50%;
	transition: all 0.3s ease;
    color:rgba(255, 255, 255, 0.4);
}
.hero-swiper .swiper-button-prev:after,
.hero-swiper .swiper-button-next:after{transition: all 0.3s ease;font-size:32px!important; font-weight:bolder;}
.hero-swiper .swiper-button-prev:after{content:'❬';}
.hero-swiper .swiper-button-next:after{content:'❭';}

.hero-swiper .swiper-button-prev:focus,
.hero-swiper .swiper-button-next:focus,
.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover{
    background:none!important;;border:none!important;outline:none!important;
   
}
.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover{
 color:rgba(255, 255, 255, 1);
}
/* Constrain navigation arrows to match container breakpoints */
@media (min-width: 768px) {
	.hero-swiper .swiper-button-prev {
		left: calc((100vw - 750px) / 2 + 10px);
	}

	.hero-swiper .swiper-button-next {
		right: calc((100vw - 750px) / 2 + 10px);
	}
}

@media (min-width: 992px) {
	.hero-swiper .swiper-button-prev {
		left: calc((100vw - 970px) / 2 + 10px);
	}

	.hero-swiper .swiper-button-next {
		right: calc((100vw - 970px) / 2 + 10px);
	}
}

@media (min-width: 1200px) {
	.hero-swiper .swiper-button-prev {
		left: calc((100vw - 1170px) / 2 + 10px);
	}

	.hero-swiper .swiper-button-next {
		right: calc((100vw - 1170px) / 2 + 10px);
	}
}

.hero-swiper .swiper-button-prev:hover,
.hero-swiper .swiper-button-next:hover {
	background: rgba(0, 0, 0, 0.5);
	transform: scale(1.1);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
	font-size: 20px;
}

/* Navigation focus states for accessibility */
.hero-swiper .swiper-button-prev:focus,
.hero-swiper .swiper-button-next:focus {
	outline: 3px solid rgba(255, 255, 255, 0.7);
	outline-offset: 2px;
}

/* ===================================
   Swiper Pagination
   =================================== */

.hero-swiper .swiper-pagination {
	bottom: 20px;
}

.hero-swiper .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background: #fff;
	opacity: 0.5;
	transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
	opacity: 1;
	background: #fff;
	width: 32px;
	border-radius: 6px;
}

/* Pagination focus for accessibility */
.hero-swiper .swiper-pagination-bullet:focus {
	outline: 2px solid rgba(255, 255, 255, 0.8);
	outline-offset: 2px;
}

/* ===================================
   Responsive Design
   =================================== */

/* Account for WordPress admin bar on desktop (32px) */
@media (min-width: 768px) {

}

@media (max-width: 767px) {
	/* Account for 50px mobile menu margin */
	.hero-swiper {
		height: calc(100vh - 50px);
		min-height: calc(100vh - 50px);
	}

	.hero-slide {
		height: calc(100vh - 50px);
		min-height: calc(100vh - 50px);
	}

	/* Account for WordPress admin bar on mobile (46px) */
	.admin-bar .hero-swiper {
		height: calc(100vh - 50px - 46px);
		min-height: calc(100vh - 50px - 46px);
	}

	.admin-bar .hero-slide {
		height: calc(100vh - 50px - 46px);
		min-height: calc(100vh - 50px - 46px);
	}

	.hero-slide__content-wrapper {
		padding: 18vh 20px 8vh;
	}
    
	.hero-slide__buttons {
		flex-direction: column;
		gap: 0.75rem;
	}

	.hero-slide__button {
		
		max-width: 300px;
	}

	.hero-swiper .swiper-button-prev,
	.hero-swiper .swiper-button-next {
		width: 36px;
		height: 36px;
	}

	.hero-swiper .swiper-button-prev::after,
	.hero-swiper .swiper-button-next::after {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	/* Also account for 50px mobile menu margin on small screens */
	.hero-swiper {
		height: calc(100vh - 50px);
		min-height: calc(100vh - 50px);
	}

	.hero-slide {
		height: calc(100vh - 50px);
		min-height: calc(100vh - 50px);
	}

	/* Account for WordPress admin bar on small mobile (46px) */
	.admin-bar .hero-swiper {
		height: calc(100vh - 50px - 46px);
		min-height: calc(100vh - 50px - 46px);
	}

	.admin-bar .hero-slide {
		height: calc(100vh - 50px - 46px);
		min-height: calc(100vh - 50px - 46px);
	}

	.hero-slide__content-wrapper {
		padding: 18vh 15px 8vh;
	}

	.hero-swiper .swiper-button-prev,
	.hero-swiper .swiper-button-next {
		display: none; /* Hide arrows on very small screens */
	}
}

/* ===================================
   Accessibility & Motion Preferences
   =================================== */

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.hero-slide__button,
	.hero-swiper .swiper-button-prev,
	.hero-swiper .swiper-button-next,
	.hero-swiper .swiper-pagination-bullet {
		transition: none;
	}

	.hero-slide__button:hover {
		transform: none;
	}

	.hero-swiper .swiper-button-prev:hover,
	.hero-swiper .swiper-button-next:hover {
		transform: none;
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.hero-slide__button {
		border: 2px solid currentColor;
	}

	.hero-swiper .swiper-button-prev,
	.hero-swiper .swiper-button-next {
		border: 2px solid #fff;
	}
}

/* Print styles */
@media print {
	.hero-swiper .swiper-button-prev,
	.hero-swiper .swiper-button-next,
	.hero-swiper .swiper-pagination {
		display: none;
	}

	.hero-slide__background {
		position: static;
	}

	.hero-slide__bg-image {
		max-height: 540px;
		object-fit: contain;
	}
}
