/* ==========================================================================
   Reusable Elementor Theme — base styles
   Kept deliberately minimal and low-specificity so nothing here overrides
   Elementor's own widget/section CSS. Only affects theme chrome
   (header/footer) and non-Elementor content (blog posts, archives, 404).
   ========================================================================== */

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--ret-text, #1f2937);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
}

a {
	color: var(--ret-accent, #2563eb);
}

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

/* Simple container — only used by THIS theme's own templates,
   never wraps Elementor-built content. Width is set from the Customizer. */
.ret-container {
	max-width: var(--ret-container-width, 1140px);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
	border-bottom: 1px solid #e5e7eb;
	padding: 16px 0;
}
.site-header .ret-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}
.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
	color: var(--ret-text, #1f2937);
}
.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
}
.main-navigation a {
	text-decoration: none;
	color: var(--ret-text, #1f2937);
}
.main-navigation a:hover {
	color: var(--ret-accent, #2563eb);
}

/* ---- Footer ---- */
.site-footer {
	border-top: 1px solid #e5e7eb;
	padding: 32px 0;
	margin-top: 40px;
	font-size: 0.9rem;
}
.footer-navigation ul {
	list-style: none;
	display: flex;
	gap: 16px;
	padding: 0;
	margin: 0 0 12px;
}

/* ---- Non-Elementor content (blog posts, pages without Elementor) ---- */
.ret-page-content,
.ret-single-post {
	padding: 40px 20px;
}
.page-title,
.entry-title {
	font-size: 2rem;
	margin-bottom: 0.5em;
}
.entry-meta {
	color: #6b7280;
	font-size: 0.9rem;
	margin-bottom: 20px;
}

/* ---- Archive grid ---- */
.ret-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	padding: 20px 0;
}
.ret-post-card {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 16px;
}
.ret-post-card-thumb img {
	border-radius: 6px;
	margin-bottom: 12px;
}

/* ---- Buttons ---- */
.ret-button {
	display: inline-block;
	background: var(--ret-accent, #2563eb);
	color: #fff;
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none;
}

/* ---- 404 ---- */
.ret-404 {
	text-align: center;
	padding: 80px 20px;
}

/* ---- Comments ---- */
.ret-comments {
	padding: 20px;
}

/* ---- Mobile nav toggle (used by main.js) ---- */
.menu-toggle {
	display: none;
	background: none;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 8px 14px;
	cursor: pointer;
}
@media (max-width: 767px) {
	.menu-toggle {
		display: inline-block;
	}
	.main-navigation ul {
		flex-direction: column;
		gap: 8px;
		display: none;
		width: 100%;
	}
	.main-navigation.is-open ul {
		display: flex;
	}
}
