/*
 * Conscious Community theme main stylesheet.
 * Landing page styles for conscious-community theme.
 */

:root {
	--color-bg: #fafaf7;
	--color-text: #2c2c2c;
	--color-accent: #4a7c59;
	--color-accent-dark: #3a6148;
	--color-muted: #6b6b6b;
	--color-cream: #f5f2eb;
	--color-warm: #e8e2d5;
	--color-hero-overlay: rgba(42, 62, 52, 0.65);
	--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
	--font-heading: Georgia, 'Times New Roman', serif;
	--container-width: 1200px;
	--transition: 0.3s ease;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Header */
.site-header {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding: 1rem 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
}

.site-title {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--color-text);
	text-decoration: none;
	letter-spacing: -0.01em;
}

.site-title:hover {
	color: var(--color-accent);
}

.nav-menu {
	display: flex;
	gap: 2rem;
	list-style: none;
}

.nav-menu a {
	color: var(--color-muted);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	transition: color var(--transition);
}

.nav-menu a:hover {
	color: var(--color-accent);
}

/* Hero Section */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 4rem 1.5rem;
	background: linear-gradient(135deg, #2a3e34 0%, #4a7c59 50%, #5d8a6b 100%);
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
	pointer-events: none;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
	background-size: 50px 50px;
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
}

.hero-title {
	font-family: var(--font-heading);
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 400;
	color: #fff;
	margin-bottom: 1.5rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.hero-subtitle {
	font-size: clamp(1.1rem, 2.5vw, 1.35rem);
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 2.5rem;
	line-height: 1.7;
	font-weight: 300;
}

.btn {
	display: inline-block;
	padding: 0.9rem 2rem;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: 50px;
	transition: all var(--transition);
	cursor: pointer;
	border: none;
	font-family: inherit;
}

.btn-hero {
	background: #fff;
	color: var(--color-accent-dark);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
	background: #fafaf7;
}

.hero-scroll {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
}

.scroll-down {
	display: block;
	width: 30px;
	height: 50px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 15px;
	position: relative;
}

.scroll-arrow {
	position: absolute;
	top: 10px;
	left: 50%;
	width: 6px;
	height: 6px;
	margin-left: -3px;
	background: rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
	0%, 100% { top: 10px; opacity: 1; }
	50% { top: 30px; opacity: 0.3; }
}

/* Sections */
.section {
	padding: 5rem 0;
}

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

.section-title {
	font-family: var(--font-heading);
	font-size: clamp(1.8rem, 4vw, 2.5rem);
	font-weight: 400;
	color: var(--color-text);
	margin-bottom: 1rem;
	letter-spacing: -0.02em;
}

.section-subtitle {
	font-size: 1.1rem;
	color: var(--color-muted);
	font-weight: 300;
}

/* Mission Section */
.mission {
	background: var(--color-cream);
}

.mission-content {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.mission-lead {
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--color-text);
	margin-bottom: 1.5rem;
	line-height: 1.7;
}

.mission-content p {
	color: var(--color-muted);
	margin-bottom: 1.25rem;
	line-height: 1.8;
}

/* Offer Section */
.offer {
	background: var(--color-bg);
}

.offer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 1rem;
}

.offer-card {
	background: #fff;
	padding: 2.5rem 2rem;
	border-radius: 12px;
	text-align: center;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
	transition: all var(--transition);
	border: 1px solid rgba(0, 0, 0, 0.04);
}

.offer-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.offer-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.offer-card-link:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.offer-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 1.5rem;
	color: var(--color-accent);
}

.offer-icon svg {
	width: 100%;
	height: 100%;
}

.offer-title {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 400;
	color: var(--color-text);
	margin-bottom: 1rem;
}

.offer-desc {
	font-size: 0.95rem;
	color: var(--color-muted);
	line-height: 1.7;
}

/* Voices Section */
.voices {
	background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
	color: #fff;
}

.voice-quote {
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
	font-style: italic;
}

.voice-quote p {
	font-family: var(--font-heading);
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.voice-quote cite {
	display: block;
	font-size: 0.95rem;
	font-style: normal;
	opacity: 0.9;
}

/* Join CTA Section */
.join-cta {
	background: var(--color-bg);
	padding: 6rem 0;
}

.join-content {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.join-title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 400;
	color: var(--color-text);
	margin-bottom: 1rem;
	letter-spacing: -0.02em;
}

.join-text {
	font-size: 1.1rem;
	color: var(--color-muted);
	margin-bottom: 2rem;
	line-height: 1.7;
}

.join-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn-primary {
	background: var(--color-accent);
	color: #fff;
}

.btn-primary:hover {
	background: var(--color-accent-dark);
	transform: translateY(-2px);
}

.btn-outline {
	background: transparent;
	color: var(--color-accent);
	border: 2px solid var(--color-accent);
}

.btn-outline:hover {
	background: var(--color-accent);
	color: #fff;
}

/* Footer */
.site-footer {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding: 2rem 0;
	margin-top: 0;
	color: var(--color-muted);
	text-align: center;
	font-size: 0.9rem;
}

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

.footer-widgets {
	flex: 1;
}

.footer-navigation {
	margin-bottom: 1rem;
}

.site-info {
	width: 100%;
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
	.site-header .container {
		flex-direction: column;
		gap: 1rem;
	}

	.nav-menu {
		gap: 1rem;
	}

	.hero {
		min-height: 90vh;
		padding: 6rem 1.5rem;
	}

	.section {
		padding: 3.5rem 0;
	}

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

	.join-actions {
		flex-direction: column;
	}

	.join-actions .btn {
		width: 100%;
	}
}

/* Entrance animations */
@keyframes fade-in-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero-content {
	animation: fade-in-up 0.8s ease-out;
}

.offer-card {
	opacity: 0;
	animation: fade-in-up 0.6s ease-out forwards;
}

.offer-card:nth-child(1) { animation-delay: 0.1s; }
.offer-card:nth-child(2) { animation-delay: 0.2s; }
.offer-card:nth-child(3) { animation-delay: 0.3s; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	* {
		animation: none !important;
		transition: none !important;
	}
	
	html {
		scroll-behavior: auto;
	}
}

/* Focus styles */
a:focus,
.btn:focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Inner Page Styles */
.page-content {
	min-height: 60vh;
}

.page-hero {
	background: linear-gradient(135deg, #2a3e34 0%, #3a6148 100%);
	padding: 4rem 0 3rem;
	text-align: center;
}

.page-title {
	font-family: var(--font-heading);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 400;
	color: #fff;
	margin: 0;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.page-content .entry-thumbnail {
	margin: 2rem 0;
	border-radius: 8px;
	overflow: hidden;
}

.page-content .entry-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.entry-content {
	max-width: 720px;
	margin: 0 auto;
	padding: 2.5rem 0 4rem;
	color: var(--color-text);
}

.entry-content h2 {
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 400;
	margin: 2.5rem 0 1rem;
	color: var(--color-text);
	letter-spacing: -0.02em;
}

.entry-content h3 {
	font-family: var(--font-heading);
	font-size: 1.35rem;
	font-weight: 400;
	margin: 2rem 0 0.75rem;
	color: var(--color-accent-dark);
}

.entry-content p {
	line-height: 1.8;
	margin-bottom: 1.25rem;
	font-size: 1.05rem;
}

.entry-content a {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content a:hover {
	color: var(--color-accent-dark);
}

.entry-content ul,
.entry-content ol {
	margin: 1rem 0 1.5rem 1.5rem;
	line-height: 1.8;
}

.entry-content li {
	margin-bottom: 0.5rem;
	font-size: 1.05rem;
}

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

/* Fallback for index.php (blog) */
.site-main:not(.landing-page):not(.page-content) {
	padding: 3rem 0;
	min-height: 60vh;
}

.site-main:not(.landing-page):not(.page-content) .entry-header {
	margin-bottom: 1.5rem;
}

.site-main:not(.landing-page):not(.page-content) .entry-title {
	font-family: var(--font-heading);
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.site-main:not(.landing-page):not(.page-content) .entry-title a {
	color: inherit;
	text-decoration: none;
}

.site-main:not(.landing-page):not(.page-content) .entry-meta {
	color: var(--color-muted);
	font-size: 0.875rem;
}

.site-main:not(.landing-page):not(.page-content) .entry-thumbnail {
	margin: 1.5rem 0;
}

.site-main:not(.landing-page):not(.page-content) .entry-thumbnail img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

/* Page subtitle */
.page-subtitle {
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.15rem;
	margin-top: 0.75rem;
	font-weight: 300;
}

/* Events Grid */
.events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	padding: 3rem 0;
}

.event-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.04);
	transition: all var(--transition);
}

.event-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.event-card-body {
	padding: 2rem;
}

.event-category {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--cat-color, var(--color-accent));
	margin-bottom: 0.75rem;
}

.event-category-hero {
	font-size: 0.85rem;
	margin-bottom: 1rem;
}

.event-title {
	font-family: var(--font-heading);
	font-size: 1.4rem;
	font-weight: 400;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.event-title a {
	color: var(--color-text);
	text-decoration: none;
}

.event-title a:hover {
	color: var(--color-accent);
}

.event-meta {
	margin-bottom: 1.25rem;
}

.event-meta-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--color-muted);
	margin-bottom: 0.5rem;
}

.event-meta-item svg {
	flex-shrink: 0;
	opacity: 0.6;
}

.event-meta-item em {
	font-style: normal;
	margin-left: 0.25rem;
}

.event-excerpt {
	font-size: 0.95rem;
	color: var(--color-muted);
	line-height: 1.7;
	margin-bottom: 1.25rem;
}

.event-link {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--color-accent);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: gap var(--transition);
}

.event-link:hover {
	gap: 0.7rem;
	color: var(--color-accent-dark);
}

/* Single Event */
.event-single-hero {
	padding: 3rem 0;
}

.event-hero-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

.hero-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95rem;
}

.hero-meta-item svg {
	flex-shrink: 0;
	opacity: 0.8;
}

.hero-meta-item em {
	font-style: normal;
	margin-left: 0.25rem;
}

.event-footer-nav {
	margin-top: 2rem;
	padding-bottom: 4rem;
}

/* Featured Events on Landing Page */
.featured-events {
	background: var(--color-cream);
}

.section-footer-link {
	text-align: center;
	margin-top: 2rem;
}

.events-empty {
	text-align: center;
	padding: 4rem 0;
}

.events-empty h2 {
	font-family: var(--font-heading);
	font-size: 1.75rem;
	font-weight: 400;
	margin-bottom: 1rem;
}

.events-empty p {
	color: var(--color-muted);
}

@media (max-width: 768px) {
	.page-hero {
		padding: 3rem 0 2rem;
	}

	.entry-content {
		padding: 1.5rem 0 3rem;
	}

	.events-grid {
		grid-template-columns: 1fr;
		padding: 2rem 0;
	}

	.event-hero-meta {
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
	}
}
