@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@600;800&display=swap');


/* ================================= */
/* COLOUR VARIABLES */
/* ================================= */

:root {

    --bg-dark: #082619;

    --accent-green: #10b981;

    --accent-green-dark: #047857;

    --accent-glow: rgba(16, 185, 129, 0.25);

    --gold-primary: #f59e0b;

    --gold-secondary: #d97706;

    --gold-glow: rgba(245, 158, 11, 0.35);

    --text-main: #f8fafc;

    --text-dark: #1f2937;

    --text-muted: #64748b;

    --card-bg: rgba(255, 255, 255, 0.97);

    --border-light: rgba(8, 64, 39, 0.18);

    --font-heading: 'Outfit', sans-serif;

    --font-body: 'Inter', sans-serif;

    --t-title-fade: 0.6s;

}


/* ================================= */
/* GLOBAL */
/* ================================= */

* {
    box-sizing: border-box;
}


html,
body {

    margin: 0;

    min-height: 100%;

    font-family: var(--font-body);

    background-color: var(--bg-dark);

    color: var(--text-main);

    overflow-x: hidden;

}


button,
select,
input {

    font: inherit;

}


/* ================================= */
/* KEYBOARD ACCESSIBILITY */
/* ================================= */

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {

    outline: 3px solid var(--accent-green);

    outline-offset: 3px;

}


/* ================================= */
/* MOVING GREEN HAZE */
/* ================================= */

.hero-haze {

    position: fixed;

    inset: -50%;

    width: 200%;

    height: 200%;

    background: linear-gradient(
        135deg,
        transparent 42%,
        rgba(16, 185, 129, 0.18) 50%,
        transparent 58%
    );

    pointer-events: none;

    z-index: 0;

    animation: hazeSweep 7s ease-in-out infinite alternate;

}


/* ================================= */
/* PAGE WRAPPER */
/* ================================= */

.page-wrapper {

    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    padding: 1.5rem 1.5rem 0;

}


/* ================================= */
/* TOP RIGHT BUTTON */
/* ================================= */

.brief-form {

    position: fixed;

    top: 1.5rem;

    right: 1.5rem;

    z-index: 100;

}


.brief-btn {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 3.25rem;

    height: 3.25rem;

    border-radius: 50%;

    background: var(--card-bg);

    border: 1px solid var(--border-light);

    color: var(--gold-primary);

    text-decoration: none;

    backdrop-filter: blur(12px);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

}


.brief-btn:hover {

    background: rgba(245, 158, 11, 0.18);

    border-color: var(--gold-primary);

    transform: translateY(-2px);

    box-shadow: 0 0 25px var(--gold-glow);

}


.brief-icon {

    width: 1.35rem;

    height: 1.35rem;

}


.brief-tooltip {

    position: absolute;

    right: 110%;

    top: 50%;

    transform: translateY(-50%);

    background: var(--card-bg);

    border: 1px solid var(--border-light);

    color: var(--text-dark);

    padding: 0.5rem 0.8rem;

    border-radius: 6px;

    font-size: 0.8rem;

    font-weight: 600;

    white-space: nowrap;

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.2s ease;

}


.brief-form:hover .brief-tooltip,
.brief-btn:focus-visible + .brief-tooltip {

    opacity: 1;

}


/* ================================= */
/* HAIRE HEADER */
/* ================================= */

.site-header {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 0.5rem 0 1.5rem;

    flex-shrink: 0;

}


/* ================================= */
/* HAIRE LOGO */
/* ================================= */

.haire-logo {

    font-family: var(--font-heading);

    font-size: clamp(3rem, 6vw, 5rem);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.03em;

    text-decoration: none;

    background: linear-gradient(
        135deg,
        #ffffff 30%,
        var(--text-muted) 100%
    );

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;

    color: transparent;

    opacity: 0;

    animation: fadeUp var(--t-title-fade) ease-out forwards;

    transition: transform 0.2s ease;

}


.haire-logo:hover {

    transform: translateY(-2px);

}


/* ================================= */
/* THREE CARDS CONTAINER */
/* ================================= */

.cards-container {

    width: 100%;

    max-width: 1250px;

    margin: 0 auto;

    display: flex;

    justify-content: center;

    align-items: flex-start;

    gap: 20px;

    flex-shrink: 0;

}


/* ================================= */
/* OUTER CARD */
/* ================================= */

.outer-card {

    position: relative;

    z-index: 2;

    height: 80vh;

    min-height: 550px;

    padding: 30px;

    border: 1px solid var(--border-light);

    border-radius: 20px;

    background: var(--card-bg);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    backdrop-filter: blur(8px);

    animation: fadeUp var(--t-title-fade) ease-out forwards;

}


/* ================================= */
/* CONTROLS CARD */
/* ================================= */

.second-card {

    width: 280px;

    flex-shrink: 0;

    font-size: 14px;

    overflow: hidden;

}


/* ================================= */
/* CARD HEADINGS */
/* ================================= */

.outer-card > h2 {

    margin: 0;

    font-family: var(--font-heading);

    font-size: clamp(1.5rem, 4vw, 2.3rem);

    font-weight: 800;

    color: #084027;

    text-align: center;

}


/* ================================= */
/* CARD DESCRIPTION */
/* ================================= */

.outer-card > p {

    margin: 8px 0 25px;

    text-align: center;

    color: #555;

    font-size: 0.95rem;

    line-height: 1.5;

}


/* ================================= */
/* LABELS */
/* ================================= */

.second-card label {

    display: block;

    margin-bottom: 8px;

    color: var(--text-dark);

    font-size: 14px;

    font-weight: 600;

}


/* ================================= */
/* CONTROLS */
/* ================================= */

.job-control {

    margin-bottom: 25px;

}


.filter-input {

    margin-bottom: 30px;

}


/* ================================= */
/* DROPDOWNS */
/* ================================= */

#job-selector,
#filter-input {

    width: 100%;

    min-height: 44px;

    padding: 10px 12px;

    border: 1px solid rgba(8, 64, 39, 0.3);

    border-radius: 8px;

    background-color: white;

    color: var(--text-dark);

    font-family: var(--font-body);

    font-size: 14px;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


#job-selector:hover,
#filter-input:hover {

    border-color: var(--accent-green);

}


#job-selector:focus,
#filter-input:focus {

    outline: none;

    border-color: var(--accent-green);

    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);

}


/* ================================= */
/* CONTROL BUTTONS */
/* ================================= */

.control-buttons {

    display: flex;

    flex-direction: column;

    gap: 12px;

    width: 100%;

    margin-top: 10px;

}


.control-buttons button {

    width: 100%;

    min-height: 44px;

    padding: 10px 15px;

    border-radius: 9999px;

    cursor: pointer;

    font-family: var(--font-body);

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease,
        background 0.2s ease;

}


/* ================================= */
/* PRIMARY ACTION */
/* ================================= */

.primary-button {

    border: none;

    background: linear-gradient(
        135deg,
        var(--gold-primary),
        var(--gold-secondary)
    );

    color: #000;

    box-shadow: 0 4px 15px var(--gold-glow);

}


.primary-button:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 25px var(--gold-glow);

    filter: brightness(1.08);

}


/* ================================= */
/* SECONDARY ACTION */
/* ================================= */

.secondary-button {

    border: 2px solid var(--accent-green);

    background: transparent;

    color: var(--accent-green-dark);

}


.secondary-button:hover {

    background: rgba(16, 185, 129, 0.08);

    transform: translateY(-2px);

}


/* ================================= */
/* CLEAR ACTION */
/* ================================= */

.clear-button {

    border: 1px solid #cbd5e1;

    background: #f8fafc;

    color: #475569;

}


.clear-button:hover {

    background: #f1f5f9;

    border-color: #94a3b8;

    transform: translateY(-2px);

}


/* ================================= */
/* APPLICANT SCROLL */
/* ================================= */

.form-scroll {

    height: calc(100% - 105px);

    overflow-y: auto;

    padding: 5px 10px 10px 5px;

    scroll-behavior: smooth;

}


.form-scroll::-webkit-scrollbar {

    width: 8px;

}


.form-scroll::-webkit-scrollbar-track {

    background: rgba(8, 64, 39, 0.12);

    border-radius: 10px;

}


.form-scroll::-webkit-scrollbar-thumb {

    background: linear-gradient(
        180deg,
        var(--gold-primary),
        var(--gold-secondary)
    );

    border-radius: 10px;

}


/* ================================= */
/* APPLICANT CARD */
/* ================================= */

.applicant-card {

    margin-top: 15px;

    padding: 20px;

    background: rgba(255, 255, 255, 0.97);

    border: 2px solid rgba(8, 64, 39, 0.18);

    border-radius: 12px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;

}


.applicant-card:first-child {

    margin-top: 0;

}


.applicant-card:hover {

    transform: translateY(-2px);

    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.12);

    border-color: var(--accent-green);

}


/* ================================= */
/* APPLICANT HEADER */
/* ================================= */

.applicant-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

}


/* ================================= */
/* APPLICANT NAME */
/* ================================= */

.applicant-name {

    margin: 0;

    color: #084027;

    font-family: var(--font-heading);

    font-size: 1.35rem;

}


/* ================================= */
/* SCORE */
/* ================================= */

.score {

    margin-left: auto;

    padding: 6px 10px;

    border-radius: 9999px;

    background: linear-gradient(
        135deg,
        var(--gold-primary),
        var(--gold-secondary)
    );

    color: #000;

    font-weight: 800;

    font-size: 14px;

    white-space: nowrap;

}


/* ================================= */
/* SELECT APPLICANT */
/* ================================= */

.select-applicant {

    display: flex;

    align-items: center;

    gap: 7px;

    margin: 0;

    font-size: 14px;

    color: #444;

    cursor: pointer;

    white-space: nowrap;

}


.select-applicant input {

    width: 18px;

    height: 18px;

    margin: 0;

    cursor: pointer;

    accent-color: var(--accent-green);

}


/* ================================= */
/* MORE INFO BUTTON */
/* ================================= */

.more-info-button {

    margin-top: 15px;

    min-height: 42px;

    padding: 9px 16px;

    border: 1px solid var(--gold-secondary);

    border-radius: 9999px;

    background: rgba(245, 158, 11, 0.1);

    color: #92400e;

    cursor: pointer;

    font-family: var(--font-body);

    font-size: 13px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;

}


.more-info-button:hover {

    transform: translateY(-2px);

    background: rgba(245, 158, 11, 0.2);

    box-shadow: 0 4px 12px var(--gold-glow);

}


/* ================================= */
/* MORE INFORMATION */
/* ================================= */

.more-information {

    display: none;

    margin-top: 15px;

    padding: 15px;

    background-color: rgba(8, 64, 39, 0.06);

    border-radius: 8px;

}


.more-information.show {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    animation: fadeUp 0.3s ease-out forwards;

}


/* ================================= */
/* INFORMATION */
/* ================================= */

.description-section {

    padding-right: 20px;

    border-right: 1px solid rgba(8, 64, 39, 0.25);

}


.description-section h4,
.qualification-section h4 {

    margin-top: 0;

    color: #084027;

    font-family: var(--font-heading);

}


.description-section p {

    margin-bottom: 0;

    line-height: 1.6;

    color: #555;

}


.qualification-section {

    padding-left: 10px;

}


.qualification-section ul {

    padding-left: 20px;

    margin-bottom: 0;

}


.qualification-section li {

    margin-bottom: 5px;

    color: #555;

    line-height: 1.4;

}


/* ================================= */
/* SELECTED APPLICANT */
/* ================================= */

.applicant-card.selected {

    border: 3px solid var(--accent-green);

    background-color: rgba(5, 143, 92, 0.08);

    box-shadow: 0 6px 18px rgba(5, 143, 92, 0.2);

}


/* ================================= */
/* STATISTICS */
/* ================================= */

.statistics-card {

    width: 280px;

    flex-shrink: 0;

    text-align: center;

    color: #084027;

    overflow: hidden;

}


.statistics-content {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    width: 100%;

    gap: 15px;

}


.statistic-item {

    width: 100%;

    padding: 18px 10px;

    background-color: rgba(255, 255, 255, 0.97);

    border: 2px solid rgba(8, 64, 39, 0.18);

    border-radius: 12px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);

    text-align: center;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

}


.statistic-item:hover {

    transform: translateY(-2px);

    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.12);

    border-color: var(--accent-green);

}


.statistic-item h3 {

    margin: 0 0 8px;

    color: #084027;

    font-family: var(--font-heading);

    font-size: 1rem;

    font-weight: 700;

}


.statistic-item p {

    margin: 0;

    color: #333;

    font-family: var(--font-body);

    font-size: 2rem;

    font-weight: 800;

}


/* ================================= */
/* FOOTER */
/* ================================= */

.site-footer {

    width: 100%;

    text-align: center;

    padding: 1.5rem 0 1rem;

    margin-top: 1.5rem;

    flex-shrink: 0;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    color: var(--text-muted);

    font-family: var(--font-body);

    font-size: 0.8rem;

}


.site-footer p {

    margin: 4px 0;

    line-height: 1.5;

}


/* ================================= */
/* ANIMATIONS */
/* ================================= */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}


@keyframes hazeSweep {

    0% {

        transform: translate(-25%, 25%);

    }

    100% {

        transform: translate(25%, -25%);

    }

}


/* ================================= */
/* REDUCE MOTION */
/* ================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

        scroll-behavior: auto !important;

    }

}


/* ================================= */
/* RESPONSIVE DESIGN */
/* ================================= */

@media (max-width: 1250px) {

    .cards-container {

        flex-wrap: wrap;

        align-items: flex-start;

    }

}


/* ================================= */
/* TABLET */
/* ================================= */

@media (max-width: 950px) {

    .cards-container {

        flex-direction: column;

        align-items: center;

        gap: 20px;

    }


    .outer-card,
    .second-card,
    .statistics-card {

        width: min(600px, 95vw);

        height: auto;

        min-height: 500px;

    }


    .form-scroll {

        height: 450px;

    }

}


/* ================================= */
/* MOBILE */
/* ================================= */

@media (max-width: 600px) {

    .page-wrapper {

        padding: 1rem;

    }


    .site-header {

        padding: 0.5rem 0 1rem;

    }


    .haire-logo {

        font-size: 2.5rem;

    }


    .brief-form {

        top: 1rem;

        right: 1rem;

    }


    .brief-btn {

        width: 3rem;

        height: 3rem;

    }


    .outer-card,
    .second-card,
    .statistics-card {

        width: 100%;

        min-height: 500px;

        padding: 20px;

    }


    .applicant-header {

        flex-wrap: wrap;

        align-items: flex-start;

    }


    .applicant-name {

        width: 100%;

    }


    .score {

        margin-left: 0;

    }


    .select-applicant {

        margin-left: auto;

    }


    .more-information.show {

        grid-template-columns: 1fr;

    }


    .description-section {

        padding-right: 0;

        padding-bottom: 15px;

        border-right: none;

        border-bottom: 1px solid rgba(8, 64, 39, 0.25);

    }


    .qualification-section {

        padding-left: 0;

    }


    .site-footer {

        padding-top: 1rem;

        padding-bottom: 0.5rem;

    }

}