/* ============================================
   JOB SHOWCASE STYLES — Endurance Painting
   ============================================ */

/* ---- Jobs Index Hero ---- */
.jobs-hero {
    background: #0a0a0a;
    padding: 80px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.jobs-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(252,123,27,0.14) 0%, transparent 55%);
    pointer-events: none;
}
.jobs-hero__container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}
.jobs-hero__eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FC7B1B;
    margin-bottom: 14px;
}
.jobs-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 16px;
}
.jobs-hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ---- Jobs Index Grid ---- */
.jobs-section {
    padding: 72px 0 80px;
    background: #f5f5f5;
}
.jobs-section__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---- Job Card ---- */
.job-card {
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    text-decoration: none;
    color: inherit;
}
.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.13);
}
.job-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #1a1008;
}
.job-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.job-card:hover .job-card__image img {
    transform: scale(1.04);
}
/* Fallback placeholder when no image is set */
.job-card__image-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1008 0%, #2d1a00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.job-card__image-placeholder svg {
    opacity: 0.08;
    width: 72px;
    height: 72px;
    fill: #fff;
}
.job-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #FC7B1B;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 2px;
    z-index: 1;
}
.job-card__body {
    padding: 26px 26px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.job-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 11px;
    flex-wrap: wrap;
}
.job-card__location,
.job-card__year {
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
}
.job-card__location::after {
    content: '·';
    margin-left: 12px;
    color: #ddd;
}
.job-card__title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #111;
    line-height: 1.38;
    margin: 0 0 11px;
}
.job-card__excerpt {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.68;
    margin: 0 0 22px;
    flex: 1;
}
.job-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #FC7B1B;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    transition: gap 0.2s;
}
.job-card:hover .job-card__link {
    gap: 10px;
}

/* Featured card spans 2 columns */
.job-card--featured {
    grid-column: span 2;
    flex-direction: row;
}
.job-card--featured .job-card__image {
    width: 48%;
    height: auto;
    min-height: 260px;
    flex-shrink: 0;
}
.job-card--featured .job-card__title {
    font-size: 1.25rem;
}
.job-card--featured .job-card__excerpt {
    font-size: 0.925rem;
}

/* ============================================
   INDIVIDUAL JOB PAGE
   ============================================ */

.job-post-hero {
    background: #0a0a0a;
    padding: 64px 0 52px;
    position: relative;
    overflow: hidden;
}
.job-post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(252,123,27,0.11) 0%, transparent 55%);
    pointer-events: none;
}
.job-post-hero__container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}
.job-post-hero__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.job-post-hero__category {
    background: #FC7B1B;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
}
.job-post-hero__location,
.job-post-hero__year {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}
.job-post-hero__title {
    font-size: clamp(1.65rem, 4vw, 2.65rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 18px;
}
.job-post-hero__subtitle {
    font-size: 1.02rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.65;
}

/* Job Post Layout */
.job-post-layout {
    padding: 68px 0 84px;
    background: #fff;
}
.job-post-layout__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
}

/* Article */
.job-post-article h2 {
    font-size: 1.42rem;
    font-weight: 700;
    color: #111;
    margin: 48px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FC7B1B;
    line-height: 1.3;
}
.job-post-article h2:first-child {
    margin-top: 0;
}
.job-post-article h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin: 32px 0 10px;
}
.job-post-article p {
    font-size: 1rem;
    line-height: 1.82;
    color: #444;
    margin: 0 0 20px;
}
.job-post-article ul,
.job-post-article ol {
    margin: 4px 0 22px;
    padding-left: 22px;
}
.job-post-article li {
    font-size: 1rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 7px;
}
.job-post-article strong {
    color: #222;
    font-weight: 600;
}
.job-post-article blockquote {
    border-left: 4px solid #FC7B1B;
    margin: 34px 0;
    padding: 18px 24px;
    background: #fdf7f2;
    border-radius: 0 3px 3px 0;
}
.job-post-article blockquote p {
    font-size: 1.04rem;
    font-style: italic;
    color: #555;
    margin: 0;
    line-height: 1.7;
}

/* Photo Gallery */
.job-gallery {
    margin: 52px 0 0;
}
.job-gallery__heading {
    font-size: 1.42rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FC7B1B;
    line-height: 1.3;
}
.job-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.job-gallery__item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    background: #111;
}
.job-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.job-gallery__item:hover img {
    transform: scale(1.06);
}
.job-gallery__item--wide {
    grid-column: span 2;
}
.job-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}
.job-gallery__item:hover .job-gallery__overlay {
    background: rgba(0,0,0,0.32);
}
.job-gallery__zoom-icon {
    opacity: 0;
    width: 36px;
    height: 36px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    transition: opacity 0.25s;
}
.job-gallery__item:hover .job-gallery__zoom-icon {
    opacity: 1;
}

/* Lightbox */
.job-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.job-lightbox.is-open {
    display: flex;
}
.job-lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 2px;
    display: block;
}
.job-lightbox__close {
    position: fixed;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.18s;
    z-index: 10000;
    padding: 0;
}
.job-lightbox__close:hover { opacity: 1; }
.job-lightbox__prev,
.job-lightbox__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 18px 22px;
    border-radius: 2px;
    transition: background 0.18s;
    z-index: 10000;
    line-height: 1;
}
.job-lightbox__prev { left: 12px; }
.job-lightbox__next { right: 12px; }
.job-lightbox__prev:hover,
.job-lightbox__next:hover { background: rgba(255,255,255,0.22); }
.job-lightbox__counter {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    z-index: 10000;
}

/* CTA box */
.job-post-cta-box {
    background: #111;
    padding: 38px 40px;
    border-radius: 3px;
    margin: 52px 0 0;
    text-align: center;
}
.job-post-cta-box h3 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 10px;
    font-weight: 700;
}
.job-post-cta-box p {
    color: rgba(255,255,255,0.65);
    margin: 0 0 22px;
    font-size: 0.94rem;
    line-height: 1.6;
}
.job-post-cta-box a {
    display: inline-block;
    background: #FC7B1B;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 2px;
    transition: background 0.2s;
}
.job-post-cta-box a:hover { background: #D96610; }

/* Sidebar */
.job-post-sidebar {
    position: sticky;
    top: 100px;
}
.job-details-widget {
    background: #f5f5f5;
    padding: 26px;
    margin-bottom: 22px;
    border-radius: 3px;
}
.job-details-widget__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FC7B1B;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e2e2;
}
.job-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.job-details-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.875rem;
}
.job-details-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.job-details-list strong {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 3px;
}
.job-details-list span {
    color: #222;
    font-weight: 500;
    line-height: 1.4;
}
.sidebar-jobs {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-jobs li {
    padding: 11px 0;
    border-bottom: 1px solid #e8e8e8;
}
.sidebar-jobs li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-jobs a {
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    transition: color 0.18s;
}
.sidebar-jobs a:hover { color: #FC7B1B; }
.sidebar-jobs span {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
}

/* ============================================
   PROJECT DETAIL SECTIONS — inline on /projects page
   ============================================ */

.project-details-sections {
    background: #fff;
}
.project-detail {
    padding: 72px 0 80px;
    border-top: 4px solid #f0f0f0;
}
.project-detail:nth-child(even) {
    background: #f7f7f7;
}
.project-detail__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.project-detail__header {
    margin-bottom: 40px;
}
.project-detail__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.project-detail__category {
    background: #FC7B1B;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 2px;
}
.project-detail__location,
.project-detail__year {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}
.project-detail__location::after {
    content: '·';
    margin-left: 12px;
    color: #ddd;
}
.project-detail__title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 3px solid #FC7B1B;
}
.project-detail__subtitle {
    font-size: 1.02rem;
    color: #666;
    line-height: 1.65;
    max-width: 760px;
}

/* Body: photos left, description right */
.project-detail__body {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 56px;
    align-items: start;
    margin-top: 36px;
}

/* Photo grid inside detail section */
.project-detail__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.project-detail__photo {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    background: #111;
}
.project-detail__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.project-detail__photo:hover img {
    transform: scale(1.06);
}
.project-detail__photo--wide {
    grid-column: span 2;
}
.project-detail__photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
}
.project-detail__photo:hover .project-detail__photo-overlay {
    background: rgba(0,0,0,0.32);
}
.project-detail__zoom {
    opacity: 0;
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    transition: opacity 0.25s;
}
.project-detail__photo:hover .project-detail__zoom {
    opacity: 1;
}

/* Description sidebar */
.project-detail__description h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    color: #FC7B1B;
}
.project-detail__description p {
    font-size: 0.975rem;
    line-height: 1.8;
    color: #444;
    margin: 0 0 18px;
}
.project-detail__description ul {
    margin: 4px 0 22px;
    padding-left: 20px;
}
.project-detail__description li {
    font-size: 0.95rem;
    line-height: 1.72;
    color: #444;
    margin-bottom: 6px;
}
.project-detail__specs {
    background: #f0f0f0;
    border-radius: 3px;
    padding: 20px 22px;
    margin: 24px 0;
    list-style: none;
    padding-left: 22px;
}
.project-detail__specs li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.875rem;
    display: flex;
    gap: 10px;
}
.project-detail__specs li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.project-detail__specs strong {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    min-width: 90px;
    display: block;
    padding-top: 2px;
}
.project-detail__specs span {
    color: #222;
    font-weight: 500;
}
.project-detail__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #FC7B1B;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
    transition: gap 0.2s;
}
.project-detail__cta-link:hover {
    gap: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 968px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .job-card--featured {
        grid-column: span 2;
        flex-direction: column;
    }
    .job-card--featured .job-card__image {
        width: 100%;
        height: 240px;
    }
    .job-post-layout__container {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .job-post-sidebar {
        position: static;
    }
    .job-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .job-gallery__item--wide {
        grid-column: span 1;
    }
}
@media (max-width: 968px) {
    .project-detail__body {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .project-detail__gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-detail__photo--wide {
        grid-column: span 1;
    }
}
@media (max-width: 640px) {
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    .job-card--featured {
        grid-column: span 1;
    }
    .jobs-hero { padding: 56px 0 40px; }
    .job-post-cta-box { padding: 28px 22px; }
    .job-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-detail__gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
