/**
 * Generic Page Styles
 *
 * Hero section, breadcrumbs, and editor content for generic pages
 * (pages without a slug-specific template).
 *
 * BEM namespace: .uartik-page__*
 * Uses CSS variables from custom.css.
 *
 * @package UARTIK
 * @since 1.5.0
 */

/* ─── Container ─── */

.uartik-page__container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 var(--uartik-spacing-xl);
	box-sizing: border-box;
}

/* ─── Section base ─── */

.uartik-page__section {
	padding: 80px 0;
}

/* ─── Hero ─── */

.uartik-page__hero {
	position: relative;
	min-height: 340px;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--uartik-hp-bg-dark, #2D2D2D);
}

.uartik-page__hero-bg {
	position: absolute;
	inset: 0;
	background-color: var(--uartik-hp-bg-dark, #2D2D2D);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23c06c84' stroke-opacity='0.08' stroke-width='0.8'%3E%3Cpath d='M40 0v40H0m40 0h40M40 40v40M40 40L0 0m40 40L80 0m-40 40L0 80m40-40l40 40'/%3E%3Cpath d='M20 0l20 20 20-20M80 20L60 40l20 20M60 80L40 60 20 80M0 60l20-20L0 20'/%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.6;
}

.uartik-page__hero .uartik-page__container {
	position: relative;
	z-index: 1;
	text-align: center;
	padding-top: 60px;
	padding-bottom: 60px;
}

/* ─── Breadcrumb ─── */

.uartik-page__breadcrumb {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 20px;
}

.uartik-page__breadcrumb a {
	color: rgba(255, 255, 255, 0.6);
	text-decoration: none;
	transition: color 0.2s;
}

.uartik-page__breadcrumb a:hover {
	color: #fff;
}

.uartik-page__breadcrumb-sep {
	display: inline-block;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	margin: 0 10px;
	vertical-align: middle;
}

.uartik-page__breadcrumb-current {
	color: rgba(255, 255, 255, 0.8);
}

/* ─── Hero titles ─── */

.uartik-page__hero-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 16px;
	line-height: 1.2;
}

.uartik-page__hero-subtitle {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	max-width: 550px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

/* ─── Editor Content ─── */

.uartik-page__section--content {
	padding: 60px 0;
}

.uartik-page__editor-content {
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--uartik-text, #2D2D2D);
}

.uartik-page__editor-content > *:first-child {
	margin-top: 0;
}

.uartik-page__editor-content > *:last-child {
	margin-bottom: 0;
}

.uartik-page__editor-content h2 {
	font-size: 1.35rem;
	margin: 48px 0 20px;
}

.uartik-page__editor-content h3 {
	font-size: 1.1rem;
	margin: 32px 0 12px;
}

/* WooCommerce order pages — reset editor-content heading margins */
.uartik-page__editor-content .woocommerce-order h2,
.uartik-page__editor-content .woocommerce-order h3 {
	font-size: 1.1rem;
	margin: 0 0 12px;
}

/* ─── CTA Banner ─── */

.uartik-page__section--cta {
	padding: 0;
	background: var(--uartik-bg-light, #FAF5F0);
	border-bottom: 1px solid var(--uartik-border, #E5DED6);
}

.uartik-page__cta-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 36px 0;
}

.uartik-page__cta-content {
	flex: 1;
	min-width: 0;
}

.uartik-page__cta-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--uartik-text, #2D2D2D);
	margin: 0 0 8px;
}

.uartik-page__cta-text {
	font-size: 0.95rem;
	color: var(--uartik-text-light, #7A7A7A);
	margin: 0;
	line-height: 1.6;
	max-width: 680px;
}

.uartik-page__cta-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 14px 32px;
	background: var(--uartik-primary, #C06C84);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.2s;
	white-space: nowrap;
}

.uartik-page__cta-btn:hover {
	background: var(--uartik-primary-hover, #9E5268);
	color: #fff;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
	.uartik-page__container {
		padding: 0 var(--uartik-spacing-md);
	}

	.uartik-page__hero {
		min-height: 280px;
	}

	.uartik-page__hero-title {
		font-size: 1.8rem;
	}

	.uartik-page__hero-subtitle {
		font-size: 1rem;
	}

	.uartik-page__section {
		padding: 60px 0;
	}

	.uartik-page__cta-box {
		flex-direction: column;
		text-align: center;
		gap: 20px;
		padding: 28px 0;
	}

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

@media (max-width: 480px) {
	.uartik-page__hero-title {
		font-size: 1.5rem;
	}
}
