/**
 * About Page Styles
 *
 * @package Refinery_Hair
 */

/* ============================================
   Hero Section
   ============================================ */

.about-page {
	min-height: 100vh;
	background: var(--color-black, #000);
}

/* Override .site-main padding to allow hero to sit at top */
.site-main.about-page {
	padding-top: 0;
}

.about-hero {
	position: relative;
	width: 100%;
	height: 60vh;
	min-height: 400px;
	max-height: 600px;
	overflow: hidden;
}

.about-hero-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.about-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.about-title {
	font-family: var(--font-primary, 'Playfair Display', serif);
	font-size: clamp(2.5rem, 6vw, 4rem);
	color: var(--color-white, #fff);
	text-transform: uppercase;
	letter-spacing: 4px;
	margin: 0;
}

/* ============================================
   Container
   ============================================ */

.about-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 60px 20px;
}

/* ============================================
   Block Editor Image Styling
   ============================================ */

.about-container .wp-block-image {
	margin-bottom: var(--spacing-md, 24px);
}

.about-container .wp-block-image figcaption {
	font-size: 0.875rem;
	color: var(--color-off-white, #F0EDEB);
	text-align: center;
	margin-top: var(--spacing-xs, 8px);
	opacity: 0.8;
}

.about-container .wp-block-image img {
	height: auto;
}

.about-container .wp-block-gallery {
	margin-bottom: var(--spacing-md, 24px);
}

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

@media (max-width: 768px) {
	.about-container {
		padding: 40px 16px;
	}

	/* Block Images - Remove floats and center on mobile */
	.about-container .wp-block-image.alignleft,
	.about-container .wp-block-image.alignright {
		float: none;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: var(--spacing-md, 24px);
	}

	/* Handle figure elements directly (Gutenberg wraps in figure) */
	.about-container figure.alignleft,
	.about-container figure.alignright {
		float: none;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: var(--spacing-md, 24px);
	}

	/* Center gallery blocks on mobile */
	.about-container .wp-block-gallery {
		justify-content: center;
	}

	/* Make hero full-width by breaking out of .site-main container padding */
	.about-hero {
		width: 100vw;
		position: relative;
		left: 50%;
		right: 50%;
		margin-left: -50vw;
		margin-right: -50vw;
		height: 50vh;
		min-height: 300px;
	}
}

@media (max-width: 480px) {
	.about-title {
		letter-spacing: 2px;
	}
}
