/**
 * Jamison Search International — Custom CSS
 * Child theme: Avada-Child-Theme
 * Enqueued via functions.php → jsi_enqueue_custom_styles()
 */


/* ============================================================
   ALL PAGES — Content Boxes with icon circles: hover state fix.
   Applies to every fusion_content_boxes element using .recruiting-services-grid
   (About, Employers Overview, Why Use An Executive Recruiter, and others).

   HOW AVADA WORKS: Avada JS adds .link-area-box-hover to the wrapper div on
   mouseenter (not CSS :hover). The circle is an <i class="circle-yes"> element.
   Avada's own rule (in fusion-styles) sets background-color and border-color with
   !important using var(--awb-circle-hover-accent-color) which defaults to gold.

   Our rule must use the exact same selector depth + !important to win by
   load order (custom.css loads after avada-stylesheet).
   Result: slate circle + white icon on hover — visible on dark and light bgs.
   ============================================================ */

.recruiting-services-grid .fusion-content-box-hover .link-area-box-hover .heading .icon i.circle-yes {
    background-color: var(--awb-color7) !important;
    border-color: var(--awb-color7) !important;
    color: var(--awb-color1) !important;
}


/* ============================================================
   ALL PAGES — Yellow separator bar: bottom spacing.
   The separator bar (.title-sep-container-right) is the last flex item
   inside .fusion-title (display:flex). Adding margin-bottom here adds
   20px of space between the yellow bar and the content below without
   collapsing into the parent's margin.
   ============================================================ */

.fusion-title .title-sep-container-right {
    margin-bottom: 20px;
}


/* About page sections are intentionally built with Avada-native elements
   and shortcode attributes so they remain editable in Avada Builder without
   relying on custom About-specific CSS. */


/* ============================================================
   PAGE: OUR RECRUITING PROCESS — Timeline
   ============================================================ */

/* --- Wrapper ------------------------------------------------ */
.page-process-timeline {
    position: relative;
    padding: 0 0 20px;
}

/* Central vertical gold line */
.page-process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--awb-color5) 5%,
        var(--awb-color5) 95%,
        transparent 100%
    );
    pointer-events: none;
}

/* --- Step row ----------------------------------------------- */
.page-process-step {
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    align-items: start;
    gap: 0 0;
    margin-bottom: clamp(32px, 4vw, 56px);
    /* entrance: hidden by default; JS adds .is-visible */
    opacity: 0;
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.page-process-step--left  { transform: translateX(-48px); }
.page-process-step--right { transform: translateX(48px);  }

.page-process-step.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Node (numbered circle in the center column) ----------- */
.page-process-step__node {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--awb-color5);
    color: var(--awb-color8);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 6px rgba(255, 204, 46, 0.15);
    transition: box-shadow 0.3s ease;
}

.page-process-step:hover .page-process-step__node {
    box-shadow: 0 0 0 10px rgba(255, 204, 46, 0.25);
}

/* --- Card (the content box) -------------------------------- */
.page-process-step__card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 204, 46, 0.15);
    border-radius: 10px;
    padding: clamp(20px, 2.5vw, 32px) clamp(20px, 2.5vw, 32px);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    grid-row: 1;
}

.page-process-step:hover .page-process-step__card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 204, 46, 0.35);
    transform: translateY(-2px);
}

/* Left-side steps: card in col 1, push right to butt against node */
.page-process-step--left .page-process-step__card {
    grid-column: 1;
    margin-right: 28px;
    text-align: right;
}

/* Right-side steps: card in col 3, push left to butt against node */
.page-process-step--right .page-process-step__card {
    grid-column: 3;
    margin-left: 28px;
    text-align: left;
}

/* --- Card inner elements ----------------------------------- */
.page-process-step__icon {
    font-size: 1.5rem;
    color: var(--awb-color5);
    margin-bottom: 10px;
    line-height: 1;
}

.page-process-step--left .page-process-step__icon {
    text-align: right;
}

.page-process-timeline .page-process-step__title {
    color: var(--awb-color5); /* !important not needed — parent scope wins over Avada global h3 */
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}

.page-process-step__desc {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.88rem, 1.2vw, 0.96rem);
    line-height: 1.6;
    margin: 0;
}

/* --- Mobile: single column --------------------------------- */
@media screen and (max-width: 639px) {
    /* Move line to left edge */
    .page-process-timeline::before {
        left: 24px;
        transform: none;
    }

    .page-process-step {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto;
    }

    /* Both sides: node in col 1, card in col 2 */
    .page-process-step--left  .page-process-step__node,
    .page-process-step--right .page-process-step__node {
        grid-column: 1;
    }

    .page-process-step--left  .page-process-step__card,
    .page-process-step--right .page-process-step__card {
        grid-column: 2;
        margin-left: 18px;
        margin-right: 0;
        text-align: left;
    }

    /* All steps slide from left on mobile */
    .page-process-step--left,
    .page-process-step--right {
        transform: translateX(-32px);
    }

    .page-process-step--left .page-process-step__icon,
    .page-process-step--right .page-process-step__icon {
        text-align: left;
    }
}

/* --- Tablet: tighten gutter -------------------------------- */
@media screen and (min-width: 640px) and (max-width: 1023px) {
    .page-process-step--left  .page-process-step__card { margin-right: 18px; }
    .page-process-step--right .page-process-step__card { margin-left: 18px; }
}


/* ============================================================
   PAGE: FEE STRUCTURE — Value Props
   ============================================================ */

.page-fee-valueprops {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 28px);
}

.page-fee-valueprops__card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 204, 46, 0.15);
    border-top: 3px solid var(--awb-color5);
    border-radius: 10px;
    padding: clamp(28px, 3vw, 40px) clamp(22px, 2.5vw, 32px);
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out,
                background 0.3s ease, border-color 0.3s ease;
}

.page-fee-valueprops__card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-fee-valueprops__card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 204, 46, 0.35);
    border-top-color: var(--awb-color5); /* !important would conflict; specificity sufficient */
}

.page-fee-valueprops__icon {
    font-size: 2rem;
    color: var(--awb-color5);
    margin-bottom: 14px;
    line-height: 1;
    display: block;
}

.page-fee-valueprops .page-fee-valueprops__title {
    color: var(--awb-color5);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.page-fee-valueprops__body {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.88rem, 1.2vw, 0.95rem);
    line-height: 1.65;
    margin: 0;
}

@media screen and (max-width: 639px) {
    .page-fee-valueprops {
        grid-template-columns: 1fr;
    }
}

@media screen and (min-width: 640px) and (max-width: 1023px) {
    .page-fee-valueprops {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   PAGE: FEE STRUCTURE — Service Tier Cards
   ============================================================ */

.page-fee-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 28px);
    margin-top: 28px;
}

.page-fee-tiercard {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: clamp(24px, 3vw, 36px) clamp(22px, 2.5vw, 30px);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out,
                background 0.3s ease, box-shadow 0.3s ease;
}

.page-fee-tiercard.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-fee-tiercard:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-fee-tiercard__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.page-fee-tiercard__icon {
    font-size: 1.8rem;
    color: var(--awb-color5);
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.page-fee-tiers .page-fee-tiercard__label {
    color: var(--awb-color5);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.3;
}

.page-fee-tiercard__priority {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--awb-color8);
    background: var(--awb-color5);
    border-radius: 3px;
    padding: 2px 8px;
    line-height: 1.5;
}

.page-fee-tiercard__body {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(0.87rem, 1.2vw, 0.94rem);
    line-height: 1.65;
    margin: 0;
}

@media screen and (max-width: 1023px) {
    .page-fee-tiers {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   PAGE: JOB SEEKER TOOLKIT — Tabs & interactive components
   ============================================================ */

/* --- Avada tabs: active tab indicator ---------------------- */
/* Override Avada's default blue/grey tab active state with gold */
.page-toolkit-tabs .nav-tabs > li.active > a,
.page-toolkit-tabs .nav-tabs > li.active > a:hover,
.page-toolkit-tabs .nav-tabs > li.active > a:focus {
    border-top: 3px solid var(--awb-color5) !important; /* !important: Avada inline override */
    color: var(--awb-color7) !important;
}

.page-toolkit-tabs .nav-tabs > li > a:hover {
    border-top-color: rgba(255, 204, 46, 0.5) !important;
    color: var(--awb-color7) !important;
}

/* Give the tab content area a clean white card feel */
.page-toolkit-tabs .tab-content {
    background: #ffffff;
    border: 1px solid rgba(59, 66, 81, 0.1);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: clamp(28px, 4vw, 48px);
}

/* Make tab icons slightly larger and gold on active */
.page-toolkit-tabs .nav-tabs > li.active > a .fusion-tab-icon {
    color: var(--awb-color5) !important;
}

/* --- Do's & Don'ts two-column grid ------------------------- */
.page-toolkit-dos-donts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 3vw, 32px);
    margin: 28px 0 8px;
}

.page-toolkit-dos-donts__col {
    border-radius: 10px;
    padding: clamp(22px, 3vw, 32px);
}

.page-toolkit-dos-donts__col--do {
    background: rgba(59, 66, 81, 0.04);
    border: 1px solid rgba(59, 66, 81, 0.12);
    border-top: 3px solid #27ae60;
}

.page-toolkit-dos-donts__col--dont {
    background: rgba(59, 66, 81, 0.04);
    border: 1px solid rgba(59, 66, 81, 0.12);
    border-top: 3px solid #c0392b;
}

.page-toolkit-dos-donts__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.2;
}

.page-toolkit-dos-donts__heading--do  { color: #27ae60; }
.page-toolkit-dos-donts__heading--dont { color: #c0392b; }

.page-toolkit-dos-donts__col ul {
    margin: 0;
    padding-left: 1.3em;
}

.page-toolkit-dos-donts__col ul li {
    color: var(--awb-color7);
    font-size: clamp(0.87rem, 1.2vw, 0.95rem);
    line-height: 1.65;
    margin-bottom: 8px;
}

.page-toolkit-dos-donts__col ul li:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 639px) {
    .page-toolkit-dos-donts {
        grid-template-columns: 1fr;
    }
}

/* --- Resigning Gracefully: numbered steps ------------------ */
.page-toolkit-resign-steps {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2.5vw, 24px);
    margin-top: 24px;
}

.page-toolkit-resign-step {
    display: flex;
    gap: clamp(16px, 2.5vw, 24px);
    align-items: flex-start;
    background: rgba(59, 66, 81, 0.04);
    border: 1px solid rgba(59, 66, 81, 0.10);
    border-left: 4px solid var(--awb-color5);
    border-radius: 0 8px 8px 0;
    padding: clamp(18px, 2.5vw, 26px) clamp(18px, 2.5vw, 28px);
    transition: background 0.25s ease, border-left-color 0.25s ease;
}

.page-toolkit-resign-step:hover {
    background: rgba(59, 66, 81, 0.07);
    border-left-color: var(--awb-color7);
}

.page-toolkit-resign-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--awb-color5);
    color: var(--awb-color8);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
}

.page-toolkit-resign-step__body {
    color: var(--awb-color7);
    font-size: clamp(0.88rem, 1.2vw, 0.96rem);
    line-height: 1.65;
}

.page-toolkit-resign-step__body strong {
    display: block;
    margin-bottom: 6px;
    font-size: clamp(0.95rem, 1.3vw, 1.02rem);
    color: var(--awb-color8);
}

/* --- Nav strip: pointer cursor on cards -------------------- */
.page-toolkit-nav .fusion-content-box-wrapper {
    cursor: pointer;
}

/* Nav strip active card (JS adds .is-active) */
.page-toolkit-nav .fusion-content-box-wrapper.is-active .heading .icon i.circle-yes,
.page-toolkit-nav .fusion-content-box-wrapper.is-active .fusion-content-box-hover .heading .icon i.circle-yes {
    background-color: var(--awb-color5) !important;
    border-color: var(--awb-color5) !important;
    color: var(--awb-color8) !important;
}

.page-toolkit-nav .fusion-content-box-wrapper.is-active .fusion-content-box-title {
    color: var(--awb-color5) !important;
}

/* Mobile: hide nav strip body text to keep cards compact */
@media screen and (max-width: 639px) {
    .page-toolkit-nav .fusion-content-box-content {
        display: none;
    }
}


/* ============================================================
   PAGE: TESTIMONIALS & AWARDS — Carousel + Awards grid
   ============================================================ */

/* --- Testimonials carousel: quote text --------------------- */
/* Avada's clean design renders text inside .fusion-testimonial-text.
   Increase legibility on the dark background and add breathing room. */
.page-testimonials-carousel .fusion-testimonials.clean .fusion-testimonial-text {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem) !important; /* !important: Avada inline font-size override */
    line-height: 1.75 !important;
    color: var(--awb-color1) !important;
    padding: 0 clamp(12px, 3vw, 40px);
    position: relative;
}

/* Large decorative opening quotation mark */
.page-testimonials-carousel .fusion-testimonials.clean .fusion-testimonial-text::before {
    content: '\201C';
    display: block;
    font-size: clamp(4rem, 7vw, 6rem);
    line-height: 1;
    color: var(--awb-color5);
    margin-bottom: -0.2em;
    font-family: Georgia, serif;
    opacity: 0.7;
}

/* --- Testimonials carousel: attribution -------------------- */
/* Name displayed as .fusion-author — style in gold */
.page-testimonials-carousel .fusion-testimonials.clean .fusion-author,
.page-testimonials-carousel .fusion-testimonials.clean .fusion-author strong {
    color: var(--awb-color5) !important;
    font-weight: 700;
}

/* Company / role line */
.page-testimonials-carousel .fusion-testimonials.clean .fusion-author .fusion-company {
    color: var(--awb-color1) !important;
    opacity: 0.75;
    font-weight: 400;
}

/* --- Testimonials carousel: navigation arrows -------------- */
/* Avada uses .fusion-prev / .fusion-next with inline color.
   Override to gold so arrows are visible on dark bg. */
.page-testimonials-carousel .fusion-testimonials.clean .fusion-prev,
.page-testimonials-carousel .fusion-testimonials.clean .fusion-next {
    color: var(--awb-color5) !important;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.page-testimonials-carousel .fusion-testimonials.clean .fusion-prev:hover,
.page-testimonials-carousel .fusion-testimonials.clean .fusion-next:hover {
    opacity: 1;
}

/* --- Awards icon card grid: oversized count titles --------- */
/* "10×", "9×" etc. should read as large stat numbers.
   Double !important wins over Avada's title_size="20" inline style;
   extra class specificity added for load-order safety. */
.component-award-grid .fusion-content-boxes .fusion-content-box-title {
    font-size: clamp(3.5rem, 5vw, 5rem) !important;
    font-weight: 900 !important;
    line-height: 1;
    letter-spacing: -0.01em;
}


/* ============================================================
   PAGE: JOIN OUR TEAM — Day-in-the-life checklist + traits grid
   ============================================================ */

/* Checklist — styled bullets using gold accent */
.page-join-team-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.page-join-team-checklist li {
    position: relative;
    padding-left: 1.75em;
    margin-bottom: 0.85em;
    color: var(--awb-color7);
    line-height: 1.55;
}
.page-join-team-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--awb-color5);
    flex-shrink: 0;
}

/* Traits heading — keep it tighter than default h2 */
.page-join-team-traits__heading {
    color: var(--awb-color8);
    margin-bottom: 0.4em;
}

/* Traits 2-col responsive grid */
.page-join-team-traits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 3vw, 36px) clamp(24px, 4vw, 56px);
    margin-top: clamp(24px, 3vw, 36px);
}
.page-join-team-traits__item {
    color: var(--awb-color7);
    line-height: 1.6;
    padding-left: 1.1em;
    border-left: 3px solid var(--awb-color5);
}
.page-join-team-traits__item strong {
    display: block;
    color: var(--awb-color8);
    margin-bottom: 4px;
    font-size: 1.05em;
}

/* Mobile: single column */
@media screen and (max-width: 639px) {
    .page-join-team-traits {
        grid-template-columns: 1fr;
    }
}
