/*
Theme Name: Essam Elsaka
Theme URI: https://essamelsaka.com
Author: بن سالم
Author URI: https://bnsalem.ae
Text Domain: essam-elsaka
Description: Custom builder-free theme for the official site of artist Essam Elsaka. Developed by WebWay (webway.ae).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--c-primary: #bf7d65;
	--c-primary-dark: #996451;
	--c-primary-soft: #d5bbb2;
	--c-ink: #000001;
	--c-ink-2: #151312;
	--c-light: #fafafa;
	--c-white: #fff;
	--c-cream: #fff7f4;
	--c-line: #ebebeb;
	--c-muted: #5c5452;

	--font: "El Messiri", "Segoe UI", Tahoma, sans-serif;

	--radius: 8px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	--shadow: 0 0 10px rgba(0, 0, 0, .15);
	--shadow-lg: 0 20px 40px rgba(0, 0, 0, .15);

	--container: 1140px;
	--gutter: 20px;
	--section: 80px;
	--header-h: 100px;

	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-back: cubic-bezier(.175, .885, .32, 1.275);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.8;
	color: var(--c-ink);
	background: var(--c-white);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--c-primary); text-decoration: none; transition: color .3s; }
a:hover { color: var(--c-primary-dark); }

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; }
ul[class], ol[class] { list-style: none; padding: 0; }

strong { font-weight: 700; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 4px; }

.icon { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }

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

.skip-link {
	position: absolute;
	inset-inline-start: 16px;
	top: -60px;
	z-index: 1000;
	padding: 10px 18px;
	background: var(--c-primary);
	color: var(--c-white);
	border-radius: var(--radius);
	transition: top .2s;
}
.skip-link:focus { top: 16px; color: var(--c-white); }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section--tight { padding-top: 0; }
.center { text-align: center; }
.narrow { max-width: 720px; margin-inline: auto; }
.lead { font-size: 18px; text-align: justify; }

/* ==========================================================================
   3. Components
   ========================================================================== */

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 14px 40px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--c-light);
	background: var(--c-primary);
	border: 1px solid var(--c-primary);
	border-radius: var(--radius);
	transition: background-color .3s, color .3s, border-color .3s, transform .3s;
}
.btn:hover, .btn:focus-visible { color: var(--c-primary); background: var(--c-light); }
.btn--outline:hover, .btn--outline:focus-visible { background: transparent; }
.btn--block { display: flex; width: 100%; }

.grow { transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s; }
.grow:hover { transform: scale(1.1); }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 50%;
	font-size: 24px;
}

/* Pills */
.pill {
	display: inline-block;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--c-light);
	background: var(--c-primary);
	border-radius: 100px;
	transition: background-color .3s, color .3s;
}
a.pill:hover { color: var(--c-light); background: var(--c-ink); }
.pill--sm { padding: 4px 10px; font-weight: 400; border: 1px solid rgba(191, 125, 101, .67); }

/* Divider: dotted line + clapperboard */
.divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-block: 16px;
	color: var(--c-primary);
}
.divider span {
	flex: 0 1 140px;
	border-top: 2px dotted var(--c-primary);
}
.divider .icon { width: 40px; height: 40px; }
.divider--center { justify-content: center; }
.divider--start span:last-child { display: none; }

/* Section heading */
.sec-head { margin-bottom: 40px; }
.sec-head--center { text-align: center; }
.sec-head__eyebrow {
	font-size: 25px;
	font-weight: 700;
	color: var(--c-primary);
	line-height: 1.5;
}
.sec-head__title {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.55;
	color: var(--c-ink);
}
.sec-head--dark .sec-head__title { color: var(--c-light); }
.sec-head--horse .sec-head__title:first-of-type { color: var(--c-primary); }
.sec-head--horse .sec-head__title + .sec-head__title {
	max-width: 760px;
	margin-inline: auto;
	font-size: 20px;
	line-height: 1.75;
}

/* Check list */
.check-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
	margin-block: 16px 28px;
	font-size: 18px;
}
.check-list li { display: flex; align-items: center; gap: 10px; }
.check-list .icon {
	width: 22px; height: 22px;
	padding: 4px;
	color: var(--c-white);
	background: var(--c-primary);
	border-radius: 50%;
}

/* More link */
.more-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 600;
	color: var(--c-primary);
}
.more-link .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.more-link:hover { color: var(--c-primary-soft); }
.more-link:hover .icon { transform: translateX(-4px); }

/* Social */
.social { display: flex; flex-wrap: wrap; gap: 12px; }
.social a {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	font-size: 18px;
	color: var(--c-primary);
	background: var(--c-light);
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 50%;
	transition: color .3s, background-color .3s, transform .3s;
}
.social a:hover { transform: translateY(-3px); }
.social--solid a { color: var(--c-white); background: var(--c-primary); }
.social--solid a:hover { color: var(--c-white); background: var(--c-ink); }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs__btn {
	min-height: 44px;
	padding: 8px 20px;
	font-size: 16px;
	font-weight: 600;
	color: var(--c-light);
	background: transparent;
	border: 1px solid rgba(250, 250, 250, .25);
	border-radius: 100px;
	transition: background-color .3s, color .3s, border-color .3s;
}
.tabs__btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.tabs__btn[aria-selected="true"], .tabs__btn[aria-current] {
	color: var(--c-light);
	background: var(--c-primary);
	border-color: var(--c-primary);
}
.tabs__panel[hidden] { display: none; }

/* Slider (scroll-snap, enhanced by JS) */
.slider { position: relative; --per: 4; --gap: 24px; }
.slider__track {
	display: flex;
	gap: var(--gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-block: 70px 12px;
	margin-top: -50px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide {
	flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per));
	scroll-snap-align: start;
	min-width: 0;
}
.slider__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	font-size: 22px;
	color: var(--c-white);
	background: var(--c-primary);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 8px 23px rgba(0, 0, 0, .2);
	transform: translateY(-50%);
	transition: background-color .3s, opacity .3s;
}
.slider__nav:hover { background: var(--c-primary-dark); }
.slider__nav:disabled { opacity: .35; cursor: default; }
.slider__nav--prev { inset-inline-start: -22px; }
.slider__nav--next { inset-inline-end: -22px; }
.slider__dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.slider__dot {
	display: grid;
	place-items: center;
	width: 28px; height: 28px;
	padding: 0;
	color: var(--c-line);
	background: none;
	border: 0;
}
.slider__dot::before {
	content: "";
	width: 10px; height: 10px;
	background: currentColor;
	border-radius: 50%;
	transition: background-color .3s, transform .3s;
}
.slider__dot[aria-current="true"] { color: var(--c-primary); }
.slider__dot[aria-current="true"]::before { transform: scale(1.2); }
.slider--photos { --per: 3; }
.slider--photos .slider__track,
.slider--strip .slider__track,
.slider--single .slider__track { padding-block: 0; margin-top: 0; }
.slider--photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.slider--strip { --per: 7; --gap: 12px; }
.slider--strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid rgba(2, 1, 1, .25); border-radius: var(--radius); }
.slider--single { --per: 1; --gap: 0; }

/* ==========================================================================
   4. Cards
   ========================================================================== */

/* Work card */
.work-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 320px;
	height: 100%;
	text-align: center;
}
.work-card__cat {
	position: relative;
	z-index: 1;
	align-self: flex-start;
	margin-inline-start: 8px;
}
.work-card__media {
	display: block;
	margin-top: -42px;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.work-card__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform .6s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card__year {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	align-self: flex-end;
	width: 60px; height: 60px;
	margin: -80px 0 20px 16px;
	font-size: 18px;
	color: var(--c-primary);
	background: var(--c-light);
	border-radius: 50%;
	box-shadow: 0 8px 23px rgba(0, 0, 0, .2);
}
.work-card__title { font-size: 20px; font-weight: 700; }
.work-card__title a { color: var(--c-primary); }
.work-card__title a:hover { color: var(--c-primary-soft); }
.work-card__role { align-self: center; }
.work-card__excerpt { font-size: 16px; text-align: justify; line-height: 1.7; }
.work-card .more-link { align-self: center; margin-top: auto; }
.work-card--dark .work-card__excerpt { color: var(--c-light); }
.work-card--light .work-card__excerpt { color: var(--c-muted); }

/* Post card */
.post-card { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.post-card__cat { position: relative; z-index: 1; align-self: flex-start; margin-inline-start: 8px; border-radius: var(--radius-lg); }
.post-card__media {
	display: block;
	margin-top: -36px;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}
.post-card__media img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--c-muted); }
.post-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.post-card__meta .icon { width: 13px; height: 13px; }
.post-card__title { font-size: 18px; }
.post-card__title a { color: var(--c-primary); }
.post-card__title a:hover { color: var(--c-ink); }
.post-card__excerpt { font-size: 16px; text-align: justify; }
.post-card .more-link { margin-top: auto; }

/* Compact news item */
.news-item { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.news-item + .news-item { border-top: 1px solid var(--c-line); }
.news-item__media { flex: 0 0 72px; border-radius: var(--radius); overflow: hidden; }
.news-item__media img { width: 72px; height: 72px; object-fit: cover; }
.news-item__title { font-size: 15px; line-height: 1.6; }
.news-item__title a { color: var(--c-ink); }
.news-item__title a:hover { color: var(--c-primary); }
.news-item__more { font-size: 13px; font-weight: 600; }

/* ==========================================================================
   5. Header & off-canvas
   ========================================================================== */
.site-header {
	position: absolute;
	inset: 0 0 auto;
	z-index: 50;
	color: var(--c-white);
	transition: background-color .35s, box-shadow .35s, transform .35s;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}
.brand img { width: 230px; height: auto; }

.main-nav__menu { display: flex; align-items: center; gap: 6px; }
.main-nav__menu a {
	position: relative;
	display: block;
	padding: 10px 14px;
	font-size: 18px;
	font-weight: 600;
	color: var(--c-white);
}
.main-nav__menu a::after {
	content: "";
	position: absolute;
	inset-inline: 14px;
	bottom: 4px;
	height: 2px;
	background: var(--c-primary);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s var(--ease);
}
.main-nav__menu a:hover,
.main-nav__menu .current-menu-item > a { color: var(--c-primary); }
.main-nav__menu a:hover::after,
.main-nav__menu .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { color: var(--c-white); }
.menu-toggle:hover { color: var(--c-primary); }

.site-header.is-sticky {
	position: fixed;
	background: rgba(0, 0, 1, .92);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
	animation: header-in .4s var(--ease);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.site-header.is-sticky .site-header__inner { min-height: 72px; }
.site-header.is-sticky .brand img { width: 170px; }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }

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

.offcanvas { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.offcanvas.is-open { visibility: visible; }
.offcanvas__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 1, .55);
	opacity: 0;
	transition: opacity .35s;
}
.offcanvas__panel {
	position: absolute;
	inset-block: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: min(380px, 88vw);
	padding: 20px 24px 32px;
	overflow-y: auto;
	color: var(--c-ink);
	background: var(--c-white);
	box-shadow: 0 0 40px rgba(0, 0, 0, .3);
	transform: translateX(-100%);
	transition: transform .45s var(--ease);
}
.offcanvas.is-open .offcanvas__overlay { opacity: 1; }
.offcanvas.is-open .offcanvas__panel { transform: none; }
.offcanvas__top { display: flex; align-items: center; justify-content: space-between; }
.offcanvas__logo img { width: 150px; }
.offcanvas__close { color: var(--c-ink); }
.offcanvas__close:hover { color: var(--c-primary); }
.offcanvas__nav { display: none; }
.offcanvas__menu a {
	display: block;
	padding: 12px 4px;
	font-size: 18px;
	font-weight: 600;
	color: var(--c-ink);
	border-bottom: 1px solid var(--c-line);
}
.offcanvas__menu a:hover, .offcanvas__menu .current-menu-item > a { color: var(--c-primary); }
.offcanvas__about { display: grid; gap: 16px; }
.offcanvas__title { font-size: 20px; color: var(--c-primary); }
.offcanvas__img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 1px 10px 1px rgba(0, 0, 0, .14); }
.offcanvas__about p { font-size: 14px; line-height: 1.8; text-align: justify; }

/* ==========================================================================
   6. Page cover & breadcrumbs
   ========================================================================== */
.page-cover {
	position: relative;
	display: grid;
	align-items: center;
	min-height: 380px;
	padding-top: var(--header-h);
	overflow: hidden;
	color: var(--c-white);
	background: var(--c-ink);
	isolation: isolate;
}
.page-cover__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: 100%; height: 100%;
	object-fit: cover;
}
.page-cover__inner { padding-block: 40px; text-align: center; }
.page-cover__title { font-size: 45px; font-weight: 700; color: var(--c-white); }

.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; font-size: 15px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; color: var(--c-primary); }
.breadcrumbs li + li::before { content: "/"; color: rgba(255, 255, 255, .5); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); }
.breadcrumbs a:hover { color: var(--c-primary); }

/* ==========================================================================
   7. Home
   ========================================================================== */

/* Hero */
.hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: max(720px, 100svh);
	padding: var(--header-h) var(--gutter) 120px;
	overflow: hidden;
	text-align: center;
	color: var(--c-white);
	background: var(--c-ink);
	isolation: isolate;
}
.hero__poster, .hero__video {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%; height: 100%;
}
.hero__poster { object-fit: cover; }
.hero__video { overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 1.2s; }
.hero__video.is-ready { opacity: 1; }
.hero__video iframe {
	position: absolute;
	top: 50%; left: 50%;
	width: max(100%, 177.78vh);
	height: max(100%, 56.25vw);
	border: 0;
	transform: translate(-50%, -50%);
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 1, 0) 0%, rgba(0, 0, 1, .82) 90%);
}
.hero__inner { display: grid; justify-items: center; gap: 24px; }
.hero__title {
	font-size: 80px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--c-primary);
	text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 20px; }
.hero__yt { display: grid; color: var(--c-light); font-size: 48px; border-radius: 50%; }
.hero__yt:hover { color: var(--c-primary); }
.hero__shape {
	position: absolute;
	inset: auto 0 -1px;
	width: 100%;
	height: 90px;
	fill: var(--c-white);
}

/* Intro */
.intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	align-items: center;
	gap: 32px;
}
.intro__title { font-size: 30px; color: var(--c-ink); }
.intro__sub { margin-top: 20px; font-size: 25px; }
.intro__media img { width: 100%; }

/* Works */
.works { position: relative; color: var(--c-light); background: var(--c-ink); isolation: isolate; }
.works::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("https://essamelsaka.com/wp-content/uploads/2024/11/banner-works.webp") center / cover no-repeat;
	opacity: .04;
}
.works__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 8px; }
.works__head .sec-head { margin-bottom: 0; }
.works .center { margin-top: 32px; }
.works--archive { color: var(--c-ink); background: var(--c-white); }
.works--archive::before { display: none; }
.works--archive .tabs { justify-content: center; margin-bottom: 48px; }
.works--archive .tabs__btn { color: var(--c-ink); border-color: var(--c-line); }
.works--archive .tabs__btn:hover { color: var(--c-primary); border-color: var(--c-primary); }
.works--archive .tabs__btn[aria-current] { color: var(--c-light); }

.works-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 64px 24px;
	padding-top: 40px;
}
.works-grid .work-card.is-hidden { display: none; }

/* Media */
.media__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.video-card {
	display: flex;
	flex-direction: column;
	color: var(--c-ink);
	background: var(--c-white);
	border: 1px solid #eee;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
	transition: transform .4s var(--ease-back), box-shadow .4s;
}
.video-card:hover { color: var(--c-ink); transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.video-card__thumb { position: relative; display: block; overflow: hidden; }
.video-card__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.video-card:hover .video-card__thumb img { transform: scale(1.08); }
.video-card__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 26px;
	color: var(--c-white);
	background: rgba(0, 0, 1, .15);
	transition: background-color .3s;
}
.video-card__play .icon {
	width: 60px; height: 60px;
	padding: 16px;
	background: rgba(255, 255, 255, .2);
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 50%;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background-color .3s, transform .4s var(--ease-back);
}
.video-card:hover .video-card__play .icon { background: var(--c-primary); transform: scale(1.12); }
.video-card__body { display: grid; justify-items: start; gap: 6px; padding: 18px 20px 22px; }
.video-card__title { font-size: 19px; font-weight: 700; }
.video-card__desc { font-size: 14px; color: var(--c-muted); }

/* Horse */
.horse { padding-top: 0; }

/* Quote banner */
.quote {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 520px;
	overflow: hidden;
	text-align: center;
	background: var(--c-ink);
	isolation: isolate;
}
.quote__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.quote__inner { display: grid; justify-items: center; gap: 40px; padding-block: 60px; }
.quote__text { font-size: 60px; font-weight: 600; line-height: 1.45; color: var(--c-light); }

/* News split */
.news { padding-block: 0; margin-block: var(--section); background: linear-gradient(90deg, var(--c-white) 50%, var(--c-ink) 50%); }
.news__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 500px; }
.news__intro {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 60px max(var(--gutter), calc((100vw - var(--container)) / 2)) 60px 60px;
	background: var(--c-ink);
	isolation: isolate;
}
.news__intro::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("https://essamelsaka.com/wp-content/uploads/2024/11/banner-essam1.webp") center / cover no-repeat;
	opacity: .09;
}
.news__list {
	position: relative;
	z-index: 1;
	align-self: center;
	min-width: 0;
	max-width: calc(var(--container) / 2 + 140px);
	margin-inline: -180px max(var(--gutter), calc((100vw - var(--container)) / 2));
	padding: 20px 20px 24px;
	background: var(--c-white);
	border-radius: var(--radius);
	box-shadow: 0 0 10px rgba(0, 0, 0, .06);
}
.news__list .slider { --per: 2; --gap: 16px; }
.news__list .slider__track { padding-block: 0; margin-top: 0; }
.news-tile { display: grid; gap: 10px; color: var(--c-ink); }
.news-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); transition: transform .6s var(--ease); }
.news-tile:hover img { transform: scale(1.04); }
.news-tile__date { font-size: 13px; color: var(--c-primary); }
.news-tile__title { font-size: 16px; font-weight: 700; line-height: 1.6; }
.news-tile:hover { color: var(--c-primary); }

/* ==========================================================================
   8. About
   ========================================================================== */
.about-intro__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 40px; }
.about-intro__title { font-size: 45px; color: var(--c-primary); }
.about-intro__text .lead + .lead { margin-top: 14px; }
.about-intro__media img { width: 100%; max-width: 420px; margin-inline: auto; }

.band { position: relative; overflow: hidden; color: var(--c-light); background: var(--c-ink); isolation: isolate; }
.band__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .09; }
.band--beginnings .band__inner { padding-block: 80px 150px; text-align: center; }
.band__text { max-width: 800px; margin-inline: auto; font-size: 20px; text-align: justify; }

.strip-card {
	position: relative;
	z-index: 2;
	margin-top: -110px;
	padding: 16px;
	background: var(--c-light);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.timeline-sec .sec-head { margin-bottom: 8px; }
.timeline-sec .narrow { margin-bottom: 40px; font-size: 18px; }
.timeline { position: relative; display: grid; gap: 28px; padding-block: 8px; margin-bottom: 40px; }
.timeline::before {
	content: "";
	position: absolute;
	inset-block: 0;
	left: 50%;
	width: 2px;
	background: rgba(0, 0, 1, .22);
	transform: translateX(-50%);
}
.timeline__cap {
	position: relative;
	justify-self: center;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	font-size: 26px;
	color: var(--c-white);
	background: var(--c-primary);
	border-radius: 50%;
}
.timeline__item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: start; }
.timeline__year {
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
	display: grid;
	place-items: center;
	width: 72px; height: 72px;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-primary);
	background: var(--c-white);
	border-block: 1px solid var(--c-primary);
	border-radius: 50%;
	box-shadow: 1px 0 5px 1px rgba(191, 125, 101, .22);
	position: relative;
	z-index: 1;
}
.timeline__card {
	grid-row: 1;
	display: grid;
	gap: 12px;
	padding: 24px 28px;
	font-size: 14px;
	line-height: 1.9;
	text-align: justify;
	background: var(--c-cream);
	border-radius: var(--radius-xl);
	box-shadow: 0 4px 8px 1px rgba(0, 0, 0, .03);
	transition: background-color .35s, color .35s;
}
.timeline__card:hover { color: var(--c-white); background: var(--c-ink); }
.timeline__card strong { color: var(--c-primary); }
.timeline__item--start .timeline__card { grid-column: 1; }
.timeline__item--end .timeline__card { grid-column: 3; }

.horse-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 32px; min-height: 700px; padding-block: 60px; }
.horse-about__title { font-size: 30px; color: var(--c-white); }
.horse-about__text p:not(.sec-head__eyebrow) { margin-bottom: 14px; font-size: 18px; text-align: justify; }
.horse-about__text .btn { margin-top: 10px; }
.horse-about__media img { width: 80%; margin-inline: auto; }

.tweets .narrow { margin-top: -24px; margin-bottom: 32px; font-size: 18px; }
.tweets__frame {
	position: relative;
	display: grid;
	place-items: center;
	max-width: 900px;
	min-height: 450px;
	margin-inline: auto;
	padding: 40px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	isolation: isolate;
}
.tweets__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.tweets__screen { width: 100%; max-width: 640px; padding: 16px; background: #242424; box-shadow: 0 0 10px rgba(0, 0, 0, .54); }
.tweets__screen img { width: 100%; max-height: 320px; object-fit: contain; }
.tweets__screen .slider__dot { color: #555; }
.tweets__screen .slider__dot[aria-current="true"] { color: var(--c-primary); }

/* ==========================================================================
   9. Gallery & lightbox
   ========================================================================== */
.gallery { columns: 4 240px; column-gap: 16px; }
.gallery__item {
	display: block;
	margin-bottom: 16px;
	border-radius: var(--radius);
	overflow: hidden;
	break-inside: avoid;
	box-shadow: var(--shadow);
}
.gallery__item img { width: 100%; transition: transform .6s var(--ease), filter .4s; }
.gallery__item:hover img { transform: scale(1.05); filter: brightness(.85); }

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 60px 70px;
	background: rgba(0, 0, 1, .92);
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: lb-in .35s var(--ease); }
.lightbox .icon-btn { position: absolute; color: var(--c-white); background: rgba(255, 255, 255, .1); }
.lightbox .icon-btn:hover { background: var(--c-primary); }
.lightbox__close { top: 16px; inset-inline-end: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { inset-inline-start: 16px; }
.lightbox__nav--next { inset-inline-end: 16px; }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }

/* ==========================================================================
   10. Blog, single, sidebar
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; padding-top: 36px; }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 40px; }
.entry { display: grid; gap: 16px; min-width: 0; }
.entry > .pill { justify-self: start; }
.entry__title { font-size: 30px; color: var(--c-primary); }
.entry__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.prose { font-size: 17px; line-height: 2; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; color: var(--c-primary); }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 22px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose img { border-radius: var(--radius); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; background: var(--c-cream); border-inline-start: 4px solid var(--c-primary); border-radius: var(--radius); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); }

.post-nav .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.post-nav a { display: grid; gap: 2px; padding: 14px 18px; color: var(--c-ink); background: var(--c-cream); border-radius: var(--radius); transition: background-color .3s, color .3s; }
.post-nav a:hover { color: var(--c-white); background: var(--c-ink); }
.post-nav .nav-next { text-align: end; }
.post-nav__label { font-size: 13px; color: var(--c-primary); }
.post-nav__title { font-weight: 700; }

.sidebar { position: sticky; top: 100px; display: grid; gap: 24px; }
.side-box { padding: 24px; background: var(--c-white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.side-box__title { margin-bottom: 12px; font-size: 22px; color: var(--c-primary-dark); }
.side-box--about img { width: 100%; margin-bottom: 16px; border-radius: var(--radius); }
.work-info__list { display: grid; margin-bottom: 20px; }
.work-info__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding-block: 10px; border-bottom: 1px dashed var(--c-line); }
.work-info__list dt { font-weight: 700; color: var(--c-primary); }

.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; color: var(--c-ink); border: 1px solid var(--c-line); border-radius: var(--radius); }
.page-numbers.current, a.page-numbers:hover { color: var(--c-white); background: var(--c-primary); border-color: var(--c-primary); }

.search-bar { max-width: 520px; margin: 32px auto; }
.search-form { display: flex; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.search-form input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 16px; border: 0; outline-offset: -3px; }
.search-form__btn { width: 52px; font-size: 20px; color: var(--c-white); background: var(--c-primary); border: 0; }
.empty { text-align: center; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
	position: relative;
	display: grid;
	align-content: center;
	gap: 24px;
	min-height: 440px;
	padding-top: 120px;
	overflow: hidden;
	background: var(--c-white) url("https://essamelsaka.com/wp-content/uploads/2024/11/footer-pc-bg-scaled.webp") center left / cover no-repeat;
}
.site-footer__shape {
	position: absolute;
	inset: -1px 0 auto;
	width: 100%;
	height: 110px;
	fill: var(--c-white);
	transform: scaleX(1.3);
}
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.site-footer__brand { display: grid; gap: 20px; }
.site-footer__brand img { width: 220px; }
.site-footer__title { margin-bottom: 12px; font-size: 30px; color: var(--c-primary-dark); }
.footer-menu a { display: block; padding-block: 4px; font-size: 18px; color: var(--c-ink); }
.footer-menu a::before { content: "‹"; margin-inline-end: 8px; color: var(--c-primary); }
.footer-menu a:hover { color: var(--c-primary); }
.site-footer__copy { padding: 14px var(--gutter) 24px; text-align: center; font-size: 18px; color: var(--c-ink); }
.site-footer__copy a { font-weight: 700; }

/* ==========================================================================
   12. Motion (Elementor-equivalent entrance animations)
   ========================================================================== */
.js [data-anim] { opacity: 0; }
.js [data-anim].is-in { animation: var(--anim) 1s var(--ease) both; animation-delay: var(--d, 0ms); }
[data-anim="fadeIn"] { --anim: fadeIn; }
[data-anim="fadeInUp"] { --anim: fadeInUp; }
[data-anim="fadeInDown"] { --anim: fadeInDown; }
[data-anim="fadeInLeft"] { --anim: fadeInLeft; }
[data-anim="fadeInRight"] { --anim: fadeInRight; }
[data-anim="zoomIn"] { --anim: zoomIn; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -40px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-60px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(60px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.6); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js [data-anim] { opacity: 1; }
}

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.slider__nav--prev { inset-inline-start: 0; }
	.slider__nav--next { inset-inline-end: 0; }
}

@media (max-width: 1024px) {
	:root { --section: 60px; --header-h: 84px; }

	.main-nav { display: none; }
	.offcanvas__nav { display: block; }
	.brand img { width: 170px; }

	.hero__title { font-size: 56px; }
	.slider { --per: 3; }
	.slider--strip { --per: 5; }

	.intro__grid, .about-intro__grid { grid-template-columns: minmax(0, 1fr); }
	.intro__media, .about-intro__media { width: 100%; max-width: 520px; margin-inline: auto; }

	.works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.media__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.quote__text { font-size: 42px; }

	.news { background: linear-gradient(180deg, var(--c-ink) 50%, var(--c-white) 50%); }
	.news__inner { grid-template-columns: minmax(0, 1fr); }
	.news__intro { align-items: center; padding: 60px var(--gutter); text-align: center; }
	.news__intro .sec-head--start { text-align: center; }
	.news__intro .divider { justify-content: center; }
	.news__intro .divider span:last-child { display: block; }
	.news__list { margin: -40px var(--gutter) 0; max-width: none; }

	.horse-about { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.horse-about__media { width: 100%; max-width: 360px; margin-inline: auto; }

	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout-sidebar { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: static; }

	.site-footer { background-image: url("https://essamelsaka.com/wp-content/uploads/2024/11/footer-bg-99-scaled.webp"); background-position: bottom right; }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
	.site-footer__brand { grid-column: 1 / -1; justify-items: center; text-align: center; }
	.site-footer__title { font-size: 22px; }
	.footer-menu a { font-size: 16px; }
	.site-footer__copy { font-size: 14px; }
}

@media (max-width: 782px) {
	.admin-bar .site-header.is-sticky { top: 46px; }
}

@media (max-width: 767px) {
	:root { --section: 48px; --gutter: 18px; }

	body { font-size: 15px; }
	.lead { font-size: 15px; line-height: 1.9; }
	.sec-head { margin-bottom: 28px; }
	.sec-head__eyebrow { font-size: 18px; }
	.sec-head__title, .intro__title, .entry__title, .horse-about__title { font-size: 22px; }
	.sec-head--horse .sec-head__title + .sec-head__title { font-size: 15px; }
	.divider .icon { width: 30px; height: 30px; }
	.divider span { flex-basis: 90px; }
	.btn { padding: 12px 28px; font-size: 15px; }

	.page-cover { min-height: 280px; }
	.page-cover__title { font-size: 30px; }

	.hero { min-height: 100svh; padding-bottom: 90px; }
	.hero__title { font-size: 40px; }
	.hero__shape { height: 50px; }
	.hero__yt { font-size: 44px; }

	.intro__sub { font-size: 19px; }
	.check-list { font-size: 15px; gap: 10px 14px; }

	.works__head { flex-direction: column; align-items: stretch; }
	.works .tabs { justify-content: center; }
	.tabs__btn { flex: 1 1 auto; padding: 8px 14px; font-size: 14px; }

	.slider { --per: 1.25; --gap: 16px; }
	.slider--photos { --per: 1.3; }
	.slider--strip { --per: 3; --gap: 8px; }
	.slider--single { --per: 1; }
	.slider__nav { display: none; }
	.news__list .slider { --per: 1.4; }

	.work-card__title { font-size: 17px; }
	.work-card__excerpt { font-size: 14px; }

	.works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 14px; }
	.works-grid .work-card__excerpt { display: none; }
	.works-grid .work-card__title { font-size: 15px; }
	.works-grid .work-card__year { width: 48px; height: 48px; margin: -64px 0 14px 8px; font-size: 13px; }
	.works-grid .more-link { font-size: 13px; }
	.works-grid .work-card__cat { font-size: 10px; }

	.media__grid { grid-template-columns: minmax(0, 1fr); }

	.quote { min-height: 380px; }
	.quote__text { font-size: 28px; }
	.quote__inner { gap: 28px; }

	.about-intro__title { font-size: 30px; }
	.about-intro__text { text-align: center; }
	.about-intro__text .divider { justify-content: center; }
	.about-intro__text .divider span:last-child { display: block; }
	.band--beginnings .band__inner { padding-block: 56px 120px; }
	.band__text { font-size: 15px; line-height: 1.9; }
	.strip-card { margin-top: -90px; padding: 8px; }

	.timeline::before { left: auto; right: 27px; transform: none; }
	.timeline__cap { justify-self: start; }
	.timeline__item { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
	.timeline__year { grid-column: 1; width: 56px; height: 56px; font-size: 12px; }
	.timeline__item--start .timeline__card,
	.timeline__item--end .timeline__card { grid-column: 2; padding: 18px; }

	.horse-about__text { text-align: center; }
	.horse-about__text p:not(.sec-head__eyebrow) { font-size: 15px; }
	.horse-about__text .divider { justify-content: center; }
	.horse-about__text .divider span:last-child { display: block; }

	.tweets__frame { min-height: 0; padding: 16px; }

	.gallery { columns: 2; column-gap: 10px; }
	.gallery__item { margin-bottom: 10px; }
	.lightbox { padding: 60px 12px; }
	.lightbox__nav { top: auto; bottom: 12px; transform: none; }

	.post-grid { grid-template-columns: minmax(0, 1fr); }
	.post-nav .nav-links { grid-template-columns: minmax(0, 1fr); }
	.work-info__list > div { grid-template-columns: 96px 1fr; }

	.site-footer {
		min-height: 600px;
		padding-top: 90px;
		background-image: url("https://essamelsaka.com/wp-content/uploads/2024/11/footer-bg-mobile-scaled.webp");
		background-position: center;
	}
	.site-footer__shape { height: 60px; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 28px; }
	.site-footer .social { justify-content: center; }
	.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
	.footer-menu a::before { display: none; }
	.site-footer .news-item { text-align: start; }
	.site-footer__copy { font-size: 12px; }
}
