/**
 * Generic Page Styles
 *
 * Base styles for all content pages (About, FAQ, Services, etc.)
 * These provide refined typography and spacing optimized for reading.
 *
 * Applied to: .page-template-default (standard page template, excludes homepage)
 */

/* ==========================================================================
   Page Content Container
   Common padding for all custom page templates.
   Usage: Add "page-content" class alongside page-specific class.
   Example: class="page-content about-page"
   ========================================================================== */

.page-content {
	padding: var(--page-top-padding) 0 var(--page-bottom-padding);
}

@media (max-width: 767px) {
	.page-content {
		padding-left: var(--content-padding-mobile);
		padding-right: var(--content-padding-mobile);
	}
}

/* ==========================================================================
   Page Title
   ========================================================================== */

.page-template-default:not(.home) .wp-block-post-title {
	text-align: center;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	padding-top: var(--page-top-padding);
	margin-bottom: 1.5rem;
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.page-template-default:not(.home) .entry-content {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: var(--section-padding);
}

/* ==========================================================================
   Headings
   Refined sizes for reading context (smaller than marketing pages)
   ========================================================================== */

.page-template-default:not(.home) .entry-content h2 {
	font-size: clamp(1.25rem, 3vw, 1.35rem);
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.page-template-default:not(.home) .entry-content h3 {
	font-size: clamp(1.05rem, 2.5vw, 1.15rem);
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	line-height: 1.4;
}

.page-template-default:not(.home) .entry-content h4 {
	font-size: 1rem;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

/* ==========================================================================
   Body Text
   ========================================================================== */

.page-template-default:not(.home) .entry-content p {
	line-height: 1.7;
	margin-bottom: 1rem;
}

/* Intro paragraph - first paragraph after title */
.page-template-default:not(.home) .entry-content > p:first-child {
	font-size: 1.1rem;
	color: var(--wp--preset--color--text);
	margin-bottom: 1.5rem;
}

/* ==========================================================================
   Lists
   ========================================================================== */

.page-template-default:not(.home) .entry-content ul,
.page-template-default:not(.home) .entry-content ol {
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
}

.page-template-default:not(.home) .entry-content li {
	margin-bottom: 0.5rem;
	line-height: 1.6;
}

.page-template-default:not(.home) .entry-content li:last-child {
	margin-bottom: 0;
}

/* Nested lists */
.page-template-default:not(.home) .entry-content li ul,
.page-template-default:not(.home) .entry-content li ol {
	margin-top: 0.5rem;
	margin-bottom: 0;
}

/* ==========================================================================
   Links
   ========================================================================== */

.page-template-default:not(.home) .entry-content a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-decoration-color: rgba(223, 59, 38, 0.4);
	text-underline-offset: 2px;
	border-bottom: 1px solid transparent;
	transition: border-color var(--transition-fast, 0.2s ease), text-decoration-color var(--transition-fast, 0.2s ease);
}

.page-template-default:not(.home) .entry-content a:hover {
	border-bottom-color: currentColor;
	text-decoration-color: currentColor;
}

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

@media (max-width: 767px) {
	.page-template-default:not(.home) .wp-block-post-title {
		padding-left: var(--content-padding-mobile, 1rem);
		padding-right: var(--content-padding-mobile, 1rem);
	}

	.page-template-default:not(.home) .entry-content {
		padding-left: var(--content-padding-mobile, 1rem);
		padding-right: var(--content-padding-mobile, 1rem);
	}

	.page-template-default:not(.home) .entry-content h2 {
		margin-top: 2rem;
	}

	.page-template-default:not(.home) .entry-content h3 {
		margin-top: 1.5rem;
	}
}
