/* ============================================
   LPC CASE STUDY STYLES

   Brand tokens:
   - Charcoal:  #333333
   - Copper:    #B78458
   - Olive:     #464B28
   - Font:      Lexend (300 Light / 400 Regular / 700 Bold)

   All classes prefixed .lpc-cs- to avoid
   conflicts with Enfold's existing styles.
   Only loads on case study pages.
   ============================================ */


/* ---------- ENFOLD OVERRIDES ----------
   Remove Enfold's default padding/containers
   so our full-width sections work properly.
   Scoped to .lpc-case-study-page only. */

.lpc-case-study-page .container.main_color {
    padding: 0 !important;
    max-width: 100% !important;
}
.lpc-case-study-page .content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}
.lpc-case-study-page .container_wrap {
    padding: 0 !important;
}


/* ---------- BREADCRUMB ---------- */
.lpc-cs-breadcrumb {
    background: #464B28;
    padding: 14px 60px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}
.lpc-cs-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.lpc-cs-breadcrumb a:hover { color: #B78458; }
.lpc-cs-breadcrumb .current { color: #fff; }
.lpc-cs-breadcrumb .sep {
    color: rgba(255,255,255,0.3);
    margin: 0 8px;
}


/* ---------- HERO ---------- */
.lpc-cs-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: #222;
}
.lpc-cs-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lpc-cs-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.65) 100%);
    padding: 80px 60px 50px;
}
.lpc-cs-hero-label {
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 700;
    color: #B78458;
    margin-bottom: 12px;
}
.lpc-cs-hero h1 {
    font-family: 'Lexend', sans-serif !important;
    font-weight: 300 !important;
    font-size: clamp(32px, 5vw, 56px) !important;
    color: #fff !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    max-width: 700px;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}


/* ---------- INTRO ---------- */
.lpc-cs-intro {
    padding: 60px 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}
.lpc-cs-intro-text {
    max-width: 680px;
    font-family: 'Lexend', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin: 0;
}
.lpc-cs-back {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    color: #B78458 !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: color 0.2s;
    padding-top: 6px;
}
.lpc-cs-back:hover { color: #464B28 !important; }


/* ---------- PROJECT DETAIL BAND ---------- */
.lpc-cs-detail {
    background: #333333;
    padding: 80px 60px;
    margin-top: 20px;
}
.lpc-cs-detail-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
}
.lpc-cs-detail h2 {
    font-family: 'Lexend', sans-serif !important;
    font-weight: 300 !important;
    font-size: 32px !important;
    color: #fff !important;
    margin-bottom: 30px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    border: none !important;
    padding: 0 !important;
}
.lpc-cs-narrative {
    color: rgba(255,255,255,0.8);
    font-family: 'Lexend', sans-serif;
    font-size: 15px;
    line-height: 1.85;
}
.lpc-cs-narrative p {
    margin-bottom: 24px;
    color: rgba(255,255,255,0.8);
}
.lpc-cs-narrative a {
    color: #B78458;
}


/* ---------- TESTIMONIAL ---------- */
.lpc-cs-testimonial {
    border-left: 3px solid #B78458;
    padding-left: 24px;
    margin: 36px 0;
}
.lpc-cs-testimonial blockquote {
    font-family: 'Lexend', sans-serif !important;
    font-style: italic;
    font-weight: 300;
    font-size: 17px !important;
    color: #B78458 !important;
    line-height: 1.7 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}
.lpc-cs-testimonial blockquote::before,
.lpc-cs-testimonial blockquote::after {
    display: none !important;
}
.lpc-cs-testimonial cite {
    font-family: 'Lexend', sans-serif;
    font-style: normal;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
}


/* ---------- METADATA SIDEBAR ---------- */
.lpc-cs-meta .meta-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lpc-cs-meta .meta-item:first-child { padding-top: 0; }
.lpc-cs-meta .meta-item:last-child { border-bottom: none; }
.lpc-cs-meta .meta-label {
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 700;
    color: #B78458;
    margin-bottom: 6px;
}
.lpc-cs-meta .meta-value {
    font-family: 'Lexend', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #fff;
}


/* ---------- IMAGE GALLERY ---------- */
.lpc-cs-gallery {
    background: #f5f4f0;
    padding: 0;
}
.lpc-cs-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.lpc-cs-gallery-item {
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #ddd;
}
.lpc-cs-gallery-item.full-width {
    grid-column: 1 / -1;
    aspect-ratio: 21/9;
}
.lpc-cs-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.lpc-cs-gallery-item:hover img {
    transform: scale(1.03);
}


/* ---------- CTA BAND ---------- */
.lpc-cs-cta {
    background: #464B28;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lpc-cs-cta::before {
    content: "LPC";
    position: absolute;
    font-family: 'Lexend', sans-serif;
    font-weight: 700;
    font-size: 280px;
    color: rgba(255,255,255,0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: 0.1em;
    pointer-events: none;
}
.lpc-cs-cta h3 {
    font-family: 'Lexend', sans-serif !important;
    font-weight: 300 !important;
    font-size: 32px !important;
    color: #fff !important;
    margin-bottom: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    position: relative;
    border: none !important;
    padding: 0 !important;
}
.lpc-cs-cta p {
    font-family: 'Lexend', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    position: relative;
}
.lpc-cs-cta-btn {
    display: inline-block;
    padding: 14px 40px;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 700;
    color: #464B28 !important;
    background: #B78458;
    text-decoration: none !important;
    transition: all 0.3s;
    position: relative;
}
.lpc-cs-cta-btn:hover {
    background: #fff;
    color: #464B28 !important;
}


/* ---------- RELATED CASE STUDIES ---------- */
.lpc-cs-related {
    padding: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}
.lpc-cs-related > h3 {
    font-family: 'Lexend', sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 700 !important;
    color: #B78458 !important;
    margin-bottom: 40px !important;
    border: none !important;
    padding: 0 !important;
}
.lpc-cs-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.lpc-cs-related-card {
    text-decoration: none !important;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}
.lpc-cs-related-card:hover {
    transform: translateY(-4px);
}
.lpc-cs-related-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e5e2dc;
    overflow: hidden;
    margin-bottom: 16px;
}
.lpc-cs-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lpc-cs-related-card-label {
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: #B78458;
    margin-bottom: 4px;
}
.lpc-cs-related-card-title {
    font-family: 'Lexend', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #333;
}


/* ---------- ARCHIVE PAGE ---------- */
.lpc-cs-archive-header {
    background: #464B28;
    padding: 60px;
    text-align: center;
}
.lpc-cs-archive-header h1 {
    font-family: 'Lexend', sans-serif !important;
    font-weight: 300 !important;
    font-size: 42px !important;
    color: #fff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.lpc-cs-archive-header p {
    font-family: 'Lexend', sans-serif;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    margin-top: 12px;
}
.lpc-cs-archive-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.lpc-cs-archive-card {
    text-decoration: none !important;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}
.lpc-cs-archive-card:hover { transform: translateY(-4px); }
.lpc-cs-archive-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e5e2dc;
    overflow: hidden;
    margin-bottom: 16px;
}
.lpc-cs-archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.lpc-cs-archive-card:hover img { transform: scale(1.03); }
.lpc-cs-archive-card-label {
    font-family: 'Lexend', sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: #B78458;
    margin-bottom: 6px;
}
.lpc-cs-archive-card-title {
    font-family: 'Lexend', sans-serif;
    font-size: 20px;
    font-weight: 300;
    color: #333;
    margin-bottom: 8px;
}
.lpc-cs-archive-card-meta {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    color: #999;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .lpc-cs-detail-inner {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .lpc-cs-gallery-grid { grid-template-columns: 1fr; }
    .lpc-cs-gallery-item,
    .lpc-cs-gallery-item.full-width { aspect-ratio: 16/10; }
    .lpc-cs-related-grid { grid-template-columns: 1fr 1fr; }
    .lpc-cs-archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .lpc-cs-breadcrumb,
    .lpc-cs-intro,
    .lpc-cs-detail,
    .lpc-cs-cta,
    .lpc-cs-related {
        padding-left: 24px;
        padding-right: 24px;
    }
    .lpc-cs-intro { flex-direction: column; }
    .lpc-cs-hero { height: 50vh; min-height: 350px; }
    .lpc-cs-hero-overlay { padding: 60px 24px 30px; }
    .lpc-cs-related-grid { grid-template-columns: 1fr; }
    .lpc-cs-archive-grid {
        grid-template-columns: 1fr;
        padding: 30px 24px;
    }
    .lpc-cs-archive-header { padding: 40px 24px; }
}
