/* =========================================================================
   JOBS CS – estils propis sobre Bootstrap 5.3
   ========================================================================= */

:root {
    --brand: #0b5f55;
    --brand-dark: #08463f;
    --brand-light: #e6f2ef;
    --brand-accent: #f6c445;

    --bs-body-font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-size: 1.125rem;          /* 18 px: text gran i llegible */
    --bs-body-line-height: 1.6;
    --bs-body-color: #1d2a2a;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 11, 95, 85;
    --bs-link-hover-color: var(--brand-dark);
    --bs-link-hover-color-rgb: 8, 70, 63;
    --bs-border-radius: .6rem;
    --bs-border-radius-lg: .9rem;
}

h1, h2, h3, h4, .display-4, .display-5, .display-6 { letter-spacing: -.02em; }

.text-brand { color: var(--brand) !important; }
.bg-brand-soft { background-color: var(--brand-light) !important; }

/* Botons */
.btn-brand {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-focus-shadow-rgb: 11, 95, 85;
}
.btn-outline-brand {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-focus-shadow-rgb: 11, 95, 85;
    border-width: 2px;
}

/* Capçalera */
.site-header { background: var(--brand); }
.site-header .nav-link { color: rgba(255, 255, 255, .88); font-weight: 500; }
.site-header .nav-link:hover, .site-header .nav-link:focus { color: #fff; }
.brand-mark { width: 2.4rem; height: 2.4rem; background: var(--brand-accent); color: var(--brand-dark); font-size: 1.1rem; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand-light) 0%, #fff 100%); }
.search-box .form-control, .search-box .input-group-text { border-color: #b9cfca; border-width: 2px; }
.search-box .form-control { font-size: 1.2rem; padding-top: .9rem; padding-bottom: .9rem; }
.search-box .form-control:focus { box-shadow: none; border-color: var(--brand); }
.search-box .btn { font-size: 1.2rem; }
.hero-stats strong { color: var(--brand); font-size: 1.35rem; }

.section-intro { max-width: 52rem; }
.section-lead { font-size: 1.15rem; max-width: 46rem; }

/* Targetes d'oferta */
.job-card { border-radius: var(--bs-border-radius-lg); transition: transform .15s ease, box-shadow .15s ease; }
.job-card:hover { transform: translateY(-2px); box-shadow: 0 .75rem 1.5rem rgba(11, 95, 85, .12) !important; }
.job-card h3 a:hover { color: var(--brand) !important; }
.job-card .employer, .page-job .employer { color: var(--brand); }
.job-card .salary { color: #1d2a2a; }
.job-card .salary i { color: var(--brand); }
.job-meta .list-inline-item { margin-right: 0; padding-right: .9rem; margin-bottom: .25rem; }
.job-meta .list-inline-item:not(:last-child) { border-right: 1px solid #d5dedc; margin-right: .9rem; }
.badge-new { background: #fff7d6; color: #6b5200; border: 2px solid var(--brand-accent); }

/* Sectors i regions */
.sector-tile { border-radius: var(--bs-border-radius-lg); transition: background-color .15s ease, transform .15s ease; }
.sector-tile:hover { background: var(--brand-light); transform: translateY(-2px); }
.tile-icon { width: 3.2rem; height: 3.2rem; background: var(--brand-light); color: var(--brand); font-size: 1.35rem; }
.region-row { transition: border-color .15s ease, box-shadow .15s ease; }
.region-row:hover { border-color: var(--brand) !important; box-shadow: 0 .4rem 1rem rgba(11, 95, 85, .1); }
.stat-value { font-size: 2.4rem; line-height: 1.1; }

/* Fitxa */
.job-hero { background: var(--brand-light); }
.breadcrumb a { text-decoration: none; }
.badge-sector { background: #fff; color: var(--brand); border: 1px solid #b9cfca; }
.badge-sector:hover { background: var(--brand); color: #fff; }
.job-content h2 { scroll-margin-top: 1.5rem; }
.job-description p { margin-bottom: 1rem; }
.facts-card { top: 1.5rem; }
.fact-icon { width: 1.5rem; text-align: center; }
.facts-card dl > div:last-child { border-bottom: 0 !important; }

/* Peu */
.site-footer { background: #0d2b28; color: rgba(255, 255, 255, .75); }
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
