:root {
    --kc-blue: #1572BF;
    --kc-blue-dark: #0F4C81;
    --kc-blue-light: #E8F1FA;
    --charcoal: #1F2937;
    --gray-700: #374151;
    --gray-500: #6B7280;
    --gray-300: #D1D5DB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
    --accent-orange: #F46B25; /* 4th Octet accent for the 4O page only */
    --max-width: 1100px;
    --content-width: 720px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--gray-700);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--charcoal);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; margin-bottom: 1.25rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; margin-top: 3rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; margin-top: 2rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; margin-top: 1.5rem; }

p {
    margin-bottom: 1.15rem;
    max-width: var(--content-width);
}

a {
    color: var(--kc-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--kc-blue-dark);
    text-decoration: underline;
}

/* HEADER */
.site-header {
    border-bottom: 1px solid var(--gray-300);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.site-logo-text {
    font-weight: 700;
    color: var(--charcoal);
    font-size: 1.1rem;
    line-height: 1;
}

.site-logo-text small {
    display: block;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--gray-500);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 4px;
}

.site-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-nav a {
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover {
    color: var(--kc-blue);
    border-bottom-color: var(--kc-blue);
    text-decoration: none;
}

.site-nav a.active {
    color: var(--kc-blue);
    border-bottom-color: var(--kc-blue);
}

/* MAIN CONTENT */
main {
    min-height: 60vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.container-narrow {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* HERO */
.hero {
    padding: 6rem 2rem 5rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 900px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p.subhead {
    font-size: 1.25rem;
    color: var(--gray-700);
    max-width: 700px;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* CTA */
.cta-button {
    display: inline-block;
    background: var(--kc-blue);
    color: var(--white);
    padding: 0.9rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.15s ease;
}

.cta-button:hover {
    background: var(--kc-blue-dark);
    color: var(--white);
    text-decoration: none;
}

.cta-button.secondary {
    background: transparent;
    color: var(--kc-blue);
    border: 1.5px solid var(--kc-blue);
}

.cta-button.secondary:hover {
    background: var(--kc-blue-light);
}

/* SECTIONS */
.section {
    padding: 4rem 2rem;
}

.section-light {
    background: var(--gray-50);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-inner-narrow {
    max-width: var(--content-width);
    margin: 0 auto;
}

/* THREE-COL */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.pillar h3 {
    color: var(--kc-blue);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.pillar p {
    color: var(--gray-700);
    font-size: 0.97rem;
    margin-bottom: 0;
}

/* SERVICE CARDS */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2.5rem;
}

.service {
    padding-left: 0;
    border-left: 3px solid var(--kc-blue);
    padding-left: 1.75rem;
}

.service h3 {
    margin-top: 0;
    color: var(--charcoal);
}

.service .question {
    color: var(--kc-blue);
    font-style: italic;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.service p {
    margin-bottom: 0.75rem;
}

.service .meta {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

/* CLIENTS - SECTOR GROUPS */
.client-sectors {
    margin-top: 2rem;
}

.sector {
    margin-bottom: 2.5rem;
}

.sector h3 {
    color: var(--kc-blue);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-300);
}

.sector ul {
    list-style: none;
    columns: 2;
    column-gap: 2rem;
    padding-left: 0;
}

.sector li {
    padding: 0.35rem 0;
    color: var(--gray-700);
    font-size: 0.97rem;
    break-inside: avoid;
}

/* CALLOUT BOX */
.callout {
    background: var(--kc-blue-light);
    border-left: 4px solid var(--kc-blue);
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0;
    border-radius: 0 6px 6px 0;
}

.callout p:last-child {
    margin-bottom: 0;
}

/* 4TH OCTET PAGE - subtle 4O accent */
.octet-accent {
    color: var(--accent-orange);
}

.octet-link {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.15s ease;
}

.octet-link:hover {
    background: #C44E0F;
    color: var(--white);
    text-decoration: none;
}

/* CONTACT */
.contact-info {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-family: 'JetBrains Mono', Menlo, Monaco, monospace;
    font-size: 0.95rem;
    line-height: 1.9;
    border-left: 4px solid var(--kc-blue);
}

.contact-info .label {
    color: var(--gray-500);
    display: inline-block;
    width: 90px;
}

/* FOOTER */
.site-footer {
    background: var(--charcoal);
    color: var(--gray-300);
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
    font-size: 0.92rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.site-footer h4 {
    color: var(--white);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    margin-top: 0;
}

.site-footer p {
    color: var(--gray-300);
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.site-footer a {
    color: var(--gray-300);
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body { font-size: 16px; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.6rem; }
    .hero { padding: 4rem 1.5rem 3rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p.subhead { font-size: 1.1rem; }
    .container, .section, .container-narrow {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .container { padding-top: 3rem; padding-bottom: 3rem; }
    .header-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }
    .site-nav {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .pillars {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .sector ul { columns: 1; }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
