/*
Theme Name: CBC Professional
Description: Clean, professional, image-led WordPress theme (Navy + Teal) for consultancy sites. Gutenberg-ready.
Version: 1.2.5
Build UID: ALO_20260110-16
Author: AuditLog Software Solutions (OmniEx LTD division)
Author URI: https://auditlog.software
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cbc-professional
Requires at least: 6.0
Requires PHP: 8.2
Tags: custom-colors, custom-logo, editor-style, featured-images, full-width-template, translation-ready, block-styles
*/

:root {
    --cbc-bg: #f5f7fb;
    --cbc-text: #0b1220;
    --cbc-muted: #556070;
    --cbc-border: #e5e7eb;
    --cbc-card: #f8fafc;
    --cbc-navy: #0f172a;
    --cbc-teal: #0ea5a4;
    --cbc-amber: #f59e0b;
    --cbc-highlight: rgba(14,165,164,.16);
    --cbc-radius: 16px;
    --cbc-shadow: 0 18px 46px rgba(2,6,23,.10);
    --cbc-max: 1120px;
}

/* Base */
* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0
}

body {
    background: linear-gradient(180deg, #f9fbfe 0%, var(--cbc-bg) 55%, #eef2f7 100%);
    color: var(--cbc-text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit
}

    a:hover {
        text-decoration: underline
    }

img {
    max-width: 100%;
    height: auto
}

/* Layout helpers */
.cbc-container {
    max-width: var(--cbc-max);
    margin: 0 auto;
    padding: 0 20px
}

.cbc-content {
    padding: 28px 0
}

.cbc-content .cbc-container > * {
        max-width: 78ch;
        margin-left: auto;
        margin-right: auto
    }

/* Typography */
h1, h2, h3 {
    letter-spacing: -.01em
}

h1 {
    font-size: 44px;
    line-height: 1.12;
    margin: 0 0 10px
}

h2 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 10px
}

h3 {
    font-size: 18px;
    line-height: 1.25;
    margin: 0 0 8px
}

p {
    margin: 0 0 14px
}

.cbc-small {
    font-size: 13px;
    color: var(--cbc-muted)
}

.cbc-kicker {
    color: var(--cbc-teal);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .14em;
}

/* Buttons */
.cbc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--cbc-border);
    background: #fff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

    .cbc-btn:hover {
        filter: brightness(1.02);
        text-decoration: none
    }

.cbc-btn-primary {
    background: var(--cbc-navy);
    border-color: var(--cbc-navy);
    color: #fff;
}

    .cbc-btn-primary:hover {
        filter: brightness(1.06)
    }

/* Header */
.cbc-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--cbc-border);
    box-shadow: 0 14px 30px rgba(15,23,42,.06);
}

.cbc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
}

.cbc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
}

.cbc-logo-badge {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg,var(--cbc-navy),#1f2937);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
}

.cbc-menu {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

    .cbc-menu a {
        text-decoration: none;
        padding: 8px 10px;
        border-radius: 12px;
        color: var(--cbc-navy);
        font-weight: 600;
    }

        .cbc-menu a:hover {
            background: var(--cbc-highlight);
            text-decoration: none
        }

        .cbc-menu .current-menu-item > a,
        .cbc-menu .current_page_item > a,
        .cbc-menu .current-menu-ancestor > a {
            background: linear-gradient(90deg, rgba(14,165,164,.18), rgba(15,23,42,.08));
            box-shadow: inset 0 0 0 1px rgba(14,165,164,.35);
            color: var(--cbc-navy);
        }

.cbc-cta {
    display: flex;
    align-items: center;
    gap: 10px
}

/* CTA strip (site-wide) */
.cbc-cta-strip {
    border-top: 1px solid var(--cbc-border);
    background: linear-gradient(90deg, rgba(14,165,164,.10), rgba(15,23,42,.04));
}

.cbc-cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.cbc-cta-strip strong {
    color: var(--cbc-navy)
}

.cbc-cta-strip .cbc-small {
    margin: 0
}

/* Hamburger */
.cbc-hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--cbc-border);
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .cbc-hamburger:focus {
        outline: 2px solid rgba(14,165,164,.35);
        outline-offset: 2px
    }

.cbc-hamburger-lines {
    width: 18px;
    height: 12px;
    position: relative
}

    .cbc-hamburger-lines span {
        position: absolute;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--cbc-navy);
        border-radius: 2px;
    }

        .cbc-hamburger-lines span:nth-child(1) {
            top: 0
        }

        .cbc-hamburger-lines span:nth-child(2) {
            top: 5px
        }

        .cbc-hamburger-lines span:nth-child(3) {
            top: 10px
        }

/* Mobile panel */
.cbc-mobile-panel {
    display: none;
    border-top: 1px solid var(--cbc-border);
    background: #fff;
}

    .cbc-mobile-panel nav {
        display: grid;
        gap: 8px;
        padding: 12px 0
    }

.cbc-mobile-panel a {
    padding: 10px 12px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid var(--cbc-border);
    background: var(--cbc-card);
    color: var(--cbc-navy);
    font-weight: 600;
}

    .cbc-mobile-panel a:hover {
        background: var(--cbc-highlight);
        text-decoration: none
    }

    .cbc-mobile-panel .current-menu-item > a,
    .cbc-mobile-panel .current_page_item > a,
    .cbc-mobile-panel .current-menu-ancestor > a {
        background: linear-gradient(90deg, rgba(14,165,164,.18), rgba(15,23,42,.08));
        box-shadow: inset 0 0 0 1px rgba(14,165,164,.35);
    }

body.cbc-menu-open .cbc-mobile-panel {
    display: block
}

/* Cards / surfaces */
.cbc-card {
    background: #fff;
    border: 1px solid var(--cbc-border);
    border-radius: var(--cbc-radius);
    padding: 18px;
    box-shadow: 0 16px 36px rgba(15,23,42,.06);
}

    .cbc-card.soft {
        background: var(--cbc-card)
    }

.cbc-pill {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--cbc-card);
    border: 1px solid var(--cbc-border);
    font-weight: 800;
    font-size: 13px;
    color: #0b1220;
}

/* Grids */
.cbc-grid {
    display: grid;
    gap: 14px
}

    .cbc-grid.cols-2 {
        grid-template-columns: repeat(2,1fr)
    }

    .cbc-grid.cols-3 {
        grid-template-columns: repeat(3,1fr)
    }

/* Case study card style (optional) */
.cbc-case-card {
    border: 1px solid var(--cbc-border);
    border-radius: var(--cbc-radius);
    overflow: hidden;
    background: #fff;
}

    .cbc-case-card .cbc-case-body {
        padding: 14px
    }

    .cbc-case-card h3 {
        margin: 0 0 6px;
        font-size: 16px
    }

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--cbc-border);
    font: inherit;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15,23,42,.04);
}

textarea {
    min-height: 140px;
    resize: vertical
}

/* Gutenberg defaults */
.wp-block-image img {
    border-radius: var(--cbc-radius)
}

.wp-block-cover__image-background {
    filter: saturate(1.02)
}

.wp-block-separator {
    border: none;
    border-top: 1px solid var(--cbc-border)
}

.wp-block-buttons .wp-block-button__link {
    border-radius: 14px;
    font-weight: 800;
}

/* Footer */
.cbc-footer {
    border-top: 1px solid var(--cbc-border);
    padding: 22px 0;
    color: var(--cbc-muted);
    background: #f8fafc;
}

    .cbc-footer a {
        color: var(--cbc-muted)
    }

.cbc-footer-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 36px
    }

    .cbc-menu {
        display: none
    }

    .cbc-hamburger {
        display: inline-flex
    }

    .cbc-grid.cols-2, .cbc-grid.cols-3 {
        grid-template-columns: 1fr
    }
}
