
/*
Theme Name: V. Nderitu
Author: Pascal Njue
Author URI: https://pascalnjue.com
Description: V. Nderitu's WordPress Theme
Version: 1.0
 */

/* Reset and base styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    /*color: #333;*/
    box-sizing: border-box;
}

.primary-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.primary-menu li a {
    text-decoration: none;
    color: #333;
}

/* Current/active menu item */
.primary-menu li.current-menu-item > a,
.primary-menu li.current_page_item > a,
.primary-menu li.current-menu-ancestor > a,
.primary-menu li.current_page_ancestor > a,
.primary-menu li.current_page_parent > a,
.primary-menu a[aria-current="page"] {
    color: #000;
    font-weight: 700;
    position: relative;
}

.primary-menu li.current-menu-item > a::after,
.primary-menu li.current_page_item > a::after,
.primary-menu li.current-menu-ancestor > a::after,
.primary-menu li.current_page_ancestor > a::after,
.primary-menu li.current_page_parent > a::after,
.primary-menu a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: #0073aa; /* Accent underline for current page */
}

main {
    padding-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 70vh;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* Header layout */
.site-header {
    padding: 1rem;
    margin: 0 7rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

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

.custom-logo {
    max-height: 60px;
    height: auto;
    width: auto;
}

.site-title {
    margin: 0;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.service-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.08);
}

.service-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.service-media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    aspect-ratio: 4 / 3;
}

.service-media img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.service-svg {
    width: 96px;
    height: 96px;
    opacity: 0.85;
}

.service-title {
    font-size: 1.1rem;
    margin: 0;
    padding: 0.75rem 1rem 1rem;
}
