/*
Theme Name: Batamuriza
Theme URI: https://yourdomain.com
Author: You
Author URI: https://yourdomain.com
Description: A lean, accessible block theme for home care content in the West Midlands.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: batamuriza
Tags: block-theme, accessibility-ready, home-care, west-midlands
*/

/* === Sticky Footer Fix — Batamuriza === */
/* Ensures footer stays at bottom even with minimal content */

html {
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
}

/* Target the *actual* wrapper WP uses */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
}

/* Main content area should grow */
.wp-site-blocks > main,
.wp-site-blocks > article,
.wp-site-blocks > section,
.wp-site-blocks > .wp-block-group:has(> main),
.wp-site-blocks > .wp-block-group:has(> header + *) {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
}

/* Footer stays at bottom */
footer.wp-block-group,
footer.wp-block-template-part {
	margin-top: auto;
}


.mynavbar {
  overflow: hidden;
 background-color: #fff;
  position: fixed; /* Positions the element relative to the viewport */
  top: 0; /* Aligns the element to the top of the viewport */
  width: 100%; /* Ensures the menu spans the full width */
  z-index: 999; /* Ensures the menu stays on top of other elements */
}

.myopacity {
opacity:0.8;
}

 
/* Service Archive Styles */
.service-type-archive {
    padding: 40px 0;
}

.service-archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.service-title {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.service-description {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.service-posts-grid .posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-post-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.post-title a {
    color: #2d3748;
    text-decoration: none;
}

.post-title a:hover {
    color: #3182ce;
}

.post-excerpt {
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.6;
}

.post-meta {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background: #3182ce;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #2c5aa0;
    color: white;
}

.pagination {
    text-align: center;
    margin: 40px 0;
}

.related-services {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.related-services h3 {
    margin-bottom: 20px;
    color: #2d3748;
}

.related-services ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.related-services li a {
    display: block;
    padding: 10px 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
}

.related-services li a:hover {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-posts h3 {
    color: #4a5568;
    margin-bottom: 15px;
}

.no-posts .button {
    display: inline-block;
    background: #3182ce;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 15px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .service-posts-grid .posts-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-title {
        font-size: 2rem;
    }
    
    .related-services ul {
        grid-template-columns: 1fr;
    }
}