/**
 * Service Pages Stylesheet - IMPROVED VERSION
 * Enhanced readability and alignment fixes
 * 
 * @package LosaLaw
 * @since 2.0.1
 */

/* ============================================
   SERVICE HERO SECTION
   ============================================ */

.service-hero {
	min-height: 70vh;
}

.service-hero .hero-title-cinematic {
	font-size: 56px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-hero .hero-subtitle-large {
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	max-width: 800px;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.service-hero {
		min-height: 60vh;
	}

	.service-hero .hero-title-cinematic {
		font-size: 36px;
	}
}

/* ============================================
   FAQ SECTION - IMPROVED READABILITY
   ============================================ */

.faq-section {
	background: var(--color-bg-light);
	padding: 120px 0;
}

.faq-wrapper {
	max-width: 900px;
	margin: 60px auto 0;
}

.faq-item {
	background: #fff;
	padding: 32px;
	border-radius: 16px;
	margin-bottom: 20px;
	border: 2px solid var(--color-border);
	transition: all 0.3s ease;
	cursor: pointer;
}

.faq-item:hover {
	border-color: var(--color-accent);
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
	font-size: 20px;
	font-weight: 700;
	color: #1A202C !important;
	/* Improved contrast */
	margin-bottom: 16px;
	display: flex;
	align-items: flex-start;
	/* Better alignment */
	gap: 12px;
	line-height: 1.4;
}

.faq-item h3 svg {
	color: var(--color-accent);
	flex-shrink: 0;
	margin-top: 2px;
	/* Align with text */
}

.faq-item p {
	font-size: 16px;
	line-height: 1.8;
	/* Improved readability */
	color: #4A5568 !important;
	/* Better contrast */
	margin: 0;
	padding-left: 36px;
	text-align: left;
	/* Ensure left alignment */
}

/* Accordion Style FAQ (Optional Enhancement) */
.faq-item.accordion {
	cursor: pointer;
}

.faq-item.accordion .faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.faq-item.accordion.active .faq-answer {
	max-height: 500px;
}

.faq-item.accordion h3::after {
	content: '+';
	margin-left: auto;
	font-size: 28px;
	font-weight: 300;
	color: var(--color-accent);
	transition: transform 0.3s ease;
}

.faq-item.accordion.active h3::after {
	transform: rotate(45deg);
}

@media (max-width: 768px) {
	.faq-item {
		padding: 24px;
	}

	.faq-item h3 {
		font-size: 18px;
		align-items: flex-start;
	}

	.faq-item p {
		font-size: 15px;
		padding-left: 0;
		margin-top: 12px;
		line-height: 1.7;
	}
}

/* ============================================
   TESTIMONIALS GRID
   ============================================ */

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 32px;
	margin-top: 60px;
}

@media (max-width: 768px) {
	.testimonials-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* ============================================
   SERVICE-SPECIFIC CUSTOMIZATIONS
   ============================================ */

/* Adjust spacing for service pages */
.service-hero+.expertise-showcase {
	padding-top: 120px;
}

/* Enhanced sub-service cards */
.expertise-card-premium {
	position: relative;
	overflow: hidden;
}

.expertise-card-premium::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--gradient-primary);
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.expertise-card-premium:hover::before {
	transform: scaleX(1);
}

/* Improved card text readability */
.card-title-premium {
	color: #1A202C !important;
	line-height: 1.3;
}

.card-desc-premium {
	color: #4A5568 !important;
	line-height: 1.7;
	text-align: left;
}

/* ============================================
   STATS GRID ENHANCEMENTS
   ============================================ */

.stats-grid-premium {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 32px;
	margin-top: 60px;
}

.stat-card-premium {
	background: #fff;
	padding: 48px 32px;
	border-radius: 20px;
	text-align: center;
	border: 2px solid var(--color-border);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.stat-card-premium::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--gradient-primary);
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.stat-card-premium:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	border-color: var(--color-accent);
}

.stat-card-premium:hover::before {
	transform: scaleX(1);
}

.stat-number-large {
	font-size: 48px;
	font-weight: 900;
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 16px;
	line-height: 1.2;
}

.stat-label-large {
	font-size: 20px;
	font-weight: 700;
	color: #1A202C !important;
	margin-bottom: 12px;
	line-height: 1.3;
}

.stat-description {
	font-size: 15px;
	line-height: 1.6;
	color: #4A5568 !important;
}

@media (max-width: 768px) {
	.stats-grid-premium {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.stat-card-premium {
		padding: 32px 20px;
	}

	.stat-number-large {
		font-size: 36px;
	}

	.stat-label-large {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.stats-grid-premium {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   CORE VALUES GRID - IMPROVED ALIGNMENT
   ============================================ */

.core-values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px;
	margin-top: 60px;
}

.value-card {
	background: #fff;
	padding: 40px 32px;
	border-radius: 20px;
	text-align: center;
	border: 2px solid var(--color-border);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	border-color: var(--color-accent);
}

.value-icon {
	width: 80px;
	height: 80px;
	background: var(--color-bg-light);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
	color: var(--color-accent);
	transition: all 0.4s ease;
}

.value-card:hover .value-icon {
	background: var(--gradient-primary);
	color: #fff;
	transform: scale(1.1) rotate(5deg);
}

.value-title {
	font-size: 22px;
	font-weight: 700;
	color: #1A202C !important;
	margin-bottom: 12px;
	line-height: 1.3;
}

.value-description {
	font-size: 16px;
	line-height: 1.7;
	color: #4A5568 !important;
	margin: 0;
	text-align: center;
}

@media (max-width: 768px) {
	.core-values-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.value-card {
		padding: 32px 24px;
	}
}

/* ============================================
   TIMELINE ENHANCEMENTS - BETTER ALIGNMENT
   ============================================ */

.timeline-wrapper {
	position: relative;
	max-width: 900px;
	margin: 60px auto 0;
	padding: 0 20px;
}

.timeline-line {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-primary) 100%);
	transform: translateX(-50%);
}

.timeline-item {
	display: flex;
	align-items: center;
	margin-bottom: 60px;
	position: relative;
}

.timeline-item:last-child {
	margin-bottom: 0;
}

.timeline-dot {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 60px;
	background: #fff;
	border: 4px solid var(--color-accent);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: all 0.4s ease;
}

.timeline-item:hover .timeline-dot {
	transform: translateX(-50%) scale(1.2);
	background: var(--gradient-primary);
	border-color: var(--color-accent-light);
}

.dot-inner {
	color: var(--color-accent);
	transition: color 0.4s ease;
}

.timeline-item:hover .dot-inner {
	color: #fff;
}

.timeline-content {
	width: calc(50% - 60px);
	background: #fff;
	padding: 32px;
	border-radius: 16px;
	border: 2px solid var(--color-border);
	transition: all 0.4s ease;
	text-align: left;
	/* Ensure left alignment */
}

.timeline-item:nth-child(odd) .timeline-content {
	margin-right: auto;
	margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
	margin-left: auto;
	margin-right: 0;
}

.timeline-item:hover .timeline-content {
	border-color: var(--color-accent);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.timeline-number {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-accent);
	letter-spacing: 2px;
	margin-bottom: 12px;
}

.timeline-title {
	font-size: 22px;
	font-weight: 700;
	color: #1A202C !important;
	margin-bottom: 12px;
	line-height: 1.3;
}

.timeline-desc {
	font-size: 16px;
	line-height: 1.7;
	color: #4A5568 !important;
	margin: 0;
}

@media (max-width: 992px) {
	.timeline-line {
		left: 30px;
	}

	.timeline-dot {
		left: 30px;
	}

	.timeline-content {
		width: calc(100% - 100px);
		margin-left: 100px !important;
		margin-right: 0 !important;
		text-align: left;
	}
}

@media (max-width: 768px) {
	.timeline-wrapper {
		padding: 0;
	}

	.timeline-line {
		left: 20px;
	}

	.timeline-dot {
		left: 20px;
		width: 40px;
		height: 40px;
	}

	.timeline-dot svg {
		width: 20px;
		height: 20px;
	}

	.timeline-content {
		width: calc(100% - 70px);
		margin-left: 70px !important;
		padding: 24px;
		text-align: left;
	}

	.timeline-title {
		font-size: 18px;
	}

	.timeline-desc {
		font-size: 15px;
		line-height: 1.6;
	}
}

/* ============================================
   CTA FORM ENHANCEMENTS - BETTER READABILITY
   ============================================ */

.cta-form-premium {
	max-width: 800px;
	margin: 40px auto 0;
}

.consultation-form {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	padding: 48px;
	border-radius: 20px;
	border: 2px solid rgba(255, 255, 255, 0.2);
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.form-input-premium {
	width: 100%;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.98);
	/* Better readability */
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	font-size: 16px;
	font-family: var(--font-primary);
	color: #1A202C !important;
	/* Better contrast */
	transition: all 0.3s ease;
}

.form-input-premium::placeholder {
	color: #718096;
	/* Better contrast */
	opacity: 0.8;
}

.form-input-premium:focus {
	outline: none;
	border-color: var(--color-accent);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.form-input-premium[type="textarea"],
textarea.form-input-premium {
	resize: vertical;
	min-height: 120px;
	font-family: var(--font-primary);
	line-height: 1.6;
}

select.form-input-premium {
	cursor: pointer;
}

.btn-submit-premium {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px 40px;
	background: var(--gradient-primary);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-weight: 700;
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
	margin-top: 20px;
}

.btn-submit-premium:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-submit-premium:active {
	transform: translateY(0);
}

@media (max-width: 768px) {
	.consultation-form {
		padding: 32px 24px;
	}

	.form-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.form-input-premium {
		padding: 14px 18px;
		font-size: 15px;
	}

	.btn-submit-premium {
		padding: 18px 32px;
		font-size: 16px;
	}
}

/* ============================================
   TRUST INDICATORS - IMPROVED READABILITY
   ============================================ */

.cta-trust-indicators {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.trust-indicator {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(255, 255, 255, 0.95);
	/* Better contrast */
	font-size: 16px;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	/* Better readability */
}

.trust-indicator svg {
	color: var(--color-accent);
	flex-shrink: 0;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
	.cta-trust-indicators {
		gap: 20px;
	}

	.trust-indicator {
		font-size: 14px;
	}

	.trust-indicator svg {
		width: 20px;
		height: 20px;
	}
}

/* ============================================
   SECTION HEADERS - IMPROVED READABILITY
   ============================================ */

.section-header-premium.center {
	text-align: center;
}

.section-title-xl {
	color: #1A202C !important;
	line-height: 1.2;
}

.section-desc-large {
	color: #4A5568 !important;
	line-height: 1.7;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.section-header-premium.light .section-title-xl {
	color: #fff !important;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-header-premium.light .section-desc-large {
	color: rgba(255, 255, 255, 0.9) !important;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 992px) {
	.expertise-grid-premium {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.expertise-grid-premium {
		grid-template-columns: 1fr;
	}

	.faq-section {
		padding: 80px 0;
	}

	.stats-credentials-section {
		padding: 80px 0;
	}

	.process-timeline {
		padding: 80px 0;
	}
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {

	.hero-cinematic,
	.cta-premium,
	.testimonials-premium {
		page-break-inside: avoid;
	}

	.faq-item {
		page-break-inside: avoid;
	}
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

.faq-item:focus-within,
.value-card:focus-within,
.stat-card-premium:focus-within {
	outline: 2px solid var(--color-accent);
	outline-offset: 4px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ============================================
   ADDITIONAL READABILITY IMPROVEMENTS
   ============================================ */

/* Ensure all body text has good contrast */
p,
li,
span,
div {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Better link readability */
a {
	text-decoration-skip-ink: auto;
}

/* Ensure proper text alignment throughout */
.expertise-showcase,
.process-timeline,
.stats-credentials-section,
.testimonials-premium {
	text-align: center;
}

.expertise-showcase .card-desc-premium,
.timeline-desc,
.value-description,
.faq-item p {
	text-align: left;
}

/* Mobile text improvements */
@media (max-width: 768px) {
	body {
		-webkit-text-size-adjust: 100%;
	}

	.section-title-xl {
		line-height: 1.3;
	}

	.section-desc-large {
		line-height: 1.6;
	}
}