/**
 * About Us Page Styles
 *
 * Brand-aligned styles for the Automuseums About page.
 * All selectors scoped under .about-page to avoid Astra conflicts.
 *
 * @package Astra-Child
 * @since 1.0.0
 * @author Synergy Marketing info@synergymarketing.mk
 */

/* ===========================================
   ASTRA OVERRIDES - Kill theme defaults
   =========================================== */

.about-page {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
}

.about-page .ast-container,
.about-page .ast-article-single,
#primary .about-page {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
}

/* Force heading colors over Astra */
.about-page h1,
.about-page h2,
.about-page h3 {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* ===========================================
   LAYOUT: CONTAINER
   =========================================== */

.about-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.about-container--narrow {
	max-width: 900px;
}

/* ===========================================
   SECTION 1: HERO
   =========================================== */

.about-hero {
	background: linear-gradient(135deg, #1F3A60 0%, #2563EB 100%);
	min-height: 40vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 80px 24px;
	border-bottom: 4px solid #2563EB;
	position: relative;
	overflow: hidden;
}

.about-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.03);
	pointer-events: none;
}

.about-hero__inner {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.about-hero__logo {
	width: 120px;
	height: auto;
	margin-bottom: 24px;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.about-page .about-hero__title {
	font-size: 3rem !important;
	font-weight: 700 !important;
	color: #FFFFFF !important;
	margin: 0 0 12px 0 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em;
}

.about-hero__subtitle {
	font-size: 1.25rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.9) !important;
	margin: 0;
	line-height: 1.5;
}

/* ===========================================
   SHARED SECTION STYLES
   =========================================== */

.about-section {
	padding: 80px 0;
}

.about-label {
	display: block;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #2563EB !important;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	margin-bottom: 12px;
}

.about-label--center {
	text-align: center;
}

.about-page .about-heading {
	font-size: 2.25rem !important;
	font-weight: 700 !important;
	color: #1F2937 !important;
	margin: 0 0 20px 0 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.01em;
}

.about-heading--center {
	text-align: center;
}

.about-body {
	font-size: 1.0625rem;
	font-weight: 400;
	color: #6B7280 !important;
	line-height: 1.8;
	margin: 0 0 16px 0;
}

.about-body:last-of-type {
	margin-bottom: 0;
}

.about-body--center {
	text-align: center;
}

/* ===========================================
   TWO-COLUMN GRID
   =========================================== */

.about-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 64px;
	align-items: center;
}

.about-grid--reverse {
	grid-template-columns: 1fr 1.5fr;
}

.about-grid__media img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
	transition: transform 0.4s ease;
}

.about-grid__media img:hover {
	transform: scale(1.02);
}

/* ===========================================
   SECTION 2: MISSION STATS
   =========================================== */

.about-mission {
	background: #FFFFFF;
}

.about-stats {
	display: flex;
	gap: 40px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #E5E7EB;
}

.about-stats__item {
	display: flex;
	flex-direction: column;
}

.about-stats__number {
	font-size: 2.5rem;
	font-weight: 700;
	color: #2563EB !important;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.about-stats__desc {
	font-size: 0.875rem;
	font-weight: 500;
	color: #6B7280 !important;
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ===========================================
   SECTION 3: CRITERIA CARDS
   =========================================== */

.about-criteria {
	background: #F3F4F6;
}

.about-cards {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: 40px;
}

.about-card {
	background: #FFFFFF;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 32px 24px;
	min-width: 240px;
	flex: 1;
	max-width: 320px;
	text-align: center;
	border: 1px solid #E5E7EB;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.about-card__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2563EB, #1D4ED8);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.about-page .about-card__title {
	font-size: 1.125rem !important;
	font-weight: 600 !important;
	color: #1F2937 !important;
	margin: 0 0 6px 0 !important;
}

.about-card__desc {
	font-size: 0.9rem;
	font-weight: 400;
	color: #6B7280 !important;
	margin: 0;
}

/* ===========================================
   SECTION 4: UPDATES - CTA BUTTON
   =========================================== */

.about-updates {
	background: #FFFFFF;
}

.about-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 24px;
	padding: 12px 28px;
	background: linear-gradient(135deg, #2563EB, #1D4ED8);
	color: #FFFFFF !important;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none !important;
	border-radius: 8px;
	border: none;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
	transition: all 0.3s ease;
}

.about-btn:hover {
	background: linear-gradient(135deg, #1D4ED8, #1E40AF);
	color: #FFFFFF !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
	text-decoration: none !important;
}

.about-btn:focus-visible {
	outline: 3px solid #2563EB;
	outline-offset: 3px;
}

/* ===========================================
   SECTION 5: EDITOR / AUTHOR CARD
   =========================================== */

.about-editor {
	background: #F3F4F6;
}

.about-author {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	background: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	padding: 48px;
	margin-top: 32px;
	border: 1px solid #E5E7EB;
}

.about-author__photo-wrap {
	flex-shrink: 0;
}

.about-author__photo {
	width: 200px;
	height: 200px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #2563EB;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.about-page .about-author__name {
	font-size: 1.5rem !important;
	font-weight: 700 !important;
	color: #1F2937 !important;
	margin: 0 0 4px 0 !important;
}

.about-author__role {
	font-size: 1rem;
	font-weight: 500;
	color: #2563EB !important;
	margin: 0 0 20px 0;
}

.about-author__bio {
	font-size: 1rem;
	font-weight: 400;
	color: #6B7280 !important;
	line-height: 1.8;
	margin: 0 0 12px 0;
}

.about-author__bio:last-of-type {
	margin-bottom: 0;
}

.about-author__links {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.about-author__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: #2563EB !important;
	text-decoration: none !important;
	padding: 10px 20px;
	border: 2px solid #E5E7EB;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.about-author__link:hover {
	background: #2563EB;
	color: #FFFFFF !important;
	border-color: #2563EB;
	text-decoration: none !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.about-author__link svg {
	flex-shrink: 0;
}

.about-author__link:focus-visible {
	outline: 3px solid #2563EB;
	outline-offset: 3px;
}

/* ===========================================
   SCROLL REVEAL
   =========================================== */

.about-section {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.about-section.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ===========================================
   RESPONSIVE: TABLET (max 1024px)
   =========================================== */

@media (max-width: 1024px) {
	.about-grid,
	.about-grid--reverse {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.about-grid--reverse .about-grid__media {
		order: 2;
	}

	.about-grid--reverse .about-grid__text {
		order: 1;
	}

	.about-section {
		padding: 60px 0;
	}

	.about-author__photo {
		width: 160px;
		height: 160px;
	}

	.about-author {
		padding: 32px;
		gap: 32px;
	}
}

/* ===========================================
   RESPONSIVE: MOBILE (max 768px)
   =========================================== */

@media (max-width: 768px) {
	.about-hero {
		min-height: 30vh;
		padding: 48px 16px;
	}

	.about-page .about-hero__title {
		font-size: 2rem !important;
	}

	.about-hero__subtitle {
		font-size: 1rem;
	}

	.about-hero__logo {
		width: 90px;
	}

	.about-section {
		padding: 48px 0;
	}

	.about-container {
		padding: 0 16px;
	}

	.about-page .about-heading {
		font-size: 1.5rem !important;
	}

	.about-body {
		font-size: 1rem;
	}

	.about-stats {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 16px;
	}

	.about-stats__number {
		font-size: 2rem;
	}

	.about-cards {
		flex-direction: column;
		align-items: stretch;
	}

	.about-card {
		min-width: unset;
		max-width: 100%;
	}

	.about-author {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 24px;
	}

	.about-author__photo {
		width: 140px;
		height: 140px;
	}

	.about-author__links {
		justify-content: center;
	}

	.about-btn {
		width: 100%;
		justify-content: center;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.about-section {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.about-card:hover,
	.about-btn:hover,
	.about-author__link:hover,
	.about-grid__media img:hover {
		transform: none;
	}
}
