/* ==========================================================================
   Portfolio Case Study Template — page-scoped styles (prefix: pcs-)
   Reusable across every /portfolio/{slug}/ and /logo-portfolio/ style page.
   ========================================================================== */

.pcs-page {
    --pcs-bg: #fafafa;
    --pcs-text: #111;
    --pcs-text-muted: #666;
    --pcs-border: #e5e5e5;

    background-color: var(--pcs-bg);
    color: var(--pcs-text);
    -webkit-font-smoothing: antialiased;
}

.pcs-tight-tracking { letter-spacing: -0.03em; }
.pcs-text-muted { color: var(--pcs-text-muted); }

.pcs-container {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 5vw;
    padding-right: 5vw;
}

/* --------------------------------------------------------------------------
   Self-contained grid (this template uses Bootstrap-style class names —
   .row / .col-lg-4 / .col-lg-8 / .col-md-6 — but Bootstrap's own CSS is
   NOT loaded on this page. Without it those classes are inert and every
   column stacks full-width, which is what was causing the "content fills
   the whole screen with no side-by-side layout" issue on laptop view.
   This block gives just enough grid behaviour to make them work, scoped
   to .pcs-page so it can't leak into or conflict with Bootstrap elsewhere
   on the site.
   -------------------------------------------------------------------------- */
.pcs-page .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.pcs-page .row.g-4 {
    margin-left: -12px;
    margin-right: -12px;
    row-gap: 24px;
}

.pcs-page [class^="col-"],
.pcs-page [class*=" col-"] {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

.pcs-page .row.g-4 > [class^="col-"],
.pcs-page .row.g-4 > [class*=" col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 768px) {
    .pcs-page .col-md-6 { width: 50%; }
}

@media (min-width: 992px) {
    .pcs-page .col-lg-4 { width: 33.3333%; }
    .pcs-page .col-lg-8 { width: 66.6667%; }
}

/* --- Hero & Sticky Sidebar --- */
.pcs-hero-section {
    padding-top: 8vh;
    padding-bottom: 10vh;
}

.pcs-title-brand {
    font-size: clamp(2.25rem, 4vw + 1rem, 4.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.pcs-agency-desc {
    font-size: clamp(0.95rem, 0.3vw + 0.9rem, 1.1rem);
    line-height: 1.6;
    color: var(--pcs-text-muted);
    margin-bottom: 3rem;
    max-width: 90%;
}

.pcs-details-list {
    border-top: 1px solid var(--pcs-border);
    margin-bottom: 0;
}

.pcs-details-list li {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--pcs-border);
    font-size: 0.95rem;
    align-items: center;
}

.pcs-details-list li span:first-child {
    color: var(--pcs-text-muted);
    font-weight: 500;
}

.pcs-details-list li span:last-child {
    font-weight: 500;
}

.pcs-preview-link {
    color: var(--pcs-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.pcs-preview-link:hover {
    border-bottom-color: var(--pcs-text);
}

@media (min-width: 992px) {
    .pcs-sticky-col {
        position: sticky;
        top: calc(80px + 2rem);
        height: fit-content;
    }
    .pcs-scroll-col {
        padding-left: 4rem;
    }
}

.pcs-showcase-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 4rem;
    object-fit: cover;
}

.pcs-text-interstitial {
    padding: 2rem 0 4rem 0;
    max-width: 90%;
}

.pcs-text-interstitial h3 {
    font-size: clamp(1.35rem, 1.5vw + 1rem, 2rem);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.pcs-text-interstitial p {
    font-size: clamp(0.95rem, 0.3vw + 0.9rem, 1.1rem);
    color: var(--pcs-text-muted);
    line-height: 1.6;
}

/* --- More Projects section wrapper --- */
.pcs-more-projects-sec {
    padding-top: 10vh;
    padding-bottom: 10vh;
}

.pcs-section-title {
    font-size: clamp(2rem, 3vw + 1.25rem, 4rem);
    font-weight: 600;
    margin-bottom: 3rem;
}

/* --- More Projects: text-link list (left) + switching visual (right) ---
   Markup:
     <div class="pcs-more-grid">
       <div class="pcs-more-list-col">
         <ul class="pcs-more-list">
           <li><a class="pcs-more-link is-active" data-index="0" href="...">Name <span>meta</span></a></li>
           ...
         </ul>
       </div>
       <div class="pcs-more-visual-col">
         <div class="pcs-more-visual">
           <img class="pcs-more-img is-active" data-index="0" src="...">
           <img class="pcs-more-img" data-index="1" src="...">
           ...
         </div>
       </div>
     </div>
   Behaviour (crossfade on click, scroll-in reveal) lives in
   /assets/js/portfolio/more-projects.js — reusable as-is on any page
   that follows this markup pattern.
*/

.pcs-more-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pcs-more-projects-sec.pcs-in-view .pcs-more-grid {
    opacity: 1;
    transform: translateY(0);
}

.pcs-more-list-col {
    flex: 1 1 320px;
}

.pcs-more-visual-col {
    flex: 1 1 420px;
}

.pcs-more-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--pcs-border);
}

.pcs-more-list li {
    border-bottom: 1px solid var(--pcs-border);
}

.pcs-more-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
    font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    font-weight: 600;
    color: var(--pcs-text-muted);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.pcs-more-link span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--pcs-text-muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.pcs-more-link span::after {
    content: "+";
    font-weight: 600;
}

.pcs-more-link:hover,
.pcs-more-link.is-active {
    color: var(--pcs-text);
    padding-left: 0.5rem;
}

.pcs-more-link:hover span,
.pcs-more-link.is-active span {
    color: var(--pcs-text);
    transform: translateX(4px);
}

.pcs-more-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    background: #eee;
}

.pcs-more-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.pcs-more-img.is-active {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 767px) {
    .pcs-more-visual-col {
        order: -1;
    }
}

/* --- CTA --- */
.pcs-cta-sec {
    padding: 15vh 0;
    text-align: center;
}

.pcs-cta-title {
    font-size: clamp(2.25rem, 4vw + 1.25rem, 5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.pcs-cta-desc {
    font-size: clamp(1rem, 0.4vw + 0.9rem, 1.2rem);
    color: var(--pcs-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.6;
}

.pcs-btn-cta {
    background-color: var(--pcs-text);
    color: #fff;
    border-radius: 50px;
    padding: 0.8rem 1.8rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}
.pcs-btn-cta:hover {
    color: #fff;
    opacity: 0.8;
}

/* --- Sequential item + caption (used when scroll-col holds a list of
       small works — e.g. a logo/business-card collection — instead of a
       handful of full-bleed case-study screens) --- */
.pcs-logo-item {
    margin-bottom: 3rem;
}

.pcs-logo-item .pcs-showcase-img {
    margin-bottom: 1rem;
    background-color: #fff;
    border: 1px solid var(--pcs-border);
    object-fit: cover;
    aspect-ratio: 4/3;
    padding: 0;
    object-position:top;
}

.pcs-image-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(0.85rem, 0.2vw + 0.8rem, 0.95rem);
}

.pcs-image-caption span:first-child {
    font-weight: 600;
}

.pcs-image-caption span:last-child {
    color: var(--pcs-text-muted);
}

/* --- Small-screen tightening --- */
@media (max-width: 480px) {
    .pcs-hero-section {
        padding-top: 6vh;
        padding-bottom: 6vh;
    }
    .pcs-agency-desc,
    .pcs-text-interstitial p {
        max-width: 100%;
    }
    .pcs-details-list li {
        font-size: 0.85rem;
        padding: 1rem 0;
    }
    .pcs-more-link {
        font-size: 1.35rem;
    }
}
