/*
Theme Name: Mike's Tree Service
Theme URI: https://239tree.com
Description: Lightweight Kadence child theme for Mike Herronen's Tree Service. Brand palette carried over from the original 2020 site: charcoal #282828 with a tan #c0a375 accent.
Author: iSquared Marketing
Author URI: https://isquaredmarketing.com
Template: kadence
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mikes-tree
*/

/* Montserrat is registered in theme.json (settings.typography.fontFamilies),
   which emits the @font-face for the self-hosted file in fonts/ and exposes
   the family in the editor. Nothing is loaded from Google at runtime. */

/* --------------------------------------------------------------------------
   Hero covers
   -------------------------------------------------------------------------- */
.mt-hero h1,
.mt-hero h2 {
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
	letter-spacing: 0.02em;
}

.mt-hero .mt-phone {
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.06em;
}

.mt-hero .mt-phone a {
	color: #fff;
	text-decoration: none;
	border-bottom: 2px solid #c0a375;
}

.mt-hero .mt-phone a:hover,
.mt-hero .mt-phone a:focus {
	color: #c0a375;
}

/* --------------------------------------------------------------------------
   Before & after gallery — captions sit on the image like the original
   -------------------------------------------------------------------------- */
.mt-gallery figure.wp-block-image {
	position: relative;
	overflow: hidden;
}

.mt-gallery figure.wp-block-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	transition: transform 0.35s ease;
}

.mt-gallery figure.wp-block-image:hover img {
	transform: scale(1.04);
}

/* Specificity has to beat core's own caption gradient, which is
   .wp-block-gallery.has-nested-images figure.wp-block-image figcaption */
.mt-gallery.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: absolute;
	inset: auto 0 0 0;
	margin: 0;
	padding: 0.5rem 0.75rem;
	background: rgba(40, 40, 40, 0.82);
	color: #fff;
	font-family: 'Montserrat', system-ui, sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.mt-testimonial {
	background: #fff;
	border-top: 3px solid #c0a375;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
	height: 100%;
}

.mt-testimonial p {
	font-size: 0.95rem;
	line-height: 1.7;
}

.mt-testimonial cite {
	display: block;
	font-style: normal;
	font-weight: 700;
	font-family: 'Montserrat', system-ui, sans-serif;
}

.mt-testimonial .mt-role {
	color: #8a8a8a;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Full-bleed bands
   Kadence's content padding does not reach inside an alignfull group, so its
   contents sit flush against the viewport edge on narrow screens.
   -------------------------------------------------------------------------- */
.entry-content > .wp-block-group.alignfull {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

/* --------------------------------------------------------------------------
   Contact form (Fluent Forms) — match the site rather than the plugin default
   -------------------------------------------------------------------------- */
.mt-form .fluentform {
	max-width: 780px;
	margin-inline: auto;
}

.mt-form .fluentform .ff-el-input--label label {
	font-family: 'Montserrat', system-ui, sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #333;
}

.mt-form .fluentform .ff-el-form-control {
	border: 1px solid #d5d5d5;
	border-radius: 2px;
	padding: 0.7rem 0.85rem;
	font-size: 1rem;
}

.mt-form .fluentform .ff-el-form-control:focus {
	border-color: #c0a375;
	box-shadow: 0 0 0 2px rgba(192, 163, 117, 0.25);
	outline: none;
}

.mt-form .fluentform .ff-btn-submit {
	background: #c0a375;
	border: 1px solid #c0a375;
	border-radius: 2px;
	color: #fff;
	font-family: 'Montserrat', system-ui, sans-serif;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.75rem 2rem;
}

.mt-form .fluentform .ff-btn-submit:hover,
.mt-form .fluentform .ff-btn-submit:focus {
	background: #a98c5f;
	border-color: #a98c5f;
}

.mt-form .ff-message-success {
	border-left: 3px solid #c0a375;
	background: #faf6ef;
	color: #3b3b3b;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.mt-gallery figure.wp-block-image img,
	.mt-gallery figure.wp-block-image:hover img {
		transition: none;
		transform: none;
	}
}
