﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --ink: #1c2b39;
    --ink-soft: #3d4f60;
    --paper: #ffffff;
    --paper-raised: #ffffff;
    --line: #dcd5c8;
    --accent: #003ecc;
    --accent-dark: #002e9a;
    --ok: #3f6b4f;
    --warn: #a5472f;
    --radius: 3px;
    --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
    --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --deer-navy: #262f6b;
    --deer-text: #1a1a1a;
    --deer-gray: #9a9a9a;
    --deer-line: #6b6b6b;
}

/* =========================================
   1. RESETĂRI DE BAZĂ
========================================= */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden; /* Blochează scroll-ul orizontal pe mobil */
    width: 100%;
}

a {
    color: var(--accent-dark);
}

    a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.wrap {
    width: min(90%, 1600px);
    margin: 0 auto;
}

/* =========================================
   2. COMPONENTE PRINCIPALE (Hero, Filtre)
========================================= */
.hero {
    background: linear-gradient(rgba(28,43,57,0.65), rgba(28,43,57,0.65)), url('/img/POZA.jpg') center/cover no-repeat;
    color: var(--paper);
    padding: 72px 0 48px;
    position: relative;
}

.hero--compact {
    padding: 40px 0 32px;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    margin: 8px 0 12px;
    max-width: 18ch;
}

.hero__lead {
    color: #c9d2d9;
    margin: 0;
    font-size: 1.05rem;
}

.crumbs {
    font-size: 0.85rem;
    color: #9fb0bd;
    margin: 0 0 4px;
    display: flex;
    gap: 8px;
    align-items: center;
}

    .crumbs a {
        color: #c9d2d9;
        text-decoration: none;
    }

        .crumbs a:hover {
            text-decoration: underline;
        }

    .crumbs span[aria-hidden] {
        color: #5c6f7d;
    }

.hero__down {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: stretch;
    margin: 40px 0 32px;
}

.filters__search {
    flex: 1 1 260px;
    min-width: 200px;
    position: relative;
}

    .filters__search input[type="search"] {
        width: 100%;
        height: 46px;
        padding: 0 40px 0 16px;
        border: 1px solid #c7c7c7;
        border-radius: 6px;
        background: #fff;
        font: inherit;
        color: var(--ink);
    }

    .filters__search::after {
        content: "";
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        pointer-events: none;
        background: currentColor;
        color: #8a8a8a;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23000' d='M13 12h-.8l-.3-.3a6.5 6.5 0 1 0-.7.7l.3.3v.8l5 5 1.5-1.5-5-5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E") no-repeat center / contain;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23000' d='M13 12h-.8l-.3-.3a6.5 6.5 0 1 0-.7.7l.3.3v.8l5 5 1.5-1.5-5-5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E") no-repeat center / contain;
    }

.filters select {
    flex: 1 1 160px;
    min-width: 140px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #c7c7c7;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    color: var(--ink);
    appearance: auto;
}

.filters .btn {
    height: 46px;
}

.filters__reset {
    align-self: center;
    font-size: 0.9rem;
    color: var(--ink-soft);
    text-decoration: underline;
}

/* =========================================
   3. CARDURI JOBURI
========================================= */
.cards {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #fff;
    padding: 26px 26px 22px;
    border: 3px solid #d9d9d9;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(28,43,57,0.12);
        border-color: var(--accent);
    }

.card__badge {
    position: absolute;
    top: -10px;
    right: 18px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 6px rgba(184,134,59,0.4);
}

.card__title {
    margin: 0 0 14px;
    font-family: var(--sans);
    font-size: 1.25rem;
    font-weight: 600;
}

    .card__title a {
        color: var(--ink);
        text-decoration: none;
        transition: color 0.15s ease;
    }

.card:hover .card__title a {
    color: var(--accent-dark);
}

.card__tags {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

    .card__tags li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.93rem;
        color: var(--ink-soft);
    }

    .card__tags svg {
        color: var(--accent);
        flex-shrink: 0;
    }

.card__link {
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}

    .card__link:hover {
        color: var(--accent-dark);
    }

.card__arrow {
    display: inline-block;
    transition: transform 0.18s ease;
}

.card__link:hover .card__arrow {
    transform: translateX(4px);
}

/* =========================================
   4. BUTOANE
========================================= */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--ink);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
}

    .btn:hover {
        background: var(--ink);
        color: var(--paper);
    }

.btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

    .btn--primary:hover {
        background: var(--accent-dark);
        border-color: var(--accent-dark);
    }

.btn--block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

/* =========================================
   5. DETALII JOB ȘI FORMULARE
========================================= */
.detail {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 36px;
    padding: 36px 0 64px;
    align-items: start;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0 0 28px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

    .facts div, .profile div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .facts dt, .profile dt {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--ink-soft);
    }

    .facts dd, .profile dd {
        margin: 0;
    }



.apply {
    background: var(--paper-raised);
    border: 3px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 24px;
    width: 100%;
    max-width: 100%;
}

    .apply h2 {
        font-family: var(--serif);
        font-weight: 400;
        font-size: 1.25rem;
        margin: 0 0 18px;
    }

.field {
    margin-bottom: 16px;
    width: 100%;
    max-width: 100%;
}

    .field label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 5px;
    }

    .field input[type="text"], .field input[type="email"], .field input[type="tel"],
    .field input[type="date"], .field input[type="file"], .field select, .field textarea {
        width: 100%;
        max-width: 100%;
        padding: 9px 10px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--paper);
        font: inherit;
        color: var(--ink);
    }

    .field textarea {
        resize: vertical;
    }

    .field small {
        display: block;
        margin-top: 4px;
        color: var(--ink-soft);
        font-size: 0.8rem;
    }

.field--check label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 400;
    font-size: 0.88rem;
}

.field--check input {
    margin-top: 3px;
}

.field__err {
    display: block;
    color: var(--warn);
    font-size: 0.82rem;
    margin-top: 4px;
}

.form__errors {
    color: var(--warn);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

    .form__errors:empty {
        display: none;
    }

.spontan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}

.spontan-col {
    min-width: 0;
    width: 100%;
}

.recaptcha-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

/* =========================================
   6. FOOTER & ALTELE
========================================= */
.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 24px;
    margin-bottom: 40px;
}

.viewcount {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin: 0 0 8px 0;
}

    .viewcount svg {
        color: var(--accent-dark);
    }

.login-hr-link {
    font-size: 0.85rem;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
}

    .login-hr-link:hover {
        color: var(--accent-dark);
        text-decoration: underline;
    }

.confirm {
    padding: 40px 0 64px;
}

.confirm__lead {
    font-size: 1.1rem;
}

/* =========================================
   7. HEADER SITE
========================================= */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Roboto', Arial, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
    width: 100%;
    padding-left: clamp(16px, 2.5vw, 48px);
    padding-right: clamp(16px, 2.5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 2vw, 40px);
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo__img {
    height: clamp(35px, 3vw, 45px);
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.6vw, 28px);
}

.main-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 30px);
}

.main-nav__item {
    position: relative;
}

    .main-nav__item > a {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: clamp(30px, 3.4vw, 50px) 0 clamp(40px, 4vw, 60px);
        color: var(--deer-text);
        font-weight: 500;
        font-size: clamp(0.78rem, 0.4rem + 0.45vw, 0.7rem);
        text-decoration: none;
        white-space: nowrap;
        transition: color .2s ease;
    }

.chev {
    width: 9px;
    height: 9px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.main-nav__item > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(14px, 1.5vw, 24px);
    height: 5px;
    background: var(--deer-navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

/* Pe desktop păstrăm hover-ul clasic */
@media (min-width: 992px) {
    .main-nav__item:hover > a,
    .main-nav__item.is-active > a {
        color: var(--deer-navy);
    }

        .main-nav__item:hover > a::after,
        .main-nav__item.is-active > a::after {
            transform: scaleX(1);
        }

    .main-nav__item:hover > .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.submenu {
    list-style: none;
    margin: 0;
    position: absolute;
    top: 100%;
    left: -24px;
    width: 280px;
    padding: 8px 28px 14px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

    .submenu li {
        border-bottom: 1px solid var(--deer-line);
        transition: border-color .2s ease;
    }

        .submenu li:last-child {
            border-bottom: none;
        }

    .submenu a {
        position: relative;
        display: block;
        padding: 11px 0;
        color: var(--deer-gray);
        font-size: 0.9rem;
        font-weight: 400;
        line-height: 1.4;
        text-decoration: none;
        transition: color .2s ease, padding-left .25s ease;
    }

        .submenu a::before {
            content: "→";
            position: absolute;
            left: 0;
            top: 11px;
            color: var(--deer-text);
            opacity: 0;
            transform: translateX(-8px);
            transition: opacity .2s ease, transform .25s ease;
        }

    .submenu li:hover {
        border-bottom-color: var(--deer-navy);
    }

        .submenu li:hover > a {
            color: var(--deer-text);
            padding-left: 24px;
        }

            .submenu li:hover > a::before {
                opacity: 1;
                transform: translateX(0);
            }

.main-nav__item:nth-last-child(-n+3) > .submenu {
    left: auto;
    right: -24px;
}

.main-nav__lang {
    color: var(--deer-text);
    display: flex;
    align-items: center;
}

    .main-nav__lang:hover {
        color: var(--deer-navy);
    }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--deer-text);
        margin: 5px 0;
    }

/* Comportament specific pentru ecrane mici / iOS (Apple) */
@media (max-width: 991px) {
    .submenu {
        position: static !important;
        box-shadow: none !important;
        width: 100% !important;
        left: 0 !important;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 15px;
    }

    .main-nav__item.is-active > .submenu {
        display: block !important;
    }

    .main-nav__item.is-active > a {
        color: var(--deer-navy);
    }
}

/* Previne blocarea pe iOS pentru elementele tactile */
.main-nav__item a,
.submenu a {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* =========================================
   8. RESPONSIVITATE & MEDIA QUERIES
========================================= */

/* Tablete și Desktop mediu */
@media (max-width: 1024px) {
    .site-header__inner {
        flex-wrap: nowrap;
        padding: 14px 0;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-bottom: 12px;
    }

    .site-header.is-open .main-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 8px 4% 16px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav__item {
        border-bottom: 1px solid #e5e5e5;
    }

        .main-nav__item > a {
            width: 100%;
            justify-content: space-between;
            padding: 14px 0;
            font-size: 1rem;
        }

            .main-nav__item > a::after {
                display: none;
            }

    .main-nav__lang {
        padding: 14px 0;
    }
}

/* Trecerea cardurilor la 2 coloane */
@media (max-width: 900px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Telefoane mari și tablete mici */
@media (max-width: 760px) {
    .detail {
        grid-template-columns: 1fr;
    }

    .apply {
        position: static;
    }
}

/* Trecerea formularelor și cardurilor la 1 coloană */
@media (max-width: 700px) {
    .spontan-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

/* Telefoane standard - Ajustări spații și formulare */
@media (max-width: 600px) {
    .apply {
        padding: 16px 12px;
    }
}

/* Telefoane mici - Scalare ReCAPTCHA */
@media (max-width: 450px) {
    .apply--spontan {
        padding: 20px 15px;
    }

    .recaptcha-wrapper .g-recaptcha {
        transform: scale(0.72);
        transform-origin: left center;
    }
}

/* ===== Descrierea anunțului: la fel ca în editorul TinyMCE din HR ===== */
.prose {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #222f3e;
}

    .prose p {
        margin: 1em 0;
    }

    .prose ul,
    .prose ol {
        margin: 1em 0;
        padding-left: 40px;
    }

    .prose li {
        margin: 0;
    }

    .prose img {
        max-width: 100%;
        height: auto;
    }

.hero--compact h1 {
    max-width: none;
    font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}

.hero--compact .crumbs {
    min-width: 0;
}

    .hero--compact .crumbs span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }