/**
 * Services Showcase Styles
 *
 * Tabbed residential/commercial services display.
 * Card styles are now in components/feature-card.css
 */

.services-showcase {
	padding: var(--section-padding) 0;
}

.services-header {
	margin-bottom: var(--section-header-spacing);
}

.services-header h2 {
	margin-bottom: 0.75rem;
}

.services-intro {
	color: var(--wp--preset--color--text);
	max-width: none;
	margin: 0 auto;
}

/* ==========================================================================
   Tab Navigation
   ========================================================================== */

.services-tabs {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-bottom: var(--section-header-spacing);
}

.services-tab {
	padding: 0.75rem 2rem;
	border: 2px solid var(--wp--preset--color--border);
	border-radius: 100px;
	background: transparent;
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--arvo);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: all var(--transition-fast);
}

.services-tab:hover {
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

.services-tab.active {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

/* Focus state for accessibility */
.services-tab:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* ==========================================================================
   Panels - Smooth fade transition
   ========================================================================== */

.services-panel {
	display: none;
	opacity: 0;
	animation: fadeInPanel 0.3s ease forwards;
}

.services-panel.active {
	display: block;
}

@keyframes fadeInPanel {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   Services Grid - Uses .card-grid from base.css
   Service cards use flexbox column for link alignment
   ========================================================================== */

.services-showcase .feature-card {
	align-items: center;
}

/* View All Link */
.services-view-all {
	margin-top: 2rem;
}

.services-view-all a {
	font-weight: 700;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.services-cta {
	margin-top: 3rem;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 767px) {
	.services-header {
		padding: 0 var(--content-padding-mobile);
	}

	.services-tabs {
		width: 100%;
		padding: 0 var(--content-padding-mobile);
		box-sizing: border-box;
	}

	.services-tab {
		flex: 1;
		padding: 0.625rem 0.75rem;
		font-size: 0.875rem;
		min-width: 0;
	}

	.services-grid {
		padding: 0 var(--content-padding-mobile);
	}

	/* Show only first 4 services on mobile */
	.services-showcase .services-grid > .feature-card:nth-child(n+5) {
		display: none !important;
	}
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.services-tab {
		transition: none;
	}

	.services-panel {
		animation: none;
	}
}
