﻿/* ============================================================
   RECRUITMENT FORCE — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@200;300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ─── Custom Properties ─── */
:root {
    --color-rf-forest: #090A0A;
    --color-rf-emerald: #165E3F;
    --color-rf-accent: #1A4D35;
    --color-rf-copper: #C4824A;
    --color-rf-cream: #F4F7F5;
    --color-rf-ivory: #FFFFFF;
    --color-rf-muted: #6B7280;
    --color-rf-border: #E5E7EB;
    --color-rf-blue: #004B87;
    --color-rf-green: #1A4D35;
    --color-rf-dark-green: #0D2419;
    --color-rf-dark: #090A0A;
    --color-rf-light: #F4F7F5;
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
    --font-serif: "Playfair Display", ui-serif, Georgia, serif;
}

/* ─── Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-rf-forest);
    background-color: var(--color-rf-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background-color: var(--color-rf-accent);
    color: white;
}

/* ─── Typography helpers ─── */
.font-display {
    font-family: var(--font-display);
}

.font-serif {
    font-family: var(--font-serif);
}

.font-sans {
    font-family: var(--font-sans);
}


/* ============================================================
   ANIMATIONS & TRANSITIONS
   ============================================================ */

/* ─── Fade-in-up (scroll-triggered via JS) ─── */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

    .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* Stagger delay helpers */
.stagger-1 {
    transition-delay: 0.10s;
}

.stagger-2 {
    transition-delay: 0.20s;
}

.stagger-3 {
    transition-delay: 0.30s;
}

.stagger-4 {
    transition-delay: 0.40s;
}

.stagger-5 {
    transition-delay: 0.50s;
}

/* Scale-up variant */
.scale-up {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

    .scale-up.visible {
        opacity: 1;
        transform: scale(1);
    }

/* ─── Infinite Marquee ─── */
@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.marquee-track {
    display: flex;
    gap: 5.5rem;
    align-items: center;
    width: max-content;
    animation: marquee 30s linear infinite;
}

/* ─── Floating icon ─── */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-7px);
    }
}

.icon-float {
    animation: iconFloat 3s ease-in-out infinite;
}

/* ─── Home hero logo entrance ─── */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-animate {
    animation: logoFadeIn 1s 0.3s both;
    /* layout (home page) */
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    z-index: 50;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-animate img {
        height: 3rem;
        width: auto;
    }


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--color-rf-accent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .nav-link:hover::after {
        transform: scaleX(1);
    }

.nav-text-light.nav-link::after {
    background-color: white;
}

#main-nav.nav-scrolled .nav-text-light.nav-link:hover {
    color: var(--color-rf-accent) !important;
}

#main-nav.nav-scrolled .nav-text-light.nav-link::after {
    background-color: var(--color-rf-accent);
}


/* ============================================================
   BUTTONS
   ============================================================ */

/* ─── Slide-up fill button ─── */
.btn-fill {
    position: relative;
    overflow: hidden;
}

    .btn-fill .fill-layer {
        position: absolute;
        inset: 0;
        transform: translateY(100%);
        transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .btn-fill:hover .fill-layer {
        transform: translateY(0);
    }

    .btn-fill .btn-text {
        position: relative;
        z-index: 1;
    }

/* ─── Secondary button ─── */
.btn-secondary {
    display: inline-flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
    background: none;
    padding: 0;
}

    .btn-secondary .btn-label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        line-height: 1;
    }

    /* Shared arrow-icon rotation */
    .btn-secondary .btn-icon,
    .btn-fill .btn-icon {
        transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
        flex-shrink: 0;
        display: block;
    }

    .btn-secondary:hover .btn-icon,
    .btn-fill:hover .btn-icon {
        transform: rotate(45deg);
    }


/* ============================================================
   JOB CARDS
   ============================================================ */

.job-card:hover .btn-icon {
    transform: rotate(45deg);
}

.job-card .bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--color-rf-emerald), var(--color-rf-accent));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.job-card.featured .bottom-line {
    transform: scaleX(1);
}

.job-card:hover .bottom-line {
    transform: scaleX(1);
}


/* ============================================================
   SPECIALTY ACCORDION
   ============================================================ */

.spec-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
    transition: grid-template-rows 0.7s cubic-bezier(0.16,1,0.3,1), opacity 0.7s ease, margin-top 0.7s ease;
}

    .spec-content.open {
        grid-template-rows: 1fr;
        opacity: 1;
        margin-top: 2rem;
    }

    .spec-content > div {
        overflow: hidden;
    }


/* ============================================================
   TESTIMONIALS
   ============================================================ */

.progress-bar {
    height: 2px;
    background: var(--color-rf-accent);
    width: 0%;
    transition: width 0.05s linear;
}


/* ============================================================
   CREDENTIAL CARDS
   ============================================================ */

.cred-card {
    overflow: hidden;
}

    .cred-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(to right, var(--color-rf-emerald), var(--color-rf-copper));
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .cred-card:hover::before {
        transform: scaleX(1);
    }

    .cred-card .icon-wrap {
        transition: background-color 0.45s ease, color 0.45s ease;
    }

    .cred-card:hover .icon-wrap {
        background-color: var(--color-rf-accent) !important;
        color: white !important;
    }


/* ============================================================
   SPLIT HERO (home page)
   ============================================================ */

.split-hero {
    display: flex;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.hero-side {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: flex 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

    .hero-side.expand {
        flex: 1.4;
    }

    .hero-side.shrink {
        flex: 0.6;
    }

/* ─── Background images ─── */
.bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 1s ease;
}

.hero-side:hover .bg-img {
    transform: scale(1.05);
}

.bg-img--finance {
    background-image: url('images/finance.jpg');
}

.bg-img--sales {
    background-image: url('images/sales.jpg');
}

/* ─── Overlays ─── */
.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(9, 10, 10, 0.72);
    transition: background-color 0.5s ease;
}

.hero-side.finance-hovered .overlay {
    background-color: rgba(4, 77, 41, 0.70);
}

.hero-side.sales-hovered .overlay {
    background-color: rgba(0, 40, 80, 0.70);
}

.gradient-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9,10,10,0.9) 0%, transparent 60%);
}

/* ─── Side divider ─── */
@media (min-width: 768px) {
    .hero-side {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    #sales-side {
        border-right: none;
    }

    #finance-side {
        padding-top: 0;
    }
}

/* ─── Content ─── */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    max-width: 32rem;
}
@media (max-width: 768px) {
    .hero-content{
        padding: 1rem 2rem;
    }
    .hero-content {
        padding-top: 85px;
    }
}


/* ─── Icon badge ─── */
.icon-badge {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-badge--finance {
    background: rgba(4, 77, 41, 0.30);
    border-color: #2E6A49;
    color: #2E6A49;
}

.icon-badge--sales {
    background: rgba(0, 75, 135, 0.15);
    border-color: rgba(0, 120, 210, 0.25);
    color: #0072ce;
}

/* ─── Heading ─── */
.hero-heading {
    text-align: center;
    transition: transform 0.5s ease;
}

.hero-side:hover .hero-heading {
    transform: translateY(-10px) scale(1.05);
}

.hero-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}

    .hero-heading h2 span {
        font-weight: 700;
    }

/* ─── Divider line ─── */
.divider-line {
    height: 1px;
    width: 3rem;
    margin: 0 auto 1.5rem;
    transition: width 0.5s ease;
}

.hero-side:hover .divider-line {
    width: 5rem;
}

.divider-line--finance {
    background: #2E6A49;
}

.divider-line--sales {
    background: #0072ce;
}

/* ─── Tag row ─── */
.tag-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tag-row__line {
    width: 1.5rem;
    height: 1px;
}

.tag-row__label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.tag-row__line--finance {
    background: #2E6A49;
}

.tag-row__line--sales {
    background: #0072ce;
}

.tag-row__label--finance {
    color: #2E6A49;
}

.tag-row__label--sales {
    color: #0072ce;
}

/* ─── CTA ─── */
.hero-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, gap 0.3s ease;
}

.hero-side:hover .hero-cta {
    opacity: 1;
    transform: translateY(0);
    gap: 0.75rem;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .split-hero {
        flex-direction: column;
    }

    .hero-side.expand,
    .hero-side.shrink {
        flex: 1;
    }

    #finance-side {
        padding-top: 6rem;
    }
}
