/* ==========================================================================
   Table of contents
   1. Theme tokens
   2. Base + utility spacers
   3. Buttons
   4. Color & utility helpers
   5. Top bar
   6. Navbar
   7. Dropdown menus
   8. Megamenu
   9. Colorful hero
   10. Feature cards / blog cards
   11. Article body typography
   12. Breadcrumb (on hero-colorful)
   13. Footer
   14. WhatsApp floating button
   15. Comments
   ========================================================================== */

/* 1. Theme tokens - ported from the main ziprof.co.ke site's design system */
:root {
    --brand-primary: #0088CC;
    --brand-accent: #F89805;
    --brand-dark: #1e3a5f;
    --brand-secondary: #072433;
    --text-muted: #67787c;

    --gray-100: #f1f3f3;
    --gray-200: #e3e7e8;
    --gray-400: #9ca8ab;
    --gray-700: #394447;

    --bs-primary: #0088CC;
    --bs-primary-rgb: 0, 136, 204;
    --bs-secondary: #023542;
    --bs-body-color: #394447;
    --bs-body-bg: #ffffff;
    --bs-body-font-size: 0.95rem;
    --bs-border-color: #e3e7e8;
    --bs-link-color: #394447;
    --bs-link-hover-color: #0088CC;
    --bs-border-radius: 1rem;
    --bs-border-radius-lg: 1rem;
}

/* 2. Base + utility spacers - Bootstrap's CDN build only defines 0-5 (0-3rem) */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-700);
    font-size: var(--bs-body-font-size);
    background-color: #ffffff;
}

.py-8 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-12 { padding-top: 6rem !important; padding-bottom: 6rem !important; }

@media (min-width: 992px) {
    .py-lg-12 { padding-top: 2rem !important; padding-bottom: 6rem !important; }
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    font-weight: 600;
}

/* 3. Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0072ab;
    border-color: #0072ab;
    color: #ffffff;
}

.btn-accent {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #ffffff;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: #d98700;
    border-color: #d98700;
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

/* 4. Color & utility helpers */
.card,
.feature-card,
.rounded-4 {
    border-radius: 16px !important;
}

.text-primary { color: var(--brand-primary) !important; }
.bg-primary { background-color: var(--brand-primary) !important; }
.border-primary { border-color: var(--brand-primary) !important; }

/* 5. Top bar */
.topbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--gray-200);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-primary);
    font-weight: 500;
    text-decoration: none;
}

.topbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--brand-accent);
    color: #ffffff;
    flex-shrink: 0;
}

.topbar-phone:hover {
    color: var(--brand-accent);
}

.topbar .btn {
    padding: 0.4rem 1.25rem;
    font-size: 0.78rem;
}

/* 6. Navbar */
.navbar-brand {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
}

.navbar-brand .custom-logo {
    max-height: 45px;
    width: auto;
}

.navbar {
    z-index: 1050;
    background-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.88rem;
    color: #ffffff;
    position: relative;
    line-height: 1.3;
    padding: 0.75rem 0.9rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--brand-accent);
    transform: translateY(-1px);
}

.navbar-nav .nav-link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
    border-radius: 0.4rem;
}

/* 7. Dropdown menus */
.dropdown-item:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

.dropdown-toggle::after {
    transition: transform 0.25s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    border-radius: 0 0 0.5rem 0.5rem !important;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    background-color: var(--brand-primary);
    min-width: 260px;
    padding: 0.8rem 1rem;
}

.dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    color: #ffffff;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 0.5rem;
    transform: translateX(2px);
}

/* 8. Megamenu (menu items with the "megamenu" CSS class in wp-admin > Menus) */
.dropdown-menu.megamenu {
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90vw;
    padding: 1rem;
}

@media (max-width: 991.98px) {
    .navbar-collapse .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        transform: none;
        box-shadow: none;
    }
}

/* 9. Colorful hero */
.hero-colorful {
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: linear-gradient(115deg, var(--brand-dark) 0%, var(--brand-primary) 55%, var(--brand-accent) 30%);
}

.hero-colorful .container {
    position: relative;
    z-index: 1;
}

.hero-colorful .eyebrow {
    color: #ffffff;
    opacity: 0.85;
}

.hero-colorful h1 {
    color: #ffffff;
}

.hero-colorful .lead {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767.98px) {
    .hero-colorful .lead {
        font-size: 0.8rem;
    }
}

.hero-subcategory-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.hero-subcategory-tag {
    padding: 0.35rem 0.9rem;
    border-radius: 50rem;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.hero-subcategory-tag:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

/* 10. Feature cards / blog cards */
.feature-card {
    background-color: var(--gray-100);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.blog-card-img {
    height: 200px;
    object-fit: cover;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 11. Article body typography */
.kb-article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.kb-article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.kb-article-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.kb-article-body p,
.kb-article-body ul,
.kb-article-body ol {
    margin-bottom: 1rem;
}

.kb-article-body blockquote {
    border-left: 4px solid var(--brand-primary);
    background-color: var(--gray-100);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    color: var(--text-muted);
}

.kb-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.single-post .col-lg-4 .card + .card {
    margin-top: 1rem;
}

/* Latest Posts / Popular Posts widget lists */
.ziprof-post-list .list-group-item {
    position: relative;
    padding-left: 1.1rem !important;
    font-size: 0.7rem;
    line-height: 1rem;
}

.ziprof-post-list .list-group-item::before {
    content: "\00BB";
    position: absolute;
    left: 0;
    color: var(--brand-primary);
}

/* Services widget: icon-badge card rows */
.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-sm {
    width: 2.25rem;
    height: 2.25rem;
}

.contact-info-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    color: inherit;
    transition: box-shadow 0.25s ease;
}

a.contact-info-card:hover {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    color: inherit;
}

.ziprof-service-row:last-child {
    margin-bottom: 0 !important;
}

/* Pricing widget: dark panel + stacked price-chips (ported from the home
   page's .web-solutions-panel-hosting / .price-chip, stacked vertically
   instead of side-by-side since the sidebar column is narrow) */
.ziprof-pricing-panel {
    background: var(--brand-primary);
    border-radius: 1rem;
    padding: 1.5rem;
    color: #fff;
}

.price-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0.9rem;
    border-radius: 0.5rem;
    background: rgba(0,136,204, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: inherit;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

a.price-chip:hover {
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    transform: translateY(-2px);
}

.price-chip + .price-chip {
    margin-top: 1.25rem;
}

.price-chip-best {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.price-chip-tag {
    position: absolute;
    top: -0.65rem;
    left: 0.9rem;
    white-space: nowrap;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 0.25rem;
    background: var(--brand-accent);
    color: #fff;
}

.price-chip-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.75);
}

.price-chip-best .price-chip-name {
    color: var(--brand-secondary);
}

.price-chip-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.price-chip-best .price-chip-price {
    color: var(--brand-primary);
}

.price-chip-period {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
}

.price-chip-best .price-chip-period {
    color: var(--text-muted);
}

/* 12. Breadcrumb (sits on the dark hero-colorful gradient) */
.kb-breadcrumb {
    font-size: 0.85rem;
}

.kb-breadcrumb .breadcrumb-item,
.kb-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
}

.kb-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.kb-breadcrumb .breadcrumb-item.active {
    color: #fff;
}

.kb-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* 13. Footer */
footer.site-footer {
    background-color: var(--brand-dark);
    color: rgba(255, 255, 255, 0.75);
}

footer.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

footer.site-footer a:hover {
    color: #ffffff;
}

footer.site-footer .border-top {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

footer.site-footer .footer-links li {
    position: relative;
    padding-left: 1.1rem;
}

footer.site-footer .footer-links li::before {
    content: "\00BB";
    position: absolute;
    left: 0;
}

footer.site-footer .footer-links-contact li {
    padding-left: 0;
}

footer.site-footer .footer-links-contact li::before {
    content: none;
}

footer.site-footer .footer-legal-links {
    display: inline;
    padding: 0;
    margin: 0;
}

footer.site-footer .footer-legal-links li {
    display: inline;
}

footer.site-footer .footer-legal-links li:not(:last-child)::after {
    content: " | ";
}

footer.site-footer .footer-contact-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
}

footer.site-footer .footer-contact-item .topbar-icon {
    margin-top: 0.2rem;
}

footer.site-footer .footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transition: background-color 0.2s ease, color 0.2s ease;
}

footer.site-footer .footer-social:hover {
    background-color: #ffffff;
    color: var(--brand-secondary);
}

/* 14. WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    animation: whatsapp-glow 2s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
    animation-play-state: paused;
}

@keyframes whatsapp-glow {
    0% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 15. Pagination */
.navigation.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 50px;
    background-color: #ffffff;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-numbers.current {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.page-numbers:not(.current):not(.dots):hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.page-numbers.dots {
    border: none;
    background: none;
    min-width: auto;
}

.comment-author.vcard img {
    border-radius: 50%;
    margin-right: 0.75rem;
}
