/*
Theme Name: CapBuild Business
Theme URI: https://capbuild.com
Author: CapBuild Partners
Author URI: https://capbuild.com
Description: A professional business theme for consulting, training, and human development organizations.
Version: 2.0.0
Tested up to: 6.8
Requires PHP: 7.4
Requires at least: 6.7
Tags: business, corporate, consulting, services, custom-menu, featured-images, theme-options, translation-ready, custom-logo
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl.html
Text Domain: capbuild
*/

/* =========================================
   Design System
   ========================================= */
:root {
    --primary: #1152d4;
    --primary-hover: #0e45b5;
    --primary-light: rgba(17, 82, 212, 0.1);
    --primary-shadow: rgba(17, 82, 212, 0.25);
    --saffron: #F4C430;
    --saffron-light: #FFF8E1;
    --bg-light: #f6f6f8;
    --bg-dark: #101622;
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --blue-100: #dbeafe;
    --blue-400: #60a5fa;
    --blue-700: #1d4ed8;
    --text-dark: #0f172a;
    --text-body: #475569;
    --font: 'Lexend', sans-serif;
    --container: 1280px;
    --nav-height: 80px;
    --radius: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    --transition: 0.3s ease;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}


/* =========================================
   Reset & Base
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--slate-800);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--slate-900);
}

p {
    color: var(--slate-600);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px;
    top: 5px;
    width: auto;
    z-index: 100000;
    background: var(--white);
    color: var(--primary);
}


/* =========================================
   Container
   ========================================= */
.cb-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 640px) {
    .cb-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .cb-container {
        padding: 0 2rem;
    }
}


/* =========================================
   Navigation
   ========================================= */
.cb-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    transition: all var(--transition);
}

.cb-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .cb-nav-inner {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .cb-nav-inner {
        padding: 0 2rem;
    }
}

/* Logo */
.cb-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    text-decoration: none;
}

.cb-logo:hover {
    opacity: 1;
    color: inherit;
}

.cb-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

.cb-logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: var(--slate-900);
}

.cb-logo-text span {
    color: var(--primary);
    font-weight: 300;
}

/* Nav Menu */
.cb-nav-menu-wrap {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cb-nav-menu-wrap {
        display: flex;
    }
}

.cb-nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.cb-nav-list li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: color var(--transition);
}

.cb-nav-list li a:hover,
.cb-nav-list li.current-menu-item a,
.cb-nav-list li.current_page_item a {
    color: var(--primary);
}

/* Sub-menu */
.cb-nav-list li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 100;
}

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

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

.cb-nav-list li ul.sub-menu li a {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
}

.cb-nav-list li ul.sub-menu li a:hover {
    background: var(--primary-light);
}

/* Nav CTA */
.cb-nav-cta {
    display: none;
}

@media (min-width: 768px) {
    .cb-nav-cta {
        display: flex;
        align-items: center;
    }
}

.cb-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: var(--font);
    border-radius: var(--radius-full);
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 4px 14px var(--primary-shadow);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.cb-btn-login:hover {
    background: var(--blue-700);
    color: var(--white);
    transform: translateY(-2px);
}

/* Mobile toggle */
.cb-mobile-toggle {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    font-size: 1.875rem;
    padding: 0;
}

.cb-mobile-toggle:hover {
    color: var(--primary);
}

@media (min-width: 768px) {
    .cb-mobile-toggle {
        display: none;
    }
}

/* Mobile Nav Overlay */
.cb-mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.cb-mobile-nav.active {
    display: flex;
}

.cb-mobile-nav .cb-nav-list {
    flex-direction: column;
    gap: 0.5rem;
}

.cb-mobile-nav .cb-nav-list li a {
    font-size: 1.25rem;
    padding: 0.75rem 2rem;
}

.cb-mobile-nav .cb-nav-list li ul.sub-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    min-width: auto;
    text-align: center;
}

.cb-mobile-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    font-size: 2rem;
}


/* =========================================
   Buttons (general)
   ========================================= */
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
}

.cb-btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 4px 14px rgba(17, 82, 212, 0.3);
}

.cb-btn-primary:hover {
    background: var(--blue-700);
    color: var(--white);
    transform: translateY(-4px);
}

.cb-btn-secondary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    color: var(--primary);
    background: var(--white);
    border: 1px solid rgba(17, 82, 212, 0.2);
}

.cb-btn-secondary:hover {
    background: rgba(17, 82, 212, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}

.cb-btn-sm .material-icons {
    font-size: 0.875rem;
}


/* =========================================
   Hero Section
   ========================================= */
.cb-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 7rem;
}

@media (min-width: 1024px) {
    .cb-hero {
        padding: 8rem 0 10rem;
    }
}

/* Sacred dot pattern */
.cb-hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: transparent;
    background-image:
        radial-gradient(#1152d4 0.5px, transparent 0.5px),
        radial-gradient(#1152d4 0.5px, var(--bg-light) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.03;
}

/* Decorative blobs */
.cb-hero-blob-1 {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(48px, -48px);
    width: 384px;
    height: 384px;
    background: rgba(17, 82, 212, 0.1);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

.cb-hero-blob-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(-48px, 48px);
    width: 384px;
    height: 384px;
    background: rgba(244, 196, 48, 0.1);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

.cb-hero-inner {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Badge */
.cb-hero-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Title */
.cb-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--slate-900);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.cb-hero-title .cb-gradient-text {
    background: linear-gradient(to right, var(--primary), var(--blue-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.cb-hero-description {
    margin-top: 1rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.25rem;
    color: var(--slate-600);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Buttons */
.cb-hero-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .cb-hero-buttons {
        flex-direction: row;
    }
}

/* Hero Image */
.cb-hero-image-wrap {
    margin-top: 4rem;
    position: relative;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--slate-200);
}

.cb-hero-image-wrap img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.5s ease;
}

.cb-hero-image-wrap:hover img {
    opacity: 1;
}

.cb-hero-image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-light), transparent, transparent);
    opacity: 0.8;
    pointer-events: none;
}

.cb-hero-image-label {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 5;
}

.cb-hero-image-label p {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}


/* =========================================
   Pillars Section
   ========================================= */
.cb-pillars {
    padding: 5rem 0;
    background: var(--white);
    border-top: 1px solid var(--slate-100);
    border-bottom: 1px solid var(--slate-100);
}

.cb-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.cb-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--slate-900);
}

.cb-saffron-bar {
    width: 4rem;
    height: 4px;
    background: var(--saffron);
    margin: 1rem auto 0;
    border-radius: var(--radius-full);
}

.cb-section-desc {
    margin-top: 1rem;
    color: var(--slate-600);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
}

.cb-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .cb-pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cb-pillar-card {
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.cb-pillar-card:hover {
    background: rgba(17, 82, 212, 0.05);
    border-color: rgba(17, 82, 212, 0.1);
}

.cb-pillar-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform var(--transition);
}

.cb-pillar-card:hover .cb-pillar-icon {
    transform: scale(1.1);
}

.cb-pillar-icon .material-icons {
    font-size: 1.875rem;
}

.cb-pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.75rem;
}

.cb-pillar-desc {
    color: var(--slate-600);
    line-height: 1.7;
    font-size: 0.95rem;
}


/* =========================================
   Who We Serve
   ========================================= */
.cb-serve {
    padding: 6rem 0;
    position: relative;
}

.cb-serve-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .cb-serve-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.cb-serve-title {
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--slate-900);
}

.cb-serve-desc {
    margin-top: 1rem;
    color: var(--slate-600);
    max-width: 36rem;
    font-size: 1rem;
}

.cb-serve-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.cb-serve-link:hover {
    color: var(--blue-700);
}

.cb-serve-link .material-icons {
    font-size: 0.875rem;
}

.cb-serve-link-desktop {
    display: none;
}

@media (min-width: 768px) {
    .cb-serve-link-desktop {
        display: block;
    }
}

.cb-serve-link-mobile {
    display: block;
    margin-top: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .cb-serve-link-mobile {
        display: none;
    }
}

/* Service Cards Grid */
.cb-serve-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .cb-serve-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cb-serve-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Service Card */
.cb-serve-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-sm);
    height: 16rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: all var(--transition);
    text-decoration: none;
}

.cb-serve-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(244, 196, 48, 0.5);
}

/* Card image */
.cb-serve-card-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cb-serve-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cb-serve-card:hover .cb-serve-card-img img {
    transform: scale(1.05);
}

/* Card gradient overlay */
.cb-serve-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.8));
    z-index: 1;
}

/* Card content */
.cb-serve-card-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    transform: translateY(8px);
    transition: transform var(--transition);
}

.cb-serve-card:hover .cb-serve-card-content {
    transform: translateY(0);
}

.cb-serve-card-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cb-serve-card-top .material-icons {
    color: var(--saffron);
    font-size: 1.5rem;
}

.cb-serve-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.cb-serve-card-desc {
    font-size: 0.875rem;
    color: var(--slate-200);
    opacity: 0;
    transition: opacity var(--transition);
    margin-top: 0;
    line-height: 1.5;
}

.cb-serve-card:hover .cb-serve-card-desc {
    opacity: 1;
}


/* =========================================
   Impact Stats
   ========================================= */
.cb-stats {
    background: var(--primary);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.cb-stats-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.cb-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .cb-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cb-stat-item {
    padding: 1rem;
}

.cb-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: var(--font);
}

.cb-stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--blue-100);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* =========================================
   Testimonials
   ========================================= */
.cb-testimonials {
    padding: 6rem 0;
    background: var(--white);
}

.cb-testimonials-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    color: var(--slate-900);
    margin-bottom: 4rem;
}

.cb-testimonial-card {
    position: relative;
    max-width: 56rem;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .cb-testimonial-card {
        padding: 3rem;
    }
}

.cb-testimonial-quote-mark {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 4rem;
    color: rgba(17, 82, 212, 0.2);
    font-family: serif;
    line-height: 1;
}

.cb-testimonial-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .cb-testimonial-inner {
        flex-direction: row;
    }
}

.cb-testimonial-avatar {
    flex-shrink: 0;
}

.cb-testimonial-avatar img {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
}

.cb-testimonial-body {
    text-align: center;
}

@media (min-width: 768px) {
    .cb-testimonial-body {
        text-align: left;
    }
}

.cb-testimonial-text {
    font-size: 1.25rem;
    font-weight: 300;
    font-style: italic;
    color: var(--slate-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .cb-testimonial-text {
        font-size: 1.5rem;
    }
}

.cb-testimonial-author {
    font-weight: 700;
    color: var(--slate-900);
    font-size: 1rem;
}

.cb-testimonial-role {
    font-size: 0.875rem;
    color: var(--primary);
}

/* Testimonial navigation */
.cb-testimonial-nav {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
}

.cb-testimonial-nav button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0;
    padding: 0;
}

.cb-testimonial-prev {
    background: transparent;
    border: 1px solid var(--slate-200);
    color: var(--slate-400);
}

.cb-testimonial-prev:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.cb-testimonial-next {
    background: var(--primary);
    border: none;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.cb-testimonial-next:hover {
    background: var(--blue-700);
}


/* =========================================
   Footer
   ========================================= */
.cb-footer {
    background: var(--slate-900);
    color: var(--slate-300);
    border-top: 1px solid var(--slate-800);
}

.cb-footer-main {
    padding: 4rem 0 0;
}

/* 3-column grid */
.cb-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .cb-footer-grid {
        grid-template-columns: 2fr 1.5fr auto;
        gap: 4rem;
    }
}

/* Column 1: Brand */
.cb-footer-brand {
    margin-bottom: 0;
}

.cb-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
}

.cb-footer-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

.cb-footer-logo-text {
    font-weight: 700;
    font-size: 1.375rem;
    color: var(--white);
}

.cb-footer-logo-text span {
    color: var(--primary);
    font-weight: 300;
}

.cb-footer-desc {
    color: var(--slate-400);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 28rem;
}

/* Column headings */
.cb-footer-heading {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

/* Column 2: Navigation */
.cb-footer-nav {
    text-align: left;
}

.cb-footer-nav-list,
.cb-footer-nav .cb-nav-list {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cb-footer-nav-list li a,
.cb-footer-nav .cb-nav-list li a {
    color: var(--slate-400);
    font-size: 0.9rem;
    transition: color var(--transition);
    display: inline-block;
}

.cb-footer-nav-list li a:hover,
.cb-footer-nav .cb-nav-list li a:hover {
    color: var(--white);
}

/* Column 3: Social */
.cb-footer-social-col {
    text-align: left;
}

.cb-footer-social {
    display: flex;
    gap: 0.75rem;
}

.cb-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--slate-800);
    color: var(--slate-400);
    transition: all var(--transition);
}

.cb-footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.cb-footer-social .material-icons {
    font-size: 1.125rem;
}

/* Footer bottom */
.cb-footer-bottom {
    border-top: 1px solid var(--slate-800);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

@media (min-width: 768px) {
    .cb-footer-bottom {
        flex-direction: row;
    }
}

.cb-footer-copyright {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

.cb-footer-legal {
    display: flex;
    gap: 1.5rem;
}

.cb-footer-legal a {
    font-size: 0.8125rem;
    color: var(--slate-500);
    transition: color var(--transition);
}

.cb-footer-legal a:hover {
    color: var(--slate-300);
}

/* Developer credit */
.cb-footer-credit {
    text-align: center;
    padding: 1rem 0 1.5rem;
}

.cb-footer-credit p {
    font-size: 0.75rem;
    color: var(--slate-500);
}

.cb-footer-credit a {
    color: var(--primary);
    font-weight: 600;
    transition: color var(--transition);
}

.cb-footer-credit a:hover {
    color: #60a5fa;
}

/* =========================================
   Page Content (generic pages)
   ========================================= */
.cb-page {
    padding: calc(var(--nav-height) + 4rem) 0 5rem;
}

.cb-page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--slate-200);
}

.cb-page-title {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.cb-page-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.cb-page-content p {
    margin-bottom: 1.5rem;
}

.cb-page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.cb-page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.cb-page-content ul,
.cb-page-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.cb-page-content ol {
    list-style: decimal;
}

.cb-page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: var(--slate-600);
}


/* =========================================
   404 Page
   ========================================= */
.cb-404 {
    padding: calc(var(--nav-height) + 5rem) 0 5rem;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.cb-404-number {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
    margin-bottom: 1rem;
}


/* =========================================
   Mobile Responsive Overrides
   ========================================= */

/* --- Small phones (≤ 480px) --- */
@media (max-width: 480px) {

    /* Container */
    .cb-container {
        padding: 0 1rem;
    }

    /* Navigation */
    .cb-nav-inner {
        height: 64px;
        padding: 0 0.75rem;
    }

    .cb-logo-text {
        font-size: 1rem;
    }

    .cb-logo-icon {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .cb-mobile-nav .cb-nav-list li a {
        font-size: 1.125rem;
        padding: 0.875rem 2rem;
        min-height: 44px;
    }

    /* Hero */
    .cb-hero {
        padding: 3rem 0 4rem;
    }

    .cb-hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .cb-hero-badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
        margin-bottom: 1rem;
    }

    .cb-hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .cb-hero-buttons {
        gap: 0.75rem;
    }

    .cb-hero-buttons .cb-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .cb-hero-image-wrap {
        margin-top: 2rem;
    }

    .cb-hero-image-wrap img {
        height: 220px;
    }

    .cb-hero-image-label p {
        font-size: 0.75rem;
    }

    /* Decorative blobs — smaller on mobile */
    .cb-hero-blob-1,
    .cb-hero-blob-2 {
        width: 200px;
        height: 200px;
    }

    /* Section headers */
    .cb-section-title {
        font-size: 1.5rem;
    }

    .cb-section-desc {
        font-size: 0.9rem;
    }

    /* Pillars */
    .cb-pillars {
        padding: 3rem 0;
    }

    .cb-pillar-card {
        padding: 1.5rem;
    }

    .cb-pillar-title {
        font-size: 1.125rem;
    }

    .cb-pillar-desc {
        font-size: 0.875rem;
    }

    /* Who We Serve */
    .cb-serve {
        padding: 3rem 0;
    }

    .cb-serve-header {
        margin-bottom: 1.5rem;
    }

    .cb-serve-card {
        height: 14rem;
    }

    .cb-serve-card-title {
        font-size: 1.125rem;
    }

    .cb-serve-card-desc {
        font-size: 0.8rem;
    }

    /* Stats */
    .cb-stats {
        padding: 2.5rem 0;
    }

    .cb-stats-grid {
        gap: 1rem;
    }

    .cb-stat-number {
        font-size: 1.75rem;
    }

    .cb-stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }

    /* Testimonials */
    .cb-testimonials {
        padding: 3rem 0;
    }

    .cb-testimonials-title {
        font-size: 1.375rem;
        margin-bottom: 2rem;
    }

    .cb-testimonial-card {
        padding: 1.5rem;
    }

    .cb-testimonial-quote-mark {
        font-size: 2.5rem;
        top: 1rem;
        left: 1rem;
    }

    .cb-testimonial-text {
        font-size: 1rem;
        line-height: 1.5;
    }

    .cb-testimonial-avatar img {
        width: 72px;
        height: 72px;
    }

    .cb-testimonial-nav {
        position: static;
        justify-content: center;
        margin-top: 1.5rem;
    }

    .cb-testimonial-nav button {
        width: 44px;
        height: 44px;
    }

    /* Footer */
    .cb-footer-main {
        padding: 2.5rem 0 1.5rem;
    }

    .cb-footer-grid {
        gap: 2rem;
        text-align: center;
    }

    .cb-footer-logo {
        justify-content: center;
    }

    .cb-footer-tagline {
        font-size: 0.85rem;
    }

    .cb-footer-col h3 {
        font-size: 0.8rem;
    }

    .cb-footer-col ul li a {
        font-size: 0.85rem;
        padding: 0.3rem 0;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .cb-footer-newsletter p {
        font-size: 0.85rem;
    }

    .cb-footer-newsletter-form input {
        font-size: 0.85rem;
    }

    .cb-footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1.5rem 0;
    }
}

/* --- Phones & small tablets (≤ 640px) --- */
@media (max-width: 640px) {
    .cb-hero-image-wrap img {
        height: 240px;
    }

    .cb-serve-grid {
        grid-template-columns: 1fr;
    }

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


/* =========================================
   Utility
   ========================================= */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}