@font-face {
	font-family: "Cairo";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/cairo-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08FF, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
	--epah-brown: #963800;
	--epah-brown-dark: #6f2a08;
	--epah-gold: #d8ad61;
	--epah-ink: #281c16;
	--epah-muted: #74665e;
	--epah-sand: #f7f2e9;
	--epah-white: #fff;
	--epah-border: #e9dfd1;
	--epah-shadow: 0 14px 40px rgba(67, 42, 26, 0.09);
	--epah-radius: 18px;
	--epah-container: 1240px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--epah-white);
	color: var(--epah-ink);
	font-family: "Cairo", Tahoma, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.9;
	text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: var(--epah-brown);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
	color: var(--epah-brown-dark);
}

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

button,
input,
textarea,
select {
	font: inherit;
}

.site-container {
	width: min(calc(100% - 40px), var(--epah-container));
	margin-inline: auto;
}

.site-content-narrow {
	max-width: 880px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
	top: 10px;
	inset-inline-start: 10px;
	z-index: 99999;
	display: block;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	background: var(--epah-white);
	box-shadow: var(--epah-shadow);
}

.site-topbar {
	background: var(--epah-brown);
	color: var(--epah-white);
}

.site-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	font-size: 14px;
}

.site-topbar a {
	color: inherit;
	text-decoration: none;
}

.site-branding-row {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 106px;
}

.site-branding {
	flex: 0 0 auto;
}

.custom-logo {
	display: block;
	width: auto;
	max-height: 86px;
}

.site-title {
	color: var(--epah-ink);
	font-size: clamp(18px, 2vw, 27px);
	font-weight: 800;
	text-decoration: none;
}

.primary-navigation {
	flex: 1;
}

.primary-menu,
.primary-navigation ul {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 6px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation li {
	position: relative;
}

.primary-navigation a {
	display: block;
	padding-block: 10px;
	color: var(--epah-brown-dark);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
	color: var(--epah-gold);
}

.primary-navigation .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: -18px;
	z-index: 30;
	display: none;
	min-width: 240px;
	padding: 12px 18px;
	background: var(--epah-white);
	border: 1px solid var(--epah-border);
	border-radius: 12px;
	box-shadow: var(--epah-shadow);
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
	display: block;
}

.primary-navigation .sub-menu a {
	padding-block: 7px;
}

.menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 11px;
	background: transparent;
	border: 1px solid var(--epah-border);
	border-radius: 10px;
}

.menu-toggle span[aria-hidden] {
	display: block;
	height: 2px;
	margin-block: 5px;
	background: var(--epah-brown);
}

.site-main {
	min-height: 50vh;
	padding-block: clamp(42px, 7vw, 90px);
}

.epah-elementor-page .site-main {
	padding-block: 0;
}

.epah-elementor-page .page-entry,
.epah-elementor-page .entry-content {
	margin: 0;
}

.entry-title {
	margin: 0 0 24px;
	font-size: clamp(30px, 5vw, 54px);
	line-height: 1.3;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content p {
	margin-block: 0 1.4em;
}

.entry-thumbnail {
	margin-block: 28px;
	overflow: hidden;
	border-radius: var(--epah-radius);
}

.entry-meta {
	color: var(--epah-muted);
	font-size: 14px;
}

.content-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.content-card {
	overflow: hidden;
	background: var(--epah-white);
	border: 1px solid var(--epah-border);
	border-radius: var(--epah-radius);
	box-shadow: 0 8px 28px rgba(67, 42, 26, 0.05);
}

.content-card__image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.content-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 280ms ease;
}

.content-card:hover .content-card__image img {
	transform: scale(1.035);
}

.content-card__body {
	padding: 24px;
}

.content-card__title {
	margin: 8px 0 12px;
	font-size: 22px;
	line-height: 1.5;
}

.content-card__title a {
	color: var(--epah-ink);
	text-decoration: none;
}

.content-card__link,
.button,
.search-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 8px 22px;
	background: var(--epah-brown);
	color: var(--epah-white);
	border: 1px solid var(--epah-brown);
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
}

.content-card__link:hover,
.button:hover,
.search-form button:hover {
	background: var(--epah-brown-dark);
	color: var(--epah-white);
}

.archive-header {
	margin-block-end: 36px;
}

.site-footer {
	background: #24170f;
	color: #f7eee7;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
	padding-block: 64px;
}

.site-footer h2 {
	margin-top: 0;
	color: var(--epah-gold);
	font-size: 22px;
}

.site-footer a {
	color: inherit;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__bottom {
	padding-block: 18px;
	background: #180f0a;
	color: #d5c5ba;
	font-size: 14px;
	text-align: center;
}

.error-404 {
	max-width: 760px;
	text-align: center;
}

.error-code {
	margin: 0;
	color: var(--epah-gold);
	font-size: clamp(90px, 20vw, 220px);
	font-weight: 800;
	line-height: 1;
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 620px;
	margin: 24px auto;
}

.search-form label {
	flex: 1;
}

.search-field,
.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--epah-border);
	border-radius: 10px;
}

@media (max-width: 980px) {
	.content-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.menu-toggle {
		display: block;
		margin-inline-start: auto;
	}

	.primary-navigation {
		position: absolute;
		top: 100%;
		inset-inline: 20px;
		z-index: 50;
		display: none;
		padding: 18px;
		background: var(--epah-white);
		border: 1px solid var(--epah-border);
		border-radius: 14px;
		box-shadow: var(--epah-shadow);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-navigation ul {
		display: block;
	}

	.primary-navigation .sub-menu {
		position: static;
		display: block;
		padding-block: 0;
		box-shadow: none;
		border: 0;
	}

	.site-branding-row {
		position: relative;
	}
}

@media (max-width: 680px) {
	.site-container {
		width: min(calc(100% - 28px), var(--epah-container));
	}

	.site-topbar__inner {
		flex-direction: column;
		justify-content: center;
		gap: 2px;
		padding-block: 7px;
	}

	.content-grid,
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.site-footer__grid {
		gap: 26px;
	}

	.search-form {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

