/*
Theme Name: MyTow
Theme URI: https://mytow.ca
Author: CipherX Solutions
Author URI: https://cpxs.ca
Description: Custom block (Full Site Editing) theme for MyTow, 24/7 towing and roadside assistance in Vaughan and the GTA. Bold towing layout blended with an airy bento style, scroll animations, editable section patterns and centrally managed business info.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.3.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mytow
Tags: full-site-editing, block-patterns, block-styles, custom-colors, editor-style, wide-blocks, one-column, two-columns
*/

/* ==========================================================================
   Base
   ========================================================================== */
:root {
	--mt-radius-sm: var(--wp--custom--radius--sm, 10px);
	--mt-radius-md: var(--wp--custom--radius--md, 16px);
	--mt-radius-lg: var(--wp--custom--radius--lg, 24px);
	--mt-ease: cubic-bezier(.22, 1, .36, 1);
	--mt-header-h: 76px;
	interpolate-size: allow-keywords;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--mt-header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }

img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

::selection { background: var(--wp--preset--color--primary); color: #fff; }

:where(a, button, summary, input, textarea, select):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text:focus { clip: auto !important; }

/* ==========================================================================
   Header (Towmate black bar + Solaris pill CTA)
   ========================================================================== */
.mt-topbar a { color: inherit; text-decoration: none; }
.mt-topbar a:hover { text-decoration: underline; }
.mt-topbar p { margin: 0; }

.mt-header-wrap { position: sticky; top: 0; z-index: 100; }
.admin-bar .mt-header-wrap { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .mt-header-wrap { top: 0; } }

.mt-header {
	transition: background-color .35s var(--mt-ease), box-shadow .35s var(--mt-ease), padding .35s var(--mt-ease);
}
.mt-scrolled .mt-header {
	/* No backdrop-filter here: it would trap the fixed mobile menu inside the header. */
	background-color: rgba(17, 17, 17, .97) !important;
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
}
.mt-header .wp-block-site-logo img,
.mt-header .mt-logo img { transition: transform .35s var(--mt-ease); }
.mt-scrolled .mt-header .wp-block-site-logo img,
.mt-scrolled .mt-header .mt-logo img { transform: scale(.9); }

.mt-header .wp-block-navigation a { position: relative; }
.mt-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
	background: var(--wp--preset--color--primary);
	transform: scaleX(0); transform-origin: right; transition: transform .35s var(--mt-ease);
}
.mt-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.mt-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); transform-origin: left; }
.mt-header .wp-block-navigation__submenu-container { border-radius: var(--mt-radius-md); padding: 8px !important; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); border: 0 !important; }
.mt-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }
.mt-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.mt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: var(--wp--preset--font-size--x-large); gap: 14px; }

@media (max-width: 781px) {
	.mt-hide-mobile { display: none !important; }
}
@media (min-width: 782px) {
	.mt-hide-desktop { display: none !important; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.wp-block-button__link { transition: background-color .3s var(--mt-ease), color .3s var(--mt-ease), transform .3s var(--mt-ease), box-shadow .3s var(--mt-ease); }
.wp-block-button__link:active { transform: translateY(1px); }

/* "Arrow" style: label + circular arrow badge (Towmate pill / Solaris square) */
.wp-block-button.is-style-arrow .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 14px;
	padding: 8px 8px 8px 24px;
}
.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: ""; flex: none; width: 40px; height: 40px; border-radius: 999px;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: transform .4s var(--mt-ease), background-color .3s;
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after { transform: translateX(4px) rotate(-45deg); }
.wp-block-button.is-style-arrow .wp-block-button__link.has-primary-background-color::after { background-color: var(--wp--preset--color--contrast); }
.wp-block-button.is-style-arrow .wp-block-button__link.has-base-background-color::after { background-color: var(--wp--preset--color--primary); }

/* Phone style: phone glyph before label */
.wp-block-button.is-style-phone .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; }
.wp-block-button.is-style-phone .wp-block-button__link::before {
	content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%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'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wp-block-button.is-style-outline .wp-block-button__link { border-width: 1.5px; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.has-contrast-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover,
.mt-on-dark .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--wp--preset--color--contrast); }

/* ==========================================================================
   Eyebrow / pill labels (Solaris "/ About" + Towmate small labels)
   ========================================================================== */
.is-style-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600; letter-spacing: .02em;
	color: var(--wp--preset--color--muted);
}
.is-style-eyebrow::before {
	content: ""; width: 8px; height: 8px; border-radius: 2px;
	background: var(--wp--preset--color--primary);
	transform: rotate(45deg);
}
.has-text-align-center.is-style-eyebrow { justify-content: center; display: flex; }
.mt-on-dark .is-style-eyebrow, .has-contrast-background-color .is-style-eyebrow { color: rgba(255,255,255,.7); }

.is-style-pill {
	display: inline-flex !important; align-items: center; gap: 8px; width: fit-content;
	padding: 6px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	font-size: var(--wp--preset--font-size--small); font-weight: 500;
}
.is-style-pill.has-text-align-center { display: flex !important; justify-content: center; margin-inline: auto !important; }
.is-style-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: mt-pulse 2s infinite; }
@keyframes mt-pulse { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ==========================================================================
   Cards (Towmate grey cards / Solaris bento)
   ========================================================================== */
.is-style-card {
	background: var(--wp--preset--color--surface);
	border-radius: var(--mt-radius-lg);
	transition: transform .5s var(--mt-ease), box-shadow .5s var(--mt-ease), background-color .3s;
}
.is-style-card-outline {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--mt-radius-lg);
	transition: transform .5s var(--mt-ease), box-shadow .5s var(--mt-ease), border-color .3s;
}
.is-style-card-dark {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	border-radius: var(--mt-radius-lg);
}
.is-style-card-dark :where(h1,h2,h3,h4,h5,h6) { color: inherit; }
.is-style-bento-frame {
	background: var(--wp--preset--color--surface);
	border-radius: calc(var(--mt-radius-lg) + 8px);
	padding: 8px !important;
}
.is-style-bento-frame > * { border-radius: var(--mt-radius-lg); }

.mt-hover-lift:hover,
.is-style-card.mt-hover-lift:hover,
.is-style-card-outline.mt-hover-lift:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(17,17,17,.35); }
.is-style-card-outline.mt-hover-lift:hover { border-color: transparent; }

.wp-block-image.is-style-rounded-lg img,
.is-style-rounded-lg img { border-radius: var(--mt-radius-lg); }
.wp-block-cover.is-style-rounded-lg { border-radius: var(--mt-radius-lg); overflow: hidden; }

/* Image zoom on hover inside cards */
.mt-zoom { overflow: hidden; }
.mt-zoom img { transition: transform 1s var(--mt-ease); }
.mt-zoom:hover img, .mt-hover-lift:hover .mt-zoom img { transform: scale(1.06); }

/* Icon chips */
.mt-icon { width: 48px; margin: 0 !important; }
.mt-icon img { width: 48px; height: 48px; object-fit: contain; }

/* ==========================================================================
   Lists
   ========================================================================== */
.wp-block-list.is-style-checks { list-style: none; padding-left: 0; }
.wp-block-list.is-style-checks li { position: relative; padding-left: 30px; margin-block: .55em; }
.wp-block-list.is-style-checks li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.wp-block-list.is-style-checks.is-inline { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.wp-block-list.is-style-checks.is-inline li { margin: 0; }

/* Towmate service rows: big text with a "+" badge, divider lines */
.wp-block-list.is-style-plus-rows { list-style: none; padding-left: 0; margin: 0; border-top: 1px solid var(--wp--preset--color--border); }
.wp-block-list.is-style-plus-rows li {
	position: relative; display: block;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large); letter-spacing: -.03em; line-height: 1.15;
}
.wp-block-list.is-style-plus-rows li > a,
.wp-block-list.is-style-plus-rows li:not(:has(a)) { display: block; padding: 22px 64px 22px 0; color: inherit; text-decoration: none; transition: padding .45s var(--mt-ease), color .3s; }
.wp-block-list.is-style-plus-rows li::after {
	content: ""; position: absolute; right: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: transform .45s var(--mt-ease), background-color .3s; pointer-events: none;
}
.wp-block-list.is-style-plus-rows li:hover > a,
.wp-block-list.is-style-plus-rows li:not(:has(a)):hover { padding-left: 14px; color: var(--wp--preset--color--primary); }
.wp-block-list.is-style-plus-rows li:hover::after { transform: rotate(90deg); background-color: var(--wp--preset--color--contrast); }

/* Numbered area list (Solaris service areas) */
.wp-block-list.is-style-area-rows { list-style: none; padding: 0; margin: 0; counter-reset: area; }
.wp-block-list.is-style-area-rows li {
	counter-increment: area; position: relative; display: block;
	padding: 16px 44px 16px 4px; border-bottom: 1px solid var(--wp--preset--color--border);
	transition: padding .4s var(--mt-ease), background-color .3s;
}
.wp-block-list.is-style-area-rows li::after { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); content: counter(area, decimal-leading-zero); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); font-variant-numeric: tabular-nums; }
.wp-block-list.is-style-area-rows li:hover { padding-left: 14px; background: var(--wp--preset--color--base); }
.wp-block-list.is-style-area-rows li a { color: inherit; text-decoration: none; }
.wp-block-list.is-style-area-rows li:last-child { border-bottom: 0; }

/* ==========================================================================
   Steps strip (Towmate yellow strip -> MyTow red)
   ========================================================================== */
.mt-steps p { margin: 0; white-space: nowrap; }
.mt-step-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--wp--preset--color--contrast); color: #fff; font-weight: 600; margin-right: 8px; }
.mt-steps .mt-arrow { opacity: .7; }

/* ==========================================================================
   Marquee (Solaris brand strip)
   ========================================================================== */
.is-style-marquee { overflow: hidden; flex-wrap: nowrap !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.is-style-marquee > * { flex: none; white-space: nowrap; }
.mt-marquee-track { display: flex; flex: none; gap: inherit; align-items: center; width: max-content; animation: mt-marquee var(--mt-marquee-speed, 38s) linear infinite; }
.mt-marquee-track > * { flex: none; white-space: nowrap; margin: 0 !important; }
.is-style-marquee:hover .mt-marquee-track { animation-play-state: paused; }
@keyframes mt-marquee { to { transform: translateX(calc(-50% - var(--mt-marquee-gap, 24px) / 2)); } }
@media (prefers-reduced-motion: reduce) { .mt-marquee-track { animation: none; } .is-style-marquee { flex-wrap: wrap !important; -webkit-mask-image: none; mask-image: none; } }
.mt-chip { display: inline-flex; align-items: center; gap: 10px; }
.mt-chip::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--wp--preset--color--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23d7141e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ==========================================================================
   Carousel (testimonials)
   ========================================================================== */
.is-style-carousel {
	display: grid !important; grid-auto-flow: column; grid-auto-columns: min(88%, 520px);
	gap: var(--wp--preset--spacing--40) !important;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.is-style-carousel::-webkit-scrollbar { display: none; }
.is-style-carousel > * { scroll-snap-align: start; margin: 0 !important; }
.mt-carousel-nav .wp-block-button__link { width: 52px; height: 52px; padding: 0 !important; display: grid; place-items: center; font-size: 0 !important; }
.mt-carousel-nav .wp-block-button__link::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.mt-carousel-nav .mt-prev .wp-block-button__link::before { transform: scaleX(-1); }
.mt-stars { color: #f5a524; letter-spacing: 2px; }
.mt-quote-mark { font-family: Georgia, serif; font-size: 64px; line-height: .6; color: var(--wp--preset--color--primary); }

/* ==========================================================================
   Stats
   ========================================================================== */
.mt-stat-value, .wp-block-mytow-counter { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   FAQ (core/details)
   ========================================================================== */
.wp-block-details.is-style-faq {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-block: 6px;
}
.wp-block-details.is-style-faq summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 18px 56px 18px 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large); font-weight: 500; letter-spacing: -.02em;
}
.wp-block-details.is-style-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-faq summary::after {
	content: ""; position: absolute; right: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
	background: var(--wp--preset--color--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: transform .4s var(--mt-ease), background-color .3s;
}
.wp-block-details.is-style-faq[open] summary::after { transform: rotate(45deg); background-color: var(--wp--preset--color--primary-soft); }
.wp-block-details.is-style-faq > :not(summary) { color: var(--wp--preset--color--muted); margin-top: 0; padding-right: 48px; }
.wp-block-details.is-style-faq::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--mt-ease), content-visibility .45s allow-discrete; }
.wp-block-details.is-style-faq[open]::details-content { block-size: auto; }
.is-style-card .wp-block-details.is-style-faq:last-child, .wp-block-details.is-style-faq.is-last { border-bottom: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.mt-hero { isolation: isolate; }
.mt-hero .wp-block-cover__image-background { transform: scale(1.08); transition: transform 1.8s var(--mt-ease); }
.mt-hero.is-in-view .wp-block-cover__image-background,
.mt-loaded .mt-hero .wp-block-cover__image-background { transform: scale(1); }
.mt-hero h1 { text-wrap: balance; }
.mt-hero-sub { text-wrap: pretty; }

.mt-scroll-cue { display: inline-block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; position: relative; }
.mt-scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: mt-cue 1.8s var(--mt-ease) infinite; }
@keyframes mt-cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Page hero */
.mt-page-hero .wp-block-post-title, .mt-page-hero h1 { text-wrap: balance; }

/* ==========================================================================
   Process steps
   ========================================================================== */
.mt-step-num {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: var(--wp--preset--color--primary); color: #fff; font-weight: 700; font-size: 15px;
}
.mt-process-line { position: relative; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.mt-price { font-family: var(--wp--preset--font-family--heading); letter-spacing: -.04em; line-height: 1; }
.mt-price small, .mt-price sub { font-size: .38em; letter-spacing: 0; color: var(--wp--preset--color--muted); font-weight: 500; }
.mt-featured { position: relative; }
.mt-badge { display: inline-block; width: fit-content; padding: 4px 12px; border-radius: 999px; background: var(--wp--preset--color--primary); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ==========================================================================
   Footer
   ========================================================================== */
.mt-footer a { color: inherit; text-decoration: none; transition: color .25s, opacity .25s; }
.mt-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mt-footer .wp-block-navigation .wp-block-navigation-item { margin: 0; }
.mt-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mt-footer-links li { margin: 0; }
.mt-wordmark { font-size: clamp(4rem, 17vw, 15rem); line-height: .8 !important; letter-spacing: -.06em !important; font-weight: 800 !important; color: rgba(255,255,255,.06) !important; user-select: none; white-space: nowrap; overflow: hidden; }

/* Floating call button (mobile) */
.mt-fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; transform: translateY(120%); transition: transform .5s var(--mt-ease); }
.mt-scrolled .mt-fab { transform: none; }
.mt-fab .wp-block-button__link { box-shadow: 0 16px 30px -10px rgba(215,20,30,.6); }
@media (min-width: 782px) { .mt-fab { display: none; } }

/* ==========================================================================
   Blog / Resources
   ========================================================================== */
.wp-block-post-template .wp-block-post { transition: transform .5s var(--mt-ease); }
.wp-block-post-featured-image { overflow: hidden; }
.wp-block-post-featured-image img { transition: transform 1s var(--mt-ease); }
.wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.wp-block-post-terms a { text-decoration: none; }

/* Forms (plugin forms inherit theme look) */
:where(.wpforms-container, .fluentform, .wp-block-jetpack-contact-form, .wpcf7) :where(input[type=text], input[type=email], input[type=tel], input[type=url], textarea, select) {
	width: 100%; padding: 14px 16px; border: 1px solid var(--wp--preset--color--border); border-radius: 12px;
	background: var(--wp--preset--color--base); font: inherit; color: inherit; transition: border-color .2s, box-shadow .2s;
}
:where(.wpforms-container, .fluentform, .wp-block-jetpack-contact-form, .wpcf7) :where(input, textarea, select):focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 4px var(--wp--preset--color--primary-soft); }
:where(.wpforms-container, .fluentform, .wpcf7) :where(button[type=submit], input[type=submit]) {
	background: var(--wp--preset--color--contrast); color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; font-weight: 600; cursor: pointer; transition: background-color .3s;
}
:where(.wpforms-container, .fluentform, .wpcf7) :where(button[type=submit], input[type=submit]):hover { background: var(--wp--preset--color--primary); }

/* Dark helper */
.mt-on-dark { color: #fff; }
.mt-muted-light { color: rgba(255,255,255,.72); }

/* Utility */
.mt-nowrap { white-space: nowrap; }
.mt-balance { text-wrap: balance; }
.mt-sticky { position: sticky !important; top: calc(var(--mt-header-h) + 24px); align-self: flex-start; }
@media (max-width: 781px) { .mt-sticky { position: relative !important; top: 0; } }
.mt-full-h, .mt-full-h > .wp-block-image, .mt-full-h img { height: 100%; }
.mt-full-h img { object-fit: cover; }
.mt-hero .is-style-checks.is-inline { justify-content: center; }
.mt-topbar { transition: margin-top .4s var(--mt-ease); }

/* ==========================================================================
   Services cards (Towmate /services block)
   ========================================================================== */
.mt-svc-card { border-radius: var(--mt-radius-md); transition: transform .5s var(--mt-ease), box-shadow .5s var(--mt-ease); }
.mt-svc-card > .mt-svc-body { flex: 1 1 auto; }
.mt-svc-card h3 a { text-decoration: none; color: inherit; }
.mt-icon.mt-icon-lg, .mt-icon.mt-icon-lg img { width: 56px; height: 56px; }
.mt-explore { margin-top: auto !important; }
.mt-explore a { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; text-decoration: none; color: var(--wp--preset--color--contrast); }
.mt-explore a::after {
	content: ""; width: 32px; height: 32px; border-radius: 50%; flex: none;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat;
	transition: transform .4s var(--mt-ease);
}
.mt-explore a:hover { color: var(--wp--preset--color--primary); }
.mt-svc-card:hover .mt-explore a::after, .mt-explore a:hover::after { transform: translateX(4px); }
.mt-checks-2col { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
.mt-justify-end { justify-content: flex-end; }
@media (max-width: 781px) { .mt-justify-end { justify-content: flex-start; } }

/* ==========================================================================
   Responsive pass: tablet and phone
   ========================================================================== */
@media (max-width: 1024px) {
	.mt-header .wp-block-navigation { --nav-gap: 18px; }
	.mt-header .wp-block-navigation .wp-block-navigation__container { gap: 18px !important; }
}

@media (max-width: 781px) {
	:root { --mt-header-h: 64px; }
	body { font-size: 1rem; }

	/* Header */
	.mt-topbar { font-size: 12px !important; padding-block: 6px !important; }
	.mt-topbar .wp-block-group { justify-content: center !important; }
	.mt-header { padding-block: 10px !important; }
	.mt-header .wp-block-site-logo img, .mt-header .mt-logo img { width: 84px !important; height: auto; }
	.mt-header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.1); }
	.mt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 1.5rem; }
	.mt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { font-size: 1.0625rem; padding-left: 12px !important; }

	/* Headings and text never overflow */
	h1, h2, h3, .wp-block-heading { overflow-wrap: anywhere; hyphens: manual; }
	.has-colossal-font-size, .has-gigantic-font-size { letter-spacing: -0.035em !important; }
	.mt-hero { min-height: 82svh !important; }
	.mt-hero .is-style-checks.is-inline { gap: 6px 18px; justify-content: flex-start; max-width: 340px; margin-inline: auto !important; }

	/* Buttons stretch to a comfortable tap target */
	.wp-block-buttons > .wp-block-button { flex: 1 1 auto; }
	.wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; justify-content: center; text-align: center; min-height: 48px; }
	.wp-block-button.is-style-arrow .wp-block-button__link { justify-content: space-between; }
	.mt-carousel-nav > .wp-block-button { flex: 0 0 auto; }
	.mt-carousel-nav .wp-block-button__link { width: 48px !important; }
	.mt-fab .wp-block-button { flex: none; }
	.mt-header .wp-block-buttons > .wp-block-button { flex: none; }

	/* Cards and grids */
	.is-style-card, .is-style-card-outline, .is-style-card-dark, .mt-svc-card { border-radius: 18px; }
	.mt-checks-2col { grid-template-columns: 1fr 1fr; }

	/* Service rows (+) */
	.wp-block-list.is-style-plus-rows li { font-size: 1.5rem; }
	.wp-block-list.is-style-plus-rows li > a, .wp-block-list.is-style-plus-rows li:not(:has(a)) { padding: 18px 56px 18px 0; }
	.wp-block-list.is-style-plus-rows li::after { width: 36px; height: 36px; margin-top: -18px; }

	/* Photo cards with the "mt-cover-compact" class get shorter on phones */
	.wp-block-cover.mt-cover-compact { min-height: 340px !important; }
	.mt-sticky .wp-block-cover.mt-cover-compact { min-height: 420px !important; }

	/* Steps strip */
	.mt-steps { padding-block: 12px !important; }

	/* Carousel */
	.is-style-carousel { grid-auto-columns: 86%; gap: 14px !important; margin-inline: calc(var(--wp--style--root--padding-left, 1rem) * -1) !important; padding-inline: var(--wp--style--root--padding-left, 1rem); scroll-padding-inline: var(--wp--style--root--padding-left, 1rem); }

	/* FAQ */
	.wp-block-details.is-style-faq summary { font-size: 1.0625rem; padding: 16px 48px 16px 0; }
	.wp-block-details.is-style-faq > :not(summary) { padding-right: 0; font-size: .9375rem; }

	/* Area rows */
	.wp-block-list.is-style-area-rows li { padding: 13px 40px 13px 2px; font-size: .9375rem; }

	/* CTA red card */
	.mt-full-h, .mt-full-h > .wp-block-image, .mt-full-h img { height: auto; }
	.mt-full-h img { aspect-ratio: 4 / 3; }

	/* Footer */
	.mt-footer .wp-block-columns { gap: 32px !important; }
	.mt-footer .wp-block-column:not(:first-child) { flex-basis: calc(50% - 16px) !important; }
	.mt-wordmark { font-size: 26vw; }

	/* Leave room for the floating call button */
	.mt-footer { padding-bottom: 88px !important; }
}

@media (max-width: 781px) {
	.mt-footer .wp-block-columns { flex-wrap: wrap !important; flex-direction: row !important; }
	.mt-footer .wp-block-column:first-child { flex-basis: 100% !important; }
}

@media (max-width: 400px) {
	.mt-topbar p:not(:first-child) { display: none; }
	.mt-checks-2col { grid-template-columns: 1fr; }
	.wp-block-buttons { flex-direction: column; align-items: stretch !important; }
	.mt-carousel-nav { flex-direction: row !important; }
	.mt-header .wp-block-buttons, .mt-fab { flex-direction: row; }
}

/* ==========================================================================
   Header: hamburger until the full menu fits on one line
   ========================================================================== */
.mt-header .wp-block-button__link { white-space: nowrap; }
@media (max-width: 1180px) {
	.mt-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: grid !important; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: rgba(255,255,255,.1); }
	.mt-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.mt-header .wp-block-navigation { order: 3; }
	.mt-header .wp-block-buttons { margin-left: auto; }
	.mt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 1.5rem; }
}

/* Card and row titles are links without underlines */
.wp-block-heading a, .wp-block-post-title a { text-decoration: none; }

/* Stat cards sit two by two below desktop */
@media (max-width: 1024px) {
	.wp-block-columns.mt-stats { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
	.wp-block-columns.mt-stats > .wp-block-column { min-width: 0; }
}

@media (max-width: 781px) {
	.wp-block-columns.mt-stats > .wp-block-column { padding: 18px !important; }
	.wp-block-columns.mt-stats .wp-block-mytow-counter { margin-top: 18px !important; }
	.is-style-pill { padding: 6px 12px; text-align: center; }
	.mt-fab { right: 12px; bottom: 12px; }
	.mt-fab .wp-block-button__link { min-height: 44px; padding: 10px 18px; }
}

/* Eyebrows stay readable on photo covers */
.wp-block-cover .is-style-eyebrow { color: rgba(255,255,255,.82); }

/* Area numbering runs on across both columns */
.wp-block-columns:has(.is-style-area-rows) { counter-reset: area; }
.wp-block-columns .wp-block-column > .wp-block-list.is-style-area-rows { counter-reset: none; }

.mt-footer h3 + .mt-footer-links { margin-top: 14px; }

.mt-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; }

/* Floating call button is for phones only (core flex layout would otherwise show it) */
@media (min-width: 782px) { .wp-block-buttons.mt-fab { display: none !important; } }

/* ==========================================================================
   Card layouts (Group block > Styles > "Cards: ...")
   Equal widths and heights, and no card left alone on a row.
   ========================================================================== */
.wp-block-group.is-style-cards-3,
.wp-block-group.is-style-cards-4,
.wp-block-group.is-style-cards-6,
.wp-block-post-template.mt-cards-3.mt-cards-3 { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
	.wp-block-group.is-style-cards-4,
	.wp-block-group.is-style-cards-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
}
@media (min-width: 880px) {
	.wp-block-group.is-style-cards-3,
	.wp-block-post-template.mt-cards-3.mt-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; }
}
@media (min-width: 1024px) {
	.wp-block-group.is-style-cards-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
	.wp-block-group.is-style-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Titles and intros reserve two lines so prices and lists start level */
@media (min-width: 600px) {
	.is-style-cards-4 .mt-card-title { min-height: 2.4em; }
	.is-style-cards-4 .mt-card-desc { min-height: 3.2em; }
}
/* Buttons and links sit on the bottom edge of every card */
[class*="is-style-card"] > .wp-block-buttons:last-child,
[class*="is-style-card"] > .mt-card-foot:last-child { margin-top: auto; }
/* The badge floats on the card edge so it never pushes the content down */
[class*="is-style-card"]:has(> .mt-badge) { position: relative; }
[class*="is-style-card"] > .mt-badge { position: absolute; top: 0; left: var(--wp--preset--spacing--40); translate: 0 -50%; margin: 0; }
/* An odd card at two across spans the row instead of sitting alone */
@media (min-width: 600px) and (max-width: 1023px) {
	.wp-block-group.is-style-cards-6 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 880px) and (max-width: 1199px) {
	.is-style-cards-3 .mt-card-title { min-height: 2.4em; }
}
/* Keep faces in frame on the banner under the step cards (a focal point set in the editor wins) */
.is-style-cards-3 + .wp-block-cover .wp-block-cover__image-background { object-position: 50% 20%; }
