/**
 * Zayn Theme — Base styles.
 *
 * Elementor handles all visual design. These are sensible resets
 * and fallback styles for when no Elementor template is assigned.
 *
 * @package Zayn
 * @since   1.0.0
 */

/* ---------- Reset ---------- */

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

body {
	margin: 0;
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
		Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
}

a {
	color: #0073aa;
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

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

/* ---------- Fallback layout ---------- */

.site-main {
	max-width: 960px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

.site-main article {
	margin-bottom: 2rem;
}

.entry-title {
	margin: 0 0 0.5rem;
	font-size: 2rem;
	line-height: 1.3;
}

h2.entry-title {
	font-size: 1.5rem;
}

.entry-title a {
	color: inherit;
}

.entry-title a:hover {
	text-decoration: none;
	color: #0073aa;
}

.entry-content {
	margin-bottom: 1.5rem;
}

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

.page-title {
	margin: 0;
}

/* ---------- Fallback header ---------- */

.site-header {
	border-bottom: 1px solid #e0e0e0;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 960px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-branding .custom-logo {
	max-height: 40px;
	width: auto;
}

.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #333;
	text-decoration: none;
}

.site-title:hover {
	color: #0073aa;
	text-decoration: none;
}

.main-navigation ul {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	font-size: 0.9375rem;
	color: #333;
}

.main-navigation a:hover {
	color: #0073aa;
}

/* ---------- Fallback footer ---------- */

.site-footer {
	border-top: 1px solid #e0e0e0;
	margin-top: 2rem;
}

.site-footer__inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	margin-bottom: 1.5rem;
}

.footer-navigation ul {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	justify-content: center;
}

.footer-navigation a {
	font-size: 0.875rem;
	color: #555;
}

.site-info {
	text-align: center;
	font-size: 0.8125rem;
	color: #888;
}

/* ---------- Elementor overrides ---------- */

body.elementor-template-canvas {
	overflow-x: hidden;
}

body.elementor-page .site-main {
	max-width: none;
	padding: 0;
}

body.elementor-page .site-main .entry-header {
	display: none;
}

body.elementor-page .site-header {
	display: none;
}

/* ---------- 404 fallback ---------- */

.error-404 {
	text-align: center;
	padding: 4rem 1.5rem;
}

/* ---------- Comments ---------- */

.comments-area {
	max-width: 960px;
	margin: 2rem auto;
	padding: 0 1.5rem;
}

.comments-title {
	font-size: 1.25rem;
	margin-bottom: 1.5rem;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .comment {
	padding: 1rem 0;
	border-bottom: 1px solid #eee;
}

.comment-list .children {
	list-style: none;
	padding-left: 2rem;
}

.comment-body .comment-meta {
	font-size: 0.875rem;
	color: #666;
	margin-bottom: 0.5rem;
}

.comment-body .comment-content p:last-child {
	margin-bottom: 0;
}

.no-comments {
	font-style: italic;
	color: #888;
}

/* ---------- Post meta ---------- */

.entry-meta {
	font-size: 0.875rem;
	color: #666;
	margin-bottom: 1rem;
}

.entry-meta span + span::before {
	content: "\00b7";
	margin: 0 0.5rem;
}

.tags-links {
	font-size: 0.8125rem;
	color: #666;
	margin-top: 1.5rem;
}

/* ---------- Pagination ---------- */

.zayn-pagination {
	margin: 2rem 0;
	text-align: center;
}

.zayn-pagination .page-numbers {
	display: inline-flex;
	gap: 0;
	list-style: none;
	padding: 0;
	margin: 0;
}

.zayn-pagination .page-numbers li {
	margin: 0;
}

.zayn-pagination .page-numbers a,
.zayn-pagination .page-numbers span {
	display: inline-block;
	padding: 0.4rem 0.75rem;
	border: 1px solid #ddd;
	margin-left: -1px;
	font-size: 0.875rem;
	color: #0073aa;
	text-decoration: none;
}

.zayn-pagination .page-numbers .current {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.zayn-pagination .page-numbers a:hover {
	background: #f0f0f0;
}

/* ---------- Responsive embeds ---------- */

.zayn-responsive-embed {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	max-width: 100%;
	margin-bottom: 1.5rem;
}

.zayn-responsive-embed iframe,
.zayn-responsive-embed object,
.zayn-responsive-embed embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ---------- Full-width template ---------- */

.site-main--full-width {
	max-width: none;
	padding: 2rem 0;
}

/* ---------- Skip link ---------- */

.skip-link:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* ---------- Accessibility ---------- */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
