/**
 * Reformas Gallery Display - Frontend Styles
 *
 * @package Reformas_Gallery_Display
 */

/* ==================================
   HERO SECTION - Static Background
   ================================== */

.reforma-hero {
	position: relative;
	width: 100vw;
	height: 100vh;
	margin-left: calc(-50vw + 50%);
	overflow: hidden;
}

.reforma-hero__background {
	display: block;
	width: 100%;
	height: 100%;
}

.reforma-hero__background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.reforma-hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(0deg, rgba(20, 20, 20, 0.6) 0%, rgba(78, 78, 78, 0.4) 100%);
	z-index: 1;
}

.reforma-hero__content {
	position: absolute;
	bottom: 20%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	text-align: center;
	color: white;
	width: 90%;
	max-width: 800px;
}

.reforma-hero__category {
	font-family: Averta, Public Sans, sans-serif;
	font-size: 1.250rem;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 2.000rem;
	text-align: center;
	margin: 0 0 1rem 0;
	color: #ffffff;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.reforma-hero__title {
	font-family: Averta, Public Sans, sans-serif;
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 2.375rem;
	text-align: center;
	margin: 0;
	color: #ffffff;
	text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==================================
   GALLERY SECTION - Stacked Images
   ================================== */

.reforma-gallery {
	display: flex;
	flex-direction: column;
	gap: 30px;
	width: 100%;
	max-width: 1290px;
	margin: 80px auto 0;
	padding: 0 40px;
}

.reforma-gallery__item {
	margin: 0;
	padding: 0;
	border-radius: 8px;
	overflow: hidden;
}

.reforma-gallery__item img {
	width: 100%;
	height: auto;
	display: block;
}

/* ==================================
   CONTENT SECTION
   ================================== */

.reforma-content {
	max-width: 1290px;
	margin: 60px auto 80px;
	padding: 0 40px;
	font-family: Averta, Public Sans, sans-serif;
}

.reforma-content p {
	font-size: 1.125rem;
	line-height: 2.188rem;
	font-weight: 400;
	color: var(--global-palette3, #4a5568);
	text-align: center;
	margin-bottom: 2.188rem;
}

.reforma-content h2,
.reforma-content h3 {
	margin-top: 2.5rem;
	margin-bottom: 1.5rem;
	font-weight: 600;
	color: #2d3748;
}

.reforma-content ul,
.reforma-content ol {
	margin-bottom: 1.8rem;
	padding-left: 2rem;
	color: #4a5568;
}

.reforma-content li {
	margin-bottom: 0.5rem;
}

/* ==================================
   RESPONSIVE - Mobile Styles
   ================================== */

@media (max-width: 768px) {
	.reforma-hero {
		height: 100svh; /* Small viewport height for mobile browsers */
	}

	.reforma-hero__content {
		bottom: 15%;
		width: 85%;
	}

	.reforma-hero__category {
		font-size: 1.125rem;
		line-height: 1.750rem;
		margin-bottom: 0.75rem;
	}

	.reforma-hero__title {
		font-size: 1.375rem;
		line-height: 1.875rem;
	}

	.reforma-gallery {
		margin-top: 40px;
		padding: 0 20px;
		gap: 20px;
	}

	.reforma-content {
		margin: 40px auto 60px;
		padding: 0 20px;
	}

	.reforma-content p {
		font-size: 1.000rem;
		line-height: 1.875rem;
	}
}

/* ==================================
   RESPONSIVE - Tablet Styles
   ================================== */

@media (min-width: 769px) and (max-width: 1024px) {
	.reforma-hero__content {
		bottom: 18%;
	}

	.reforma-hero__category {
		font-size: 1.188rem;
		line-height: 1.875rem;
	}

	.reforma-hero__title {
		font-size: 1.625rem;
		line-height: 2.125rem;
	}

	.reforma-gallery {
		margin-top: 60px;
		padding: 0 30px;
		gap: 25px;
	}

	.reforma-content {
		padding: 0 30px;
	}

	.reforma-content p {
		font-size: 1.063rem;
		line-height: 2.000rem;
	}
}

/* ==================================
   RESPONSIVE - Large Desktop
   ================================== */

@media (min-width: 1920px) {
	.reforma-content {
		max-width: 1400px;
		font-size: 18px;
	}
}

/* ==================================
   ACCESSIBILITY
   ================================== */

.reforma-hero__background img[alt=""],
.reforma-gallery__item img[alt=""] {
	/* Ensure screen readers announce images without alt text */
	speak: never;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	.reforma-hero__content {
		transition: none;
	}
}
