/**
 * Service Pages Styles
 *
 * Styles for single-service, archive-service, and taxonomy archives.
 *
 * @package One_Handyman
 * @version 1.0.0
 */

/* ==========================================================================
   Shared: Buttons
   ========================================================================== */

.oh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	font-family: var(--one-font-body);
	font-size: var(--one-font-size-sm, 14px);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--one-radius-sm, 4px);
	transition: all var(--one-transition-fast, 150ms ease);
	cursor: pointer;
	border: 2px solid transparent;
}

.oh-btn--primary {
	background: var(--one-obsidian, #1C1C1E);
	color: #fff;
	border-color: var(--one-obsidian, #1C1C1E);
	border-radius: 0;
	text-decoration: none;
}

.oh-btn--primary:hover {
	background: var(--one-bronze, #B08D57);
	border-color: var(--one-bronze, #B08D57);
	color: var(--one-obsidian, #1C1C1E);
	text-decoration: none;
}

.oh-btn--secondary {
	background: transparent;
	color: var(--one-obsidian, #1C1C1E);
	border-color: var(--one-obsidian, #1C1C1E);
	border-radius: 0;
}

.oh-btn--secondary:hover {
	background: var(--one-obsidian, #1C1C1E);
	color: #fff;
}

.oh-btn--lg {
	padding: 16px 32px;
	font-size: var(--one-font-size-base, 16px);
	border-radius: var(--one-radius-md, 8px);
	text-decoration: none;
}

.oh-btn--lg:hover,
.oh-btn--lg:focus {
	text-decoration: none;
}

/* ==========================================================================
   Single Service: Hero
   ========================================================================== */

.oh-service-hero {
	background: var(--one-light-bg, #f5f5f5);
	padding: var(--one-spacing-xl, 32px) 0 var(--one-spacing-2xl, 48px);
}

.oh-service-hero__breadcrumb {
	font-size: var(--one-font-size-sm, 14px);
	margin-bottom: var(--one-spacing-md, 16px);
}

.oh-service-hero__breadcrumb a {
	color: var(--one-primary);
	text-decoration: none;
}

.oh-service-hero__breadcrumb a:hover {
	text-decoration: underline;
}

.oh-service-hero__breadcrumb span[aria-hidden] {
	margin: 0 6px;
	color: var(--one-border);
}

.oh-service-hero__breadcrumb span[aria-current] {
	color: var(--one-text);
	font-weight: 600;
}

.oh-service-hero__title {
	margin: 0 0 var(--one-spacing-sm, 8px);
}

.oh-service-hero__subtitle {
	font-size: var(--one-font-size-lg, 18px);
	color: var(--one-text);
	margin: 0 0 var(--one-spacing-lg, 24px);
	max-width: 700px;
}

.oh-service-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--one-spacing-md, 16px);
}

/* ==========================================================================
   Single Service: Content
   ========================================================================== */

.oh-service-content {
	padding: var(--one-spacing-2xl, 48px) 0;
}

.oh-service-content__body {
	max-width: 800px;
	line-height: 1.7;
}

.oh-service-content__placeholder {
	color: var(--one-text);
	font-style: italic;
	opacity: 0.7;
}

/* Tags */
.oh-service-content__tags {
	margin-top: var(--one-spacing-xl, 32px);
	padding-top: var(--one-spacing-lg, 24px);
	border-top: 1px solid var(--one-border);
	display: flex;
	flex-wrap: wrap;
	gap: var(--one-spacing-md, 16px);
}

.oh-service-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--one-spacing-xs, 4px);
}

.oh-service-tags__label {
	font-size: var(--one-font-size-sm, 14px);
	font-weight: 600;
	color: var(--one-text);
}

.oh-service-tag {
	display: inline-block;
	padding: 4px 12px;
	font-size: 12px;
	background: var(--one-light-bg, #f5f5f5);
	color: var(--one-text);
	border: 1px solid var(--one-border);
	border-radius: var(--one-radius-sm, 4px);
	text-decoration: none;
}

.oh-service-tag:hover {
	border-color: var(--one-primary);
	color: var(--one-primary);
}

/* ==========================================================================
   Related Services Grid
   ========================================================================== */

.oh-service-related {
	background: var(--one-light-bg, #f5f5f5);
	padding: var(--one-spacing-2xl, 48px) 0;
}

.oh-service-related__title {
	margin: 0 0 var(--one-spacing-lg, 24px);
}

.oh-service-related__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--one-spacing-lg, 24px);
}

@media (min-width: 768px) {
	.oh-service-related__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Service Card */
.oh-service-card {
	background: var(--one-obsidian, #1C1C1E);
	border: 1px solid rgba(176, 141, 87, 0.4);
	border-radius: 0;
	overflow: hidden;
	transition: border-color var(--one-transition-fast, 150ms ease), box-shadow var(--one-transition-fast, 150ms ease);
}

.oh-service-card:hover {
	border-color: var(--one-bronze, #B08D57);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.oh-service-card__image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.oh-service-card__body {
	padding: 28px;
	text-align: center;
}

.oh-service-card__title {
	font-family: var(--one-font-heading);
	font-size: var(--one-font-size-lg, 18px);
	margin: 0 0 var(--one-spacing-xs, 4px);
}

.oh-service-card__title a {
	color: #fff;
	text-decoration: none;
}

.oh-service-card__title a:hover {
	color: var(--one-bronze, #B08D57);
}

.oh-service-card__excerpt {
	font-size: var(--one-font-size-sm, 14px);
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 30px;
	line-height: 1.5;
}

.oh-service-card__link {
	display: inline-flex;
	align-items: center;
	font-family: var(--one-font-nav, 'JetBrains Mono', monospace);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--one-obsidian, #1C1C1E);
	text-decoration: none;
	background: var(--one-bronze, #B08D57);
	padding: 8px 16px;
	border-radius: 0;
	transition: background-color var(--one-transition-fast), color var(--one-transition-fast);
}

.oh-service-card__link:hover {
	text-decoration: none;
	background: #fff;
	color: var(--one-obsidian, #1C1C1E);
}

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

.oh-service-cta {
	background: var(--one-primary);
	color: #fff;
	padding: var(--one-spacing-2xl, 48px) 0;
	text-align: center;
}

.oh-service-cta__title {
	color: #fff;
	margin: 0 0 var(--one-spacing-sm, 8px);
}

.oh-service-cta__text {
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 var(--one-spacing-lg, 24px);
	font-size: var(--one-font-size-lg, 18px);
}

.oh-service-cta .oh-btn--primary {
	background: #fff;
	color: var(--one-primary);
	border-color: #fff;
}

.oh-service-cta .oh-btn--primary:hover {
	background: var(--one-light-bg);
	border-color: var(--one-light-bg);
}

/* ==========================================================================
   Archive Hub: Hero
   ========================================================================== */

.oh-hub-hero,
.oh-tax-hero {
	background: var(--one-light-bg, #f5f5f5);
	/* #primary supplies fixed-nav clearance; extra top padding clears header overlap */
	padding-top: clamp(56px, 7vw, 96px);
	padding-bottom: var(--one-spacing-2xl, 48px);
}

.oh-hub-hero__breadcrumb,
.oh-tax-hero__breadcrumb {
	font-size: var(--one-font-size-sm, 14px);
	margin-bottom: var(--one-spacing-md, 16px);
}

.oh-hub-hero__breadcrumb a,
.oh-tax-hero__breadcrumb a {
	color: var(--one-primary);
	text-decoration: none;
}

.oh-hub-hero__breadcrumb span[aria-hidden],
.oh-tax-hero__breadcrumb span[aria-hidden] {
	margin: 0 6px;
	color: var(--one-border);
}

.oh-hub-hero__title,
.oh-tax-hero__title {
	margin: 0 0 var(--one-spacing-sm, 8px);
}

.oh-hub-hero__subtitle,
.oh-tax-hero__subtitle {
	font-size: var(--one-font-size-lg, 18px);
	color: var(--one-text);
	margin: 0 0 var(--one-spacing-lg, 24px);
}

/* ==========================================================================
   Archive: Section Grid Layout
   ========================================================================== */

.oh-archive-section {
	padding: var(--one-spacing-2xl, 48px) 0;
}

.oh-archive-section + .oh-archive-section {
	border-top: 1px solid var(--one-border);
}

.oh-archive-section__title {
	margin: 0 0 var(--one-spacing-lg, 24px);
}

.oh-archive-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--one-spacing-lg, 24px);
}

@media (min-width: 768px) {
	.oh-archive-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.oh-archive-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Service card staggered entrance animation */
.oh-archive-grid .oh-service-card,
.oh-service-related__grid .oh-service-card,
.oh-office-services__grid .oh-service-card {
	opacity: 0;
	transform: translateY(20px);
	animation: serviceCardIn 400ms ease forwards;
}

.oh-archive-grid .oh-service-card:nth-child(1) { animation-delay: 50ms; }
.oh-archive-grid .oh-service-card:nth-child(2) { animation-delay: 100ms; }
.oh-archive-grid .oh-service-card:nth-child(3) { animation-delay: 150ms; }
.oh-archive-grid .oh-service-card:nth-child(4) { animation-delay: 200ms; }
.oh-archive-grid .oh-service-card:nth-child(5) { animation-delay: 250ms; }
.oh-archive-grid .oh-service-card:nth-child(6) { animation-delay: 300ms; }
.oh-archive-grid .oh-service-card:nth-child(7) { animation-delay: 350ms; }
.oh-archive-grid .oh-service-card:nth-child(8) { animation-delay: 400ms; }
.oh-archive-grid .oh-service-card:nth-child(9) { animation-delay: 450ms; }
.oh-archive-grid .oh-service-card:nth-child(10) { animation-delay: 500ms; }
.oh-archive-grid .oh-service-card:nth-child(11) { animation-delay: 550ms; }
.oh-archive-grid .oh-service-card:nth-child(12) { animation-delay: 600ms; }
.oh-archive-grid .oh-service-card:nth-child(13) { animation-delay: 650ms; }
.oh-archive-grid .oh-service-card:nth-child(14) { animation-delay: 700ms; }
.oh-archive-grid .oh-service-card:nth-child(15) { animation-delay: 750ms; }

.oh-service-related__grid .oh-service-card:nth-child(1) { animation-delay: 100ms; }
.oh-service-related__grid .oh-service-card:nth-child(2) { animation-delay: 200ms; }
.oh-service-related__grid .oh-service-card:nth-child(3) { animation-delay: 300ms; }

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

@media (prefers-reduced-motion: reduce) {
	.oh-archive-grid .oh-service-card,
	.oh-service-related__grid .oh-service-card,
	.oh-office-services__grid .oh-service-card {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

/* ==========================================================================
   Taxonomy Archive: Related
   ========================================================================== */

.oh-tax-grid-section {
	padding: var(--one-spacing-2xl, 48px) 0;
}

.oh-tax-related {
	background: var(--one-light-bg, #f5f5f5);
	padding: var(--one-spacing-xl, 32px) 0;
}

.oh-tax-related__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--one-spacing-xl, 32px);
}

@media (min-width: 768px) {
	.oh-tax-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.oh-tax-related__heading {
	font-size: var(--one-font-size-base, 16px);
	font-weight: 700;
	margin: 0 0 var(--one-spacing-sm, 8px);
	color: var(--one-text);
}

.oh-tax-related__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.oh-tax-related__list li a {
	color: var(--one-text);
	text-decoration: none;
	font-size: var(--one-font-size-sm, 14px);
	line-height: 2;
}

.oh-tax-related__list li a:hover {
	color: var(--one-primary);
}

.oh-tax-related__list li a span {
	opacity: 0.5;
	margin-left: 4px;
}

/* ==========================================================================
   Services Grid (One Services Grid layout — taxonomy / theme templates)
   ========================================================================== */

.oh-services-grid-section {
	padding: var(--one-spacing-2xl, 48px) 0 var(--one-spacing-3xl, 64px);
}

.oh-services-grid-section .one-services-grid__grid {
	--one-sg-columns: 4;
}

@media (max-width: 1024px) {
	.oh-services-grid-section .one-services-grid__grid {
		--one-sg-columns: 2;
	}
}

@media (max-width: 767px) {
	.oh-services-grid-section .one-services-grid__grid {
		--one-sg-columns: 1;
	}
}
