/*
Theme Name: Harvey & Keen Consulting
Author: Daniel Nyagah
Description: Custom theme for Harvey & Keen Consulting
Version: 1.0
*/

/* --- Color Palette based on Logo --- */
:root {
    --hk-blue: #0a3b75;
    --hk-green: #1b7837;
    --hk-grey: #6c757d;
    --hk-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

/* --- Typography & General --- */
h1, h2, h3, h4, h5, h6 { color: var(--hk-blue); font-weight: 700; }
.text-hk-blue { color: var(--hk-blue) !important; }
.text-hk-green { color: var(--hk-green) !important; }
.bg-hk-blue { background-color: var(--hk-blue) !important; color: white; }
.bg-hk-green { background-color: var(--hk-green) !important; color: white; }

/* Buttons */
.btn-hk-blue { background-color: var(--hk-blue); color: white; border: none; padding: 10px 25px; }
.btn-hk-blue:hover { background-color: #082d5a; color: white; }
.btn-hk-green { background-color: var(--hk-green); color: white; border: none; padding: 10px 25px; }
.btn-hk-green:hover { background-color: #145a29; color: white; }

/* --- Navbar --- */
.navbar { box-shadow: 0 2px 4px rgba(0,0,0,.1); background-color: white !important; padding: 1rem 0; }
.navbar-brand img { max-height: 60px; width: auto; }
.nav-link { color: var(--hk-blue) !important; font-weight: 600; margin-left: 15px; }
.nav-link:hover, .nav-link.active { color: var(--hk-green) !important; }

/* --- Hero Section --- */
.hero-section {
    /* Gradient overlay is handled here, image is injected via PHP */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 150px 0;
    text-align: center;
    position: relative;
}
.hero-overlay {
    position: absolute; top:0; left:0; right:0; bottom:0;
    background: linear-gradient(rgba(10, 59, 117, 0.7), rgba(27, 120, 55, 0.6));
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-section h1 { color: white; font-size: 3.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* --- Page Headers (Internal Pages) --- */
.page-header { background-color: var(--hk-blue); color: white; padding: 60px 0; text-align: center; margin-bottom: 40px; }
.page-header h1 { color: white; }

/* --- Sections --- */
.section-padding { padding: 80px 0; }
.bg-light-grey { background-color: var(--hk-light); }

/* --- Services Cards --- */
.service-card {
    border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; border-top: 4px solid var(--hk-blue);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-top-color: var(--hk-green); }
.service-icon { font-size: 3rem; color: var(--hk-blue); margin-bottom: 20px; }

/* --- Footer --- */
footer { background-color: var(--hk-blue); color: rgba(255,255,255,0.8); padding: 60px 0 20px; }
footer h5 { color: white; margin-bottom: 25px; }
footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
footer a:hover { color: var(--hk-green); }
footer ul li { margin-bottom: 10px; }

/* Fix for Carousel Controls visibility */
.carousel-control-prev-icon, 
.carousel-control-next-icon {
    padding: 15px;
    background-size: 50%;
}

/* Add space for the indicators dots at the bottom */
#aboutCarousel {
    padding-bottom: 60px;
}

/* Make sure the text looks good */
.lead-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* --- Fix for Fixed Navbar Overlap --- */

/* 1. Adjust the Homepage Hero */
.hero-section {
    padding-top: calc(150px + 80px) !important; /* Original padding + navbar height */
}

/* 2. Adjust the Inner Page Headers (About, Services, etc.) */
.page-header {
    padding-top: 130px !important; /* Increased padding to clear the navbar */
    padding-bottom: 60px;
    margin-top: 0;
}

/* 3. Optional: Add a smooth scroll offset if you use anchor links */
:target::before {
    content: "";
    display: block;
    height: 100px; /* navbar height */
    margin: -100px 0 0;
}
.service-card .service-icon i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    color: var(--hk-green);
}

.bg-hk-blue {
    background-color: var(--hk-blue) !important;
}
.form-control {
    border: 1px solid #dee2e6;
    padding: 12px;
    border-radius: 5px;
}

.form-control:focus {
    border-color: var(--hk-green);
    box-shadow: 0 0 0 0.25rem rgba(27, 120, 55, 0.1);
}

.contact-info-card i {
    width: 25px;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--hk-green) !important;
}

/* --- Blog Listing Styles --- */
.blog-card {
    transition: transform 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-10px);
}
.blog-thumb {
    height: 220px;
    overflow: hidden;
}
.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-outline-hk-blue {
    border: 2px solid var(--hk-blue);
    color: var(--hk-blue);
    font-weight: 600;
}
.btn-outline-hk-blue:hover {
    background-color: var(--hk-blue);
    color: white;
}

/* --- Single Post Content --- */
.post-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}
.post-content h2, .post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* --- Custom Pagination Styling --- */
.pagination-wrapper ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
}
.pagination-wrapper .page-numbers li {
    margin: 0 5px;
}
.pagination-wrapper .page-numbers a, 
.pagination-wrapper .page-numbers span {
    padding: 8px 16px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--hk-blue);
    border-radius: 4px;
}
.pagination-wrapper .page-numbers.current {
    background-color: var(--hk-blue);
    color: white;
    border-color: var(--hk-blue);
}

/* Updated Service Icon Styling */
.service-icon {
    height: 100px; /* Fixed height for the icon area to keep cards aligned */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-custom-icon {
    max-width: 100%;    /* Image will never exceed card width */
    max-height: 80px;   /* Constrains height so icons look uniform */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Bulleted List Styling inside Services */
.service-description-text ul {
    text-align: left;
    padding-left: 1.2rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #555;
}

.service-description-text li {
    margin-bottom: 5px;
}
/* --- Team Section --- */
.team-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-img-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 59, 117, 0.7); /* hk-blue with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-overlay i { font-size: 2rem; }

.team-card:hover .team-overlay { opacity: 1; }
.team-card:hover .team-img-wrapper img { transform: scale(1.1); }
.team-card:hover h4 { color: var(--hk-green); }

/* Modal Customization */
.modal-content { border-radius: 20px; }
.modal-body { max-height: 80vh; overflow-y: auto; }
/* --- Document Manager Styles --- */
.document-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.document-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    background-color: #fcfcfc;
}

.doc-icon i {
    transition: transform 0.3s ease;
}

.document-card:hover .doc-icon i {
    transform: scale(1.1);
}

.doc-bio p {
    margin-bottom: 0;
    line-height: 1.4;
}

.btn-outline-hk-blue {
    border: 2px solid var(--hk-blue);
    color: var(--hk-blue);
    transition: all 0.2s;
}

.btn-outline-hk-blue:hover {
    background-color: var(--hk-blue);
    color: white;
}