/* =====================================================
   CREARCH ENVIROTECH
   Product Details & Services Page — Dedicated Styles
   ===================================================== */

/* ---- PAGE HERO BAND ---- */
.pd-hero {
    background: var(--black);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}
.pd-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
            linear-gradient(rgba(194,161,74,.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(194,161,74,.05) 1px, transparent 1px);
    background-size: 60px 60px;
}
.pd-hero-inner { position: relative; z-index: 2; }
.pd-hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 14px; font-family: var(--font-body);
}
.pd-hero-eyebrow::before { content:''; width:28px; height:1px; background:var(--gold); }
.pd-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem,5vw,4.2rem);
    color: var(--white); font-weight: 300;
    line-height: 1.1; margin-bottom: 0;
}
.pd-hero h1 em { color: var(--gold); font-style: italic; }
.pd-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-top: 28px;
}
.pd-breadcrumb a,
.pd-breadcrumb span {
    font-size: .72rem; letter-spacing: .08em;
    color: rgba(255,255,255,.35);
    transition: color .2s;
}
.pd-breadcrumb a:hover { color: var(--gold); }
.pd-breadcrumb .sep { color: rgb(255 255 255 / 60%); }
.pd-breadcrumb .cur { color: var(--gold); }

/* ---- LAYOUT WRAPPER ---- */
.pd-layout {
    background: var(--off-white);
    padding: 60px 0 100px;
}

/* ===== LEFT SIDEBAR ===== */
.pd-sidebar {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 2px;
    overflow: hidden;
    position: sticky; top: 96px;
}
.pd-sidebar-heading {
    background: var(--black);
    padding: 18px 24px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold);
    font-family: var(--font-body);
}

/* top-level item */
.pd-nav > li { border-bottom: 1px solid rgba(0,0,0,.06); }
.pd-nav > li:last-child { border-bottom: none; }

.pd-nav-parent {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    font-size: .83rem; font-weight: 600;
    color: var(--charcoal);
    cursor: pointer;
    transition: background .2s, color .2s;
    user-select: none;
    background: transparent;
    border: none; width: 100%; text-align: left;
    font-family: var(--font-body);
}
.pd-nav-parent .pd-arrow {
    width: 20px; height: 20px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .55rem; color: var(--mid-grey);
    transition: transform .3s, background .2s, border-color .2s;
    flex-shrink: 0;
}
.pd-nav-parent:hover,
.pd-nav-parent.open { background: var(--gold-pale); color: var(--gold-dark); }
.pd-nav-parent.open .pd-arrow {
    transform: rotate(180deg);
    background: var(--gold); border-color: var(--gold); color: var(--black);
}

/* sub-menu */
.pd-subnav {
    display: none;
    background: var(--off-white);
    border-top: 1px solid rgba(0,0,0,.06);
    padding: 4px 0;
}
.pd-subnav.open { display: block; }
.pd-subnav a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px 10px 32px;
    font-size: .8rem; color: var(--mid-grey);
    transition: color .2s, padding-left .2s;
    font-family: var(--font-body);
}
.pd-subnav a::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(194,161,74,.4);
    flex-shrink: 0;
    transition: background .2s;
}
.pd-subnav a:hover,
.pd-subnav a.active {
    color: var(--gold-dark); padding-left: 36px;
}
.pd-subnav a:hover::before,
.pd-subnav a.active::before { background: var(--gold); }
.pd-subnav a.active { font-weight: 600; color: var(--gold-dark); }

/* plain link (no sub) */
.pd-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    font-size: .83rem; font-weight: 500;
    color: var(--charcoal);
    transition: background .2s, color .2s, padding-left .2s;
    font-family: var(--font-body);
}
.pd-nav-link i { color: var(--gold); font-size: .85rem; flex-shrink: 0; }
.pd-nav-link:hover,
.pd-nav-link.active {
    background: var(--gold-pale);
    color: var(--gold-dark);
    padding-left: 26px;
}

/* download pdf button in sidebar */
.pd-pdf-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 16px;
    padding: 12px 20px;
    background: var(--black);
    color: var(--gold);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: 1px;
    transition: background .3s, color .3s;
    font-family: var(--font-body);
}
.pd-pdf-btn:hover { background: var(--gold); color: var(--black); }

/* ===== RIGHT CONTENT PANEL ===== */
.pd-content { background: transparent; }

/* image grid at top */
.pd-img-grid { display: grid; gap: 16px; margin-bottom: 40px; }
.pd-img-grid.two-col { grid-template-columns: 1fr 1fr; }
.pd-img-grid img {
    width: 100%; height: 260px; object-fit: cover;
    border-radius: 2px;
    filter: grayscale(10%) contrast(1.05);
    transition: filter .4s, transform .4s;
    display: block;
}
.pd-img-grid img:hover { filter: grayscale(0%) contrast(1); transform: scale(1.01); }

/* content card */
.pd-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 2px;
    padding: 40px 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.pd-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.pd-card h2 {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 400;
    color: var(--black); margin-bottom: 20px;
    line-height: 1.15;
}
.pd-card h2 em { color: var(--gold); font-style: italic; }
.pd-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 500;
    color: var(--charcoal); margin-bottom: 8px; margin-top: 28px;
}
.pd-card p {
    font-size: .9rem; color: var(--mid-grey);
    line-height: 1.85; font-weight: 300;
    margin-bottom: 16px;
}
.pd-card p strong { color: var(--charcoal); font-weight: 600; }

/* source type block */
.source-type {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.source-type:last-of-type { border-bottom: none; padding-bottom: 0; }
.source-icon {
    width: 52px; height: 52px; flex-shrink: 0;
    background: var(--gold-pale);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--gold-dark);
    transition: background .3s, color .3s;
}
.source-type:hover .source-icon { background: var(--gold); color: var(--black); }
.source-type h3 { margin-top: 0 !important; }

/* tech chips */
.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tech-chip {
    font-size: .68rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border: 1px solid rgba(194,161,74,.35);
    color: var(--gold-dark);
    border-radius: 100px;
    background: var(--gold-pale);
    font-family: var(--font-body);
}

/* related products strip at bottom */
.pd-related { margin-top: 16px; }
.pd-related-heading {
    font-family: var(--font-body);
    font-size: .65rem; font-weight: 700;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 20px;
}
.pd-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pd-rel-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .3s, transform .3s, border-color .3s;
}
.pd-rel-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(194,161,74,.3);
}
.pd-rel-card img {
    width: 100%; height: 130px; object-fit: cover;
    transition: transform .4s;
    filter: grayscale(15%);
}
.pd-rel-card:hover img { transform: scale(1.05); filter: grayscale(0%); }
.pd-rel-body {
    padding: 16px;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 400;
    color: var(--charcoal);
    line-height: 1.3;
}
.pd-rel-body i { color: var(--gold); font-size: .75rem; margin-left: 4px; }

/* =============================================
   SERVICES PAGE
   ============================================= */

/* hero — reuses .pd-hero */

/* services layout */
.svc-layout {
    background: var(--white);
    padding: 70px 0 100px;
}

/* service block — alternating text+image */
.svc-block {
    padding: 60px 0;
    border-bottom: 1px solid rgba(0,0,0,.07);
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .7s ease, transform .7s ease;
}
.svc-block.visible { opacity: 1; transform: translateY(0); }
.svc-block:last-child { border-bottom: none; }

.svc-num {
    font-family: var(--font-display);
    font-size: 5rem; font-weight: 400;
    color: rgba(194,161,74,.1);
    line-height: 1;
    margin-bottom: -12px;
}
.svc-label {
    font-size: .65rem; font-weight: 700;
    letter-spacing: .25em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 10px;
    font-family: var(--font-body);
}
.svc-block h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400; color: var(--black);
    margin-bottom: 20px; line-height: 1.2;
}
.svc-block h2 em { color: var(--gold); font-style: italic; }
.svc-block p {
    font-size: .92rem; color: var(--mid-grey);
    line-height: 1.85; font-weight: 300;
    margin-bottom: 16px;
}
.svc-divider { width: 48px; height: 2px; background: var(--gold); margin: 18px 0 24px; }

/* why list */
.svc-why-title {
    font-size: .72rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--charcoal); margin-bottom: 12px;
    font-family: var(--font-body);
}
.svc-why-list { padding: 0; margin: 0; }
.svc-why-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .87rem; color: var(--mid-grey);
    margin-bottom: 10px; line-height: 1.65;
}
.svc-why-list li::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 6px; flex-shrink: 0;
}

/* service image */
.svc-img-wrap {
    position: relative;
    padding: 20px 20px 0 0;
}
.svc-img-wrap::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border: 1.5px solid rgba(194,161,74,.3);
    border-radius: 2px;
    pointer-events: none;
}
.svc-img-wrap img {
    width: 100%; border-radius: 2px;
    object-fit: cover;
    display: block;
    filter: grayscale(15%) contrast(1.05);
    transition: filter .5s;
}
.svc-img-wrap:hover img { filter: grayscale(0%) contrast(1); }

/* reverse layout helper */
.svc-block.reverse .svc-img-wrap {
    padding: 20px 0 0 20px;
}
.svc-block.reverse .svc-img-wrap::after {
    left: 0; right: auto;
}

/* badge on image */
.svc-img-badge {
    position: absolute; bottom: -16px; left: -16px;
    background: var(--gold);
    padding: 18px 22px;
    text-align: center;
    min-width: 110px;
    border-radius: 2px;
    z-index: 2;
}
.svc-img-badge .badge-num {
    font-family: var(--font-display);
    font-size: 2rem; color: var(--black);
    display: block; line-height: 1;
}
.svc-img-badge .badge-lbl {
    font-size: .6rem; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(0,0,0,.65);
}

/* services quick-nav pills */
.svc-nav-pills {
    display: flex; flex-wrap: wrap; gap: 10px;
    background: var(--off-white);
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,.07);
    margin-bottom: 0;
}
.svc-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 22px;
    border: 1px solid rgba(0,0,0,.1);
    background: var(--white);
    font-size: .78rem; font-weight: 500;
    color: var(--charcoal); cursor: pointer;
    border-radius: 100px;
    transition: all .25s;
    font-family: var(--font-body);
    text-decoration: none;
}
.svc-pill i { color: var(--gold); }
.svc-pill:hover,
.svc-pill.active {
    background: var(--black); color: var(--white);
    border-color: var(--black);
}
.svc-pill:hover i,
.svc-pill.active i { color: var(--gold); }

/* contact strip at bottom of services */
.svc-contact-strip {
    background: var(--black);
    padding: 60px 0;
    border-top: 1px solid rgba(194,161,74,.15);
}
.svc-contact-item {
    display: flex; align-items: center; gap: 16px;
}
.svc-contact-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border: 1px solid rgba(194,161,74,.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--gold);
}
.svc-contact-item .lbl {
    font-size: .62rem; letter-spacing: .2em;
    text-transform: uppercase; color: var(--gold);
    font-weight: 600; margin-bottom: 3px;
    font-family: var(--font-body);
}
.svc-contact-item .val {
    font-size: .9rem; color: rgba(255,255,255,.7);
    font-weight: 300;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .pd-sidebar { position: static; margin-bottom: 32px; }
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-img-grid.two-col { grid-template-columns: 1fr; }
    .svc-block.reverse .row { flex-direction: column-reverse; }
}
@media (max-width: 767px) {
    .pd-card { padding: 28px 24px; }
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-img-grid img { height: 200px; }
    .svc-img-badge { display: none; }
    .svc-nav-pills { padding: 16px 0; }
}
@media (max-width: 575px) {
    .pd-related-grid { grid-template-columns: 1fr 1fr; }
}