/*
Theme Name: Maple Taxes
Theme URI: https://www.mapletaxes.ca/
Author: Maple Taxes
Description: Custom block theme for Maple Taxes (mapletaxes.ca) and Impôts Sirop (impotssirop.ca). English and French headers, footers, page templates and homepage patterns.
Version: 1.3.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maple-taxes
*/

/* ---------- Cards ---------- */
.is-style-card {
	background: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--radius--card);
	padding: clamp(1.5rem, 3vw, 2rem);
}
.is-style-card-outline {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	padding: clamp(1.5rem, 3vw, 2rem);
}
.is-style-card > *, .is-style-card-outline > * { margin-block: 0; }
.mt-shadow { box-shadow: 0 12px 32px rgba(22, 24, 29, 0.08); }
.mt-featured { outline: 2px solid var(--wp--preset--color--maple); outline-offset: -2px; }
.mt-push-down { margin-top: auto !important; padding-top: 0.5rem; }
.mt-grow { flex: 1 1 420px; min-width: 0; }

/* ---------- Text styles ---------- */
.is-style-pill {
	display: inline-block;
	width: fit-content;
	background: var(--wp--preset--color--maple-tint);
	color: var(--wp--preset--color--maple-dark);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	padding: 0.45rem 0.9rem;
	border-radius: var(--wp--custom--radius--pill);
}
.mt-pill-solid { background: var(--wp--preset--color--maple); color: var(--wp--preset--color--white); font-weight: 700; letter-spacing: 0.02em; }
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 0.9375rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--maple);
}
.is-style-lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--wp--preset--color--muted); max-width: 640px; }
.is-layout-constrained > .is-style-lead:not(.has-text-align-center) { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; }
.is-style-price {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: clamp(2.5rem, 4vw, 3rem);
	line-height: 1;
	letter-spacing: -0.02em;
}

/* ---------- Check lists ---------- */
.is-style-checks { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.is-style-checks li { position: relative; padding-left: 1.75rem; }
.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.05em;
	height: 1.05em;
	background: var(--wp--preset--color--maple);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mt-inline-checks { flex-direction: row; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9375rem; color: var(--wp--preset--color--muted); }

/* ---------- Return status list (hero card) ---------- */
.is-style-status { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 1rem; }
.is-style-status li { position: relative; padding-left: 2.75rem; min-height: 2rem; display: flex; align-items: center; color: var(--wp--preset--color--muted); }
.is-style-status li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	box-sizing: border-box;
	border: 2px solid var(--wp--preset--color--line);
}
.is-style-status li.is-done, .is-style-status li.is-current { color: var(--wp--preset--color--ink); font-weight: 500; }
.is-style-status li.is-done::before {
	border-color: var(--wp--preset--color--maple);
	background: var(--wp--preset--color--maple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 55% no-repeat;
}
.is-style-status li.is-current { font-weight: 600; }
.is-style-status li.is-current::before {
	border-color: var(--wp--preset--color--maple);
	background: radial-gradient(circle, var(--wp--preset--color--maple) 0 4.5px, transparent 5px);
}

/* ---------- FAQ ---------- */
.mt-faq { border-top: 1px solid var(--wp--preset--color--line); }
.is-style-faq { border-bottom: 1px solid var(--wp--preset--color--line); padding: 1.35rem 0; margin: 0 !important; }
.is-style-faq summary {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.1875rem;
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2.25rem;
	min-height: 44px;
	display: flex;
	align-items: center;
}
.is-style-faq summary::-webkit-details-marker { display: none; }
.is-style-faq summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--wp--preset--color--maple);
}
.is-style-faq[open] summary::after { content: "\2212"; }
.is-style-faq > p { margin-top: 0.75rem; }

/* ---------- Header ---------- */
.mt-header .mt-logo { margin: 0; }
.mt-header .mt-logo img, .mt-footer .mt-logo img { height: auto; display: block; }
.mt-header .wp-block-navigation a { text-decoration: none; }
.mt-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mt-header .mt-lang a { opacity: 0.8; font-weight: 600; }
.mt-header .wp-block-button__link { padding: 0.65rem 1.2rem; }
.mt-btn-ghost .wp-block-button__link { border: 1.5px solid rgba(255, 255, 255, 0.45); color: var(--wp--preset--color--white); background: transparent; }
.mt-btn-ghost .wp-block-button__link:hover { border-color: var(--wp--preset--color--white); background: rgba(255, 255, 255, 0.08); }
.mt-disclaimer p { margin: 0; }

/* Outline buttons on light backgrounds */
.wp-block-button.is-style-outline:not(.mt-btn-ghost) > .wp-block-button__link {
	border: 1.5px solid #D6D2CB;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--white);
}
.wp-block-button.is-style-outline:not(.mt-btn-ghost) > .wp-block-button__link:hover { border-color: var(--wp--preset--color--ink); }

/* ---------- Footer ---------- */
.mt-footer a { text-decoration: none; }
.mt-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mt-footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 781px) {
	.mt-header .wp-block-buttons { width: 100%; }
	.mt-hero-visual { padding: 1.25rem !important; }
}

/* ---------- Mobile header: logo + menu only ---------- */
@media (min-width: 600px) {
	.mt-header .mt-mobile-only { display: none !important; }
}
@media (max-width: 599px) {
	.mt-header .mt-header-buttons { display: none !important; }
	.mt-header .wp-block-navigation__responsive-container.is-menu-open .mt-nav-cta a {
		background: var(--wp--preset--color--maple);
		color: var(--wp--preset--color--white);
		padding: 0.75rem 1.25rem;
		border-radius: 999px;
		font-weight: 600;
		text-decoration: none;
	}
}
.mt-header .wp-block-navigation__responsive-container.is-menu-open { padding-top: 1.5rem; }
.mt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; font-size: 1.125rem; }

/* ---------- Inner pages ---------- */
.mt-placeholder {
	border: 2px dashed var(--wp--preset--color--line);
	border-radius: 14px;
	padding: 1.5rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--muted);
}
.mt-legal-list { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
