/**
 * Details Block Styles
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Main Container */
.details {
	width: 100%;
	position: relative;
	overflow: hidden;
}

.details-container {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

/* Header Section (Title and Subtitle) */
.details-header {
	text-align: center;
	background-image: url('../../assets/images/grey-topo.png');
	background-size: cover;
	background-position: center;
	background-repeat: repeat;
	padding: 60px 0 142px;
	margin: 0 0 -117px;
}

.details-title {
	margin: 0 0 0.5rem;
	font-size: 35px;
	line-height: 41px;
	font-family: 'Sunrider';
	font-weight: 100;
	text-transform: uppercase;
	color: #3d2817; /* Dark brown */
	max-width: 600px;
	margin: 0 auto -4px;
}

.details-subtitle {
	margin: 0;
	font-size: 30px;
	line-height: 39px;
	font-family: 'Palmer Lake Print';
	text-transform: uppercase;
	color: #3d2817; /* Dark brown */
	letter-spacing: -0.05rem;
}

/* Smaller Title Section */
.details-smaller-title-wrapper {
	text-align: center;
	padding: 1rem 8px 0px;
	background-color: #C1B488; /* Light beige with transparency */
	border-radius: 0;
	border-bottom: 3px solid #C1B488;
	position: relative;
	z-index: 1;
	max-width: 695px;
	margin: 0 auto -4px;
	border-top: 3px solid #4C4C3B;
	border-right: 3px solid #4C4C3B;
	border-left: 3px solid #4C4C3B;
}

.details-smaller-title {
	margin: 19px 0 0;
	font-size: 26px;
	line-height: 28px;
	font-family: 'Article Century';
	text-transform: uppercase;
	color: #F8F2DF!important; /* Dark brown */
}

/* Highlight styling for *text* or **text** */
.details-smaller-title .highlight {
	color: #4C4C3B; /* Gold color for highlights */
	font-weight: 100;
}

/* Slider Wrapper */
.details-slider-wrapper {
	width: 100%;
	overflow: hidden;
	position: relative;
	margin: 0 auto;
	padding: 3.5rem 0 0;
	background: #C1B488;
	border-top: 3px solid #4C4C3B;
}

.details-swiper {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.details-swiper-wrapper {
	display: flex;
	align-items: stretch;
	width: fit-content;
}

.details-swiper-wrapper {
	padding-bottom: 74px;
}

/* Swiper Scrollbar */
.details-swiper .swiper-scrollbar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 27px;
	background-color: #4C4C3B;
	border-radius: 20px;
	max-width: 586px;
	right: 0;
	margin: auto;
}

.details-swiper .swiper-scrollbar-drag {
	background-color: #C1B488;
	border-radius: 20px;
	cursor: grab;
	height: 13px!important;
	top: 7px;
	left: 8px;
}

.details-swiper .swiper-scrollbar-drag:active {
	cursor: grabbing;
}

/* Slide Cards */
.details-slide {
	width: 278px;
	height: 267px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.details-slide-card {
	width: 100%;
	height: 100%;
	position: relative;
	background-image: url('../../assets/images/eggshell.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border: 2px solid #4C4C3B;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
	background-color: #F8F2DF;
	color: #4C4C3B;
	flex-direction: column-reverse;
}

.details-slide-figure {
	margin: 0;
	padding: 0;
	width: 100%;
	height: auto;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.details-slide-image {
	width: 85%;
	height: auto;
	max-height: 133px;
	object-fit: contain;
	display: block;
}

.details-slide-title {
	margin: 35px 0 0;
	font-size: 15px;
	line-height: 18px;
	font-family: 'Sunrider';
	font-weight: 100;
	text-transform: uppercase;
	text-align: center;
	color: #3d2817; /* Dark brown */
}

/* Button */
.details-button-wrapper {
	text-align: center;
	margin-top: 0;
	background: #C1B488;
	padding: 45px 0 56px;
}

.details-button {
	display: inline-block;
	padding: 3px 10px 1px;
	font-size: 15px;
	line-height: 1.5;
	font-family: 'Sunrider';
	font-weight: 100;
	text-transform: uppercase;
	text-decoration: none;
	color: #4C4C3B!important; /* Dark brown */
	background-color: #F8F2DF; /* Light beige */
	border: 2px solid #4C4C3B;
	border-radius: 8px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.details-button:hover,
.details-button:focus {
transform: translateY(-2px);
}

.details-button:active {
	transform: translateY(1px);
}

/* Responsive Design - Tablet (768px - 1024px) */
@media (max-width: 1024px) {
	.details {
		padding: 0;
	}

	.details-container {
		padding: 0;
	}

	.details-slide {
	}

	.details-slide-image {
		max-height: 150px;
	}
}

/* Responsive Design - Mobile (max-width: 767px) */
@media (max-width: 700px) {
	.details-smaller-title-wrapper {
	    text-align: center;
	    padding: 10px;
	    background-color: #C1B488;
	    border-radius: 0;
	    border-bottom: 3px solid #C1B488;
	    position: relative;
	    z-index: 1;
	    max-width: 100%;
	    margin: 0 auto -4px;
	    border-top: none;
	    border-right: none;
	    border-left: none;
	}
	.details-slider-wrapper {
		border-top:none;
		padding:20px 0 0;
	}
	.details-header {padding: 40px 0 142px;}
	.details-title {
		font-size:25px;
		line-height:26px;
	}
	.details-subtitle {
		font-size:25px;
	}
	.details-smaller-title {
		font-size:20px;
	}
	.details-swiper .swiper-scrollbar{
		width: 90%;
		max-width: 300px;
		height: 20px;
	}
}

/* Extra Small Devices (max-width: 480px) */
@media (max-width: 550px) {
    .details-header {
        padding: 40px 20px 142px;
    }
	    .details-smaller-title {
        font-size: 18px;
        max-width:90%;
        margin: 20px auto 0;
    }
	.details-swiper-wrapper {
		padding-bottom: 44px;
	}
	.details-slide {
		height:200px;
	}
	.details-slide-title {
	margin:0 auto 0;
	font-size:12px;
	}
	.details-slide-image {
		max-height:100px;
	}
	.details-button-wrapper {
		padding:20px 0;
	}
	.details-swiper .swiper-scrollbar-drag {
top:3px;}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.details-slide-card {
		border-width: 3px;
	}

	.details-button {
		border-width: 3px;
	}

	.details-smaller-title .highlight {
		text-decoration: underline;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	.details-button {
		transition: none;
	}

	.details-button:active {
		transform: none;
	}

	/* Disable CSS animation for reduced motion */
	.details-swiper-wrapper.details-swiper-animated {
		animation: none;
		justify-content: center;
		overflow-x: auto;
		scroll-behavior: smooth;
		scroll-snap-type: x mandatory;
	}

	.details-slide {
		scroll-snap-align: start;
	}
}

/* Print Styles */
@media print {
	.details {
		padding: 1rem 0;
		background-image: none;
		background-color: #ffffff;
	}

	.details-slider-wrapper {
		overflow: visible;
	}

	.details-swiper-wrapper {
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}

	.details-slide {
		width: 200px;
		height: 192px;
		page-break-inside: avoid;
	}

	.details-slide-card {
		border: 1px solid #000000;
		background-image: none;
		background-color: #f5f5f5;
	}

	.details-button {
		border: 1px solid #000000;
		background-color: #ffffff;
		color: #000000;
	}
}

/* Support for block wrapper color classes */
.details.has-background {
	padding: 3rem 0;
}

.details.has-text-color .details-title,
.details.has-text-color .details-subtitle,
.details.has-text-color .details-smaller-title,
.details.has-text-color .details-slide-title,
.details.has-text-color .details-button {
	color: inherit;
}

/* Ensure proper spacing when background color is applied */
.details.has-background .details-container {
	padding: 0 1rem;
}

/* Focus styles for accessibility */
.details-button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

