/* ============================================================
   We Serve — Detail Pages (Service & Project)
   ============================================================ */

/* ===================== SHARED HERO ===================== */
.we-pd-hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.we-pd-hero__img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
}

.we-pd-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(5,13,26,0.98) 0%,
        rgba(5,13,26,0.7)  50%,
        rgba(5,13,26,0.35) 100%
    );
}

.we-pd-hero__container {
    position: relative; z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* top padding = navbar offset */
    padding-top: calc(18px + 64px + 1.5rem);
    padding-bottom: 3rem;
}

/* Breadcrumb inside hero */
.we-pd-hero__bc .breadcrumb {
    background: transparent; padding: 0;
}
.we-pd-hero__bc .breadcrumb-item a {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.25s;
}
.we-pd-hero__bc .breadcrumb-item a:hover { color: var(--we-gold); }
.we-pd-hero__bc .breadcrumb-item.active {
    color: var(--we-gold);
    font-size: 0.82rem;
}
.we-pd-hero__bc .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.25);
}

/* Tags */
.we-pd-hero__tag {
    display: inline-flex; align-items: center; gap: 0.45rem;
    background: rgba(232,160,32,0.15);
    border: 1px solid rgba(232,160,32,0.4);
    color: #f5c842;
    padding: 0.3rem 0.95rem; border-radius: 50px;
    font-size: 0.78rem; font-weight: 700;
    margin: 1.5rem 0 1rem;
    backdrop-filter: blur(8px);
}
.we-pd-hero__tag--pipe   { background:rgba(26,138,126,0.15); border-color:rgba(26,138,126,0.4); color:#2bc5b4; }
.we-pd-hero__tag--proc   { background:rgba(212,92,21,0.15);  border-color:rgba(212,92,21,0.4);  color:#e88030; }
.we-pd-hero__tag--energy { background:rgba(108,92,231,0.15); border-color:rgba(108,92,231,0.4); color:#a29bfe; }

.we-pd-hero__title {
    font-size: clamp(1.9rem,4.5vw,3.2rem);
    font-weight: 900; color: #fff;
    line-height: 1.2; margin: 0 0 0.85rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.we-pd-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 1.5rem;
    line-height: 1.7;
}

/* Meta row (projects) */
.we-pd-hero__meta {
    display: flex; flex-wrap: wrap; gap: 1.25rem;
}
.we-pd-hero__meta span {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.82rem; color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.we-pd-hero__meta i { color: var(--we-gold); font-size: 0.75rem; }
.we-pd-hero__status { color: #48bb78 !important; }
.we-pd-hero__status i { color: #48bb78 !important; }

/* ===================== BODY ===================== */
.we-pd-body { padding: 70px 0 100px; }

/* ── Main Image ── */
.we-pd-main-img {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    border: 1px solid var(--we-border);
    height: 420px;
}
.we-pd-main-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* ── Block ── */
.we-pd-block { margin-bottom: 3.5rem; }

.we-pd-block__title {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 1.2rem; font-weight: 800;
    color: var(--we-text-light);
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--we-border);
}
.we-pd-block__title span {
    display: block; width: 4px; height: 22px;
    background: linear-gradient(180deg, var(--we-gold), var(--we-orange));
    border-radius: 2px; flex-shrink: 0;
}

.we-pd-block__text {
    font-size: 0.98rem; color: var(--we-text-muted);
    line-height: 2; margin: 0;
}

/* ── Results ── */
.we-pd-result {
    background: rgba(13,28,50,0.65);
    border: 1px solid rgba(232,160,32,0.14);
    border-radius: 18px; padding: 1.75rem 1rem;
    text-align: center; height: 100%;
    transition: all 0.3s ease;
}
.we-pd-result:hover {
    border-color: rgba(232,160,32,0.35);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.we-pd-result strong {
    display: block;
    font-size: clamp(1.5rem,3vw,2.2rem);
    font-weight: 900; line-height: 1;
    background: linear-gradient(135deg,var(--we-gold),var(--we-orange));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 0.55rem;
}
.we-pd-result span {
    font-size: 0.78rem; color: var(--we-text-muted);
    font-weight: 500; line-height: 1.5;
}

/* ── Gallery ── */
.we-pd-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
}
.we-pd-gallery__item {
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--we-border);
    height: 200px;
}
.we-pd-gallery__item--wide {
    grid-column: 1 / -1;
    height: 320px;
}
.we-pd-gallery__item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.5s ease;
}
.we-pd-gallery__item:hover img { transform: scale(1.05); }

/* ── Challenges ── */
.we-pd-challenges { display: flex; flex-direction: column; gap: 1rem; }

.we-pd-challenge {
    display: flex; align-items: flex-start; gap: 1.25rem;
    background: rgba(13,28,50,0.5);
    border: 1px solid var(--we-border);
    border-radius: 16px; padding: 1.25rem 1.35rem;
    transition: border-color 0.3s, transform 0.3s;
}
.we-pd-challenge:hover {
    border-color: rgba(232,160,32,0.2); transform: translateX(-4px);
}
.we-pd-challenge__num {
    font-size: 1.5rem; font-weight: 900; line-height: 1;
    background: linear-gradient(135deg,var(--we-gold),var(--we-orange));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    flex-shrink: 0; min-width: 36px;
}
.we-pd-challenge__text {
    font-size: 0.9rem; color: var(--we-text);
    line-height: 1.75; margin: 0; padding-top: 0.15rem;
}

/* ===================== SIDEBAR ===================== */
.we-pd-sidebar {
    position: sticky; top: 110px;
    display: flex; flex-direction: column; gap: 1.25rem;
}

/* CTA box */
.we-pd-sidebar__cta {
    background: linear-gradient(145deg,#0a1a30,#112240);
    border: 1px solid rgba(232,160,32,0.22);
    border-radius: 20px; padding: 1.75rem;
}
.we-pd-sidebar__cta-head {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.we-pd-sidebar__cta-head i {
    font-size: 1.8rem; color: var(--we-gold);
}
.we-pd-sidebar__cta-head small {
    display: block; font-size: 0.72rem; color: var(--we-text-muted); margin-bottom: 0.2rem;
}
.we-pd-sidebar__cta-head strong {
    display: block; font-size: 1.2rem; font-weight: 900;
    background: linear-gradient(135deg,var(--we-gold),var(--we-orange));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.we-pd-sidebar__tel {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    color: rgba(255,255,255,0.4); font-size: 0.85rem;
    text-decoration: none; margin-top: 0.85rem;
    transition: color 0.25s;
}
.we-pd-sidebar__tel i { color: var(--we-gold); }
.we-pd-sidebar__tel:hover { color: var(--we-gold); }

/* Specs box */
.we-pd-sidebar__specs {
    background: var(--we-bg-card);
    border: 1px solid var(--we-border);
    border-radius: 20px; padding: 1.5rem;
}
.we-pd-sidebar__specs-title {
    font-size: 0.88rem; font-weight: 700; color: var(--we-text-light);
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1.1rem; padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--we-border);
}
.we-pd-sidebar__specs-title i { color: var(--we-gold); }

.we-pd-sidebar__specs-list {
    list-style: none; padding: 0; margin: 0;
}
.we-pd-sidebar__specs-list li {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.83rem;
}
.we-pd-sidebar__specs-list li:last-child { border-bottom: none; }
.we-pd-sidebar__specs-list .label { color: var(--we-text-muted); flex-shrink: 0; }
.we-pd-sidebar__specs-list .val { color: var(--we-text-light); font-weight: 600; text-align: left; }
.we-pd-sidebar__status { color: #48bb78 !important; display: flex; align-items: center; gap: 0.35rem; }
.we-pd-sidebar__status i { font-size: 0.75rem; }

/* Related box */
.we-pd-sidebar__related {
    background: var(--we-bg-card);
    border: 1px solid var(--we-border);
    border-radius: 20px; padding: 1.5rem;
}
.we-pd-sidebar__related-title {
    font-size: 0.88rem; font-weight: 700; color: var(--we-text-light);
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1rem; padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--we-border);
}
.we-pd-sidebar__related-title i { color: var(--we-gold); }

.we-pd-sidebar__related-item {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem; color: rgba(255,255,255,0.45);
    text-decoration: none; transition: all 0.25s;
}
.we-pd-sidebar__related-item:last-child { border-bottom: none; }
.we-pd-sidebar__related-item i { font-size: 0.72rem; color: var(--we-gold); opacity: 0.4; transition: opacity 0.25s; }
.we-pd-sidebar__related-item:hover { color: var(--we-gold); padding-right: 6px; }
.we-pd-sidebar__related-item:hover i { opacity: 1; }

/* ===================== PDF CARDS ===================== */
.we-pdf-card {
    display: flex; align-items: center; gap: 1rem;
    background: rgba(13,28,50,0.5);
    border: 1px solid var(--we-border);
    border-radius: 16px; padding: 1rem 1.1rem;
    transition: all 0.3s ease;
}
.we-pdf-card:hover {
    border-color: rgba(232,160,32,0.3);
    background: rgba(232,160,32,0.04);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.we-pdf-card__icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: rgba(220,53,69,0.12); border: 1px solid rgba(220,53,69,0.25);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; color: #e85555;
    transition: background 0.3s;
}
.we-pdf-card:hover .we-pdf-card__icon { background: rgba(220,53,69,0.22); }
.we-pdf-card__info { flex: 1; min-width: 0; }
.we-pdf-card__name { font-size: 0.85rem; font-weight: 700; color: var(--we-text-light); margin: 0 0 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.we-pdf-card__meta { font-size: 0.72rem; color: var(--we-text-muted); display: flex; align-items: center; gap: 0.35rem; }
.we-pdf-card__meta i { font-size: 0.65rem; color: var(--we-gold); }
.we-pdf-card__btn {
    width: 38px; height: 38px; flex-shrink: 0;
    background: rgba(232,160,32,0.1); border: 1px solid rgba(232,160,32,0.25);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--we-gold); font-size: 1rem;
    text-decoration: none; transition: all 0.3s ease;
}
.we-pdf-card__btn:hover {
    background: var(--we-gold); color: #050d1a;
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(232,160,32,0.35);
}

/* ===================== SERVICE DETAIL EXTRAS ===================== */
.we-dtl-body { padding: 70px 0 100px; }
.we-dtl-sec-title { font-size: 1.1rem; font-weight: 800; color: var(--we-text-light); display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--we-border); }
.we-dtl-sec-title i { color: var(--we-gold); }
.we-dtl-desc { margin-bottom: 3rem; }
.we-dtl-desc__title { font-size: 1.4rem; font-weight: 800; color: var(--we-text-light); margin-bottom: 1rem; }
.we-dtl-desc__text { font-size: 0.98rem; color: var(--we-text-muted); line-height: 2; }
.we-dtl-features { margin-bottom: 3rem; }
.we-dtl-pdfs { margin-bottom: 2rem; }
.we-dtl-pdfs__note { font-size: 0.85rem; color: var(--we-text-muted); margin-bottom: 1.25rem; line-height: 1.7; }

.we-dtl-feat { display: flex; gap: 1rem; align-items: flex-start; background: rgba(13,28,50,0.5); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; padding: 1.25rem; height: 100%; transition: all 0.3s ease; }
.we-dtl-feat:hover { border-color: rgba(232,160,32,0.2); background: rgba(232,160,32,0.04); transform: translateY(-4px); }
.we-dtl-feat__icon { width: 44px; height: 44px; border-radius: 11px; background: rgba(232,160,32,0.1); border: 1px solid rgba(232,160,32,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--we-gold); flex-shrink: 0; transition: all 0.3s ease; }
.we-dtl-feat:hover .we-dtl-feat__icon { background: var(--we-gold); color: #050d1a; }
.we-dtl-feat__title { font-size: 0.88rem; font-weight: 700; color: var(--we-text-light); margin: 0 0 0.3rem; }
.we-dtl-feat__text  { font-size: 0.78rem; color: var(--we-text-muted); margin: 0; line-height: 1.65; }

.we-dtl-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 110px; }
.we-dtl-sidebar__box { background: var(--we-bg-card); border: 1px solid var(--we-border); border-radius: 18px; padding: 1.5rem; }
.we-dtl-sidebar__box--gold { border-color: rgba(232,160,32,0.25); background: linear-gradient(135deg,var(--we-bg-card),#112040); }
.we-dtl-sidebar__box--gold p { font-size: 0.85rem; color: var(--we-text-muted); margin-bottom: 1rem; }
.we-dtl-sidebar__box-title { font-size: 0.9rem; font-weight: 700; color: var(--we-text-light); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.1rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--we-border); }
.we-dtl-sidebar__box-title i { color: var(--we-gold); }
.we-dtl-sidebar__tel { display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: rgba(255,255,255,0.45); font-size: 0.85rem; text-decoration: none; margin-top: 0.85rem; transition: color 0.25s; }
.we-dtl-sidebar__tel i { color: var(--we-gold); }
.we-dtl-sidebar__tel:hover { color: var(--we-gold); }
.we-dtl-sidebar__links { list-style: none; padding: 0; margin: 0; }
.we-dtl-sidebar__links li { border-bottom: 1px solid rgba(255,255,255,0.04); }
.we-dtl-sidebar__links li:last-child { border-bottom: none; }
.we-dtl-sidebar__links a { display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 0; font-size: 0.85rem; color: var(--we-text-muted); text-decoration: none; transition: all 0.25s; }
.we-dtl-sidebar__links a i { font-size: 0.72rem; color: var(--we-gold); opacity: 0.5; }
.we-dtl-sidebar__links a:hover { color: var(--we-gold); padding-right: 6px; }
.we-dtl-sidebar__links a:hover i { opacity: 1; }
.we-dtl-sidebar__certs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.we-dtl-sidebar__cert { background: rgba(232,160,32,0.08); border: 1px solid rgba(232,160,32,0.2); color: var(--we-gold); font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 50px; }

/* ── Mobile ── */
@media (max-width: 991px) {
    .we-pd-hero { min-height: 450px; }
    .we-pd-sidebar, .we-dtl-sidebar { position: static; }
    .we-pd-gallery { grid-template-columns: 1fr; }
    .we-pd-gallery__item--wide { height: 250px; }
    .we-pd-gallery__item { height: 200px; }
}
