/* ==========================================================================
   Imperio / Liberty Restaurant (pId 63135) — Careers page (career.php)
   Auto-loaded by base.php as per-page brand CSS (basename "career").
   Palette: --brand-primary (maroon) for headings/accents · black/white for CTAs (no gold) · cream (#F5EFE6) backgrounds. Tokens only — no hardcoded brand hex.
   ========================================================================== */

.career-page { background: #fff; }
.career-page .container { max-width: 1140px; }

.career-eyebrow,
.career-section__eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin: 0 0 12px;
}
.career-section__title {
    font-family: var(--font-display, 'Figtree', sans-serif);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--brand-primary, #bf1e2e);
    margin: 0;
    line-height: 1.25;
}
.career-section__head { margin-bottom: 44px; }
.career-section__head.text-center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.career-btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.career-btn:hover { transform: translateY(-2px); }
.career-btn:focus-visible { outline: 2px solid var(--text, #1a1a1a); outline-offset: 3px; }
/* Secondary CTA — black/white combo (was gold). Class name kept as -gold to
   avoid touching every career.php reference; only the rendered colour changed. */
.career-btn--gold {
    background: var(--text, #1a1a1a);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}
.career-btn--gold:hover { background: color-mix(in srgb, var(--text, #1a1a1a) 80%, #000); }
.career-btn--block { display: block; width: 100%; margin-top: 8px; }

/* ── Intro ───────────────────────────────────────────────────────────── */
.career-hero {
    background: var(--brand-primary, #bf1e2e);
    color: #fff;
    text-align: center;
    padding: 88px 0 80px;
}
.career-hero .career-eyebrow { color: #fff; }
/* Transparent/outline on the maroon hero — same treatment as the home hero's CTAs. */
.career-hero .career-btn--gold {
    background: transparent;
    border-color: #fff;
    color: #fff;
}
.career-hero__title {
    font-family: var(--font-display, 'Figtree', sans-serif);
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    max-width: 760px;
    margin: 0 auto 18px;
    text-wrap: balance;
    color: #fff; /* beats the global h1 colour rule on the red banner */
}
.career-hero__lead {
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 620px;
    margin: 0 auto 28px;
    text-wrap: pretty;
}

/* ── Why work with us ────────────────────────────────────────────────── */
.career-why { background: #F5EFE6; padding: 72px 0; }
.career-why__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.career-why__card {
    background: #fff;
    border-top: 4px solid var(--brand-primary);
    border-radius: 8px;
    padding: 32px 30px;
    box-shadow: 0 6px 20px rgba(191,30,46,0.06);
}
.career-why__card-title {
    font-family: var(--font-display, 'Figtree', sans-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-primary, #bf1e2e);
    margin: 0 0 12px;
}
.career-why__card-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #5c5040;
    margin: 0;
}
.career-perks {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.career-perks__item {
    background: #fff;
    border: 1px solid rgba(169,135,47,0.35);
    color: var(--brand-primary, #bf1e2e);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
}

/* ── Job Openings ────────────────────────────────────────────────────── */
.career-openings { background: #fff; padding: 72px 0; }
.career-openings__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.career-role-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(169,135,47,0.22);
    border-left: 3px solid var(--brand-primary);
    border-radius: 8px;
    padding: 24px;
    background: #fff;
    transition: box-shadow .15s ease, transform .15s ease;
}
.career-role-card:hover { box-shadow: 0 10px 28px rgba(191,30,46,0.08); transform: translateY(-2px); }
.career-role-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-primary, #bf1e2e);
    margin: 0 0 8px;
    line-height: 1.3;
}
.career-role-card__desc {
    font-size: 0.9rem;
    color: #6b5c4a;
    line-height: 1.6;
    margin: 0;
}
.career-role-card__cta {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text, #1a1a1a);
    text-decoration: none;
}
.career-role-card__cta:hover { color: var(--brand-primary, #bf1e2e); }

/* ── Application (links out to the shared hosted form) ───────────────── */
.career-apply { background: #F5EFE6; padding: 72px 0; scroll-margin-top: 90px; }
.career-apply__card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-top: 4px solid var(--brand-primary);
    border-radius: 12px;
    padding: 44px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(191,30,46,0.08);
}
.career-apply__card .career-section__eyebrow { margin-bottom: 10px; }
.career-apply__text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #5c5040;
    margin: 16px auto 28px;
    max-width: 480px;
}
/* Embedded application form — left-align the fields within the otherwise
   centered card. Fields render via the shared dynamic_form_fields partial,
   which uses Bootstrap's generic .form-group/.form-control — brand these to
   match the page instead of leaving Bootstrap's default gray/focus-blue. */
.career-apply__form { text-align: left; margin-top: 8px; }
.career-apply__form .form-group { margin-bottom: 20px; }
.career-apply__form .form-group label {
    font-family: var(--font-display, 'Figtree', sans-serif);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--brand-primary, #bf1e2e);
    margin-bottom: 6px;
    display: inline-block;
}
.career-apply__form .form-control,
.career-apply__form .form-select {
    width: 100%;
    font-family: var(--font-display, 'Figtree', sans-serif);
    font-size: 0.95rem;
    padding: 11px 14px;
    border: 1px solid rgba(169,135,47,0.35);
    border-radius: 8px;
    background: #fff;
    color: #3a322a;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.career-apply__form .form-control:focus,
.career-apply__form .form-select:focus {
    outline: none;
    border-color: var(--brand-primary, #bf1e2e);
    box-shadow: 0 0 0 3px rgba(191,30,46,0.1);
}
.career-apply__form .form-choice-group { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.career-apply__form .form-choice {
    font-size: 0.9rem;
    color: #3a322a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.career-apply__form .form-hint { font-size: 0.8rem; color: #8a7c66; margin-top: 4px; display: block; }
/* Submit button — brand-primary maroon here (not the black/white CTA combo
   used elsewhere) so it matches this card's own palette: maroon labels,
   gold-tinted borders, maroon focus ring. */
.career-apply__form .career-btn--gold {
    background: var(--brand-primary, #bf1e2e);
    margin-top: 8px;
}
.career-apply__form .career-btn--gold:hover {
    background: color-mix(in srgb, var(--brand-primary, #bf1e2e) 85%, #000);
}
.career-apply__note {
    font-size: 0.92rem;
    color: #8a7c66;
    margin: 8px 0 0;
}

/* ── Culture Photos ──────────────────────────────────────────────────── */
.career-culture { background: #fff; padding: 72px 0; }
.career-culture__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.career-culture__tile {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #F5EFE6;
}
/* Real photo tile — plain button, no placeholder chrome. */
.career-culture__tile--photo {
    display: block;
    padding: 0;
    border: 0;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
.career-culture__tile--photo:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(191,30,46,0.14); }
.career-culture__tile--photo:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.career-culture__tile--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Employee Reviews ────────────────────────────────────────────────── */
.career-reviews { background: #F5EFE6; padding: 72px 0; }
.career-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.career-review-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px 26px;
    margin: 0;
    box-shadow: 0 6px 20px rgba(191,30,46,0.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.career-review-card__quote {
    font-family: var(--font-display, 'Figtree', sans-serif);
    font-size: 1.05rem;
    line-height: 1.6;
    color: #3a322a;
    margin: 0;
    font-style: italic;
}
.career-review-card__by { display: flex; flex-direction: column; }
.career-review-card__name {
    font-weight: 700;
    color: var(--brand-primary, #bf1e2e);
    font-size: 0.95rem;
}
.career-review-card__role {
    font-size: 0.82rem;
    color: #8a7c66;
    margin-top: 2px;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .career-why__grid { grid-template-columns: 1fr; }
    .career-openings__grid { grid-template-columns: repeat(2, 1fr); }
    .career-reviews__grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .career-hero { padding: 64px 0 56px; }
    .career-culture__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .career-form__row { grid-template-columns: 1fr; }
    .career-form { padding: 24px; }
    .career-openings__grid { grid-template-columns: 1fr; }
    .career-culture__grid { grid-template-columns: 1fr; }
}
