/*
Theme Name: Kindling
Theme URI: https://github.com/matchboxdesigngroup/kindling
Author: Matchbox Design Group
Author URI: https://matchboxdesigngroup.com
Description: A modern, responsive, and accessible block theme for WordPress.
Version: 4.0.0
Requires at least: 6.7
Tested up to: 6.7.2
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kindling

Kindling WordPress Theme, (C) 2025 Matchbox Design Group, LLC.
Kindling is distributed under the terms of the GNU GPL.
*/

/**
 * 1.0 CSS Reset
 *
 * Resetting the CSS to a more sane starting point.
 */

/* Use a more-intuitive box-sizing model. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	overflow-x: hidden;
}

/* Allow percentage-based heights in the application. */
html,
body,
.wp-site-blocks {
	min-height: 100%;
}

/* Remove height from the admin bar of the overall height. */
html {
	height: calc(100% - var(--wp-admin--admin-bar--height, 0px));
}

/* Ensure the best type rendering. */
:root {
	font-feature-settings: 'kern';
	font-kerning: normal;
	text-rendering: optimizeLegibility;
}

/* Improve text rendering. */
body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/* Improve media defaults. */
img,
picture,
video,
canvas,
svg {
	display: block;
	height: auto;
	max-width: 100%;
}

/* Remove built-in form typography styles. */
input,
button,
textarea,
select {
	font: inherit;
}

/* Avoid text overflows. */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
	text-wrap: pretty; /* pretty is the nicer result but it isn't supported as well. So balance is here as a fallback */
}

p {
	text-wrap: pretty;
}

/* Create a root stacking context. */
.wp-site-blocks {
	isolation: isolate;
}

/* Ensure the alt text is visible when an image is missing. */
img {
	font-size: 1rem;
	font-style: italic;
	line-height: 1.5;
}

/* Set the scroll behavior to smooth. */
html {
	scroll-behavior: smooth;
}

/* Enable view transitions. */
@view-transition {
	navigation: auto;
}

.has-text-gradient {
	background: var(--wp--preset--gradient--gradient-01);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.image-card-icon-wrapper:hover .image-card-icon .icon-container {
	background-color: var(--wp--preset--color--theme-05) !important;
	transform: rotate(45deg);
	transition: transform 0.3s ease;
}

.image-card-icon-wrapper:hover .image-card-icon .icon-container svg {
	transform: rotate(45deg);
	transition: transform 0.3s ease;
}

.image-card-stack {
	min-height: 130px;

	@media (max-width: 767px) {
		min-height: 80px;
	}

	@media only screen and (min-width: 768px) and (max-width: 1024px) {
		min-height: 100px;
	}
}

.cropped-image {
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 14.25% 50%);
}

.spit-content-04-grid-item {
	align-items: center;
	display: flex;
	justify-content: center;
	padding: 0 var(--wp--custom--spacing--20);
}

.has-full-height-image .wp-block-image,
.has-full-height-image .wp-block-image img {
	height: 100%;
}

.is-full-height-section {
	height: 100%;
}

.goals-card {
	transition: background-color 0.3s ease, color 0.3s ease;

	svg path {
		transition: stroke 0.3s ease;
	}

	&:hover {
		background-color: var(--wp--preset--color--theme-03) !important;
		color: var(--wp--preset--color--theme-01) !important;

		svg {
			path {
				stroke: var(--wp--preset--color--theme-01);
			}
		}
	}
}