/* =========================================================
   RITA Manpower Agency — Design Tokens
   Palette drawn from the logo: deep navy + sky blue,
   plus a warm amber accent for a human, trustworthy feel.
   ========================================================= */
:root {
    --navy: #0F3059;
    --navy-deep: #0A2242;
    --blue: #1863C6;
    --sky: #29A9E1;
    --amber: #E8A33D;
    --clay: #B24A2C;
    --clay-deep: #8F3A21;
    --ink: #201C18;
    --paper: #FBF7F1;
    --white: #FFFFFF;
    --line: #E7DFD3;
    --radius-s: 8px;
    --radius-m: 18px;
    --radius-l: 28px;
}

@font-face-fallback { /* using Google Fonts links in header.php */ }

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Work Sans', 'Tajawal', sans-serif;
    line-height: 1.6;
}

[dir="rtl"] body { font-family: 'Tajawal', 'Work Sans', sans-serif; }

h1, h2, h3 { font-weight: 700; margin: 0 0 .5em; color: var(--navy-deep); }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 1140px;
    margin: 0 auto;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 48px; width: auto; }
.logo-wrap .site-name { font-weight: 700; font-size: 1.05rem; color: var(--navy-deep); }

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 26px;
    margin: 0;
    padding: 0;
}
nav.main-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
    border-bottom-color: var(--sky);
    color: var(--navy-deep);
}

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch a {
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy);
    border: 1px solid var(--line);
    padding: 6px 10px;
    border-radius: var(--radius-s);
}
.btn-whatsapp {
    background: #21A651;
    color: #fff;
    padding: 9px 16px;
    border-radius: var(--radius-s);
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-whatsapp:hover { background: #1c8a44; }

/* ---------- Hero ---------- */
.hero {
    background: var(--navy-deep);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero .container {
    padding-top: 56px;
    padding-bottom: 0;
}
.hero-slide.active {
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: end;
}
.hero-slide > div:first-child { padding-bottom: 56px; }
.hero h1 {
    color: #fff;
    font-size: 2.5rem;
    line-height: 1.28;
    max-width: 540px;
    letter-spacing: -.01em;
}
.hero p.lead {
    color: #C9D6E8;
    font-size: 1.05rem;
    max-width: 460px;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.btn-primary {
    background: var(--clay);
    color: #fff;
    padding: 13px 24px;
    border-radius: var(--radius-s);
    font-weight: 700;
    display: inline-block;
}
.btn-primary:hover { background: var(--clay-deep); }
.btn-outline {
    border: 1.5px solid rgba(255,255,255,.55);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-s);
    font-weight: 600;
    display: inline-block;
}
.btn-outline:hover { border-color: #fff; }

.hero-graphic {
    position: relative;
    height: 320px;
}
.hero-graphic svg { width: 100%; height: 100%; }

.hero-photo {
    position: relative;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    overflow: hidden;
    aspect-ratio: 4 / 3.6;
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-photo-badge {
    position: absolute;
    top: 18px;
    inset-inline-start: 18px;
    background: rgba(10,34,66,.72);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-photo-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4FD17A;
    display: inline-block;
}

/* ---------- Trust strip ---------- */
.trust-strip {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.trust-strip .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(24,99,198,.09);
    display: flex; align-items: center; justify-content: center;
}
.trust-item h3 { font-size: 1rem; margin-bottom: 4px; }
.trust-item p { font-size: .9rem; color: #4B5A72; margin: 0; }

/* ---------- Section shell ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head h2 { font-size: 1.8rem; }
.section-head p { color: #4B5A72; }
.section-alt { background: var(--white); }

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
}
.service-card {
    padding: 30px 26px;
    border-inline-end: 1px solid var(--line);
    background: var(--white);
}
.service-card:last-child { border-inline-end: none; }
.service-card h3 { font-size: 1.1rem; color: var(--navy); }
.service-card p { font-size: .92rem; color: #4B5A72; margin: 0; }
.service-num {
    font-size: .8rem;
    font-weight: 700;
    color: var(--sky);
    margin-bottom: 10px;
    display: block;
}
.process-grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Specialties ---------- */
.specialty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.specialty-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: .95rem;
}
.specialty-icon { font-size: 1.4rem; line-height: 1; }
@media (max-width: 860px) { .specialty-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .specialty-grid { grid-template-columns: 1fr; } }

/* ---------- License & Accreditation ---------- */
.license-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 34px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
}
.license-emblem { height: 46px; margin-bottom: 18px; }
.license-emblem img { height: 100%; width: auto; }
.license-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.license-fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; }
.license-fact .label { font-size: .78rem; color: #6B6157; margin-bottom: 4px; }
.license-fact .value { font-weight: 700; color: var(--navy-deep); font-size: .98rem; }
.license-thumb {
    display: block;
    border-radius: var(--radius-m);
    overflow: hidden;
    border: 1px solid var(--line);
    position: relative;
}
.license-thumb img { width: 100%; display: block; }
.license-thumb span {
    position: absolute; bottom: 0; inset-inline-start: 0; inset-inline-end: 0;
    background: rgba(10,34,66,.82);
    color: #fff; font-size: .82rem; font-weight: 600;
    padding: 10px 14px; text-align: center;
}
@media (max-width: 860px) {
    .license-card { grid-template-columns: 1fr; }
    .license-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .license-facts { grid-template-columns: 1fr; }
}

/* ---------- Nationalities ---------- */
.nat-section { background: var(--navy-deep); color: #fff; }
.nat-section .section-head h2 { color: #fff; }
.nat-section .section-head p { color: #B9C7DD; }
.nat-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
.nat-photo { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 16/10; position: relative; }
.nat-photo img { width: 100%; height: 100%; object-fit: cover; }
.nat-photo span {
    position: absolute; bottom: 0; inset-inline-start: 0; inset-inline-end: 0;
    background: linear-gradient(0deg, rgba(10,34,66,.85), transparent);
    color: #fff; font-weight: 700; padding: 16px 18px 12px; font-size: .95rem;
}
.nat-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nat-group h4 { color: #E8A33D; font-size: .85rem; margin-bottom: 10px; letter-spacing: .01em; }
.nat-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.nat-chip {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .88rem;
    display: flex; align-items: center; gap: 8px;
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    z-index: 90;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #21A651;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(0,0,0,.28);
    transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); background: #1c8a44; }
.wa-float svg { width: 28px; height: 28px; }
@media (max-width: 560px) {
    .wa-float { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}

/* ---------- About ---------- */
.about-wrap {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
    align-items: center;
}
.about-badge {
    background: var(--navy-deep);
    color: #fff;
    border-radius: var(--radius-m);
    padding: 34px;
}
.about-badge strong { font-size: 2.2rem; display: block; color: var(--sky); }
.about-badge span { font-size: .9rem; color: #C9D8ED; }

/* ---------- Workers grid ---------- */
.workers-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 12px;
}
.workers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.worker-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
}
.worker-photo {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #E7EEF8, #D7E4F5);
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
}
.worker-body { padding: 18px 20px; }
.worker-body h3 { font-size: 1.05rem; margin-bottom: 2px; }
.worker-meta { font-size: .85rem; color: #4B5A72; margin-bottom: 10px; }
.worker-status {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.status-available { background: #E3F5E8; color: #1E7B3C; }
.status-reserved { background: #FDF1DC; color: #A56A0E; }
.status-hired { background: #F1E9FB; color: #6C3AA8; }
.worker-body .btn-primary { width: 100%; text-align: center; padding: 10px; font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-wrap {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 48px;
}
.contact-info-card {
    background: var(--navy-deep);
    color: #fff;
    border-radius: var(--radius-m);
    padding: 32px;
}
.contact-info-card h3 { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.contact-info-item { margin-bottom: 22px; }
.contact-info-item .label { font-size: .8rem; color: #9FB4D6; margin-bottom: 4px; }
.contact-info-item .value { font-size: 1rem; font-weight: 600; }

form.contact-form { display: grid; gap: 16px; }
.contact-form label { font-size: .85rem; font-weight: 600; margin-bottom: 6px; display: block; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    font-family: inherit;
    font-size: .95rem;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.alert-success {
    background: #E3F5E8;
    color: #1E7B3C;
    padding: 14px 18px;
    border-radius: var(--radius-s);
    margin-bottom: 18px;
    font-size: .9rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: #C9D8ED;
    padding: 36px 0 22px;
    font-size: .88rem;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    margin-bottom: 18px;
}
.footer-top .site-name { color: #fff; font-weight: 700; }

/* ---------- Hero slider ---------- */
.hero-slider { position: relative; overflow: hidden; }
.hero-slide {
    display: none;
    animation: fadeSlide .6s ease;
}
.hero-slide.active { display: grid; }
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-illustration img { border-radius: var(--radius-m); }
.hero-dots {
    display: flex;
    gap: 8px;
    margin-top: 26px;
}
.hero-dots button {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    padding: 0;
}
.hero-dots button.active { background: var(--amber); width: 22px; border-radius: 5px; }

.section-visual {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 44px;
    align-items: center;
}
.section-visual.reverse { grid-template-columns: 1.15fr .85fr; }
.section-visual.reverse .section-visual-img { order: 2; }
.section-visual-img img { border-radius: var(--radius-m); width: 100%; }

@media (max-width: 860px) {
    .section-visual, .section-visual.reverse { grid-template-columns: 1fr; }
    .section-visual.reverse .section-visual-img { order: 0; }
}
@media (max-width: 860px) {
    nav.main-nav { display: none; }
    .hero-slide.active { grid-template-columns: 1fr; }
    .hero-graphic, .hero-illustration { display: none; }
    .trust-strip .container { grid-template-columns: 1fr; }
    .services-grid, .process-grid { grid-template-columns: 1fr; }
    .service-card { border-inline-end: none; border-bottom: 1px solid var(--line); }
    .about-wrap, .contact-wrap { grid-template-columns: 1fr; }
    .workers-grid { grid-template-columns: repeat(2, 1fr); }
    .nat-photos, .nat-groups { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hero h1 { font-size: 1.7rem; }
    .workers-grid { grid-template-columns: 1fr; }
}
