*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --dark-color: #000000;
    --light-color: #ffffff;
    --gray-bg: #f8f9fa;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-color: #eee;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --text-dark: #1a1a1a;
}


body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}


.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}


.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}


body {
    font-size: 1rem; 
    line-height: 1.55;
}
h1, .h1 { font-size: 2rem;   font-weight: 700; }
h2, .h2 { font-size: 1.6rem; font-weight: 700; }
h3, .h3 { font-size: 1.3rem; font-weight: 600; }
h4, .h4 { font-size: 1.1rem; font-weight: 600; }
h5, .h5 { font-size: 0.95rem; font-weight: 600; }
h6, .h6 { font-size: 0.8rem; font-weight: 600; }

.display-1 { font-size: 3.5rem; }
.display-2 { font-size: 3rem; }
.display-3 { font-size: 2.5rem; }
.display-4 { font-size: 2rem; }
.display-5 { font-size: 1.6rem; }
.display-6 { font-size: 1.3rem; }


.bg-light-soft { background-color: #f8fafc; }
.text-gradient { background: linear-gradient(135deg, var(--primary-color), #2d3436); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rounded-4 { border-radius: 1rem !important; }
.rounded-5 { border-radius: 1.5rem !important; }


@media (max-width: 768px) {
    .container, .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100%;
        overflow-x: hidden;
    }
    .row {
        margin-left: -0.75rem !important;
        margin-right: -0.75rem !important;
    }
    .col, [class*="col-"] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .display-1 { font-size: 2rem !important; }
    .display-2 { font-size: 1.8rem !important; }
    .display-3 { font-size: 1.5rem !important; }
    .display-4 { font-size: 1.35rem !important; }
    .display-5 { font-size: 1.15rem !important; }
    .display-6 { font-size: 1rem !important; }
    .hero-section { padding: 40px 0; text-align: center; }
    .hero-section .d-flex { justify-content: center; }
    .card { margin-bottom: 12px; }
    h1, .h1 { font-size: 1.5rem; }
    h2, .h2 { font-size: 1.3rem; }
    h3, .h3 { font-size: 1.1rem; }
    h4, .h4 { font-size: 1rem; }
    h5, .h5 { font-size: 0.9rem; }
}


.social-icon-box {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icon-box:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: #fff;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.newsletter-block {
    border: 1px solid rgba(255,255,255,0.05);
}

.x-small { font-size: 0.75rem; }
.letter-spacing-2 { letter-spacing: 2px; }
.brightness-0 { filter: brightness(0); }
.invert { filter: invert(1); }


.hero-section img {
    max-width: 100%;
    height: auto;
}


.navbar-pro {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    transition: all 0.2s ease;
    z-index: 1050;
    overflow: visible !important;
}

.navbar-pro .container {
    overflow: visible !important;
}

.navbar-pro .navbar-brand img { height: 36px; }

.navbar-pro .nav-link {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    padding: 6px 12px !important;
    transition: color 0.2s;
}

.navbar-pro .nav-link:hover,
.navbar-pro .nav-link.active {
    color: var(--primary-color);
}


.has-megamenu { position: static; }
.megamenu {
    width: 100%;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0;
    background: #fff;
    border-radius: 0 0 12px 12px !important;
    border-top: 2px solid #f0f0f0;
}

.megamenu .dropdown-item {
    font-size: 0.825rem;
    font-weight: 400;
    color: #374151;
}

.megamenu .dropdown-item:hover {
    background-color: #f8fafc;
    color: var(--primary-color);
}


.notification-bell i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.notification-bell .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.6rem;
    padding: 4px 6px;
}


.profile-dropdown {
    transition: all 0.3s ease;
}

.profile-dropdown:hover {
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.dropdown-menu {
    z-index: 2000;
}


.hamburger-icon {
    width: 25px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2.5px;
    width: 100%;
    background: var(--text-dark);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) { top: 0px; }
.hamburger-icon span:nth-child(2) { top: 8px; }
.hamburger-icon span:nth-child(3) { top: 16px; }

.navbar-toggler:focus {
    box-shadow: none;
}

@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        animation: slideIn 0.3s ease forwards;
    }
}

@media (max-width: 991px) {
    .display-1 { font-size: 2rem; }
    .display-3 { font-size: 1.6rem; }
    .display-4 { font-size: 1.4rem; }
    .megamenu { border-radius: 0 !important; border-top: none; }
    .navbar-pro .nav-link { padding: 10px 4px !important; font-size: 0.875rem; }
    .navbar-collapse {
        background: #fff;
        padding: 16px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        border: 1px solid #e9ecef;
    }
}


.mpesa-badge {
    background-color: #48b04b;
    color: white;
    font-weight: 800;
    padding: 6px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(72, 176, 75, 0.2);
}

.grayscale { filter: none; opacity: 1; transition: 0.3s; }
.grayscale:hover { filter: none; opacity: 1; }


.cn-card {
    background: #fff;
    border: 1px solid hsl(214.3 31.8% 91.4%);
    border-radius: var(--cn-radius);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}
.cn-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.cn-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--cn-radius) !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    height: 2.25rem !important;
    padding: 0 1.25rem !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
}
.cn-button-primary { background-color: #000 !important; color: #fff !important; }
.cn-button-primary:hover { background-color: #1a1a1a !important; transform: translateY(-1px); }
.cn-button-outline { background-color: #fff !important; border: 1px solid #e5e7eb !important; color: #000 !important; }
.cn-button-outline:hover { background-color: #f8fafc !important; border-color: #d1d5db !important; transform: translateY(-1px); }
.cn-button-white { background-color: #fff !important; color: #000 !important; border: none !important; }
.cn-button-white:hover { background-color: #f0f0f0 !important; transform: translateY(-1px); box-shadow: 0 8px 15px -5px rgba(0,0,0,0.2); }


.cn-input {
    background: #fff;
    border: 1px solid hsl(214.3 31.8% 91.4%);
    border-radius: var(--cn-radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.cn-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.cn-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.cn-input-group i {
    position: absolute;
    left: 1rem;
    color: hsl(215.4 16.3% 46.9%);
    pointer-events: none;
}

.cn-input-group .cn-input {
    padding-left: 2.75rem;
}


.auth-section {
    background-color: #f8fafc;
    min-height: 60vh;
    padding: 5rem 0;
}

.auth-card-container {
    max-width: 480px;
    margin: -100px auto 0;
    position: relative;
    z-index: 10;
}

.dot-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.05) 1px, transparent 0);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    pointer-events: none;
}
.text-gradient {
    background: linear-gradient(to right, #000, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.ls-tight { letter-spacing: -0.04em; }
.grayscale-filter img { filter: grayscale(1); opacity: 0.6; transition: 0.3s; }
.cn-breadcrumb {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
}
.cn-breadcrumb .breadcrumb-item a, 
.cn-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8) !important;
}
.cn-breadcrumb .breadcrumb-item + .breadcrumb-item::before { 
    color: rgba(255, 255, 255, 0.3) !important; 
}

.architect-hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../../assets/images/breadcrumbbg.jpg') center/cover no-repeat !important;
    color: #fff !important;
    padding: 6rem 0;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.architect-hero .text-dark,
.architect-hero .text-gradient {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
.architect-hero .opacity-75,
.architect-hero .opacity-50 {
    opacity: 0.8 !important;
}


@media (max-width: 768px) {
    .architect-hero {
        padding: 3rem 0;
        text-align: center;
    }
    .architect-hero .d-flex {
        justify-content: center !important;
    }
    .cn-breadcrumb {
        margin-bottom: 1.5rem !important;
    }
    .architect-hero .col-lg-5 {
        margin-top: 2rem;
    }
    .architect-hero .gap-5 {
        gap: 1.5rem !important;
    }
    .architect-hero .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .architect-hero img {
        height: 18px !important;
    }
}


@media (max-width: 576px) {
    .auth-card-container {
        margin: -50px auto 0;
        padding: 0 1rem;
    }
    
    .architect-hero {
        padding: 4rem 0 6rem;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    .cn-card {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

.listing-section {
    padding-bottom: 6rem !important;
}

@media (max-width: 768px) {
    .listing-section {
        padding-bottom: 4rem !important;
    }
}
