/*
Theme Name: BCM
Theme URI: https://bigcitymarketing.net
Author: Big City Marketing
Author URI: https://bigcitymarketing.net
Description: Minimal deployment theme for BCM WordPress sites. No parent theme. No framework.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.2
License: Proprietary
License URI: https://bigcitymarketing.net
Text Domain: bcm
*/

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/lato-400.woff2) format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/lato-700.woff2) format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(fonts/lato-900.woff2) format('woff2');
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--bcm-font-body, 'Lato', sans-serif);
    font-weight: 400;
    color: var(--bcm-text, #333333);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bcm-site-main {
    flex: 1;
}

.bcm-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bcm-header-bg, #ffffff);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bcm-site-header-inner {
    display: flex;
    align-items: flex-end;
    padding: 1rem 2rem 0;
    max-width: 90rem;
    margin: 0 auto;
}

.bcm-site-logo {
    flex-shrink: 0;
    padding-bottom: 1rem;
}

.bcm-site-logo img {
    height: 4rem;
    max-width: 100%;
    width: auto;
}

.bcm-menu-toggle {
    display: none;
}

.bcm-primary-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.bcm-nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.bcm-nav-list li {
    position: relative;
}

.bcm-nav-list > li > a {
    color: var(--bcm-text, #333333);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
    padding: 0.5rem 0 1rem;
    display: block;
}

.bcm-nav-list > li > a:hover {
    color: var(--bcm-accent, #c3272b);
}

.bcm-nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bcm-header-bg, #ffffff);
    list-style: none;
    min-width: 14rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    z-index: 200;
}

.bcm-nav-list li:hover > .sub-menu {
    display: block;
}

.bcm-nav-list .sub-menu li {
    position: relative;
}

.bcm-nav-list .sub-menu a {
    color: var(--bcm-text, #333333);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    display: block;
    white-space: nowrap;
}

.bcm-nav-list .sub-menu a:hover {
    background: var(--bcm-primary, #1a1a2e);
    color: var(--bcm-text-on-primary, #ffffff);
}

.bcm-nav-list .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

.bcm-front-page-content {
    margin: 0;
    padding: 0;
}

.bcm-site-footer {
    margin: 0;
    padding: 2rem 0 1.25rem;
    font-size: 1rem;
    color: #fff;
}
.bcm-site-footer * { box-sizing: border-box; }
.bcm-site-footer a { color: #fff; text-decoration: none; }
.bcm-site-footer a:hover { opacity: 0.8; }
.bcm-site-footer ul { list-style: none; margin: 0; padding: 0; }
.bcm-site-footer li { margin-bottom: 0.375rem; }

.bcm-ft-row {
    max-width: 71.25rem;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 2.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bcm-ft-nav { flex: 2 1 0; min-width: 0; }
.bcm-ft-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem 2rem;
}
.bcm-ft-nav-list a { font-size: 1rem; }
.bcm-ft-badge { flex: 0 0 8.75rem; display: flex; align-items: flex-start; justify-content: center; }
.bcm-ft-badge img { width: 8.125rem; height: auto; border-radius: 3px; }
.bcm-ft-contact { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; }
.bcm-ft-ph { font-size: 1.375rem; font-weight: 700; letter-spacing: 0.03125rem; margin-bottom: 0.75rem; display: block; }
.bcm-ft-sc { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.bcm-ft-sc a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.bcm-ft-sc a:hover { background: rgba(255,255,255,0.2); }
.bcm-ft-sc svg { width: 1rem; height: 1rem; fill: rgba(255,255,255,0.8); }
.bcm-ft-sc a:hover svg { fill: #fff; }

.bcm-ft-bot { max-width: 71.25rem; margin: 0 auto; padding: 1rem 2.5rem 0; text-align: center; }
.bcm-ft-cp { font-size: 0.6875rem; color: rgba(255,255,255,0.7); }
.bcm-ft-rc { font-size: 0.625rem; color: rgba(255,255,255,0.5); margin-top: 0.25rem; }
.bcm-ft-rc a { color: rgba(255,255,255,0.5); text-decoration: underline; }

@media (max-width: 60rem) {
    .bcm-ft-row {
        flex-wrap: wrap;
        padding: 0 1rem 1.25rem;
        gap: 1.25rem;
    }
    .bcm-ft-nav {
        flex: 1 1 100%;
    }
    .bcm-ft-nav-list { text-align: center; }
    .bcm-ft-badge {
        flex: 1 1 0;
        justify-content: center;
        align-items: center;
    }
    .bcm-ft-badge img { width: 7.5rem; }
    .bcm-ft-contact {
        flex: 1 1 0;
        align-items: center;
    }
    .bcm-ft-ph { font-size: 1.125rem; margin-bottom: 0.625rem; }
    .bcm-ft-sc { justify-content: center; margin-bottom: 0.625rem; }
    .bcm-ft-bot { padding: 1rem 1rem 0; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bcm-font-heading, 'Lato', sans-serif);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.bcm-header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.7rem;
    margin-left: 2rem;
}

.bcm-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--bcm-text, #333333);
    display: flex;
    align-items: center;
}

.bcm-search-toggle:hover {
    color: var(--bcm-accent, #c3272b);
}

.bcm-search-overlay {
    display: none;
    background: var(--bcm-primary, #1a1a2e);
    padding: 1.5rem 2rem;
}

.bcm-search-overlay.bcm-search-open {
    display: block;
}

.bcm-search-form {
    display: flex;
    max-width: 40rem;
    margin: 0 auto;
}

.bcm-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: var(--bcm-font-body, 'Lato', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    outline: none;
    background: #ffffff;
    color: var(--bcm-text, #333333);
}

.bcm-search-submit {
    background: var(--bcm-accent, #c3272b);
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.bcm-search-submit:hover {
    opacity: 0.9;
}

/* Mobile menu */
@media (max-width: 60rem) {
    .bcm-site-header-inner {
        align-items: center;
        padding: 1rem 2rem;
    }

    .bcm-site-logo {
        padding-bottom: 0;
        flex: 1;
        min-width: 0;
    }

    .bcm-site-logo img {
        height: auto;
        max-height: 3rem;
        max-width: 100%;
    }

    .bcm-header-icons {
        padding-bottom: 0;
        margin-left: auto;
    }

    .bcm-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .bcm-menu-toggle span {
        display: block;
        width: 1.5rem;
        height: 2px;
        background: var(--bcm-text, #333333);
    }

    .bcm-primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bcm-header-bg, #ffffff);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        padding: 1rem 0;
    }

    .bcm-primary-nav.bcm-nav-open {
        display: block;
    }

    .bcm-nav-list {
        flex-direction: column;
        gap: 0;
    }

    .bcm-nav-list > li > a {
        padding: 0.75rem 2rem;
        text-transform: uppercase;
    }

    .bcm-nav-list .sub-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        display: block;
    }

    .bcm-nav-list .sub-menu a {
        padding-left: 3rem;
    }

    .bcm-nav-list .sub-menu .sub-menu a {
        padding-left: 4.5rem;
    }

    .bcm-search-toggle {
        display: none;
    }
}

/* ── News Archive ── */
.bcm-news-archive {
    max-width: 75rem;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.bcm-news-header {
    margin-bottom: 2rem;
}

.bcm-news-header h1 {
    font-family: var(--bcm-font-heading, 'Lato', sans-serif);
    font-size: 2rem;
    color: var(--bcm-text, #333);
}

.bcm-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bcm-news-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.bcm-news-card-img img {
    width: 100%;
    height: 14rem;
    object-fit: cover;
    display: block;
}

.bcm-news-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bcm-news-card-title {
    font-family: var(--bcm-font-heading, 'Lato', sans-serif);
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.bcm-news-card-title a {
    color: var(--bcm-text, #333);
    text-decoration: none;
}

.bcm-news-card-title a:hover {
    color: var(--bcm-primary, #1a1a2e);
}

.bcm-news-card-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 1.25rem;
    flex: 1;
}

.bcm-news-card-excerpt p {
    margin: 0;
}

.bcm-news-card-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 0.5rem 1.5rem;
    background: var(--bcm-primary, #1a1a2e);
    color: var(--bcm-text-on-primary, #fff);
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
}

.bcm-news-card-btn:hover {
    background: var(--bcm-accent, #c3272b);
}

.bcm-news-pagination {
    margin-top: 3rem;
    text-align: center;
}

.bcm-news-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.bcm-news-pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    color: var(--bcm-text, #333);
    text-decoration: none;
    border-radius: 0.25rem;
    font-size: 1rem;
}

.bcm-news-pagination .page-numbers.current {
    background: var(--bcm-primary, #1a1a2e);
    color: var(--bcm-text-on-primary, #fff);
}

.bcm-news-empty {
    text-align: center;
    padding: 4rem 0;
    font-size: 1.125rem;
    color: #777;
}

/* ── News Single ── */
.bcm-news-single-wrap {
    max-width: 75rem;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.bcm-news-single h1 {
    font-family: var(--bcm-font-heading, 'Lato', sans-serif);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--bcm-text, #333);
}

.bcm-news-single-img {
    margin-bottom: 1rem;
}

.bcm-news-single-img img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
}

.bcm-news-single-date {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.bcm-news-single-content {
    font-weight: 400;
}

.bcm-news-single-content p,
.bcm-news-single-content ul,
.bcm-news-single-content ol,
.bcm-news-single-content h2,
.bcm-news-single-content h3,
.bcm-news-single-content h4,
.bcm-news-single-content > * {
    margin-left: 0;
    padding-left: 0;
    max-width: 100%;
}

.bcm-news-single-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.bcm-news-sidebar h3 {
    font-family: var(--bcm-font-heading, 'Lato', sans-serif);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bcm-primary, #1a1a2e);
    color: var(--bcm-text, #333);
}

.bcm-news-sidebar-item {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: var(--bcm-text, #333);
}

.bcm-news-sidebar-item:hover .bcm-news-sidebar-title {
    color: var(--bcm-primary, #1a1a2e);
}

.bcm-news-sidebar-thumb {
    width: 100%;
    border-radius: 0.25rem;
    overflow: hidden;
    max-height: 8rem;
}

.bcm-news-sidebar-thumb img {
    width: 100%;
    height: auto;
    max-height: 8rem;
    object-fit: cover;
    display: block;
}

.bcm-news-sidebar-title {
    display: block;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 0.5rem;
}

.bcm-news-sidebar-date {
    display: block;
    font-size: 1rem;
    color: #888;
    font-weight: 400;
    margin-top: 0.25rem;
}

@media (max-width: 60rem) {
    .bcm-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bcm-news-single-wrap {
        grid-template-columns: 1fr;
    }
    .bcm-news-sidebar {
        border-top: 1px solid #e0e0e0;
        padding-top: 2rem;
    }
}

@media (max-width: 40rem) {
    .bcm-news-grid {
        grid-template-columns: 1fr;
    }
}
