/*
Theme Name: Lex Clinica
Theme URI: https://lexclinca.com/
Author: Lex Clinica
Description: Bilingual (English / Arabic) law-firm theme for Lex Clinica, Cairo. Includes appointment/inquiry and careers/internship forms that email the firm and keep a copy under Submissions.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: lexclinica
*/

:root {
	--black: #0b0b0b;
	--ink: #151515;
	--ink-2: #2b2a28;
	--muted: #5f5b53;
	--gold: #c59a40;
	--gold-dark: #9f7a2c;
	--gold-light: #e2c47f;
	--ivory: #f7f4ee;
	--sand: #efe9dd;
	--line: #e3dccd;
	--white: #fff;
	--danger: #b3261e;
	--ok: #1e6b3a;
	--radius: 4px;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--f-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--header-h: 76px;
}
html[lang="ar"] {
	--f-display: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
	--f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 400 17px/1.7 var(--f-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; }
h1, h2, h3, .stat dd, .step-n { font-variant-numeric: lining-nums; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--black); padding: 10px 16px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 820px; }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: 12px 24px;
	border: 1.5px solid transparent; border-radius: var(--radius);
	font-weight: 600; font-size: 15px; letter-spacing: .02em; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--ink-2); }
.btn-line { border-color: var(--black); color: var(--black); background: transparent; }
.btn-line:hover { background: var(--black); color: var(--white); }
.btn-line-dark { border-color: var(--gold); color: var(--black); }
.btn-line-dark:hover { background: var(--gold); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ─── Header ─────────────────────────────────────────────────────────── */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--black); color: var(--white);
	border-bottom: 1px solid rgba(197, 154, 64, .25);
	transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; }
.brand-text { font: 600 21px/1 "Playfair Display", Georgia, serif; letter-spacing: .12em; white-space: nowrap; }
.brand-text b { color: var(--gold); font-weight: 600; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a:not(.btn) {
	display: block; padding: 10px 12px; text-decoration: none; font-size: 15px; font-weight: 500;
	color: rgba(255, 255, 255, .86); position: relative;
}
.main-nav a:not(.btn)::after {
	content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px;
	background: var(--gold); transform: scaleX(0); transition: transform .25s; transform-origin: center;
}
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--white); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
	font-size: 15px; font-weight: 600; text-decoration: none; color: var(--gold-light);
	padding: 8px 10px; border: 1px solid rgba(197, 154, 64, .45); border-radius: var(--radius);
}
.lang-switch:hover { background: rgba(197, 154, 64, .12); }
.lang-switch[lang="ar"] { font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; }
.lang-switch[lang="en"] { font-family: "Inter", system-ui, sans-serif; }
.nav-cta { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle .bar { display: block; height: 2px; background: var(--white); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(10px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 1080px) {
	.nav-cta { display: none; }
}
@media (max-width: 920px) {
	.nav-toggle { display: flex; }
	.main-nav {
		position: absolute; top: 100%; inset-inline: 0;
		background: var(--black); border-bottom: 1px solid rgba(197, 154, 64, .3);
		padding: 8px var(--gutter) 24px;
		display: none;
	}
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.main-nav a:not(.btn)::after { display: none; }
	.nav-cta-mobile { display: flex; margin-top: 18px; width: 100%; }
}
@media (max-width: 420px) {
	.brand-text { font-size: 17px; letter-spacing: .08em; }
	.brand img { width: 40px; height: 40px; }
	.header-actions { gap: 8px; }
	.lang-switch { padding: 7px 8px; font-size: 14px; }
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: radial-gradient(120% 90% at 85% 40%, #1d1810 0%, #0b0b0b 55%) var(--black);
	color: var(--white);
	min-height: clamp(520px, 72vh, 700px);
	display: flex;
}
html[dir="rtl"] .hero { background: radial-gradient(120% 90% at 15% 40%, #1d1810 0%, #0b0b0b 55%) var(--black); }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; filter: brightness(1.25) saturate(1.1); }
.hero-shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(8, 8, 8, .55) 0%, rgba(8, 8, 8, .15) 50%, rgba(8, 8, 8, 0) 100%),
		linear-gradient(0deg, rgba(8, 8, 8, .35) 0%, rgba(8, 8, 8, 0) 35%);
}
html[dir="rtl"] .hero-shade {
	background:
		linear-gradient(270deg, rgba(8, 8, 8, .55) 0%, rgba(8, 8, 8, .15) 50%, rgba(8, 8, 8, 0) 100%),
		linear-gradient(0deg, rgba(8, 8, 8, .35) 0%, rgba(8, 8, 8, 0) 35%);
}
html[dir="ltr"] .hero-photo { transform: scaleX(-1); }
@media (max-width: 860px) { html[dir="ltr"] .hero-photo { transform: none; } }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; padding-block: 22px 56px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: rgba(255, 255, 255, .72); }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: var(--gold); }
html[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { color: var(--gold-light); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero-card {
	margin-top: auto; max-width: 600px;
	background: var(--white); color: var(--ink);
	padding: clamp(28px, 4vw, 48px);
	border-top: 4px solid var(--gold);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
	animation: card-in .9s .15s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.hero h1 { font-family: var(--f-display); font-size: clamp(44px, 6vw, 72px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 14px; }
.hero-lead { font-size: 18px; color: var(--ink-2); margin-bottom: 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
	.hero { min-height: 0; }
	.hero-art { bottom: auto; height: 340px; }
	.hero-shade { background: linear-gradient(0deg, rgba(8, 8, 8, .9) 0%, rgba(8, 8, 8, .2) 45%, rgba(8, 8, 8, .35) 100%) !important; }
	.hero-inner { padding-bottom: 0; }
	.hero-card { margin-top: 250px; margin-inline: calc(var(--gutter) * -1); max-width: none; box-shadow: none; animation: none; }
}

/* Framed photos */
.framed { position: relative; margin: 36px 0 0; padding: 0 0 14px 14px; }
html[dir="rtl"] .framed { padding: 0 14px 14px 0; }
.framed::before { content: ""; position: absolute; inset: 14px 14px 0 0; border: 2px solid var(--gold); z-index: 0; }
html[dir="rtl"] .framed::before { inset: 14px 0 0 14px; }
.framed img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.band-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; pointer-events: none; }
.careers .framed img { filter: brightness(.9); }
@media (max-width: 860px) {
	.side-photo { display: none; }
	.framed { margin-top: 24px; }
}

/* ─── Sections ───────────────────────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 112px); }
.h-section {
	font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.005em;
	padding-bottom: 18px; margin-bottom: 26px; position: relative;
}
.h-section::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 64px; height: 3px; background: var(--gold); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0 0 30px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; }
.split-head .lead { color: var(--muted); font-size: 18px; }
.prose p { color: var(--ink-2); }
.prose h3 { font-family: var(--f-display); font-size: 26px; margin: 34px 0 14px; }
.prose a { color: var(--gold-dark); }
@media (max-width: 860px) {
	.split, .section-head { grid-template-columns: 1fr; }
	.section-head p { margin-bottom: 0; }
	.section-head { margin-bottom: 28px; }
}

/* Overview stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 64px 0 0; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; padding: 28px 24px 4px 0; }
.stat dd { order: -1; }
html[dir="rtl"] .stat { padding: 28px 0 4px 24px; }
.stat + .stat { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.stat dd { margin: 0; font-family: var(--f-display); font-size: clamp(34px, 4vw, 48px); font-weight: 600; color: var(--gold-dark); line-height: 1.1; direction: ltr; unicode-bidi: isolate; text-align: start; }
html[dir="rtl"] .stat dd { font-family: "Playfair Display", "Amiri", serif; text-align: right; }
.stat dt { margin-top: 8px; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) {
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Practices */
.practices { background: var(--ivory); }
.practice-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.practice { background: var(--white); padding: 32px 28px 28px; display: flex; flex-direction: column; transition: background-color .25s; position: relative; }
.practice::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
html[dir="rtl"] .practice::before { transform-origin: right; }
.practice:hover::before, .practice:focus-within::before { transform: scaleX(1); }
.practice-icon { color: var(--gold-dark); margin-bottom: 18px; }
.practice h3 { font-family: var(--f-display); font-size: 22px; margin-bottom: 10px; }
.practice p { color: var(--muted); font-size: 15.5px; flex: 1; }
.practice-link { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.practice-link:hover { color: var(--gold-dark); }
.practice-link .arrow { transition: transform .2s; }
html[dir="rtl"] .practice-link .arrow { transform: scaleX(-1); }
.practice-link:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .practice-link:hover .arrow { transform: scaleX(-1) translateX(4px); }
@media (max-width: 1080px) { .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .practice-grid { grid-template-columns: 1fr; } .practice { padding: 26px 22px; } }

/* Approach */
.approach-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: center; }
.approach-photo { margin: 0; }
.approach-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
@media (max-width: 920px) { .approach-grid { grid-template-columns: 1fr; } .approach-photo img { aspect-ratio: 16 / 9; } }
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step-n { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 15px; color: var(--gold-dark); font-weight: 600; margin-bottom: 12px; letter-spacing: .1em; }
.step h3 { font-family: var(--f-display); font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 26px; } }

/* Quote */
.quote-band { background: var(--black); color: var(--white); padding-block: clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.quote-band::before { content: ""; position: absolute; top: -20%; bottom: -20%; inset-inline-start: 58%; width: 16%; background: rgba(197, 154, 64, .08); transform: skewX(-22deg); }
.quote-band .wrap { position: relative; z-index: 1; }
.quote-band figure { margin: 0 auto; max-width: 900px; position: relative; padding-inline-start: 84px; }
.quote-band figure::before { content: "“"; position: absolute; inset-inline-start: 0; top: -26px; font: 700 140px/1 "Playfair Display", Georgia, serif; color: var(--gold); }
html[dir="rtl"] .quote-band figure::before { content: "”"; }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p { font-family: var(--f-display); font-size: clamp(22px, 2.8vw, 32px); line-height: 1.5; color: var(--gold-light); font-style: italic; margin-bottom: 18px; }
html[lang="ar"] .quote-band blockquote p { font-style: normal; line-height: 1.8; }
.quote-band figcaption { color: rgba(255, 255, 255, .7); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 560px) { .quote-band figure { padding-inline-start: 0; padding-top: 60px; } .quote-band figure::before { top: -10px; font-size: 110px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; border: 1px solid var(--line); }
.office-card { padding: clamp(28px, 4vw, 44px); background: var(--ivory); }
.office-card img { width: 72px; height: 72px; margin-bottom: 16px; }
.office-card h3 { font-family: var(--f-display); font-size: 26px; margin-bottom: 18px; }
.office-card dl { margin: 0 0 26px; }
.office-card dt { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); margin-top: 14px; }
html[lang="ar"] .office-card dt { letter-spacing: 0; font-size: 14px; }
.office-card dd { margin: 2px 0 0; font-size: 17px; }
.office-card dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.office-card dd a:hover { border-color: var(--gold); }
.map { min-height: 420px; background: var(--sand); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.3) contrast(1.05); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .map, .map iframe { min-height: 320px; } }

/* ─── Forms ──────────────────────────────────────────────────────────── */
.form-section { border-top: 1px solid var(--line); }
.direct { font-size: 18px; font-weight: 600; line-height: 2; }
.direct a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.lex-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; align-content: start; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field > label, .field .label, .field legend { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--gold-dark); margin-inline-start: 3px; }
.lex-form input[type="text"], .lex-form input[type="email"], .lex-form input[type="tel"], .lex-form input[type="url"], .lex-form input[type="date"], .lex-form select, .lex-form textarea {
	width: 100%; min-height: 50px; padding: 12px 14px;
	background: var(--white); border: 1px solid #cfc7b6; border-radius: var(--radius);
	font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.lex-form textarea { resize: vertical; min-height: 120px; }
.lex-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
html[dir="rtl"] .lex-form select { background-position: 20px 22px, 15px 22px; }
.lex-form input:focus, .lex-form select:focus, .lex-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 154, 64, .22); }
.lex-form [aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.lex-form input[dir="ltr"] { text-align: left; }
html[dir="rtl"] .lex-form input[dir="ltr"] { text-align: right; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.segmented { flex-direction: row !important; flex-wrap: wrap; gap: 10px !important; }
.segmented legend { width: 100%; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border: 1px solid #cfc7b6; border-radius: var(--radius); font-size: 15px; font-weight: 500; transition: all .2s; background: var(--white); }
.segmented.small span { min-height: 42px; padding: 8px 16px; font-size: 14.5px; }
.segmented input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold-dark); flex-shrink: 0; }
.check.invalid label { color: var(--danger); }
.appt-only[hidden] { display: none; }
.file-drop { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1.5px dashed #cfc7b6; border-radius: var(--radius); background: var(--white); cursor: pointer; position: relative; min-height: 64px; transition: border-color .2s; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--gold); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-btn { padding: 10px 16px; background: var(--sand); border-radius: var(--radius); font-weight: 600; font-size: 14px; white-space: nowrap; }
.file-name { font-size: 14.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-drop.invalid { border-color: var(--danger); }
.form-status { grid-column: 1 / -1; padding: 14px 16px; border-radius: var(--radius); font-weight: 500; font-size: 15.5px; border-inline-start: 4px solid; }
.form-status.is-ok { background: #ecf6ef; color: var(--ok); border-color: var(--ok); }
.form-status.is-error { background: #fbeceb; color: var(--danger); border-color: var(--danger); }
.btn-submit { min-width: 220px; }
@media (max-width: 640px) {
	.lex-form { grid-template-columns: 1fr; }
	.btn-submit { width: 100%; }
}

/* Careers — dark variant */
.careers { background: var(--black); color: var(--white); border-top: 0; position: relative; overflow: hidden; }
.careers::before { content: ""; position: absolute; top: -10%; bottom: -10%; inset-inline-start: 8%; width: 12%; background: rgba(197, 154, 64, .07); transform: skewX(-22deg); pointer-events: none; }
.careers .wrap { position: relative; }
.careers .split-head .lead { color: rgba(255, 255, 255, .72); }
.careers .field > label, .careers .field .label, .careers .field legend { color: rgba(255, 255, 255, .88); }
.careers .lex-form input[type="text"], .careers .lex-form input[type="email"], .careers .lex-form input[type="tel"], .careers .lex-form input[type="url"], .careers .lex-form select, .careers .lex-form textarea {
	background-color: #161512; border-color: #3a362d; color: var(--white);
}
.careers .lex-form select { background-image: linear-gradient(45deg, transparent 50%, var(--gold-light) 50%), linear-gradient(135deg, var(--gold-light) 50%, transparent 50%); }
.careers .lex-form select option { background: #161512; }
.careers .segmented span { background: #161512; border-color: #3a362d; }
.careers .segmented input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--black); }
.careers .check label { color: rgba(255, 255, 255, .72); }
.careers .file-drop { background: #161512; border-color: #4a4538; }
.careers .file-btn { background: var(--gold); color: var(--black); }
.careers .file-name { color: rgba(255, 255, 255, .7); }
.careers .h-section { color: var(--white); }
.careers .form-status.is-ok { background: rgba(30, 107, 58, .18); color: #9fe0b4; }
.careers .form-status.is-error { background: rgba(179, 38, 30, .2); color: #ffb4ad; }
.careers ::placeholder { color: rgba(255, 255, 255, .35); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: #060606; color: rgba(255, 255, 255, .72); font-size: 15.5px; border-top: 1px solid rgba(197, 154, 64, .25); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px; padding-block: 64px 44px; }
.footer-brand img { width: 84px; height: 84px; margin-bottom: 16px; }
.footer-brand p { max-width: 380px; }
.footer-h { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; }
html[lang="ar"] .footer-h { letter-spacing: 0; font-size: 15px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, .86); }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* WhatsApp */
.wa-float {
	position: fixed; bottom: 20px; right: 20px; z-index: 40;
	width: 58px; height: 58px; border-radius: 50%;
	display: grid; place-items: center;
	background: #25d366; color: var(--white);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
	transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }

/* Generic page (privacy policy etc.) */
.page-main { padding-block: 64px 96px; }
.entry-title { font-family: var(--f-display); font-size: clamp(32px, 4vw, 46px); margin-bottom: 28px; }
.entry-content h2 { font-family: var(--f-display); font-size: 26px; margin: 32px 0 12px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
