/*
Theme Name: OceanHire
Theme URI: https://oceanhire.co
Author: OceanHire
Author URI: https://oceanhire.co
Description: Trilingual (English, Français, العربية) maritime & cruise recruitment theme for OceanHire. Includes Home, About, Candidates, Employers, Jobs, Apply Now (secure CV upload, applications dashboard, CSV export), Contact and Privacy pages. Arabic switches the whole site to right-to-left. Pages are created automatically on activation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oceanhire
Tags: rtl-language-support, translation-ready, custom-colors, one-column, two-columns, business
*/

/* ==========================================================================
   Tokens — OceanHire brand
   ========================================================================== */
:root {
	--navy: #0B1F3A;
	--midnight: #07111F;
	--turquoise: #13C4C3;
	--teal-text: #0A7271;      /* turquoise dark enough for text on white */
	--silver: #D9E1E8;
	--ice: #F3F6F9;
	--white: #FFFFFF;
	--ink: #0B1F3A;
	--muted: #4A5B70;
	--on-dark: #FFFFFF;
	--on-dark-muted: #B9C7D6;
	--line: #E2E8EF;
	--line-strong: #C5D0DB;
	--error: #B3261E;
	--error-bg: #FCECEA;
	--success: #1B6B3A;
	--whatsapp: #128C4A;

	--font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 8px 24px rgba(11, 31, 58, .06);
	--shadow-lg: 0 20px 50px rgba(7, 17, 31, .25);
	--container: 1200px;
	--gutter: 20px;
	--section: 88px;
}

html[lang="ar"] { --font: "Cairo", "Poppins", system-ui, Tahoma, sans-serif; }

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.8; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; color: inherit; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.01em; }
h3, .h3 { font-size: 1.15rem; font-weight: 600; }
.h4 { font-size: 1.05rem; font-weight: 600; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-inline-start: 1.2em; }
.muted { color: var(--muted); font-size: .92rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 46rem; }

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

.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: 12px; top: -60px; z-index: 1000;
	background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.site-main:focus { outline: none; }

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

.icon { flex: none; vertical-align: middle; }
[dir="rtl"] .icon-flip { transform: scaleX(-1); }
.icon-back { transform: scaleX(-1); }
[dir="rtl"] .icon-back { transform: none; }

/* ==========================================================================
   Buttons, chips, badges
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--turquoise); color: var(--navy); }
.btn-primary:hover { background: #2fd6d5; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--midnight); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #0e7a40; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row-center { justify-content: center; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--teal-text); text-decoration: none; }
.link-arrow:hover { gap: 10px; color: var(--navy); }

.kicker {
	display: inline-block; margin: 0 0 12px; font-size: .8rem; font-weight: 600;
	letter-spacing: .14em; text-transform: uppercase; color: var(--teal-text);
}
.kicker-light { color: var(--turquoise); }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .95rem; }

.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
	background: rgba(19, 196, 195, .12); color: var(--teal-text); font-size: .82rem; font-weight: 600;
}
.chip-dark { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }

.icon-badge {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 48px; height: 48px; border-radius: 12px; background: rgba(19, 196, 195, .14); color: var(--teal-text);
}
.icon-badge-lg { width: 64px; height: 64px; border-radius: 16px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 170px; height: auto; display: block; }

.nav-toggle {
	margin-inline-start: auto; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle .nav-toggle-close { display: none; }
.nav-open .nav-toggle .nav-toggle-open { display: none; }
.nav-open .nav-toggle .nav-toggle-close { display: inline-flex; }

.site-nav { display: none; }
.nav-open .site-nav {
	display: block; position: absolute; inset-inline: 0; top: 100%; background: #fff;
	border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter) 20px;
	max-height: calc(100vh - 76px); overflow-y: auto;
}
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
	display: block; padding: 12px 4px; font-weight: 500; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line);
}
.nav-list a:hover, .nav-list a.is-current { color: var(--teal-text); }
.nav-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }

.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--ice); }
.lang-link {
	display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 34px; padding: 0 10px;
	border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none;
}
.lang-link[lang="ar"] { font-family: "Cairo", var(--font); font-size: 1rem; }
.lang-link:hover { color: var(--navy); }
.lang-link.is-active { background: var(--navy); color: #fff; }

@media (min-width: 1080px) {
	.nav-toggle { display: none; }
	.site-nav, .nav-open .site-nav {
		display: flex; align-items: center; gap: 24px; position: static; flex: 1; padding: 0; box-shadow: none; border: 0;
		background: transparent; max-height: none; overflow: visible;
	}
	.site-nav nav { margin-inline-start: auto; }
	.nav-list { display: flex; gap: 4px; }
	.nav-list a { border: 0; padding: 8px 12px; border-radius: 8px; font-size: .95rem; position: relative; }
	.nav-list a.is-current::after {
		content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--turquoise); border-radius: 2px;
	}
	.nav-actions { padding: 0; }
	.brand img { width: 190px; }
}

/* ==========================================================================
   Sections & layout
   ========================================================================== */
.section { padding-block: var(--section); }
.section-alt { background: var(--ice); }
.section-flush { padding-bottom: 0; }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark p { color: var(--on-dark-muted); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }
.section-head-start { text-align: start; margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; text-align: start; max-width: none; }

.grid { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-dept { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) {
	.split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
	.split-wide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.stack { display: grid; gap: 20px; }

.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 16px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card-accent { border-top: 4px solid var(--turquoise); }
.feature h3 { margin-top: 16px; }
.feature p { color: var(--muted); }
.dept-card { transition: transform .15s, border-color .15s; }
.dept-card:hover { transform: translateY(-3px); border-color: rgba(19, 196, 195, .6); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero, .page-hero {
	position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate;
}
.hero::before, .page-hero::before {
	content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; border-radius: 50%;
	inset-inline-end: -220px; top: -260px; border: 1px solid rgba(19, 196, 195, .18);
	box-shadow: 0 0 0 80px rgba(19, 196, 195, .03), 0 0 0 160px rgba(19, 196, 195, .025);
}
.hero .lead, .page-hero .lead { color: var(--on-dark-muted); }
.hero-inner { display: grid; gap: 48px; align-items: center; padding-block: 72px 140px; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); padding-block: 96px 160px; } }
.hero h1 { color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: var(--on-dark-muted); }
.hero-points .icon { color: var(--turquoise); }

.hero-visual { position: relative; display: none; justify-self: center; width: 400px; max-width: 100%; aspect-ratio: 1; }
@media (min-width: 960px) { .hero-visual { display: block; } }
.hero-emblem { display: flex; align-items: center; justify-content: center; height: 100%; }
.hero-emblem .oh-mark { width: 85%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); }
.float-card {
	position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
	background: #fff; color: var(--navy); border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .9rem; white-space: nowrap;
}
[dir="rtl"] .float-card { padding: 10px 10px 10px 16px; }
.float-card .icon-badge { width: 38px; height: 38px; border-radius: 10px; }
.float-card-1 { top: 8%; inset-inline-start: -8%; }
.float-card-2 { top: 46%; inset-inline-end: -12%; }
.float-card-3 { bottom: 8%; inset-inline-start: 4%; }

.wave { position: absolute; bottom: -1px; inset-inline: 0; width: 100%; height: 70px; display: block; }
.wave path { fill: #fff; }
.wave .wave-soft { fill: rgba(19, 196, 195, .35); }
.page-hero:has(+ .section-form) .wave path:not(.wave-soft), .page-hero:has(+ .section-alt) .wave path:not(.wave-soft) { fill: var(--ice); }

.page-hero-inner { padding-block: 64px 120px; max-width: 900px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--on-dark-muted); text-decoration: none; font-size: .92rem; }
.back-link:hover { color: #fff; }

.hero-404-inner { text-align: center; padding-block: 80px 150px; display: flex; flex-direction: column; align-items: center; }
.hero-404 .lead { margin-inline: auto; }

/* ==========================================================================
   Steps, checklists, FAQ
   ========================================================================== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: s; }
@media (min-width: 760px) { .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.section-alt .step { background: #fff; }
.step-num {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--navy); color: var(--turquoise); font-weight: 700; margin-bottom: 16px;
}
.step p { color: var(--muted); margin: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist.card { padding: 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--teal-text); margin-top: 3px; }
.checklist-dark .icon { color: var(--turquoise); }
.checklist-dark li { color: #fff; font-size: 1.05rem; }
.dept-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq-item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
	font-weight: 600; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; color: var(--teal-text); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ==========================================================================
   Bands
   ========================================================================== */
.cta-band {
	position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center;
	padding: 48px clamp(24px, 5vw, 56px); border-radius: 24px; background: var(--navy); color: #fff;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: var(--on-dark-muted); margin: 0; max-width: 40rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.cta-band-text { position: relative; }
.cta-band-mark { position: absolute; inset-inline-end: -40px; bottom: -70px; opacity: .14; pointer-events: none; }

.employer-band {
	display: grid; gap: 20px; align-items: center; padding: 36px; border-radius: 24px;
	background: var(--ice); border: 1px solid var(--line);
}
@media (min-width: 900px) { .employer-band { grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; } }
.employer-band h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: 6px; }
.employer-band p { margin: 0; color: var(--muted); }

/* About */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose-card { padding: clamp(24px, 5vw, 48px); }
.prose-card p { color: var(--ink); }
.prose-card .muted { color: var(--muted); }
.founder { display: grid; gap: 32px; align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: 24px; border: 1px solid var(--line); }
@media (min-width: 760px) { .founder { grid-template-columns: auto minmax(0, 1fr); } }
.founder-mark { display: flex; justify-content: center; }
.founder-name { margin-bottom: 4px; }
.founder-role { color: var(--teal-text); font-weight: 600; }

/* ==========================================================================
   Jobs
   ========================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px;
	border: 1px solid var(--line-strong); color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.job-card { display: flex; flex-direction: column; gap: 10px; }
.job-card .chip { align-self: flex-start; }
.job-card-title { margin: 6px 0 0; font-size: 1.2rem; }
.job-card-title a { color: var(--navy); text-decoration: none; }
.job-card-title a:hover { color: var(--teal-text); }
.job-meta { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .92rem; }
.job-meta li { display: inline-flex; align-items: center; gap: 6px; }
.job-card .link-arrow { margin-top: auto; }
.job-layout { display: grid; gap: 40px; }
@media (min-width: 900px) { .job-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .job-summary { position: sticky; top: 100px; } }
.job-summary dl { margin: 0 0 24px; display: grid; gap: 14px; }
.job-summary dt { font-size: .82rem; color: var(--muted); font-weight: 500; }
.job-summary dd { margin: 0; font-weight: 600; }
.empty-state { text-align: center; padding: 56px 24px; max-width: 640px; margin: 0 auto; }
.empty-state h2 { margin-top: 20px; font-size: 1.5rem; }
.empty-state p { margin-bottom: 24px; }
.pagination { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--navy);
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ==========================================================================
   Forms
   ========================================================================== */
.section-form { background: var(--ice); padding-top: 56px; }
.form-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) {
	.form-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 40px; }
	.form-aside { position: sticky; top: 100px; }
}
.form-aside { display: grid; gap: 16px; }
@media (max-width: 999px) { .form-aside { order: 2; } }
.aside-card { padding: 24px; }
.mini-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 14px; }
.mini-steps li { counter-increment: m; position: relative; padding-inline-start: 40px; display: grid; gap: 2px; }
.mini-steps li::before {
	content: counter(m); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
	background: var(--navy); color: var(--turquoise); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center;
}
.mini-steps strong { font-size: .95rem; }
.mini-steps span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.aside-note { display: flex; gap: 12px; align-items: flex-start; padding: 0 4px; color: var(--muted); font-size: .9rem; }
.aside-note .icon { color: var(--teal-text); margin-top: 2px; }
.aside-note p { margin: 0; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); min-width: 0; }
.required-note { color: var(--muted); font-size: .88rem; margin: 0 0 20px; }

.form-progress { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.form-progress li { display: flex; flex-direction: column; gap: 8px; font-size: .82rem; color: var(--muted); font-weight: 500; }
.form-progress li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); }
.form-progress .dot { display: none; }
.form-progress li.is-done::before, .form-progress li.is-current::before { background: var(--turquoise); }
.form-progress li.is-current { color: var(--navy); font-weight: 600; }
@media (max-width: 600px) { .form-progress .txt { display: none; } .form-progress li.is-current .txt { display: inline; } }
html:not(.js) .form-progress { display: none; }

.form-step { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.js .form-step:not(.is-active) { display: none; }
html:not(.js) .form-step { margin-bottom: 40px; }
.step-head { display: flex; flex-direction: column; gap: 2px; padding: 0; margin-bottom: 24px; }
.step-count { font-size: .8rem; font-weight: 600; color: var(--teal-text); text-transform: uppercase; letter-spacing: .1em; }
html[lang="ar"] .step-count { letter-spacing: 0; font-size: .9rem; }
.step-title { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.step-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-nav [data-next], .step-nav [data-submit] { margin-inline-start: auto; }
html:not(.js) .step-nav [data-next], html:not(.js) .step-nav [data-prev] { display: none; }

.field-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; } .span-2 { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend, .field > .label { font-weight: 600; font-size: .95rem; color: var(--navy); padding: 0; }
.field .req { color: var(--error); }
.field .optional { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field input[type="url"],
.field select, .field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
	background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
	appearance: none; -webkit-appearance: none; padding-inline-end: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230B1F3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center;
}
[dir="rtl"] .field select { background-position: left 12px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-text); box-shadow: 0 0 0 4px rgba(19, 196, 195, .22); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field-help { margin: 0; font-size: .85rem; color: var(--muted); }
.field-error { margin: 0; font-size: .88rem; font-weight: 500; color: var(--error); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.has-error .file-drop { border-color: var(--error); background: var(--error-bg); }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
	border: 1.5px solid var(--line-strong); cursor: pointer; font-weight: 500; user-select: none; background: #fff;
}
.choice:hover { border-color: var(--navy); }
.choice input { accent-color: var(--teal-text); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--teal-text); background: rgba(19, 196, 195, .1); }
.choice:has(input:focus-visible) { outline: 3px solid var(--turquoise); outline-offset: 2px; }

.check-field .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--ink); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--teal-text); }

.file-drop { position: relative; display: block; border: 2px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--ice); cursor: pointer; transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--teal-text); background: rgba(19, 196, 195, .08); }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop:has(input:focus-visible) { outline: 3px solid var(--turquoise); outline-offset: 2px; }
.file-ui { display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 64px; pointer-events: none; }
.file-ui .icon { color: var(--teal-text); }
.file-btn { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: .88rem; }
.file-name { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-drop.has-file { border-style: solid; border-color: var(--teal-text); background: rgba(19, 196, 195, .08); }
.file-drop.has-file .file-name { color: var(--navy); font-weight: 600; }

.hp-field { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid rgba(179, 38, 30, .25); }
.applying-for { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 24px; border-radius: var(--radius-sm); background: rgba(19, 196, 195, .1); border: 1px solid rgba(19, 196, 195, .35); }
.applying-for span { color: var(--muted); }
.applying-for .icon-badge { background: #fff; }

.success-panel { text-align: center; padding: 32px 8px; }
.success-panel:focus { outline: none; }
.success-icon { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; background: var(--turquoise); color: var(--navy); margin-bottom: 20px; }
.success-panel h2 { font-size: 1.6rem; }
.success-panel p { color: var(--muted); max-width: 520px; margin-inline: auto; }

.contact-cards { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 16px; }
.contact-cards li { display: flex; gap: 14px; align-items: center; }
.contact-cards .icon-badge { width: 44px; height: 44px; }
.contact-cards div { display: grid; min-width: 0; }
.contact-cards .label { font-size: .8rem; color: var(--muted); }
.contact-cards a { color: var(--navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-cards a:hover { color: var(--teal-text); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--midnight); color: var(--on-dark-muted); padding-top: 72px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 56px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } }
.footer-logo img { width: 200px; height: auto; display: block; margin-bottom: 18px; }
.footer-brand p { max-width: 360px; }
.footer-title { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--turquoise); }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list .icon { color: var(--turquoise); }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); }
.socials a:hover { border-color: var(--turquoise); }
.site-footer .lang-switch { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.site-footer .lang-link { color: var(--on-dark-muted); }
.site-footer .lang-link.is-active { background: var(--turquoise); color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 22px; font-size: .88rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom p { margin: 0; }

.wa-float {
	position: fixed; z-index: 90; bottom: 20px; inset-inline-end: 20px; width: 58px; height: 58px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: var(--whatsapp); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* Posts */
.post-card h2 a { color: var(--navy); text-decoration: none; }
.post-thumb { margin: 0 0 24px; }
.post-thumb img { border-radius: var(--radius); }

/* WordPress core classes */
.alignleft { float: left; margin-inline-end: 1.5em; }
.alignright { float: right; margin-inline-start: 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: .9rem; color: var(--muted); }

@media (max-width: 600px) {
	:root { --section: 64px; }
	.card { padding: 22px; }
	.cta-band { padding: 36px 22px; }
	.employer-band { padding: 26px; }
	.step-nav .btn { flex: 1 1 auto; }
}

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

@media print {
	.site-header, .site-footer, .wa-float, .wave { display: none; }
	.hero, .page-hero { background: none; color: #000; }
}
