/* ==========================================================================
   CODERIVEN - MODERN ABOUT US PAGE STYLES (100% DYNAMIC)
   ========================================================================== */

:root {
	--coderiven-primary: var(--primary, var(--primary-color, var(--bs-primary, #111827)));
	--coderiven-primary-hover: color-mix(in srgb, var(--coderiven-primary) 85%, black);
	--coderiven-primary-light: color-mix(in srgb, var(--coderiven-primary) 12%, white);
	--coderiven-primary-subtle: color-mix(in srgb, var(--coderiven-primary) 6%, white);
	--cr-about-border: #e2e8f0;
	--cr-about-card-bg: #ffffff;
}

.about-page-wrapper {
	padding-bottom: 3.5rem;
}

/* 1. Breadcrumbs */
.coderiven-breadcrumbs-wrapper {
	margin-top: 16px !important;
	margin-bottom: 20px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.coderiven-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 0;
	margin-bottom: 0;
	list-style: none;
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}

.coderiven-breadcrumb .breadcrumb-item {
	display: inline-flex;
	align-items: center;
}

.coderiven-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
	content: "";
	display: inline-block;
	width: 4.5px;
	height: 4.5px;
	border-top: 1.5px solid #94a3b8;
	border-right: 1.5px solid #94a3b8;
	transform: rotate(45deg);
	margin: 0 8px;
	padding: 0;
}

.coderiven-breadcrumb .breadcrumb-item a {
	color: #64748b;
	text-decoration: none;
	transition: color 0.15s ease;
	display: inline-flex;
	align-items: center;
}

.coderiven-breadcrumb .breadcrumb-item a:hover {
	color: var(--coderiven-primary);
}

.coderiven-breadcrumb .breadcrumb-item.active {
	color: #0f172a;
	font-weight: 600;
}

/* 2. Page Header */
.about-page-header {
	margin-bottom: 28px;
	text-align: center;
}

.about-page-title {
	font-size: 28px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.5px;
	margin-bottom: 0;
	line-height: 1.2;
}

/* 3. Story & Live Metrics Section */
.about-story-section {
	background: #ffffff;
	border: 1px solid var(--cr-about-border);
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 1.75rem;
}

.about-section-heading {
	font-size: 19px;
	font-weight: 800;
	color: #0f172a;
	margin-top: 0;
	margin-bottom: 12px;
	letter-spacing: -0.3px;
	line-height: 1.2;
}

.about-timeline-section > *:first-child,
.about-story-section > *:first-child {
	margin-top: 0 !important;
}

/* Rich Text Content from About Us Settings */
.about-story-rich-text,
.about-story-rich-text *,
.about-story-rich-text p,
.about-story-rich-text span,
.about-story-rich-text li,
.about-story-rich-text .ql-editor * {
	color: #334155 !important;
	font-size: 14px;
	line-height: 1.7;
}

.about-story-rich-text .ql-editor p:empty,
.about-story-rich-text .ql-editor p:last-child:has(br:only-child) {
	display: none;
	margin: 0;
}

.about-story-rich-text p {
	margin-bottom: 14px;
}

.about-story-rich-text p:last-child {
	margin-bottom: 0;
}

.about-story-rich-text strong,
.about-story-rich-text b,
.about-story-rich-text h1,
.about-story-rich-text h2,
.about-story-rich-text h3,
.about-story-rich-text h4,
.about-story-rich-text h5 {
	color: #0f172a !important;
	font-weight: 700;
}

.about-story-rich-text h3 {
	font-size: 17px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	margin-top: 20px;
	margin-bottom: 10px;
	letter-spacing: -0.3px;
}

.about-story-rich-text h3:first-child,
.about-story-rich-text > *:first-child {
	margin-top: 0 !important;
}

.about-story-rich-text ol,
.about-story-rich-text ul {
	padding-left: 20px;
	margin-bottom: 16px;
}

.about-story-rich-text li {
	margin-bottom: 8px;
	line-height: 1.6;
}

/* 3. Live Metrics Row */
.about-stats-section {
	margin-bottom: 1.75rem;
}

.about-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
}

.about-stat-item {
	background: #ffffff;
	border: 1px solid var(--cr-about-border);
	border-radius: 12px;
	padding: 18px 14px;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.about-stat-item:hover {
	transform: translateY(-2px);
	border-color: #cbd5e1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.about-stat-number {
	font-size: 26px;
	font-weight: 800;
	color: var(--coderiven-primary);
	line-height: 1.1;
	margin-bottom: 6px;
}

.about-stat-label {
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 0;
}

/* 4. Company Milestones / History */
.about-timeline-section {
	background: #ffffff;
	border: 1px solid var(--cr-about-border);
	border-radius: 12px;
	padding: 24px 28px;
	margin-bottom: 1.75rem;
}

.about-timeline {
	position: relative;
	margin-top: 20px;
	margin-bottom: 8px;
	padding-left: 18px;
	border-left: 2px solid #e2e8f0;
}

.about-timeline-item {
	position: relative;
	margin-bottom: 22px;
	padding-left: 14px;
}

.about-timeline-item:last-child {
	margin-bottom: 0;
}

.about-timeline-dot {
	position: absolute;
	left: -24px;
	top: 6px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid var(--coderiven-primary);
}

.about-timeline-row {
	font-size: 14px;
	line-height: 1.6;
	color: #334155;
}

.about-timeline-year {
	font-size: 14px;
	font-weight: 800;
	color: #0f172a;
	margin-right: 14px;
	display: inline-block;
}

.about-timeline-text {
	font-size: 14px;
	color: #334155;
}

/* 5. Team Members Section */
.about-team-section {
	margin-bottom: 2.25rem;
}

.about-team-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 20px;
}

@media (min-width: 1200px) {
	.about-team-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.about-team-card {
	background: #ffffff;
	border: 1px solid var(--cr-about-border);
	border-radius: 10px;
	overflow: hidden;
	text-align: center;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
}

.about-team-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.about-team-avatar-wrapper {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.about-team-avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-team-card:hover .about-team-avatar {
	transform: scale(1.04);
}

.about-team-avatar-placeholder {
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 700;
	color: #94a3b8;
}

.about-team-info {
	padding: 16px;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.about-team-name {
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
}

.about-team-bio {
	font-size: 12px;
	color: #64748b;
	line-height: 1.45;
	margin-bottom: 0;
}

/* 6. Store Locations / Branches Section */
.about-branches-section {
	margin-bottom: 2.25rem;
}

.about-branches-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 14px;
}

.about-branch-card {
	background: #ffffff;
	border: 1px solid var(--cr-about-border);
	border-radius: 12px;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.about-branch-card:hover {
	transform: translateY(-2px);
	border-color: #cbd5e1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.about-branch-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.about-branch-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--coderiven-primary-light);
	color: var(--coderiven-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.about-branch-title {
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
}

.about-branch-body {
	font-size: 13.5px;
	color: #475569;
	line-height: 1.6;
}

.about-branch-address {
	margin-bottom: 4px;
	color: #334155;
}

.about-branch-address:first-of-type {
	font-weight: 600;
	color: #0f172a;
}

.about-branch-contact {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed #e2e8f0;
}

.about-branch-phone-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--coderiven-primary);
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 6px 14px;
	border-radius: 6px;
	white-space: nowrap;
	transition: all 0.15s ease;
}

.about-branch-phone-link:hover {
	background: var(--coderiven-primary);
	color: #ffffff;
	border-color: var(--coderiven-primary);
	text-decoration: none;
}

.about-branch-phone-link:active {
	transform: scale(0.97);
}

.about-branches-content {
	font-size: 13.5px;
	color: #334155;
	line-height: 1.6;
}

.about-branches-content h2,
.about-branches-content h3 {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin-top: 18px;
	margin-bottom: 6px;
	border-bottom: 1px solid #f1f5f9;
	padding-bottom: 6px;
}

.about-branches-content h2:first-child,
.about-branches-content h3:first-child {
	margin-top: 0;
}

.about-branches-content p {
	margin-bottom: 8px;
}

/* 7. Call To Action Banner */
.about-cta-banner {
	background: #ffffff;
	border: 1px solid var(--cr-about-border);
	border-radius: 12px;
	padding: 36px 28px;
	text-align: center;
	margin-bottom: 2rem;
}

.about-cta-title {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 8px;
}

.about-cta-subtitle {
	font-size: 14px;
	color: #64748b;
	max-width: 520px;
	margin: 0 auto 20px auto;
	line-height: 1.5;
}

.about-cta-btn {
	background: var(--coderiven-primary) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
	font-size: 13.5px !important;
	padding: 10px 24px !important;
	border-radius: 6px !important;
	border: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
	transition: all 0.15s ease !important;
}

.about-cta-btn svg {
	transition: transform 0.2s ease;
}

.about-cta-btn:hover {
	background: color-mix(in srgb, var(--coderiven-primary) 88%, black) !important;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3) !important;
	text-decoration: none !important;
}

.about-cta-btn:hover svg {
	transform: translateX(3px);
}

.about-cta-btn:active {
	transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
	.about-team-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767.98px) {
	.about-hero-section {
		padding: 22px 16px;
		margin-bottom: 1.25rem;
	}
	.about-hero-title {
		font-size: 22px;
	}
	.about-story-section {
		padding: 24px 18px;
		margin-bottom: 1.75rem;
	}
	.about-stats-section {
		margin-bottom: 1.75rem;
	}
	.about-stats-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
	}
	.about-team-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}
	.about-team-info {
		padding: 12px 10px;
	}
	.about-team-name {
		font-size: 13.5px;
	}
	.about-team-bio {
		font-size: 11.5px;
	}
	.about-branches-section {
		margin-bottom: 1.75rem;
	}
	.about-branches-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.about-cta-banner {
		padding: 28px 18px;
	}
}

@media (max-width: 575.98px) {
	.about-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.about-team-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.about-team-card:hover .about-team-avatar,
	.about-stat-item:hover,
	.about-branch-card:hover,
	.about-cta-btn:hover,
	.about-cta-btn:hover svg {
		transform: none !important;
	}
}
