/*
Theme Name: Theosis
Theme URI: https://theosis.site/
Author: Theosis App
Author URI: https://theosis.site/
Description: A Byzantine and Greek Orthodox-inspired theme for the Theosis prayer app. Features a warm parchment background, deep Byzantine blue, rich gold accents, and the elegant EB Garamond serif typeface. Ancient devotion, reimagined.
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theosis
Tags: one-column, custom-colors, custom-menu, custom-logo, featured-images, theme-options
*/

/* ─── Variables ─────────────────────────────────────── */

:root {
	--parchment: #fdf6e3;
	--byzantine-blue: #1a365d;
	--byzantine-gold: #c5a044;
	--gold-dark: #b08d3a;
	--accent-red: #8b0000;
}

/* ─── Reset & Base ──────────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background-color: var(--parchment);
	font-family: 'EB Garamond', serif;
	color: var(--byzantine-blue);
	line-height: 1.6;
	font-size: 1.125rem;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: var(--byzantine-gold);
	text-decoration: none;
	text-decoration-thickness: 1px;
	text-underline-offset: .15em;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--gold-dark);
}

img {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--byzantine-blue);
	line-height: 1.2;
	margin-top: 0;
}

p {
	text-wrap: pretty;
}

/* ─── Layout ────────────────────────────────────────── */

.site-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.site-main {
	flex-grow: 1;
}

/* ─── Header ────────────────────────────────────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background-color: rgba(253, 246, 227, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(197, 160, 68, 0.15);
}

.site-header .site-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.site-branding {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-branding a {
	color: var(--byzantine-blue);
	text-decoration: none;
}

.site-branding a:hover {
	color: var(--byzantine-gold);
}

/* ─── Navigation ────────────────────────────────────── */

.main-navigation {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 2rem;
}

.main-navigation a {
	color: var(--byzantine-blue);
	font-weight: 500;
	font-size: 1rem;
	text-decoration: none;
	transition: color 0.2s ease;
}

.main-navigation a:hover {
	color: var(--byzantine-gold);
}

/* ─── Buttons ───────────────────────────────────────── */

.btn-gold {
	display: inline-block;
	background-color: var(--byzantine-gold);
	color: var(--byzantine-blue);
	font-family: 'EB Garamond', serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	padding: 0.6rem 1.5rem;
	font-size: 0.85rem;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out;
}

.btn-gold:hover {
	background-color: var(--gold-dark);
	color: var(--byzantine-blue);
}

.btn-gold-lg {
	padding: 1rem 2.5rem;
	font-size: 1.1rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-gold-xl {
	padding: 1rem 3rem;
	font-size: 1.25rem;
}

/* ─── Hero Section ──────────────────────────────────── */

.hero-section {
	padding: 4rem 0 5rem;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.hero-image-wrap {
	display: flex;
	justify-content: center;
}

.hero-image-wrap img {
	border-radius: 2rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	border: 6px solid rgba(26, 54, 93, 0.1);
	max-width: 380px;
	width: 100%;
}

.hero-content {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.hero-content h1 {
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 0;
}

.hero-content h1 em {
	color: var(--byzantine-gold);
}

.hero-quote {
	font-size: 1.3rem;
	font-style: italic;
	opacity: 0.9;
	line-height: 1.5;
}

.hero-attribution {
	font-size: 1.1rem;
}

.hero-description {
	font-size: 1.1rem;
	line-height: 1.7;
	max-width: 520px;
}

/* ─── Features Section ──────────────────────────────── */

.features-section {
	padding: 5rem 0;
}

.section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.section-header h2 {
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	font-weight: 700;
	margin-bottom: 1rem;
}

.gold-divider {
	width: 6rem;
	height: 3px;
	background-color: var(--byzantine-gold);
	margin: 0 auto;
}

.features-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

.feature-card {
	background-color: var(--byzantine-blue);
	color: var(--parchment);
	padding: 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.5rem;
}

.feature-icon {
	width: 6rem;
	height: 6rem;
	border-radius: 50%;
	background-color: rgba(253, 246, 227, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.feature-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.feature-card h3 {
	color: var(--byzantine-gold);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-size: 1.5rem;
	margin-bottom: 0;
}

.feature-card p {
	opacity: 0.9;
	font-weight: 300;
	line-height: 1.7;
	margin: 0;
}

/* ─── CTA Section ───────────────────────────────────── */

.cta-section {
	padding: 6rem 0;
	text-align: center;
}

.cta-section h2 {
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight: 700;
	font-style: italic;
	margin-bottom: 1rem;
}

.cta-section p {
	font-size: 1.15rem;
	opacity: 0.8;
	margin-bottom: 2rem;
}

/* ─── Footer ────────────────────────────────────────── */

.site-footer {
	background-color: var(--byzantine-blue);
	color: var(--parchment);
	padding: 3rem 0;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 2rem;
}

.footer-brand {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--byzantine-gold);
}

.footer-tagline {
	font-size: 0.875rem;
	font-style: italic;
	opacity: 0.6;
	margin-top: 0.25rem;
}

.footer-links {
	display: flex;
	gap: 2rem;
}

.footer-links a {
	color: var(--parchment);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-weight: 500;
	text-decoration: none;
}

.footer-links a:hover {
	color: var(--byzantine-gold);
}

.footer-copyright {
	font-size: 0.8rem;
	opacity: 0.5;
}

/* ─── Page & Post Content ───────────────────────────── */

.content-area {
	padding: 3rem 0 5rem;
}

.entry-header {
	margin-bottom: 2rem;
}

.entry-title {
	font-size: clamp(2rem, 4vw, 3rem);
}

.entry-title a {
	color: var(--byzantine-blue);
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--byzantine-gold);
}

.entry-meta {
	font-size: 0.9rem;
	opacity: 0.7;
	margin-bottom: 1.5rem;
}

.entry-content {
	max-width: 720px;
	line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 2rem;
}

.entry-content blockquote {
	border-left: 3px solid var(--byzantine-gold);
	padding-left: 1.5rem;
	margin-left: 0;
	font-style: italic;
}

.entry-content img {
	border-radius: 0.5rem;
}

/* Post navigation */
.post-navigation {
	display: flex;
	justify-content: space-between;
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(197, 160, 68, 0.2);
}

/* Archive / Blog loop */
.post-summary {
	margin-bottom: 3rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid rgba(197, 160, 68, 0.2);
}

.post-summary:last-child {
	border-bottom: none;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}

.pagination a,
.pagination span {
	padding: 0.5rem 1rem;
	font-size: 1rem;
}

/* ─── 404 ───────────────────────────────────────────── */

.error-404 {
	text-align: center;
	padding: 6rem 0;
}

.error-404 h1 {
	font-size: 3rem;
}

.error-404 p {
	font-size: 1.25rem;
}

/* ─── WordPress defaults ────────────────────────────── */

.alignleft {
	float: left;
	margin-right: 1.5rem;
}

.alignright {
	float: right;
	margin-left: 1.5rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.875rem;
	opacity: 0.7;
	text-align: center;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ─── Responsive ────────────────────────────────────── */

@media (max-width: 768px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-image-wrap {
		order: -1;
	}

	.hero-image-wrap img {
		max-width: 280px;
	}

	.features-grid {
		grid-template-columns: 1fr;
	}

	.footer-inner {
		flex-direction: column;
		text-align: center;
	}

	.footer-links {
		justify-content: center;
	}

	.main-navigation {
		display: none;
	}

	.site-header .site-container {
		justify-content: center;
	}
}