/* =========================================================
   APEX GLOBAL TALENT & RECRUITMENT
   Main Stylesheet
   ========================================================= */

/* =========================================================
   01. VARIABLES
   ========================================================= */

:root {
    --navy: #071d35;
    --navy-2: #0c2947;

    --gold: #d4a84b;
    --gold-2: #edc66c;

    --ink: #162335;
    --muted: #667284;

    --off-white: #f7f6f2;
    --white: #ffffff;
    --line: #e5e3dc;

    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;

    --container: 1240px;
    --radius-lg: 45px;
    --radius-md: 22px;
    --radius-sm: 12px;

    --shadow-soft: 0 15px 40px rgba(7, 29, 53, .09);
    --transition: .25s ease;
}


/* =========================================================
   02. RESET & GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
    background: var(--white);
}

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

button,
input,
textarea,
select {
    font-family: inherit;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.section {
    padding: 95px 0;
}

.section h2 {
    margin: 0 0 20px;
    color: var(--navy);
    font-family: var(--serif);
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.08;
}


/* =========================================================
   03. TOP BAR
   ========================================================= */

.topbar {
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
}

.topbar-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.contact-mini {
    display: flex;
    gap: 20px;
}

.license {
    opacity: .9;
}


/* =========================================================
   04. HEADER / NAVBAR
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
}

.brand img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 180px;
    object-fit: contain;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 700;
}

.brand strong {
    display: block;
    font-size: 17px;
    line-height: 1;
    letter-spacing: .04em;
}

.brand small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
}

/* Navigation links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 15px;
    font-weight: 700;
}

.nav-links > a:not(.btn) {
    position: relative;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-links > a.active,
.nav-links > a:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.menu-btn {
    display: none;
    border: 0;
    background: none;
    color: var(--navy);
    font-size: 25px;
    cursor: pointer;
}


/* =========================================================
   05. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-gold:hover {
    background: var(--gold-2);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-dark {
    background: var(--navy);
    color: var(--white);
}


/* =========================================================
   06. HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
    border-radius: 0 0 40px 40px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(5, 22, 41, .98) 0%,
            rgba(5, 22, 41, .84) 42%,
            rgba(5, 22, 41, .25) 78%
        ),
        url("https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=2200&q=85")
        center / cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 45px 0 50px;
}

.hero-content::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    top: -220px;
    right: -220px;
    border-radius: 50%;
    background: rgba(212, 168, 75, .07);
    pointer-events: none;
}

.eyebrow {
    margin: 0 0 12px;
    color: #a97819;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
}

.eyebrow.light {
    color: #e4c36e;
}

.hero h1 {
    max-width: 800px;
    margin: 0 0 15px;
    font-family: var(--serif);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    font-weight: 600;
}

.hero h1 em {
    color: var(--gold-2);
    font-style: normal;
}

.hero-copy {
    max-width: 560px;
    margin: 0;
    color: #e9edf2;
    font-size: 14px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.hero-actions .btn {
    padding: 11px 21px;
}

.countries-inline {
    font-size: 13px;
    font-weight: 600;
    word-spacing: 7px;
}

.countries-inline i {
    color: var(--gold);
    font-style: normal;
}

/* Hero people */
.hero-people {
    position: absolute;
    right: -5%;
    bottom: 0;
    z-index: 1;
    width: 54%;
    height: 90%;
    opacity: .96;
}

.person {
    position: absolute;
    bottom: 0;
    background-position: center top;
    background-size: cover;
    filter: saturate(.9);
}

.worker {
    right: 30%;
    width: 40%;
    height: 84%;
    background-image:
        url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=900&q=85");
}

.doctor {
    right: 0;
    width: 38%;
    height: 82%;
    background-image:
        url("https://images.unsplash.com/photo-1559839734-2b71ea197ec2?auto=format&fit=crop&w=900&q=85");
}

.chef {
    right: 17%;
    width: 27%;
    height: 70%;
    background-image:
        url("https://images.unsplash.com/photo-1577219491135-ce391730fb2c?auto=format&fit=crop&w=800&q=85");
}


/* =========================================================
   07. STATS
   ========================================================= */

.stats {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.stats-grid div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 25px;
    border-right: 1px solid var(--line);
}

.stats-grid div:last-child {
    border-right: 0;
}

.stats-grid b {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 35px;
}

.stats-grid span {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.3;
}


/* =========================================================
   08. ABOUT
   ========================================================= */

.about {
    background: var(--off-white);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    position: relative;
    height: 460px;
    overflow: hidden;
    border-radius: 28px;
    background:
        linear-gradient(
            0deg,
            rgba(0, 0, 0, .6),
            transparent 55%
        ),
        url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1200&q=85")
        center / cover;
}

.image-label {
    position: absolute;
    left: 35px;
    bottom: 35px;
    color: var(--white);
    font-family: var(--serif);
    font-size: 27px;
    line-height: 1.1;
}

.about-copy p {
    color: var(--muted);
    font-size: 15px;
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    padding-bottom: 3px;
    color: #9a6d16;
    font-weight: 700;
    border-bottom: 1px solid #d4b76f;
}


/* =========================================================
   09. SERVICES
   ========================================================= */

.services {
    background: var(--white);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

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

.service {
    padding: 30px 23px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service:hover {
    border-color: var(--gold);
    background: var(--off-white);
    transform: translateY(-4px);
}

.icon {
    display: block;
    color: var(--gold);
    font-size: 30px;
}

.service h3 {
    font-size: 16px;
    line-height: 1.3;
}

.service p,
.service a {
    color: var(--muted);
    font-size: 13px;
}

.service a {
    color: #9a6d16;
    font-weight: 700;
}


/* =========================================================
   10. RECRUITMENT PROCESS
   ========================================================= */

.process {
    margin: 0 18px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
}

.process h2 {
    color: var(--white);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin-top: 45px;
}

.timeline > div {
    position: relative;
    padding: 20px 14px;
    border-top: 1px solid rgba(255, 255, 255, .3);
}

.timeline b {
    display: block;
    color: var(--gold-2);
    font-family: var(--serif);
    font-size: 24px;
}

.timeline span {
    font-size: 13px;
}


/* =========================================================
   11. INDUSTRIES
   ========================================================= */

.industries {
    background: var(--off-white);
}

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

.industry-grid article {
    min-height: 190px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.industry-grid article:hover {
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(7, 29, 53, .08);
    transform: translateY(-5px);
}

.industry-grid span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
}

.industry-grid h3 {
    font-size: 17px;
    line-height: 1.3;
}

.industry-grid p {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   12. OUR REACH / GULF COUNTRIES
   ========================================================= */

.gulf {
    margin: 0 18px 50px;
    background:
        linear-gradient(
            90deg,
            rgba(7, 29, 53, .97),
            rgba(7, 29, 53, .78)
        ),
        url("https://images.unsplash.com/photo-1548013146-72479768bada?auto=format&fit=crop&w=2200&q=85")
        center / cover;
    color: var(--white);
    border-radius: var(--radius-lg);
}

.gulf h2 {
    color: var(--white);
}

.gulf-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-top: 45px;
}

.gulf-grid span {
    padding: 25px 10px;
    color: var(--white);
    text-align: center;
    font-family: var(--serif);
    font-size: 21px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 18px;
    transition: var(--transition);
}

.gulf-grid span:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--gold);
    transform: translateY(-4px);
}


/* =========================================================
   13. FOR EMPLOYERS
   ========================================================= */

.portal {
    position: relative;
    margin: 0 18px;
    padding: 42px 0;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
}

.portal::before,
.portal::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.portal::before {
    width: 320px;
    height: 320px;
    top: -150px;
    left: -100px;
    background: rgba(190, 155, 70, .07);
}

.portal::after {
    width: 250px;
    height: 250px;
    right: -100px;
    bottom: -100px;
    border: 1px solid rgba(190, 155, 70, .15);
}

.portal .container {
    position: relative;
    z-index: 2;
}

.portal-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 45px;
    align-items: center;
}

.portal-content {
    max-width: 520px;
}

.portal-content .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portal-content h2 {
    margin-bottom: 15px;
    color: var(--white);
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.12;
}

.portal-content p {
    max-width: 500px;
    margin-bottom: 22px;
    color: #cbd5df;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   14. FORMS
   ========================================================= */

.form {
    padding: 15px 32px;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.portal .form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.form label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 700;
}

.form input,
.form textarea,
.form select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 7px 12px;
    border: 1px solid #d8dbe0;
    border-radius: 10px;
    outline: none;
    font: inherit;
    font-size: 13px;
}

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

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

.form button {
    margin-top: 2px;
    padding: 9px 20px;
}

.form-status {
    margin: 12px 0 0;
    font-size: 13px !important;
}


/* =========================================================
   15. JOBS
   ========================================================= */

.jobs {
    background: var(--white);
}

.empty-jobs {
    margin-top: 35px;
    padding: 60px;
    text-align: center;
    background: var(--off-white);
    border: 1px dashed #c9c6bb;
    border-radius: 25px;
}

.empty-jobs span {
    color: var(--gold);
    font-size: 30px;
}

.empty-jobs h3 {
    font-family: var(--serif);
    font-size: 25px;
}

.empty-jobs p {
    color: var(--muted);
}


/* =========================================================
   16. WHY APEX
   ========================================================= */

.why {
    background: var(--off-white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 40px;
}

.why-grid > div {
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.why-grid > div:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}

.why-grid b {
    color: var(--gold);
}

.why-grid h3 {
    font-size: 18px;
}

.why-grid p {
    color: var(--muted);
    font-size: 13px;
}


/* =========================================================
   17. CONTACT
   ========================================================= */

.contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 14px;
}

.contact-list a {
    color: #9a6d16;
    font-weight: 700;
}

.contact-list span {
    font-size: 15px;
    font-weight: 700;
}

.contact .form {
    border: 1px solid var(--line);
}


/* =========================================================
   18. FOOTER
   ========================================================= */

.footer {
    padding: 65px 0 20px;
    background: #061a30;
    color: #c5ced8;
    border-radius: 55px 55px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr 1fr;
    gap: 50px;
}

.brand-light {
    color: var(--white);
}

.footer-grid > div > p {
    max-width: 310px;
    font-size: 13px;
}

.footer h4 {
    margin-top: 0;
    color: var(--white);
}

.footer-grid > div:not(:first-child) a {
    display: block;
    margin: 7px 0;
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 11px;
}

.footer-bottom a {
    margin-left: 10px;
}


/* =========================================================
   19. ANIMATIONS
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s, transform .7s;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}


/* =========================================================
   20. TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .nav-links {
        gap: 15px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gulf-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   21. MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .container {
        width: min(100% - 30px, 600px);
    }

    .topbar {
        display: none;
    }

    .nav {
        height: 68px;
    }

    .brand img {
        height: 44px;
        max-width: 160px;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 15px;
        background: var(--white);
        box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > a:not(.btn) {
        padding: 10px;
    }

    /* Hero */
    .hero {
        min-height: auto;
        border-radius: 0 0 30px 30px;
    }

    .hero-content {
        padding: 38px 0 42px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.1;
    }

    .hero-copy {
        font-size: 13px;
    }

    .hero-actions {
        gap: 9px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-people {
        width: 100%;
        right: -15%;
        opacity: .3;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        border-radius: 18px;
    }

    .stats-grid div {
        padding: 18px 10px;
    }

    .stats-grid div:nth-child(2) {
        border-right: 0;
    }

    /* Sections */
    .section {
        padding: 65px 0;
    }

    .section-head {
        display: block;
    }

    .section-head > .text-link {
        margin-top: 20px;
    }

    /* About */
    .two-col {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image {
        height: 330px;
    }

    /* Grids */
    .service-grid,
    .industry-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Process */
    .process {
        margin: 0 8px;
        border-radius: 35px;
    }

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

    /* Gulf */
    .gulf {
        margin: 0 8px 30px;
        border-radius: 35px;
    }

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

    .gulf-grid span:nth-child(even) {
        border-right: 0;
    }

    /* Employer */
    .portal {
        margin: 0 8px;
        padding: 35px 0;
        border-radius: 35px;
    }

    .portal-grid {
        gap: 28px;
    }

    .portal-content h2 {
        font-size: 30px;
    }

    .portal-content p {
        font-size: 13px;
    }

    /* Forms */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .portal .form {
        padding: 12px 22px;
        border-radius: 18px;
    }

    .portal .form input,
    .portal .form select,
    .portal .form textarea {
        padding: 6px 11px;
        margin-bottom: 4px;
    }

    .portal .form textarea {
        height: 50px;
        min-height: 50px;
    }

    /* Footer */
    .footer {
        border-radius: 35px 35px 0 0;
    }

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

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin: 8px 0;
    }
}
