/*
Theme Name:   Willis McCloskey (Spacious Child)
Theme URI:    https://willismccloskey.co.uk/
Description:  Child theme of Spacious built for Willis McCloskey Hardware, Coleraine. Replicates the layout of the original willismccloskey.co.uk site (hero slider, four service boxes, about section, testimonials, footer columns) on a responsive, modern WordPress base.
Author:       Jonathan McKee - PC Doctor
Author URI:   https://jonathanmckee.co.uk/
Template:     spacious
Version:      1.0.0
Text Domain:  willismccloskey-child
*/

/* =========================================================
   1. Base tweaks
   ========================================================= */
body {
	background-color: #ffffff;
}

a {
	transition: color 0.2s ease, background-color 0.2s ease;
}

/* =========================================================
   1b. Header background colours (Spacious free has no Customizer
   colour picker for these - Pro only - so set them here instead)
   ========================================================= */
#masthead {
	background-color: #325F02;
}

/* Top bar strip above the main header (phone/email/social) - darker shade for two-tone effect */
#header-meta {
	background-color: #123a54;
}

#header-meta,
#header-meta a {
	color: #ffffff;
}

/* Site title / tagline text needs to be visible on the dark background */
#masthead .site-title a,
#masthead .site-title a:visited {
	color: #ffffff;
}

#masthead .site-description {
	color: #d9e4ec;
}

/* Primary navigation menu text + hover state */
#masthead #site-navigation a {
	color: #ffffff;
}

#masthead #site-navigation a:hover,
#masthead #site-navigation .current-menu-item > a {
	color: #f2b400; /* accent colour on hover - swap to taste */
}

/* =========================================================
   3. Four service feature boxes (optional - only used if you
   add widgets to the Homepage Feature 1-4 widget areas and
   embed them somewhere, e.g. via a widget-area shortcode plugin)
   ========================================================= */
.wm-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	max-width: 1200px;
	margin: 60px auto;
	padding: 0 20px;
}

.wm-feature-box {
	text-align: center;
	padding: 30px 20px;
	border: 1px solid #eee;
	border-radius: 6px;
}

.wm-feature-box h3 {
	margin-top: 0;
	font-size: 20px;
}

.wm-feature-box p {
	font-size: 15px;
	color: #555;
	line-height: 1.6;
}

.wm-feature-box .wm-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 10px 22px;
	border-radius: 3px;
	background: #1a5276;
	color: #fff !important;
	text-decoration: none;
	font-size: 14px;
}

.wm-feature-box .wm-btn:hover {
	background: #123a54;
}

@media (max-width: 900px) {
	.wm-features {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.wm-features {
		grid-template-columns: 1fr;
	}
	.wm-hero img {
		height: 320px;
	}
}

/* =========================================================
   4. Testimonials (optional widget area, same note as above)
   ========================================================= */
.wm-testimonials {
	background: #f7f7f7;
	padding: 60px 20px;
}

.wm-testimonials-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

@media (max-width: 800px) {
	.wm-testimonials-inner {
		grid-template-columns: 1fr;
	}
}

.wm-testimonial {
	background: #fff;
	padding: 24px;
	border-radius: 6px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.wm-testimonial p {
	font-style: italic;
	color: #444;
}

.wm-testimonial cite {
	display: block;
	margin-top: 10px;
	font-weight: 600;
	font-style: normal;
}

/* =========================================================
   6. Footer columns (Spacious usually widgetises the footer
   already - this just tidies spacing if you re-use it)
   ========================================================= */
.wm-footer-widgets ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wm-footer-widgets li {
	margin-bottom: 8px;
}

/* =========================================================
   7. background for Slider
   ========================================================= */

.wm-carousel-band {
	background-color: #325F02 !important; /* swap for your green */
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}

/* =========================================================
   8. take out the space below the header on the home page
   ========================================================= */

body.home #main {
	padding-top: 0;
}
/* =========================================================
   9. Adjust green tick for mobile phone
   ========================================================= */


img[src*="dropcap1"] {
    max-width: 40px;   /* adjust to the size you actually want */
    height: auto;
    width: 100%;
}

@media (max-width: 480px) {
    img[src*="dropcap1"] {
        max-width: 28px;  /* smaller size specifically for phones */
    }
}
/* =========================================================
   9. removes the last part of the white line
   ========================================================= */

#header-text-nav-container {
	border-bottom: none;
}

/* =========================================================
   10. to fix the colum width for phones 600px
   ========================================================= */


/* =========================================================
   11. to fix the metaslider so the text does not go over the images
   ========================================================= */
.caption-wrap {
    width: 33% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    bottom: auto !important;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden;
}

.caption-wrap .caption {
    width: 100%;
 position: static !important;   /* cancels any absolute positioning fighting the flex centering */
    top: auto !important;
    margin: 0 !important;
}


@media (max-width: 600px) {
    .wp-block-columns {
        flex-wrap: wrap !important;
    }

    .wp-block-columns .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
}