/*
Theme Name: Pasyalan
Theme URI: https://demo.majesticjungle.com/hit-the-road/
Author: Majestic Jungle (ported to WordPress)
Description: A magazine and travel WordPress theme with a floating header bar, variable-size post grid, three-column footer widgets, and Customizer header/footer code-injection boxes.
Version: 2.0.0
License: MIT
Text Domain: pasyalan
Tags: blog, magazine, travel, featured-images, custom-colors, custom-header, custom-logo
*/

:root {
	--color-primary: #0f2a43;
	--color-accent: #d97706;
	--color-bg: #fafaf9;
	--color-surface: #ffffff;
	--color-text: #111827;
	--color-muted: #6b7280;
	--color-footer-bg: #0b1120;
	--color-footer-text: #e5e7eb;
	--font-display: "Alumni Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { line-height: 1.15; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	color: var(--color-text);
	background: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 1rem;
	color: var(--color-primary);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

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

/* Floating header bar */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(15, 42, 67, 0.08);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 0;
}
.site-branding {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}
.site-branding .custom-logo { width: 40px; height: 40px; }
.site-title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-primary);
	letter-spacing: -0.5px;
	margin: 0;
}
.site-title:hover { text-decoration: none; color: var(--color-accent); }
.site-description {
	font-size: 0.8rem;
	color: var(--color-muted);
	margin: 0;
}

.site-nav { flex: 1 1 100%; }
.nav-menu {
	display: flex;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}
.nav-link {
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-primary);
}
.nav-link:hover { color: var(--color-accent); text-decoration: none; }

.header-search { flex-shrink: 0; }
.header-search form { display: flex; align-items: center; gap: 0.4rem; }
.header-search input[type="search"] {
	font-family: var(--font-body);
	font-size: 0.9rem;
	padding: 0.45rem 0.8rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #fff;
}
.header-search input[type="search"]:focus { outline: none; border-color: var(--color-accent); }
.header-search button {
	font-family: var(--font-display);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-primary);
	background: transparent;
	border: 1px solid var(--color-primary);
	border-radius: 4px;
	padding: 0.45rem 0.8rem;
	cursor: pointer;
}
.header-search button:hover { background: var(--color-primary); color: #fff; }

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0.4rem;
}
.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--color-primary);
	margin: 4px 0;
	border-radius: 2px;
}

/* Home page post grid */
.site-main { padding: 2.5rem 0; }
.front-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}
@media (min-width: 900px) { .front-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .front-grid { grid-template-columns: 1fr 1fr 1fr; } }

.post {
	background: var(--color-surface);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(15, 42, 67, 0.06);
	display: flex;
	flex-direction: column;
	height: 100%;
}
.post.featured { grid-column: 1 / -1; }
@media (min-width: 900px) { .post.featured { grid-column: 1; grid-row: 1 / 3; } }

.post-image {
	width: 100%;
	overflow: hidden;
	background: #e5e7eb;
}
.post.featured .post-image { height: 420px; }
.post:not(.featured) .post-image { height: 260px; }
.post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.post-body {
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.5rem;
}
.tag {
	font-family: var(--font-display);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--color-accent);
	border: 1px solid rgba(217, 119, 6, 0.2);
	padding: 0.15rem 0.55rem;
	border-radius: 3px;
	text-decoration: none;
}
.tag:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.post-title { font-size: 1.125rem; margin-bottom: 0.4rem; }
.post-title a { color: inherit; text-decoration: none; }
.post-title a:hover { text-decoration: underline; }
.post-excerpt { color: var(--color-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.post-meta {
	margin-top: auto;
	display: flex;
	gap: 0.75rem;
	font-size: 0.85rem;
	color: var(--color-muted);
}
.post-meta span + span::before { content: "\2022"; padding-left: 0.5rem; }

.pagination {
	display: flex;
	justify-content: space-between;
	margin-top: 2rem;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.9rem;
}
.pagination a { color: var(--color-primary); text-decoration: none; }
.pagination a:hover { color: var(--color-accent); text-decoration: underline; }

/* Single post */
.single-header { margin-bottom: 1.5rem; }
.single-title { font-size: 2.25rem; margin-bottom: 0.5rem; }
.single-meta { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--color-muted); margin-bottom: 1.5rem; }
.single-meta span + span::before { content: "\2022"; padding-left: 0.5rem; }
.single-content { font-size: 1.05rem; line-height: 1.8; }
.single-content p { margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
	background: var(--color-footer-bg);
	color: var(--color-footer-text);
	margin-top: 3rem;
}
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2.5rem;
	padding: 3rem 0;
}
@media (max-width: 900px) { .footer-widgets { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; } }
.widget { margin: 0; }
.widget h2.widget-title {
	font-family: var(--font-display);
	font-size: 1.125rem;
	color: #fff;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin-bottom: 0.6rem; }
.widget ul li a { color: var(--color-footer-text); opacity: 0.8; text-decoration: none; }
.widget ul li a:hover { opacity: 1; color: var(--color-accent); text-decoration: underline; }

.footer-copyright {
	background: rgba(255, 255, 255, 0.04);
	padding: 1.25rem 0;
	font-size: 0.9rem;
	color: rgba(229, 231, 235, 0.6);
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Mobile */
@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: 280px;
		background: #fff;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
		z-index: 1001;
	}
	.site-nav.open { transform: translateX(0); }
	.nav-menu { flex-direction: column; gap: 0; padding: 1.5rem; }
	.nav-link { padding: 0.9rem 0; border-bottom: 1px solid #f0f0f0; font-size: 1rem; }
	.front-grid { grid-template-columns: 1fr; }
	.post.featured { grid-column: 1; grid-row: auto; }
	.post.featured .post-image { height: 300px; }
	.site-main { padding: 1.5rem 0; }
}
