/*
Theme Name: WOLF GANG
Theme URI: https://example.com/
Author: WOLF GANG
Author URI: https://example.com/
Description: Dark cinematic bilingual (English / Arabic) one-page WordPress theme for WOLF GANG — Problem Solving Crew. Editable from Pages, with a hardened call-request form, full RTL support, Egyptian Arabic copy and standard template files.
Version: 2.5.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wolf-gang
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready, rtl-language-support
*/

/* =========================================================================
   1. TOKENS
   ====================================================================== */

:root {
	--bg: #070707;
	--panel: #0d0d0d;
	--panel-2: #0b0b0b;
	--gold: #d9c29a;
	--gold-soft: #b9a079;
	--cream: #f2eee5;
	--red: #c9141c;
	--red-dark: #a50f16;
	--muted: #a9a39a;
	--muted-2: #8d8780;
	--line: rgba(217, 194, 154, .28);
	--line-soft: rgba(217, 194, 154, .14);
	--max: 1240px;

	--font-display: "Cinzel", Georgia, "Times New Roman", serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--font-arabic: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;

	--radius: 2px;
	--ease: cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================================
   2. BASE
   ====================================================================== */

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

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

/* The header is fixed, so an anchor jump would otherwise park the section's
   first line underneath it. Applies to the built-in sections and to any
   Elementor section given an ID. */
section[id],
.elementor-section[id],
.elementor-element[id] {
	scroll-margin-top: 90px;
}

@media (max-width: 900px) {
	section[id],
	.elementor-section[id],
	.elementor-element[id] {
		scroll-margin-top: 120px;
	}
}

/* The hero is the top of the page; it needs no offset. */
#home {
	scroll-margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--cream);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	overflow-x: hidden;
}

body.lang-ar,
[dir="rtl"] body {
	font-family: var(--font-arabic);
}

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

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 700;
}

body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3 {
	font-family: var(--font-arabic);
	font-weight: 800;
}

.container {
	width: min(92%, var(--max));
	margin-inline: auto;
}

/* Accessibility helpers */

.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;
}

.skip-link {
	position: absolute;
	inset-inline-start: 8px;
	top: -60px;
	z-index: 100;
	padding: 12px 20px;
	background: var(--gold);
	color: #070707;
	font-weight: 700;
	transition: top .2s var(--ease);
}

.skip-link:focus {
	top: 8px;
	clip: auto;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
}

/* =========================================================================
   3. HEADER
   ====================================================================== */

.topbar {
	position: fixed;
	z-index: 20;
	top: 0;
	inset-inline: 0;
	background: rgba(5, 5, 5, .88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.nav {
	min-height: 78px;
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
	padding-block: 10px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-inline-end: auto;
}

/* Any logo in the header — the bundled mark OR an image uploaded through
   Customize > Site Identity, which WordPress outputs as .custom-logo with
   no styling of its own. Both are capped here so an uploaded file can
   never blow the header open at its natural pixel size. */
.wolf-mark,
.brand .custom-logo,
.custom-logo-link .custom-logo {
	width: auto;
	height: 46px;
	max-width: 190px;
	max-height: 46px;
	object-fit: contain;
	flex: 0 0 auto;
	display: block;
}

.custom-logo-link {
	display: flex;
	align-items: center;
	line-height: 0;
	flex: 0 0 auto;
}

/* The crest is a symmetrical emblem with no direction to it, so unlike a
   profile mark it is NOT mirrored in Arabic. */

.brand-text strong {
	display: block;
	font-family: var(--font-display);
	font-size: 25px;
	letter-spacing: 3px;
	line-height: 1.1;
}

.brand-text small {
	display: block;
	font-size: 9px;
	letter-spacing: 3px;
	color: var(--gold);
	font-family: var(--font-body);
}

body.lang-ar .brand-text small {
	font-family: var(--font-arabic);
	letter-spacing: 0;
	font-size: 11px;
}

.menu-list {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	letter-spacing: .5px;
}

.menu-list a {
	color: #ddd;
	transition: color .2s var(--ease);
	position: relative;
}

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

.lang {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	letter-spacing: 1px;
	border-inline-start: 1px solid var(--line);
	padding-inline-start: 20px;
	color: var(--muted-2);
}

.lang a {
	transition: color .2s var(--ease);
}

.lang a:hover {
	color: var(--cream);
}

.lang a.active {
	color: var(--gold);
	font-weight: 700;
}

/* =========================================================================
   4. BUTTONS
   ====================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border: 1px solid var(--gold);
	color: var(--cream);
	text-transform: uppercase;
	letter-spacing: 1.2px;
	font-weight: 700;
	font-size: 12px;
	font-family: var(--font-body);
	cursor: pointer;
	transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

body.lang-ar .btn {
	font-family: var(--font-arabic);
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
}

.btn:hover {
	background: var(--gold);
	color: #070707;
}

.btn-red {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}

.btn-red:hover {
	background: var(--red-dark);
	border-color: var(--red-dark);
	color: #fff;
}

.actions {
	display: flex;
	gap: 14px;
	margin-top: 28px;
	flex-wrap: wrap;
}

.actions-center {
	justify-content: center;
}

/* =========================================================================
   5. HERO
   ====================================================================== */

.hero {
	min-height: 100svh;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	background-color: #050505;
	/* Scrim is strong only where the headline sits, so the rest of the
	   crew stays visible. */
	background-image:
		linear-gradient(90deg, rgba(0, 0, 0, .90) 0%, rgba(0, 0, 0, .62) 34%, rgba(0, 0, 0, .26) 62%, rgba(0, 0, 0, .50) 100%),
		var(--hero-image);
	background-position: center, center 18%;
	background-size: cover, cover;
	background-repeat: no-repeat;
}

[dir="rtl"] .hero {
	background-image:
		linear-gradient(270deg, rgba(0, 0, 0, .90) 0%, rgba(0, 0, 0, .62) 34%, rgba(0, 0, 0, .26) 62%, rgba(0, 0, 0, .50) 100%),
		var(--hero-image);
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 58% 42%, transparent 0, rgba(0, 0, 0, .10) 55%, rgba(0, 0, 0, .46) 100%),
		linear-gradient(to bottom, rgba(0, 0, 0, .35) 0%, transparent 18%, transparent 72%, rgba(7, 7, 7, .92) 100%);
	pointer-events: none;
}

.hero-inner {
	position: relative;
	z-index: 1;
	padding-block: 150px 110px;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
	align-items: end;
}

.eyebrow {
	font-size: 12px;
	letter-spacing: 5px;
	color: var(--gold);
	margin: 0 0 18px;
	text-transform: uppercase;
	font-family: var(--font-body);
}

body.lang-ar .eyebrow {
	font-family: var(--font-arabic);
	letter-spacing: 1px;
	font-size: 13px;
	text-transform: none;
}

.hero-title {
	font-size: clamp(54px, 9vw, 108px);
	line-height: .88;
	margin: 0 0 16px;
	letter-spacing: 3px;
}

.hero-sub {
	font-size: 15px;
	letter-spacing: 4px;
	margin: 0 0 22px;
	color: var(--cream);
	font-family: var(--font-body);
	font-weight: 600;
}

body.lang-ar .hero-sub {
	font-family: var(--font-arabic);
	letter-spacing: 0;
	font-size: 19px;
}

.hero-text {
	max-width: 540px;
	color: #d6d2cb;
	font-size: 16px;
	margin: 0;
}

.arabic-copy {
	align-self: end;
	border-inline-start: 1px solid var(--line-soft);
	padding-inline-start: 28px;
}

.arabic-copy .arabic-title {
	font-family: var(--font-arabic);
	font-size: clamp(32px, 4vw, 46px);
	margin: 0 0 10px;
	color: var(--cream);
}

.arabic-copy p {
	font-family: var(--font-arabic);
	font-size: 17px;
	color: var(--muted);
	margin: 0;
}

.hero-scroll {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	width: 26px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 14px;
}

.hero-scroll span {
	position: absolute;
	top: 8px;
	left: 50%;
	margin-left: -2px;
	width: 4px;
	height: 8px;
	background: var(--gold);
	border-radius: 2px;
	animation: wg-scroll 1.8s infinite var(--ease);
}

@keyframes wg-scroll {
	0% { transform: translateY(0); opacity: 1; }
	70% { transform: translateY(16px); opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================================
   6. PROCESS STRIP
   ====================================================================== */

.strip {
	background: #080808;
	border-block: 1px solid var(--line);
}

.steps {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}

.step {
	padding: 38px 22px;
	text-align: center;
	border-inline-end: 1px solid var(--line-soft);
}

.step:last-child {
	border-inline-end: 0;
}

.step-num {
	display: block;
	font-family: var(--font-display);
	font-size: 22px;
	color: var(--gold);
	margin-bottom: 8px;
	letter-spacing: 2px;
}

.step h3 {
	font-size: 13px;
	letter-spacing: 2.5px;
	margin: 0 0 8px;
	font-family: var(--font-body);
	text-transform: uppercase;
}

body.lang-ar .step h3 {
	font-family: var(--font-arabic);
	letter-spacing: 0;
	font-size: 16px;
	text-transform: none;
}

.step p {
	font-size: 13px;
	color: var(--muted);
	margin: 0;
}

/* =========================================================================
   7. SECTIONS
   ====================================================================== */

.section {
	padding-block: 100px;
}

.section-alt {
	background: #050505;
}

.section-title {
	text-align: center;
	max-width: 780px;
	margin: 0 auto 55px;
}

.section-title h2 {
	font-size: clamp(30px, 4.4vw, 46px);
	margin: 0 0 14px;
	line-height: 1.15;
}

.section-title p {
	color: var(--muted);
	margin: 0;
}

/* Cards */

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.cards-4 {
	grid-template-columns: repeat(4, 1fr);
}

.card {
	background: linear-gradient(145deg, #111, #090909);
	border: 1px solid var(--line-soft);
	padding: 32px;
	transition: border-color .25s var(--ease), transform .25s var(--ease);
}

.card:hover {
	border-color: var(--line);
	transform: translateY(-4px);
}

.card h3 {
	font-size: 24px;
	margin: 0 0 12px;
	line-height: 1.25;
}

.card p {
	color: var(--muted);
	margin: 0 0 10px;
}

.card p:last-child {
	margin-bottom: 0;
}

.number {
	color: var(--red);
	font-size: 12px;
	letter-spacing: 3px;
	font-weight: 700;
	margin: 0 0 10px;
	font-family: var(--font-body);
}

.legal-note {
	margin: 40px auto 0;
	max-width: 820px;
	text-align: center;
	color: var(--muted-2);
	font-size: 14px;
	border-top: 1px solid var(--line-soft);
	padding-top: 24px;
}

/* Pricing */

.pricing-callout {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid var(--line);
	background: var(--panel-2);
}

.pricing-callout > div {
	padding: 34px;
	border-inline-end: 1px solid var(--line-soft);
}

.pricing-callout > div:last-child {
	border-inline-end: 0;
}

.pricing-callout h3 {
	font-size: 26px;
	margin: 10px 0;
}

.pricing-callout p {
	color: var(--muted);
	margin: 0;
}

/* =========================================================================
   8. CONTACT + FORM
   ====================================================================== */

.contact {
	background: linear-gradient(135deg, #111, #080808);
	border-block: 1px solid var(--line);
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 55px;
	align-items: start;
}

.contact h2 {
	font-size: clamp(30px, 4vw, 46px);
	margin: 0 0 16px;
	line-height: 1.15;
}

.contact > .container > div > p {
	color: var(--muted);
}

.call-note {
	margin-top: 26px;
	border-inline-start: 2px solid var(--red);
	padding: 14px 18px;
	background: rgba(201, 20, 28, .07);
	color: var(--muted);
	font-size: 14px;
}

.call-note strong {
	color: var(--cream);
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.field {
	margin: 0 0 16px;
}

.field label {
	display: block;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--gold-soft);
	margin-bottom: 7px;
	font-family: var(--font-body);
}

body.lang-ar .field label {
	font-family: var(--font-arabic);
	letter-spacing: 0;
	text-transform: none;
	font-size: 14px;
}

.field .req {
	color: var(--red);
}

.form input,
.form textarea,
.form select {
	width: 100%;
	background: #050505;
	border: 1px solid #333;
	color: #eee;
	padding: 13px 14px;
	font: inherit;
	font-size: 15px;
	border-radius: var(--radius);
	transition: border-color .2s var(--ease);
}

.form input:hover,
.form textarea:hover,
.form select:hover {
	border-color: #4a4a4a;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
	border-color: var(--gold);
	outline: none;
}

.form textarea {
	min-height: 150px;
	resize: vertical;
}

.btn-submit {
	width: 100%;
	padding-block: 16px;
	margin-top: 4px;
}

.form-privacy {
	color: var(--muted-2);
	font-size: 12px;
	margin: 14px 0 0;
	text-align: center;
}

/* Honeypot — hidden from humans, still reachable by bots.
   Deliberately NOT positioned off-screen with a large negative offset:
   that creates horizontal overflow which breaks RTL layout. */
.wolf-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Notices */

.notice {
	padding: 14px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	border-inline-start: 3px solid var(--gold);
	background: rgba(217, 194, 154, .08);
	color: var(--gold);
}

.notice-success {
	border-color: #4caf50;
	background: rgba(76, 175, 80, .1);
	color: #9ad79c;
}

.notice-error {
	border-color: var(--red);
	background: rgba(201, 20, 28, .1);
	color: #f1a1a5;
}

.notice-warning {
	border-color: var(--gold);
	background: rgba(217, 194, 154, .1);
	color: var(--gold);
}

/* =========================================================================
   9. BLOG / PAGES / SEARCH
   ====================================================================== */

/* Inner pages clear the fixed header; the front page handles it in the hero. */
.site-main {
	padding-top: 130px;
}

body.home .site-main,
body.front-page .site-main {
	padding-top: 0;
}

.entry {
	max-width: 820px;
	margin-inline: auto;
}

.entry-header h1 {
	font-size: clamp(30px, 4.4vw, 48px);
	margin: 0;
	line-height: 1.15;
}

.entry-media {
	margin: 0 0 34px;
}

.entry-content {
	font-size: 17px;
	color: #ddd9d2;
}

.entry-content h2,
.entry-content h3 {
	color: var(--cream);
	margin-top: 1.8em;
}

.entry-content a {
	color: var(--gold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding-inline-start: 20px;
	border-inline-start: 2px solid var(--gold);
	color: var(--muted);
	font-style: italic;
}

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

.entry-footer {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid var(--line-soft);
	font-size: 13px;
	color: var(--muted);
}

.post-list .card-thumb {
	display: block;
	margin: -32px -32px 24px;
}

.post-list .card h3 {
	font-size: 21px;
}

.post-list .card h3 a:hover {
	color: var(--gold);
}

.card-more a {
	color: var(--gold);
	font-size: 13px;
	letter-spacing: 1px;
}

.post-nav,
.navigation.pagination {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 50px;
	padding-top: 24px;
	border-top: 1px solid var(--line-soft);
	font-size: 14px;
}

.navigation.pagination {
	justify-content: center;
	gap: 14px;
}

.navigation.pagination .page-numbers {
	padding: 6px 12px;
	border: 1px solid var(--line-soft);
	color: var(--muted);
}

.navigation.pagination .page-numbers.current,
.navigation.pagination a.page-numbers:hover {
	border-color: var(--gold);
	color: var(--gold);
}

.post-nav a:hover {
	color: var(--gold);
}

.empty-state {
	text-align: center;
	color: var(--muted);
	padding-block: 30px;
}

.search-wrap {
	max-width: 520px;
	margin: 30px auto 0;
}

.search-form {
	display: flex;
	gap: 10px;
}

.search-field {
	flex: 1;
	background: #050505;
	border: 1px solid #333;
	color: #eee;
	padding: 13px 14px;
	font: inherit;
	border-radius: var(--radius);
}

.section-404 {
	min-height: 70vh;
	display: flex;
	align-items: center;
}

.comments-area {
	max-width: 820px;
	margin: 60px auto 0;
	padding-top: 30px;
	border-top: 1px solid var(--line-soft);
}

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

/* =========================================================================
   10. FOOTER
   ====================================================================== */

.footer {
	padding-block: 28px;
	border-top: 1px solid var(--line);
	color: var(--muted-2);
	font-size: 12px;
	letter-spacing: 1px;
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.footer-tag {
	color: var(--gold-soft);
}

/* =========================================================================
   11. RTL ADJUSTMENTS
   ====================================================================== */

[dir="rtl"] .hero-text,
[dir="rtl"] .section-title,
[dir="rtl"] .card,
[dir="rtl"] .form {
	text-align: start;
}

[dir="rtl"] .footer,
[dir="rtl"] .step,
[dir="rtl"] .section-title {
	letter-spacing: 0;
}

[dir="rtl"] .hero-title {
	letter-spacing: 0;
}

/* Mirror directional arrows (→ becomes ←) in Arabic. */
[dir="rtl"] .btn span[aria-hidden],
[dir="rtl"] .card-more span[aria-hidden] {
	display: inline-block;
	transform: scaleX(-1);
}

[dir="rtl"] .hero-scroll {
	left: auto;
	right: 50%;
	transform: translateX(50%);
}

/* =========================================================================
   12. RESPONSIVE
   ====================================================================== */

@media (max-width: 1080px) {
	.cards-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	.menu {
		order: 3;
		width: 100%;
		border-top: 1px solid var(--line-soft);
		padding-top: 10px;
	}

	.menu-list {
		gap: 18px;
		flex-wrap: wrap;
		justify-content: center;
		font-size: 12px;
	}

	.nav {
		min-height: 70px;
		gap: 16px;
	}

	.site-main {
		padding-top: 150px;
	}

	body.home .site-main {
		padding-top: 0;
	}

	.hero-inner,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.hero-inner {
		padding-block: 170px 90px;
	}

	.arabic-copy {
		border-inline-start: 0;
		padding-inline-start: 0;
		border-top: 1px solid var(--line-soft);
		padding-top: 24px;
	}

	.steps {
		grid-template-columns: 1fr 1fr;
	}

	.step {
		border-bottom: 1px solid var(--line-soft);
	}

	.step:nth-child(2n) {
		border-inline-end: 0;
	}

	.cards,
	.cards-4,
	.pricing-callout {
		grid-template-columns: 1fr;
	}

	.pricing-callout > div {
		border-inline-end: 0;
		border-bottom: 1px solid var(--line-soft);
	}

	.pricing-callout > div:last-child {
		border-bottom: 0;
	}

	.section {
		padding-block: 72px;
	}

	.btn-nav {
		display: none;
	}
}

@media (max-width: 560px) {
	body {
		font-size: 15px;
	}

	.actions {
		flex-direction: column;
	}

	.actions .btn {
		width: 100%;
	}

	.steps {
		grid-template-columns: 1fr;
	}

	.step {
		border-inline-end: 0;
		padding: 28px 20px;
	}

	.step:last-child {
		border-bottom: 0;
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.brand-text strong {
		font-size: 20px;
		letter-spacing: 2px;
	}

	.card {
		padding: 26px;
	}

	.post-list .card-thumb {
		margin: -26px -26px 20px;
	}

	.lang {
		padding-inline-start: 14px;
	}

	.footer-inner {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}

	.hero-scroll {
		display: none;
	}
}

/* =========================================================================
   13. PRINT
   ====================================================================== */

@media print {
	.topbar,
	.hero-scroll,
	.form,
	.footer {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}
