/* ============================================================
   CESAR TEMP AGENCY — STYLES

   Sections:
     1.  Design tokens
     2.  Reset & base
     3.  Utilities
     4.  Layout primitives
     5.  Navigation
     6.  Buttons
     7.  Form controls
     8.  Footer
     9.  Marketing-page shell (shared across all pages)
     10. Hero — shared base
     11. Index page
     12. Contact page
     13. Employers page
     14. Jobs page
     15. Apply page
     16. Responsive
============================================================ */


/* ============================================================
   1. DESIGN TOKENS
============================================================ */

:root {
    --navy: #052174;
    --navy-dark: #062251;
    --gold: #e2b75d;
    --gold-deep: #be7e00;
    --gold-soft: #e8d4a3;
    --white: #ffffff;
    --bg: #f3f3f3;
    --panel: #fbfbfb;
    --line: #e8e8e8;
    --text: #333846;
    --muted: #666d7a;
    --shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
    --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.05);
    --wrap: 1220px;
}


/* ============================================================
   2. RESET & BASE
============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ============================================================
   3. UTILITIES
============================================================ */

/* Off-screen positioning for honeypot fields and similar */
.honeypot {
    position: absolute;
    left: -9999px;
}


/* ============================================================
   4. LAYOUT PRIMITIVES
============================================================ */

.page {
    position: relative;
    z-index: 1;
    padding: 26px 18px 56px;
}

.container {
    width: min(var(--wrap), calc(100% - 28px));
    margin: 0 auto;
}


/* ============================================================
   5. NAVIGATION
============================================================ */

.topbar {
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(232, 232, 232, 0.75);
    padding: 14px 26px;
}

.nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    width: 150px;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0 0 0 auto;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 3px 0;
    transition: color 0.2s ease;
}

/* Animated gold underline */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-deep);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}


/* ============================================================
   6. BUTTONS

   .btn         — base (no fill)
   .btn-gold    — gold gradient fill
   .btn-navy    — navy gradient fill
   .btn-hero    — large size used in homepage hero
   .btn-block   — full width used in forms
   .btn-compact — short height used in filter toolbars
   .btn-reset   — minimal reset link beneath form submits
============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: 0.2s ease;
    white-space: nowrap;
    padding: 16px 22px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(180deg, #caa659 0%, #ca8b0b 100%);
    color: white;
    box-shadow: 0 8px 18px rgba(199, 154, 58, 0.22);
}

.btn-navy {
    background: linear-gradient(180deg, #052174 0%, #062251 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(12, 38, 72, 0.18);
}

.btn-hero {
    padding: 18px 34px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn-compact {
    height: 51px;
    padding: 0 18px;
}

.btn-reset {
    display: block;
    margin: 14px auto 0;
    border: 0;
    background: transparent;
    color: var(--gold-deep);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}


/* ============================================================
   7. FORM CONTROLS
============================================================ */

input,
select,
textarea,
button {
    font-family: "Montserrat", sans-serif;
    -webkit-font-smoothing: antialiased;
}

input,
textarea {
    width: 100%;
    border: 1px solid #e1e1e1;
    outline: 0;
    border-radius: 12px;
    padding: 15px 16px;
    background: white;
    color: var(--navy);
    font-size: 15px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(199, 154, 58, 0.8);
    box-shadow: 0 0 0 4px rgba(199, 154, 58, 0.12);
}

textarea {
    min-height: 170px;
    resize: vertical;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 51px;
    border: 1px solid #e1e1e1;
    outline: 0;
    border-radius: 12px;
    padding: 15px 44px 15px 16px;
    background-color: #ffffff;
    color: var(--navy);
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #0a315c 50%),
        linear-gradient(135deg, #04264c 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

select::-ms-expand {
    display: none;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #6c7381;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ededed;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-message {
    margin-bottom: 18px;
}

.form-message p {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
}

.form-message .success {
    color: #236b3a;
    background: #e9f7ee;
    border: 1px solid #c8ead2;
}

.form-message .error {
    color: #9b2c2c;
    background: #fff1f1;
    border: 1px solid #f1caca;
}

.captcha-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cf-turnstile {
    margin-top: 10px;
    margin-bottom: 10px;
}


/* ============================================================
   8. FOOTER
============================================================ */

.footer {
    background: linear-gradient(180deg, var(--navy), var(--navy-dark));
    color: white;
    border-radius: 0 0 26px 26px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.footer-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 42px 28px 30px;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.05fr;
    gap: 34px;
}

.footer h3 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    line-height: 1;
}

.footer-heading {
    margin: 0 0 16px;
    color: #e2b75d;
    font-size: 16px;
    letter-spacing: 0.02em;
}

.footer p {
    margin: 0 0 10px;
    color: #d3d9e6;
    line-height: 1.65;
    font-size: 15px;
}

.footer-tagline {
    font-size: 14px;
    color: #b8c2d6;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    font-size: 15px;
    color: #d3d9e6;
}

.footer a {
    color: #d3d9e6;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer a:hover {
    color: white;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: "›";
    color: var(--gold);
    font-weight: 800;
    transition: transform 0.2s ease;
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-contact {
    display: grid;
    gap: 13px;
}

.footer-contact-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
}

.footer-contact-item p {
    margin: 0;
}

.footer-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(199, 154, 58, 0.14);
    color: #e2b75d;
    flex-shrink: 0;
}

.footer-icon svg {
    width: 17px;
    height: 17px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 28px;
    text-align: center;
    font-size: 14px;
    color: #aeb7cc;
}


/* ============================================================
   9. MARKETING-PAGE SHELL
   Shared body styling, decorative glows, and site-shell rules
   used by every page.
============================================================ */

body.index-page,
body.contact-page,
body.employers-page,
body.apply-page,
body.jobs-page {
    background:
        radial-gradient(
            circle at top,
            rgba(255, 255, 255, 0.95),
            rgba(242, 242, 242, 0.96) 42%,
            rgba(237, 237, 237, 1) 100%
        ),
        linear-gradient(180deg, #f7f7f7 0%, #efefef 100%);
    min-height: 100vh;
}

/* Fixed-position decorative glow blobs */
body.index-page::before,
body.index-page::after,
body.contact-page::before,
body.contact-page::after,
body.apply-page::before,
body.apply-page::after,
body.jobs-page::before,
body.jobs-page::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: 0;
}

body.index-page::before,
body.contact-page::before,
body.apply-page::before,
body.jobs-page::before {
    right: -120px;
    top: 160px;
    width: 720px;
    height: 720px;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 60%),
        conic-gradient(
            from 240deg,
            rgba(199, 154, 58, 0.14),
            rgba(12, 38, 72, 0.02),
            rgba(199, 154, 58, 0.08),
            rgba(12, 38, 72, 0.03),
            rgba(255, 255, 255, 0)
        );
    filter: blur(10px);
    opacity: 0.85;
    border-radius: 50%;
}

body.index-page::after,
body.contact-page::after,
body.apply-page::after,
body.jobs-page::after {
    left: -200px;
    bottom: 60px;
    width: 740px;
    height: 520px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0) 14%,
            rgba(255, 255, 255, 0.5) 24%,
            rgba(199, 154, 58, 0.08) 33%,
            rgba(255, 255, 255, 0) 42%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0) 34%,
            rgba(12, 38, 72, 0.03) 40%,
            rgba(255, 255, 255, 0) 47%
        );
    filter: blur(2px);
    opacity: 0.75;
    transform: rotate(3deg);
}

/* Site shell — glass card that wraps topbar + content */
body.index-page .site-shell,
body.contact-page .site-shell,
body.employers-page .site-shell,
body.jobs-page .site-shell {
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

body.index-page .site-shell {
    border-radius: 26px;
}

body.contact-page .site-shell,
body.employers-page .site-shell,
body.apply-page .site-shell,
body.jobs-page .site-shell {
    border-radius: 26px 26px 0 0;
    border-bottom: 0;
}

body.apply-page .site-shell {
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.9);
    overflow: clip;
}

/* Homepage footer needs extra top breathing room */
body.index-page .footer {
    margin-top: 60px;
}


/* ============================================================
   10. HERO — shared base
   .hero is used on every marketing page. Index has a
   2-column dashboard layout; the other pages use
   the simpler defaults below.
============================================================ */

.hero {
    padding: 56px 50px 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 248, 248, 0.84)),
        linear-gradient(
            130deg,
            rgba(255, 255, 255, 0) 54%,
            rgba(199, 154, 58, 0.09) 56%,
            rgba(255, 255, 255, 0) 61%
        ),
        linear-gradient(
            130deg,
            rgba(255, 255, 255, 0) 57%,
            rgba(12, 38, 72, 0.04) 59%,
            rgba(255, 255, 255, 0) 64%
        );
}

.hero h1 {
    margin: 0 0 18px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(52px, 5.5vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--navy);
}

.hero p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: #4a5060;
}

/* Generic content section that follows a hero */
.section-content {
    padding: 34px 50px 56px;
    background: rgba(255, 255, 255, 0.34);
}


/* ============================================================
   11. INDEX PAGE
============================================================ */

.custom-font {
    font-family: "Cormorant Garamond", serif;
    font-weight: bold;
}

/* Index hero is a two-column grid (copy + dashboard) */
body.index-page .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) 360px;
    gap: 36px;
    padding: 42px 50px 0;
    align-items: start;
    position: relative;
    overflow: hidden;
}

/* Soft golden flare behind the dashboard */
body.index-page .hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: 72px;
    width: 620px;
    height: 300px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0) 35%, rgba(199, 154, 58, 0.12) 43%, rgba(255, 255, 255, 0) 52%),
        linear-gradient(145deg, rgba(255, 255, 255, 0) 45%, rgba(12, 38, 72, 0.05) 50%, rgba(255, 255, 255, 0) 56%),
        linear-gradient(145deg, rgba(255, 255, 255, 0) 52%, rgba(199, 154, 58, 0.07) 56%, rgba(255, 255, 255, 0) 61%);
    transform: rotate(-8deg);
    pointer-events: none;
}

body.index-page .hero h1 {
    margin: 0 0 24px;
    font-size: clamp(58px, 6vw, 74px);
    max-width: 760px;
}

body.index-page .hero h1 .gold {
    color: var(--gold-deep);
    font-weight: 600;
}

body.index-page .hero p {
    margin: 0 0 34px;
    max-width: 700px;
    line-height: 1.65;
}

.hero-copy {
    padding: 24px 0 34px;
    min-width: 0;
}

.hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 46px;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.78);
    border-top: 1px solid rgba(221, 221, 221, 0.8);
    margin: 0 -50px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: center;
}

.stat {
    text-align: center;
    position: relative;
}

.stat + .stat::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 12px;
    width: 1px;
    height: 64px;
    background: #e6d8b5;
}

.stat strong {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 50px;
    line-height: 1;
    color: var(--navy);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.stat strong span {
    color: var(--gold-deep);
    font-size: 0.9em;
}

.stat p {
    margin: 4px 0 0;
    font-size: 16px;
    color: #4f5666;
}

/* Dashboard sidebar */
.dashboard {
    background: linear-gradient(180deg, rgba(253, 253, 253, 0.98), rgba(248, 248, 248, 0.96));
    border: 1px solid rgba(227, 227, 227, 0.95);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.metric-card,
.job-row,
.jobs-footer {
    background: white;
    border: 1px solid #ececec;
    box-shadow: 5px 8px 18px rgba(17, 24, 39, 0.04);
}

.metric-card {
    border-radius: 12px;
    padding: 18px 18px 16px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: start;
}

.metric-label {
    display: block;
    color: #1d2a42;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 1px;
}

.metric-bottom {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #5a6271;
}

.metric-number {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    line-height: 1;
    color: var(--gold-deep);
}

.metric-desc {
    font-size: 14px;
    line-height: 1.4;
    max-width: 500px;
}

.job-stack {
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: white;
}

.job-row {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid #ededed;
}

.job-row h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #1c2941;
}

.job-row p {
    margin: 0;
    font-size: 14px;
    color: #495161;
}

.job-meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.job-tag {
    font-size: 12px;
    font-weight: 600;
    color: #ad842d;
    background: #f8f1df;
    padding: 4px 8px;
    border-radius: 5px;
}

/* Index page sections */
body.index-page section {
    padding: 64px 0 28px;
}

.section-title {
    text-align: center;
    margin-bottom: 34px;
}

.section-title h2 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(44px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--navy);
}

.section-title p {
    margin: 0;
    color: #596170;
    font-size: 18px;
}

.features,
.jobs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}

/* Feature cards */
.card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(239, 239, 239, 1);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 32px 26px 28px;
    text-align: center;
    min-height: 294px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.card .icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff, #f6f6f6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 6px 15px rgba(17, 24, 39, 0.05);
}

.card .icon svg {
    width: 48px;
    height: 48px;
}

.card h3 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    line-height: 1.05;
    color: var(--navy);
}

.card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #4f5665;
    max-width: 290px;
}

/* Featured job cards on the homepage */
body.index-page .job-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid #ececec;
    background: white;
    min-height: 264px;
    position: relative;
}

body.index-page .job-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 45%, rgba(12, 38, 72, 0.08) 100%);
    pointer-events: none;
}

body.index-page .job-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1.12 / 0.7;
    display: block;
}

.job-overlay {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 1;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.job-overlay h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
}

.job-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}


/* ============================================================
   12. CONTACT PAGE
============================================================ */

body.contact-page .hero p {
    max-width: 720px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 380px;
    gap: 24px;
    align-items: start;
}

body.contact-page .form-panel,
.info-panel,
.map-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ededed;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

body.contact-page .form-panel {
    padding: 28px;
}

.side-stack {
    display: grid;
    gap: 18px;
}

.info-panel {
    padding: 26px;
}

.info-panel h2 {
    margin: 0 0 16px;
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    color: var(--navy);
    line-height: 1;
}

.info-item {
    padding: 16px 0;
    border-top: 1px solid #ededed;
}

.info-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.info-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
    font-size: 15px;
}

.info-item p,
.info-item a {
    margin: 0;
    color: #596170;
    line-height: 1.6;
    font-size: 15px;
}

.map-panel {
    overflow: hidden;
}

.map-panel iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: block;
}


/* ============================================================
   13. EMPLOYERS PAGE
============================================================ */

body.employers-page .hero p {
    max-width: 760px;
}

body.employers-page .form-panel {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    padding: 30px;
}


/* ============================================================
   14. JOBS PAGE
============================================================ */

body.jobs-page .hero p {
    max-width: 780px;
}

.jobs-toolbar {
    margin-bottom: 22px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ededed;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 0.8fr) minmax(170px, 0.8fr) auto;
    gap: 14px;
    align-items: end;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.jobs-status {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.jobs-status strong {
    color: var(--navy);
}

.jobs-grid {
    display: grid;
    gap: 16px;
}

body.jobs-page .job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ededed;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.jobs-page .job-card:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 183, 93, 0.65);
    box-shadow: 0 16px 38px rgba(17, 24, 39, 0.08);
}

.job-card-main {
    min-width: 0;
}

.job-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.job-card h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #f8f1df;
    color: #ad842d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.job-subtitle {
    margin: 0 0 14px;
    color: #4f5666;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 600;
}

.job-description {
    margin: 0 0 16px;
    color: #596170;
    font-size: 15px;
    line-height: 1.7;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.job-details li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #ededed;
    border-radius: 999px;
    background: #ffffff;
    color: #495161;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 11px;
}

.job-details svg {
    width: 15px;
    height: 15px;
    color: var(--gold-deep);
    flex-shrink: 0;
}

.job-card-side {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.job-id {
    color: #788091;
    font-size: 12px;
    font-weight: 700;
}

.empty-state,
.error-state {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #ededed;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 34px;
    text-align: center;
}

.empty-state h2,
.error-state h2 {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    color: var(--navy);
    line-height: 1;
}

.empty-state p,
.error-state p {
    margin: 0;
    color: #596170;
    line-height: 1.65;
}

.loading-card {
    height: 164px;
    border-radius: 18px;
    border: 1px solid #ededed;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(248, 241, 223, 0.82), rgba(255, 255, 255, 0.72));
    background-size: 220% 100%;
    animation: shimmer 1.1s linear infinite;
    box-shadow: var(--shadow-soft);
}

@keyframes shimmer {
    from {
        background-position: 220% 0;
    }
    to {
        background-position: -220% 0;
    }
}


/* ============================================================
   15. APPLY PAGE
============================================================ */

.field-note {
    display: block;
    margin: 8px 0 0;
    color: #596170;
    font-size: 13px;
    line-height: 1.65;
}

body.apply-page .filepond--root {
    margin-bottom: 0;
}

body.apply-page .filepond--root label {
    font-family: "Montserrat", sans-serif;
    text-transform: none !important;
}

body.apply-page .filepond--panel-root {
    background-color: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    transition: border-color 0.2s ease, background-color 0.3s ease, box-shadow 0.2s ease;
}

body.apply-page .filepond--root:hover .filepond--panel-root {
    border-color: var(--navy);
    background-color: var(--navy);
}

body.apply-page .filepond--drop-label {
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
}

body.apply-page .filepond--root label,
body.apply-page .filepond--drop-label {
    cursor: pointer;
}

body.apply-page .filepond--drop-label label {
    transition: color 0.2s ease;
}

body.apply-page .filepond--root:hover .filepond--drop-label label,
body.apply-page .filepond--root .filepond--drop-label label:hover {
    color: white;
}

body.apply-page .filepond--label-action {
    color: var(--gold-deep);
    text-decoration-color: transparent;
}

body.apply-page .filepond--root:hover .filepond--label-action {
    color: var(--gold);
    text-decoration-color: var(--gold);
}

body.apply-page .filepond--file-info-main {
    font-weight: 700;
}

body.apply-page .hero p {
    max-width: 860px;
}

.application-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

body.apply-page .form-panel {
    background: rgba(255, 255, 255, 0.92);
    padding: 30px;
}

.application-panel h2 {
    margin: 0 0 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #f8f1df;
    color: var(--gold-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 12px;
}

.form-intro {
    margin: 0 0 26px;
    max-width: 780px;
    color: #596170;
    line-height: 1.65;
}

fieldset {
    margin: 0 0 26px;
    padding: 24px;
    border: 1px solid #ededed;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
}

legend {
    padding: 0 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.choice-card,
.consent-line {
    text-transform: none;
    letter-spacing: 0;
    color: #495161;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.choice-card input,
.consent-line input {
    width: auto;
    flex: 0 0 auto;
    accent-color: var(--gold-deep);
}

.choice-card:has(input:checked) {
    border-color: rgba(199, 154, 58, 0.8);
    background: #fff9eb;
    box-shadow: 0 0 0 4px rgba(199, 154, 58, 0.1);
}

.file-input {
    padding: 13px;
}

.notice-box {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(199, 154, 58, 0.38);
    border-radius: 16px;
    background: #fff9eb;
}

.notice-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 15px;
}

.notice-box p {
    margin: 0;
    color: #596170;
    line-height: 1.65;
    font-size: 14px;
}

.notice-box-dark {
    margin: 18px 0 0;
    background: linear-gradient(180deg, var(--navy), var(--navy-dark));
    border-color: rgba(255, 255, 255, 0.14);
    color: white;
}

.notice-box-dark strong,
.notice-box-dark a {
    color: white;
}

.notice-box-dark p {
    color: #d3d9e6;
}

.consent-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 14px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.application-side {
    position: sticky;
    top: 24px;
    align-self: start;
    display: grid;
    gap: 18px;
}

body.apply-page .info-panel {
    position: static;
    top: 24px;
}


/* ============================================================
   16. RESPONSIVE
============================================================ */

@media (max-width: 1180px) {
    body.index-page .hero {
        grid-template-columns: 1fr;
    }

    body.index-page .dashboard {
        margin-top: 0;
    }

    body.index-page .hero-stats {
        margin-right: 0;
    }
}

@media (max-width: 1050px) {
    .filters {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .apply {
        justify-self: start;
    }
}

@media (max-width: 980px) {
    /* Navigation wraps on all pages */
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
        font-size: 13px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    /* Index */
    body.index-page .hero {
        padding: 32px 24px 0;
    }

    body.index-page .hero h1 {
        font-size: 54px;
    }

    body.index-page .hero-stats {
        margin: 0 -24px;
        padding: 24px;
    }

    .features,
    .jobs {
        grid-template-columns: 1fr;
    }

    /* Inner pages shared padding */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    body.contact-page .hero,
    body.contact-page .section-content,
    body.employers-page .hero,
    body.employers-page .section-content,
    body.apply-page .hero,
    body.apply-page .section-content,
    body.jobs-page .hero,
    body.jobs-page .section-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Apply page */
    .application-layout {
        grid-template-columns: 1fr;
    }

    body.apply-page .info-panel {
        position: static;
    }

    .choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Jobs page filters */
    .filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .page {
        padding: 14px 10px 36px;
    }

    .topbar {
        padding: 12px 16px;
    }

    .footer {
        border-radius: 0 0 18px 18px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 32px 20px 26px;
        text-align: center;
    }

    .footer ul {
        justify-items: center;
    }

    .footer-contact-item {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    /* Index */
    body.index-page .site-shell {
        border-radius: 18px;
    }

    body.index-page .hero {
        gap: 24px;
        padding: 24px 18px 0;
    }

    body.index-page .hero h1 {
        font-size: 42px;
        line-height: 1.02;
    }

    body.index-page .hero p {
        font-size: 16px;
    }

    .hero-actions {
        gap: 12px;
        flex-direction: column;
    }

    .btn-hero {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 0 -18px;
        padding: 24px 18px 28px;
    }

    .stat + .stat::before {
        display: none;
    }

    .stat strong {
        font-size: 44px;
    }

    .dashboard {
        padding: 14px;
        border-radius: 16px;
    }

    .metric-card {
        grid-template-columns: 1fr;
    }

    .metric-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .job-meta-right {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .section-title {
        margin-bottom: 26px;
        padding: 0 10px;
    }

    .section-title h2 {
        font-size: 40px;
    }

    .section-title p {
        font-size: 16px;
    }

    .card {
        min-height: auto;
        padding: 26px 20px 24px;
    }

    .jobs {
        gap: 14px;
    }

    body.index-page .job-card {
        min-height: 220px;
    }

    body.index-page .footer {
        margin-top: 42px;
    }

    /* Inner pages — shared shell + hero + content + form + footer */
    body.contact-page .site-shell,
    body.employers-page .site-shell,
    body.apply-page .site-shell,
    body.jobs-page .site-shell {
        border-radius: 18px 18px 0 0;
    }

    body.contact-page .hero,
    body.employers-page .hero,
    body.apply-page .hero,
    body.jobs-page .hero {
        padding: 36px 18px 20px;
    }

    body.contact-page .hero h1,
    body.employers-page .hero h1,
    body.apply-page .hero h1,
    body.jobs-page .hero h1 {
        font-size: 44px;
    }

    body.contact-page .hero p,
    body.employers-page .hero p,
    body.apply-page .hero p,
    body.jobs-page .hero p {
        font-size: 16px;
    }

    body.contact-page .section-content,
    body.employers-page .section-content,
    body.apply-page .section-content,
    body.jobs-page .section-content {
        padding: 24px 18px 36px;
    }

    body.contact-page .form-panel,
    body.employers-page .form-panel,
    body.apply-page .form-panel {
        padding: 22px;
    }

    /* Jobs page specifics */
    .jobs-toolbar {
        padding: 18px;
    }

    body.jobs-page .job-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .job-card-side {
        justify-items: stretch;
    }

    .job-card-side .btn {
        width: 100%;
    }
}

@media (max-width: 650px) {
    .filters {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .results-bar {
        height: auto;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    fieldset {
        padding: 18px;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }
}
