/* ==========================================================================
   BLOG INDEX PAGE STYLES
   File: blog-page.css
   Page: rentals.grindercrusherscreen.com/blog/
   Scope: .bp-page
   Prefix: bp-

   Design system: Barlow Condensed 800 display / Barlow body
   Zero border-radius throughout
   Container: 1320px max-width, 32px side padding
   ========================================================================== */


/* --------------------------------------------------------------------------
   SECTION 0: VARIABLES
   -------------------------------------------------------------------------- */

.bp-page {
    --bp-red: #C41820;
    --bp-red-deep: #9E1015;
    --bp-black: #000000;
    --bp-white: #FFFFFF;
    --bp-gray-95: #F5F5F5;
    --bp-gray-92: #ECECEC;
    --bp-gray-85: #D8D8D8;
    --bp-gray-60: #888888;
    --bp-gray-30: #2A2A2A;
    --bp-line: #E2E2E2;
}


/* --------------------------------------------------------------------------
   SECTION 1: BREADCRUMB
   -------------------------------------------------------------------------- */

.bp-breadcrumb {
    background: var(--bp-gray-95);
    border-bottom: 1px solid var(--bp-line);
}

.bp-breadcrumb-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 32px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bp-gray-60);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.bp-breadcrumb-inner a:hover {
    color: var(--bp-red);
}

.bp-breadcrumb-inner .sep {
    color: var(--bp-gray-85);
}

.bp-breadcrumb-inner .current {
    color: var(--bp-black);
}


/* --------------------------------------------------------------------------
   SECTION 2: HERO MASTHEAD
   -------------------------------------------------------------------------- */

.bp-hero {
    background: var(--bp-black);
    color: var(--bp-white);
    position: relative;
    overflow: hidden;
    padding: 56px 32px 64px;
}

.bp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.bp-hero-inner {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
}

.bp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bp-red);
    margin-bottom: 22px;
}

.bp-hero-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--bp-red);
}

.bp-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    text-wrap: balance;
    max-width: 1100px;
    margin-bottom: 24px;
}

.bp-hero h1 .accent {
    color: var(--bp-red);
}

.bp-hero-sub {
    font-size: 19px;
    line-height: 1.5;
    max-width: 640px;
    color: rgba(255,255,255,.8);
    margin-bottom: 36px;
}

.bp-hero-meta {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.15);
    max-width: 760px;
}

.bp-hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bp-hero-meta-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 36px;
    line-height: 1;
    color: var(--bp-white);
}

.bp-hero-meta-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}


/* --------------------------------------------------------------------------
   SECTION 3: CATEGORY TABS
   -------------------------------------------------------------------------- */

.bp-cat-bar {
    background: var(--bp-white);
    border-bottom: 1px solid var(--bp-line);
    position: sticky;
    top: 80px;
    z-index: 50;
    transition: box-shadow .2s ease;
}

.bp-cat-bar.bp-cat-bar--stuck {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.bp-cat-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.bp-cat-bar-inner::-webkit-scrollbar {
    display: none;
}

.bp-cat-tab {
    padding: 18px 22px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bp-gray-60);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.bp-cat-tab:hover {
    color: var(--bp-black);
}

.bp-cat-tab.active {
    color: var(--bp-black);
    border-bottom-color: var(--bp-red);
}

.bp-count {
    font-size: 13px;
    color: var(--bp-gray-60);
    margin-left: 6px;
    font-weight: 600;
}

.bp-cat-tab.active .bp-count {
    color: var(--bp-red);
}


/* --------------------------------------------------------------------------
   SECTION 4: FEATURED ROW
   -------------------------------------------------------------------------- */

.bp-featured {
    padding: 64px 32px 32px;
}

.bp-featured-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.bp-featured-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.bp-featured-head h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: -0.005em;
}

.bp-featured-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bp-red);
}

.bp-featured-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
}


/* -- Big featured card --------------------------------------------------- */

.bp-feat-big {
    background: var(--bp-black);
    color: var(--bp-white);
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 540px;
    position: relative;
    overflow: hidden;
    transition: transform .15s;
}

.bp-feat-big:hover {
    transform: translateY(-2px);
}

.bp-feat-big-cover {
    position: absolute;
    inset: 0;
    opacity: 1;
}

.bp-feat-big-cover svg,
.bp-feat-big-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-feat-big-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.92) 100%);
}

.bp-feat-big-body {
    position: relative;
    z-index: 2;
    padding: 36px;
    align-self: end;
}

.bp-feat-big-tag {
    display: inline-block;
    background: var(--bp-red);
    color: var(--bp-white);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.bp-feat-big h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 0.96;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-wrap: balance;
    margin-bottom: 14px;
    max-width: 720px;
}

.bp-feat-big p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    max-width: 620px;
    margin-bottom: 18px;
}

.bp-feat-big-meta {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}

.bp-feat-author {
    color: rgba(255,255,255,.85);
}

.bp-feat-read::before {
    content: '\00B7';
    margin-right: 18px;
    color: var(--bp-red);
    font-size: 18px;
    line-height: 0;
    vertical-align: middle;
}


/* -- Side featured stack ------------------------------------------------- */

.bp-feat-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid var(--bp-black);
}

.bp-feat-side-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    transition: background .15s;
}

.bp-feat-side-card:hover {
    background: var(--bp-gray-95);
}

.bp-feat-side-card + .bp-feat-side-card {
    border-top: 1px solid var(--bp-line);
}

.bp-feat-side-tag {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bp-red);
}

.bp-feat-side-card h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.005em;
}

.bp-feat-side-card p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--bp-gray-30);
    margin: 0;
}

.bp-feat-side-meta {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bp-gray-60);
    margin-top: auto;
    padding-top: 6px;
}


/* --------------------------------------------------------------------------
   SECTION 5: ALL POSTS GRID
   -------------------------------------------------------------------------- */

.bp-posts {
    padding: 32px 32px 96px;
}

.bp-posts-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.bp-posts-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1.5px solid var(--bp-black);
}

.bp-posts-head h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4vw, 48px);
    text-transform: uppercase;
    letter-spacing: -0.005em;
    line-height: 1;
}

.bp-count-pill {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bp-gray-60);
}

.bp-count-pill strong {
    color: var(--bp-red);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    margin-right: 4px;
}

.bp-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
}

.bp-post-card {
    display: flex;
    flex-direction: column;
    transition: transform .15s;
}

.bp-post-card:hover {
    transform: translateY(-3px);
}

.bp-post-card.hidden {
    display: none;
}

.bp-post-cover {
    background: var(--bp-black);
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
    border: 1.5px solid var(--bp-black);
}

.bp-post-cover svg,
.bp-post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bp-post-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--bp-red);
    color: var(--bp-white);
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bp-post-card-body {
    padding: 18px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.bp-post-meta {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bp-gray-60);
    display: flex;
    gap: 12px;
    align-items: center;
}

.bp-dot {
    color: var(--bp-red);
    font-size: 16px;
    line-height: 0;
}

.bp-post-card h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    text-wrap: balance;
}

.bp-post-card:hover h4 {
    color: var(--bp-red);
}

.bp-post-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--bp-gray-30);
    margin: 0;
}

.bp-post-link {
    margin-top: 6px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--bp-line);
}

.bp-post-link::after {
    content: '\2192';
    transition: transform .15s;
}

.bp-post-card:hover .bp-post-link::after {
    transform: translateX(4px);
    color: var(--bp-red);
}


/* --------------------------------------------------------------------------
   SECTION 6: TOPICS GRID
   -------------------------------------------------------------------------- */

.bp-topics {
    background: var(--bp-gray-95);
    padding: 80px 32px;
}

.bp-topics-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.bp-topics-head {
    margin-bottom: 40px;
}

.bp-topics-eyebrow {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bp-red);
    margin-bottom: 14px;
}

.bp-topics-head h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 0.96;
    letter-spacing: -0.005em;
    text-transform: uppercase;
}

.bp-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1.5px solid var(--bp-black);
    background: var(--bp-white);
}

.bp-topic-cell {
    padding: 28px 24px 26px;
    border-right: 1px solid var(--bp-line);
    border-bottom: 1px solid var(--bp-line);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    transition: background .15s;
    cursor: pointer;
}

.bp-topic-cell:hover {
    background: var(--bp-gray-95);
}

.bp-topic-cell:nth-child(3n) {
    border-right: none;
}

.bp-topic-cell:nth-last-child(-n+3) {
    border-bottom: none;
}

.bp-topic-icon {
    width: 36px;
    height: 36px;
}

.bp-topic-cell h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    line-height: 1.05;
}

.bp-topic-cell p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--bp-gray-30);
    margin: 0;
}

.bp-topic-ct {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--bp-line);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bp-red);
    display: flex;
    justify-content: space-between;
}


/* --------------------------------------------------------------------------
   SECTION 7: NEWSLETTER STRIP
   -------------------------------------------------------------------------- */

.bp-newsletter {
    background: var(--bp-red);
    color: var(--bp-white);
    padding: 64px 32px;
}

.bp-newsletter-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.bp-newsletter h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 4.4vw, 60px);
    line-height: 0.96;
    letter-spacing: -0.005em;
    text-transform: uppercase;
    text-wrap: balance;
    margin-bottom: 14px;
}

.bp-newsletter p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 540px;
    opacity: 0.95;
    margin: 0;
}

.bp-newsletter-form {
    display: flex;
    gap: 0;
    background: var(--bp-white);
    padding: 6px;
}

.bp-newsletter-form input {
    flex: 1;
    padding: 16px 18px;
    border: none;
    outline: none;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--bp-black);
}

.bp-newsletter-form button {
    background: var(--bp-black);
    color: var(--bp-white);
    border: none;
    padding: 0 28px;
    font-family: 'Barlow', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
}

.bp-newsletter-form button:hover {
    background: var(--bp-gray-30);
}

.bp-newsletter-foot {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 12px;
    letter-spacing: 0.04em;
}


/* --------------------------------------------------------------------------
   SECTION 8: STICKY MOBILE CTA
   -------------------------------------------------------------------------- */

.bp-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 70;
    background: var(--bp-black);
    padding: 12px 16px;
    border-top: 4px solid var(--bp-red);
    gap: 10px;
}

.bp-sticky-cta .btn {
    flex: 1;
}


/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */


/* --------------------------------------------------------------------------
   980px: Tablet landscape
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
    .bp-featured-grid {
        grid-template-columns: 1fr;
    }

    .bp-post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bp-topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bp-topic-cell {
        border-right: 1px solid var(--bp-line);
        border-bottom: 1px solid var(--bp-line);
    }

    .bp-topic-cell:nth-child(3n) {
        border-right: 1px solid var(--bp-line);
    }

    .bp-topic-cell:nth-child(2n) {
        border-right: none;
    }

    .bp-topic-cell:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--bp-line);
    }

    .bp-topic-cell:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .bp-newsletter-inner {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------------------------------
   720px: Tablet portrait
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
    .bp-sticky-cta {
        display: flex;
    }

    .bp-page {
        padding-bottom: 84px;
    }

    .bp-hero {
        padding: 56px 20px 64px;
    }

    .bp-featured {
        padding: 40px 20px 20px;
    }

    .bp-posts {
        padding: 20px 20px 72px;
    }

    .bp-topics {
        padding: 56px 20px;
    }

    .bp-newsletter {
        padding: 48px 20px;
    }

    .bp-cat-bar-inner {
        padding: 0 20px;
    }

    .bp-breadcrumb-inner {
        padding: 12px 20px;
    }

    .bp-feat-big {
        min-height: 400px;
    }
}


/* --------------------------------------------------------------------------
   640px: Large phone
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .bp-post-grid {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------------------------------
   560px: Small phone
   -------------------------------------------------------------------------- */

@media (max-width: 560px) {
    .bp-topics-grid {
        grid-template-columns: 1fr;
    }

    .bp-topic-cell:nth-child(n) {
        border-right: none;
    }

    .bp-hero h1 {
        font-size: clamp(24px, 5vw, 36px);
    }
}
