/*
Theme Name: BK Concrete Experts
Theme URI: https://ncconcretecontractor.com/
Author: Local Rev Growth
Description: Custom conversion-focused WordPress theme for BK Concrete Experts LLC.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: bk-concrete-experts
*/

:root {
    --bk-navy: #07192d;
    --bk-navy-light: #0d2845;
    --bk-red: #dc2028;
    --bk-red-dark: #b8151c;
    --bk-gold: #f4b41a;
    --bk-ink: #142033;
    --bk-muted: #5d6877;
    --bk-line: #dce2e8;
    --bk-surface: #f4f7f9;
    --bk-white: #fff;
    --bk-shadow: 0 16px 38px rgba(7, 25, 45, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body:not(.home) {
    margin: 0;
    color: var(--bk-ink);
    background: var(--bk-surface);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

.bk-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10000;
    padding: 10px 14px;
    color: var(--bk-white);
    background: var(--bk-red);
    border-radius: 5px;
    transform: translateY(-160%);
}

.bk-skip-link:focus {
    transform: translateY(0);
}

.bk-inner-wrap {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.bk-site-header {
    position: relative;
    z-index: 20;
    color: var(--bk-white);
    background: var(--bk-navy);
    border-bottom: 4px solid var(--bk-red);
}

.bk-site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    gap: 28px;
}

.bk-site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.bk-site-logo img {
    display: block;
    width: 190px;
    height: auto;
}

.bk-site-nav {
    margin-left: auto;
}

.bk-site-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bk-site-nav a {
    color: var(--bk-white);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

.bk-site-nav a:hover,
.bk-site-nav a:focus-visible {
    color: var(--bk-gold);
}

.bk-header-phone,
.bk-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    color: var(--bk-white);
    background: var(--bk-red);
    border: 0;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(220, 32, 40, 0.24);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.bk-header-phone:hover,
.bk-header-phone:focus-visible,
.bk-button:hover,
.bk-button:focus-visible {
    color: var(--bk-white);
    background: var(--bk-red-dark);
}

.bk-page-hero {
    padding: 70px 0 64px;
    color: var(--bk-white);
    background:
        linear-gradient(100deg, rgba(7, 25, 45, 0.98), rgba(7, 25, 45, 0.86)),
        url("assets/bk-concrete-experts/hero-driveway-pour.png") center 43% / cover;
}

.bk-page-hero__eyebrow {
    margin: 0 0 10px;
    color: var(--bk-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.bk-page-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--bk-white);
    font-size: clamp(2.25rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.bk-page-hero__description {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.bk-inner-main {
    min-height: 50vh;
}

.bk-content-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 42px;
    padding-block: 64px 82px;
}

.bk-content-shell--single {
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
}

.bk-entry,
.bk-list-card,
.bk-sidebar-card,
.bk-empty-state {
    background: var(--bk-white);
    border: 1px solid var(--bk-line);
    border-radius: 10px;
    box-shadow: var(--bk-shadow);
}

.bk-entry {
    padding: clamp(28px, 5vw, 58px);
}

.bk-entry__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 24px;
    color: var(--bk-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.bk-entry__image {
    width: 100%;
    height: auto;
    margin: 0 0 30px;
    border-radius: 8px;
}

.bk-entry__content > :first-child {
    margin-top: 0;
}

.bk-entry__content h2,
.bk-entry__content h3 {
    margin-top: 1.7em;
    color: var(--bk-navy);
    line-height: 1.16;
}

.bk-entry__content a,
.bk-list-card a,
.bk-pagination a {
    color: var(--bk-red-dark);
}

.bk-entry__content img {
    max-width: 100%;
    height: auto;
}

.bk-post-list {
    display: grid;
    gap: 22px;
}

.bk-list-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    overflow: hidden;
}

.bk-list-card--no-image {
    grid-template-columns: 1fr;
}

.bk-list-card__image {
    min-height: 220px;
    background: var(--bk-navy-light);
}

.bk-list-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bk-list-card__body {
    padding: 26px 28px;
}

.bk-list-card__body h2 {
    margin: 0 0 10px;
    color: var(--bk-navy);
    font-size: 1.5rem;
    line-height: 1.15;
}

.bk-list-card__body h2 a {
    color: inherit;
    text-decoration: none;
}

.bk-list-card__body h2 a:hover,
.bk-list-card__body h2 a:focus-visible {
    color: var(--bk-red);
}

.bk-list-card__body p {
    margin-bottom: 0;
}

.bk-sidebar-card {
    position: sticky;
    top: 24px;
    padding: 28px;
}

.bk-sidebar-card h2 {
    margin: 0 0 10px;
    color: var(--bk-navy);
    font-size: 1.45rem;
    line-height: 1.15;
}

.bk-sidebar-card p {
    margin: 0 0 20px;
    color: var(--bk-muted);
}

.bk-empty-state {
    padding: 50px;
    text-align: center;
}

.bk-empty-state h2 {
    margin-top: 0;
    color: var(--bk-navy);
}

.bk-empty-state .search-form {
    display: flex;
    max-width: 540px;
    margin: 22px auto 0;
}

.bk-empty-state .search-field {
    min-width: 0;
    flex: 1;
    padding: 12px;
    border: 1px solid var(--bk-line);
    border-radius: 4px 0 0 4px;
}

.bk-empty-state .search-submit {
    padding: 0 18px;
    color: var(--bk-white);
    background: var(--bk-red);
    border: 0;
    border-radius: 0 4px 4px 0;
    font-weight: 800;
}

.bk-pagination {
    margin-top: 32px;
}

.bk-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bk-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    color: var(--bk-navy);
    background: var(--bk-white);
    border: 1px solid var(--bk-line);
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
}

.bk-pagination .current,
.bk-pagination a:hover,
.bk-pagination a:focus-visible {
    color: var(--bk-white);
    background: var(--bk-red);
    border-color: var(--bk-red);
}

.bk-site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: var(--bk-navy);
}

.bk-site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-block: 58px;
}

.bk-site-footer img {
    width: 190px;
    height: auto;
}

.bk-site-footer h2 {
    margin: 0 0 14px;
    color: var(--bk-white);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bk-site-footer p {
    max-width: 480px;
}

.bk-site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bk-site-footer li + li {
    margin-top: 8px;
}

.bk-site-footer a {
    color: inherit;
    text-decoration: none;
}

.bk-site-footer a:hover,
.bk-site-footer a:focus-visible {
    color: var(--bk-gold);
}

.bk-site-footer__bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
}

@media (max-width: 880px) {
    .bk-site-header__bar {
        flex-wrap: wrap;
        padding-block: 18px;
    }

    .bk-site-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }

    .bk-site-nav ul {
        justify-content: center;
        min-width: max-content;
    }

    .bk-content-shell {
        grid-template-columns: 1fr;
    }

    .bk-sidebar-card {
        position: static;
    }

    .bk-site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .bk-inner-wrap {
        width: min(100% - 28px, 1160px);
    }

    .bk-site-header__bar {
        justify-content: center;
    }

    .bk-site-logo img,
    .bk-site-footer img {
        width: 166px;
    }

    .bk-site-nav {
        overflow: visible;
    }

    .bk-site-nav ul {
        flex-wrap: wrap;
        gap: 12px 22px;
        min-width: 0;
    }

    .bk-header-phone {
        min-height: 44px;
        padding-inline: 14px;
    }

    .bk-page-hero {
        padding-block: 52px;
    }

    .bk-content-shell {
        padding-block: 38px 56px;
    }

    .bk-list-card {
        grid-template-columns: 1fr;
    }

    .bk-list-card__image {
        min-height: 190px;
    }

    .bk-entry,
    .bk-empty-state {
        padding: 26px 22px;
    }

    .bk-site-footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
