/* ── Project Single (single-project.php) ──────────────────── */

/* ── Hero — two-column ────────────────────────────────────── */
.proj-hero {
    background: #fff;
    padding: 3.5rem 0 3rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.proj-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.proj-hero__left {
    padding-bottom: 2rem;
}

/* Breadcrumbs */
.proj-breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .375rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
}
.proj-breadcrumbs li {
    display: flex;
    align-items: center;
    color: #9ca3af;
}
.proj-breadcrumbs li + li::before {
    content: '/';
    margin-right: .375rem;
    opacity: .4;
}
.proj-breadcrumbs a {
    color: var(--wp--preset--color--secondary, #0B2169);
    text-decoration: none;
    transition: color .15s;
}
.proj-breadcrumbs a:hover { color: var(--wp--preset--color--primary, #B00000); }
.proj-breadcrumbs [aria-current="page"] {
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Service type badge */
.proj-hero__badge {
    display: inline-block;
    background: var(--wp--preset--color--primary, #B00000);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .625rem;
    border-radius: 4px;
    margin-bottom: .875rem;
}

/* H1 */
.proj-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--wp--preset--color--secondary, #0B2169);
    margin: 0 0 1.375rem;
}

/* Location + material pills */
.proj-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

.proj-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8125rem;
    font-weight: 600;
    color: #6b7280;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 999px;
    padding: .3rem .75rem;
    line-height: 1;
}

.proj-hero__meta-item svg { flex-shrink: 0; }

/* Image column */
.proj-hero__right {
    display: flex;
    align-items: stretch;
}

.proj-hero__img-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

.proj-hero__img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    display: block;
}

.proj-hero__img-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        rgba(11,33,105,.04),
        rgba(11,33,105,.04) 10px,
        rgba(11,33,105,.08) 10px,
        rgba(11,33,105,.08) 20px
    );
    color: #9ca3af;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2rem;
    text-align: center;
}

/* ── Post content ─────────────────────────────────────────── */
.proj-content {
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.proj-content__body {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
    text-align: center;
}

.proj-content__body ul,
.proj-content__body ol {
    display: inline-block;
    text-align: left;
}

.proj-content__body > *:first-child { margin-top: 0; }
.proj-content__body > *:last-child  { margin-bottom: 0; }

.proj-content__body p { margin: 0 0 1.25rem; }

.proj-content__body h2 {
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 800;
    color: var(--wp--preset--color--secondary, #0B2169);
    letter-spacing: -.02em;
    margin: 2rem 0 .75rem;
}

.proj-content__body h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--wp--preset--color--secondary, #0B2169);
    margin: 1.5rem 0 .5rem;
}

.proj-content__body strong {
    font-weight: 700;
    color: var(--wp--preset--color--secondary, #0B2169);
}

.proj-content__body a {
    color: var(--wp--preset--color--primary, #B00000);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.proj-content__body ul,
.proj-content__body ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.proj-content__body li { margin-bottom: .4rem; }

.proj-content__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 1.5rem 0;
}

/* ── Related projects ─────────────────────────────────────── */
.proj-related {
    padding: 4rem 0;
    background: var(--nifty-page-bg, #f8f8f6);
}

.proj-related__header {
    margin-bottom: 2rem;
}

.proj-related__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary, #B00000);
    margin-bottom: .5rem;
}

.proj-related__eyebrow-line {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: currentColor;
    flex-shrink: 0;
}

.proj-related__heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--wp--preset--color--secondary, #0B2169);
    letter-spacing: -.02em;
    margin: 0;
}

/* ── CTA banner ───────────────────────────────────────────── */
.proj-cta {
    padding: 4rem 0 5rem;
}

.proj-cta__card {
    background: var(--wp--preset--color--secondary, #0B2169);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.proj-cta__heading {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    margin: 0 0 .5rem;
}

.proj-cta__text {
    font-size: 1rem;
    color: rgba(255,255,255,.7);
    margin: 0;
    line-height: 1.6;
}

.proj-cta__actions {
    display: flex;
    flex-direction: column;
    gap: .875rem;
    flex-shrink: 0;
    align-items: stretch;
    min-width: 200px;
}

.proj-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .875rem 1.75rem;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    transition: filter .2s, transform .2s;
}
.proj-cta__btn:hover {
    filter: brightness(.88);
    transform: translateY(-1px);
}

.proj-cta__phone {
    text-align: center;
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .15s;
}
.proj-cta__phone:hover { color: #fff; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .proj-hero__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .proj-hero__left { padding-bottom: 0; }
    .proj-hero__right { order: -1; }
    .proj-hero__img-wrap { min-height: 260px; }
    .proj-cta__card { flex-direction: column; align-items: stretch; }
    .proj-cta__actions { min-width: unset; }
}

@media (max-width: 560px) {
    .proj-hero { padding-top: 2.5rem; }
    .proj-cta__card { padding: 2rem 1.5rem; }
}
