/*
Theme Name: MT Phone Fix
Theme URI: https://mtphonefix.com
Author: SparkForge
Description: Custom block theme for MT Phone Fix, Albany NY — phones & accessories store. Activating it creates every page (home, product pages, services, about, contact, policies) ready to edit.
Version: 1.8.1
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: mtphonefix
*/

/* ---------- base */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; border-radius: 6px; }
.mt-main { padding-bottom: 0; }

/* ---------- header */
.mt-header { position: sticky; top: 0; z-index: 50; background: #fff; /* no backdrop-filter: it would trap the full-screen mobile menu inside the header */ border-bottom: 1px solid var(--wp--preset--color--line); padding-top: 12px; padding-bottom: 12px; }
.admin-bar .mt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mt-header { top: 46px; } }
.mt-header-in { gap: 18px; max-width: 1280px !important; }
.mt-logo { flex: none; margin: 0; }
.mt-logo img { height: 46px; width: auto !important; }
.mt-nav { margin-left: auto; }
.mt-nav .wp-block-navigation-item__content { padding: 8px 10px; border-radius: 10px; color: var(--wp--preset--color--ink-2); white-space: nowrap; }
.mt-nav .wp-block-navigation-item__content:hover { background: #eff6ff; color: var(--wp--preset--color--blue); }
.mt-nav .current-menu-item > .wp-block-navigation-item__content,
.mt-nav .wp-block-navigation-item__content[aria-current="page"] { background: #eff6ff; color: var(--wp--preset--color--blue); }
.mt-nav .wp-block-navigation__container { gap: 2px; }
.mt-header-cta { gap: 10px; flex: none; }
.mt-header-cta p { margin: 0; }
.mt-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; background: var(--wp--preset--color--bg-alt); color: var(--wp--preset--color--ink-2); white-space: nowrap; }
.mt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--muted); }
.mt-pill.is-open .mt-dot { background: var(--wp--preset--color--green); box-shadow: 0 0 0 3px rgb(22 163 74 / .18); }
.mt-call .wp-block-button__link { padding: 10px 16px; font-size: .97rem; white-space: nowrap; }
.mt-call .wp-block-button__link::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; background: currentColor; -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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 1399px) { .mt-header .mt-pill { display: none; } }
@media (max-width: 1179px) { .mt-header-in { justify-content: flex-start !important; } .mt-header-cta { order: 2; margin-left: auto !important; } .mt-nav { order: 3; margin-left: 0; } }
@media (max-width: 599px) { .mt-header-cta { display: none !important; } .mt-logo img { height: 40px; } }
/* Mobile menu panel */
.mt-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.mt-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.mt-nav .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
.mt-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; font-weight: 600; padding: 12px 0; }
/* Switch to the menu button below 1180px (core default is 600px) */
@media (min-width: 600px) and (max-width: 1179px) {
	.mt-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.mt-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* ---------- sections */
.mt-hero { background: var(--wp--preset--color--bg-alt); padding-top: clamp(40px, 7vw, 76px); padding-bottom: clamp(44px, 7vw, 84px); }
.mt-hero-slim { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(28px, 4vw, 40px); }
.mt-hero h1 { margin-top: .2em; margin-bottom: .45em; text-wrap: balance; }
.mt-eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--wp--preset--color--blue); margin-bottom: 0; }
.mt-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--ink-2); }
.mt-sec { padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px); }
.mt-sec-tight { padding-top: clamp(28px, 4vw, 40px); padding-bottom: clamp(40px, 6vw, 64px); }
.mt-alt { background: var(--wp--preset--color--bg-alt); }
.mt-sec > h2:first-child, .mt-sec > .wp-block-heading:first-child { margin-top: 0; }
.mt-small, .mt-small p { font-size: .9rem; color: var(--wp--preset--color--muted); }
.mt-updated { color: var(--wp--preset--color--muted); font-size: .9rem; margin: 0; }

/* hero with store card */
.mt-hero-cols { gap: 56px !important; align-items: center !important; }
.mt-hero-cols > .wp-block-column:first-child { flex: 1 1 0 !important; min-width: 0; }
.mt-hero-cols > .wp-block-column:last-child { flex: 0 0 340px !important; }
.mt-hero-cols h1 { max-width: 16ch; }
.mt-hero-cols .mt-lead { max-width: 62ch; }
.mt-store-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius-lg); box-shadow: var(--wp--custom--shadow); padding: 24px; }
.mt-store-card > * { margin-top: 0 !important; margin-bottom: .6rem !important; }
.mt-store-card .mt-pill { background: transparent; padding: 0; font-weight: 600; font-size: .98rem; color: var(--wp--preset--color--ink-2); }
.mt-store-card .mt-pill.is-open { color: var(--wp--preset--color--green); }
.mt-store-address { line-height: 1.6; }
.mt-store-address strong { font-size: 1.12rem; font-weight: 800; }
.mt-store-reviews { font-weight: 600; }
.mt-stars-inline { color: #f59e0b; letter-spacing: 1px; }
.mt-store-btn { margin-top: 1rem !important; }
.mt-store-btn .wp-block-button { width: 100%; }
.mt-store-btn .wp-block-button__link { width: 100%; }
@media (max-width: 781px) { .mt-hero-cols > .wp-block-column:last-child { display: none; } }

/* ---------- buttons */
.mt-cta { margin-top: 1.6rem !important; gap: 10px; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); border: 1.5px solid #cbd5e1; padding: 11.5px 20.5px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--wp--preset--color--ink); background: #fff; }
.wp-block-button__link { transition: background .15s, border-color .15s; }

/* ---------- chips */
.mt-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin-top: 1.3rem !important; }
.mt-chips li { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: 6px 14px 6px 12px; font-size: .92rem; font-weight: 500; color: var(--wp--preset--color--ink-2); margin: 0; }
.mt-chips li::before { content: "✓"; color: var(--wp--preset--color--green); font-weight: 800; margin-right: 6px; }
.mt-chips-links li { padding: 0; }
.mt-chips-links li::before { content: none; }
.mt-chips-links a { display: block; padding: 8px 16px; text-decoration: none; color: var(--wp--preset--color--ink); font-weight: 600; }
.mt-chips-links a:hover { color: var(--wp--preset--color--blue); }

/* ---------- cards & tiles (columns wrap into a responsive grid) */
.mt-cards, .mt-tiles, .mt-reviews { display: grid !important; gap: 16px !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mt-tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.mt-reviews { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.mt-cards-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 380px) { .mt-cards-3 { grid-template-columns: 1fr; } }
.mt-cards > .wp-block-column, .mt-tiles > .wp-block-column, .mt-reviews > .wp-block-column { flex: none !important; width: auto !important; margin: 0 !important; }
.mt-card, .mt-tile, .mt-review { height: 100%; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); padding: 22px; transition: border-color .15s, box-shadow .15s; }
.mt-card > *, .mt-tile > *, .mt-review > * { margin-top: 0; margin-bottom: .5rem; }
.mt-card:hover, .mt-tile:hover { border-color: var(--wp--preset--color--blue); box-shadow: var(--wp--custom--shadow); }
.mt-card-label { font-size: .75rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--blue); }
.mt-card h3 { font-size: 1.15rem; }
.mt-card p:not(.mt-card-label):not(.mt-card-link) { color: var(--wp--preset--color--ink-2); font-size: .97rem; }
.mt-card-link { margin-top: auto; font-weight: 600; }
.mt-card-link a { text-decoration: none; }
.mt-tile { position: relative; }
.mt-tile h3 { font-size: 1.2rem; }
.mt-tile h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.mt-tile h3 a::after { content: ""; position: absolute; inset: 0; } /* whole tile clickable */
.mt-tile h3 a::before { content: "→"; position: absolute; right: 20px; bottom: 18px; color: var(--wp--preset--color--blue); font-weight: 800; }
.mt-tile p { color: var(--wp--preset--color--muted); padding-right: 22px; }
.mt-stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: .3rem !important; }
.mt-quote { font-size: 1.02rem; }

/* ---------- FAQ */
.mt-faq { border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); background: #fff; padding: 0; margin-top: 10px !important; }
.mt-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.mt-faq summary::-webkit-details-marker { display: none; }
.mt-faq summary::after { content: "+"; font-weight: 800; color: var(--wp--preset--color--blue); }
.mt-faq[open] summary::after { content: "–"; }
.mt-faq > p { padding: 0 20px 16px; margin: 0; color: var(--wp--preset--color--ink-2); }

/* ---------- lists in content */
.mt-steps { padding-left: 1.3em; }
.mt-steps li { margin-bottom: .5em; }
.mt-prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.mt-prose li { margin-bottom: .4em; }

/* ---------- visit */
.mt-visit-cols { gap: 40px !important; }
.mt-hours { border-collapse: collapse; width: 100%; max-width: 420px; margin: .5rem 0; }
.mt-hours th, .mt-hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--wp--preset--color--line); font-weight: 500; }
.mt-hours td { text-align: right; color: var(--wp--preset--color--ink-2); }
.mt-hours .is-today th, .mt-hours .is-today td { font-weight: 800; color: var(--wp--preset--color--ink); }
.mt-map { border-radius: var(--wp--custom--radius-lg); overflow: hidden; border: 1px solid var(--wp--preset--color--line); background: #e5e7eb; min-height: 360px; height: 100%; }
.mt-map iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }

/* ---------- footer */
.mt-footer { background: var(--wp--preset--color--ink); color: #cbd5e1; padding-top: 56px; padding-bottom: 24px; }
.mt-footer a { color: #e2e8f0; text-decoration: none; }
.mt-footer a:hover { color: #fff; text-decoration: underline; }
.mt-footer-cols { gap: 32px !important; }
.mt-footer-logo img { background: #fff; border-radius: 10px; padding: 6px 10px; height: 52px; width: auto !important; }
.mt-footer .mt-small { color: #94a3b8; }
.mt-footer-h { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .1em; color: #94a3b8 !important; font-weight: 700 !important; margin-bottom: 12px; }
.mt-footer-list { list-style: none; padding: 0 !important; margin: 0; }
.mt-footer-list li { margin-bottom: 8px; }
.mt-footer-address { line-height: 2; }
.mt-footer-bottom { border-top: 1px solid #1e293b; margin-top: 40px !important; padding-top: 20px; font-size: .875rem; color: #94a3b8; }
.mt-footer-bottom p { margin: 0; }

/* ---------- mobile quick-action bar */
.mt-mbar { position: fixed; inset: auto 0 0 0; z-index: 60; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--wp--preset--color--line); box-shadow: 0 -6px 20px rgb(15 23 42 / .08); }
.mt-mbar a { flex: 1; display: grid; place-items: center; min-height: 48px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.mt-mbar-call { background: var(--wp--preset--color--red); color: #fff; }
.mt-mbar-wa { background: var(--wp--preset--color--green); color: #fff; }
.mt-mbar-dir { border: 1.5px solid #cbd5e1; color: var(--wp--preset--color--ink); }
body { padding-bottom: 72px; }
@media (min-width: 900px) { .mt-mbar { display: none; } body { padding-bottom: 0; } }
.has-modal-open .mt-mbar { display: none; } /* hide the quick-action bar while the mobile menu is open */

/* ---------- photos (v1.2) */
/* Page header: the page's Featured image, with a light wash so the text stays readable */
.mt-has-hero-photo .mt-hero { position: relative; isolation: isolate; overflow: hidden; }
.mt-has-hero-photo .mt-hero::before,
.mt-has-hero-photo .mt-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mt-has-hero-photo .mt-hero::before { background: var(--mt-hero-img) center / cover no-repeat; }
.mt-has-hero-photo .mt-hero::after { background: linear-gradient(90deg, rgb(241 245 253 / .96) 0%, rgb(241 245 253 / .9) 42%, rgb(241 245 253 / .55) 70%, rgb(241 245 253 / .3) 100%); }
@media (max-width: 781px) { .mt-has-hero-photo .mt-hero::after { background: rgb(241 245 253 / .9); } }

/* Photo at the top of a card */
.mt-card { overflow: hidden; }
.mt-card > .mt-card-img { margin: -22px -22px 16px !important; }
.mt-card-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Photos beside text */
.mt-split { gap: 48px !important; align-items: center !important; }
.mt-photo { margin: 0; }
.mt-photo img { display: block; width: 100%; border-radius: var(--wp--custom--radius-lg); box-shadow: var(--wp--custom--shadow); object-fit: cover; }
.mt-photo-tall img { aspect-ratio: 4 / 5; max-height: 560px; }
.mt-photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--wp--preset--color--muted); text-align: left; }
.mt-prose .mt-photo { margin-bottom: 2rem; }

/* ---------- red buttons (v1.3): brand red from the logo; "Blue" style available in the editor */
.wp-block-button.is-style-blue > .wp-block-button__link { background: var(--wp--preset--color--blue); color: #fff; }
.wp-block-button.is-style-blue > .wp-block-button__link:hover { background: var(--wp--preset--color--blue-dark); }
.wp-block-button__link { box-shadow: 0 6px 16px -8px rgb(220 38 38 / .55); }
.wp-block-button.is-style-outline > .wp-block-button__link, .wp-block-button.is-style-blue > .wp-block-button__link { box-shadow: none; }

/* ---------- home header slider */
.mt-has-slider .mt-hero::before { display: none; }
.mt-slides { position: absolute; inset: 0; z-index: -1; max-width: none !important; margin: 0 !important; } /* escape the layout's content width */
.mt-slide { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.mt-slide.is-active { opacity: 1; }
.mt-slider-dots { position: absolute; z-index: 2; max-width: none !important; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; margin: 0 !important; }
.mt-dot-btn { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgb(15 23 42 / .28); cursor: pointer; transition: width .3s, background .3s; }
.mt-dot-btn.is-active { width: 26px; background: var(--wp--preset--color--red); }
.mt-dot-btn:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mt-slide { transition: none; } }

/* ---------- social icons (footer) */
.mt-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 18px 0 0 !important; }
.mt-social li { margin: 0; }
.mt-social-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgb(255 255 255 / .1); color: #e2e8f0 !important; text-decoration: none !important; transition: background .2s, color .2s, transform .2s; }
.mt-social-link:hover, .mt-social-link:focus-visible { background: var(--mt-brand); color: #fff !important; transform: translateY(-2px); }
.mt-social-snapchat:hover, .mt-social-snapchat:focus-visible { color: #000 !important; }
.mt-social-x:hover, .mt-social-tiktok:hover, .mt-social-threads:hover, .mt-social-x:focus-visible, .mt-social-tiktok:focus-visible, .mt-social-threads:focus-visible { background: #fff; color: #000 !important; }

/* ---------- floating WhatsApp button (phones use the bottom bar instead) */
.mt-wa-float {
	position: fixed; right: 22px; bottom: 22px; z-index: 70;
	display: flex; align-items: center; gap: 10px; height: 60px; min-width: 60px; padding: 0 15px;
	border-radius: 999px; background: #25D366; color: #fff !important; text-decoration: none !important;
	box-shadow: 0 10px 28px -8px rgb(0 0 0 / .45); transition: transform .2s, box-shadow .2s;
}
.mt-wa-float svg { flex: none; }
.mt-wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; transition: max-width .3s ease; }
.mt-wa-float:hover, .mt-wa-float:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgb(0 0 0 / .5); }
.mt-wa-float:hover .mt-wa-label, .mt-wa-float:focus-visible .mt-wa-label { max-width: 180px; }
.mt-wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgb(37 211 102 / .55); animation: mt-wa-pulse 2.6s ease-out 3; pointer-events: none; }
@keyframes mt-wa-pulse { to { box-shadow: 0 0 0 16px rgb(37 211 102 / 0); } }
@media (max-width: 899px) { .mt-wa-float { display: none; } }
@media (min-width: 900px) { .mt-footer-bottom { padding-right: 96px; } }
@media (prefers-reduced-motion: reduce) { .mt-wa-float::after { animation: none; } .mt-wa-float, .mt-wa-label, .mt-social-link { transition: none; } }

/* ---------- v1.6: colourful tiles & cards — each gets its own accent colour */
.mt-tiles > .wp-block-column, .mt-cards > .wp-block-column { --acc: #2563eb; --acc-soft: #eff6ff; }
.mt-tiles > .wp-block-column:nth-child(6n+2), .mt-cards > .wp-block-column:nth-child(6n+2) { --acc: #7c3aed; --acc-soft: #f5f3ff; }
.mt-tiles > .wp-block-column:nth-child(6n+3), .mt-cards > .wp-block-column:nth-child(6n+3) { --acc: #ea580c; --acc-soft: #fff7ed; }
.mt-tiles > .wp-block-column:nth-child(6n+4), .mt-cards > .wp-block-column:nth-child(6n+4) { --acc: #16a34a; --acc-soft: #f0fdf4; }
.mt-tiles > .wp-block-column:nth-child(6n+5), .mt-cards > .wp-block-column:nth-child(6n+5) { --acc: #0891b2; --acc-soft: #ecfeff; }
.mt-tiles > .wp-block-column:nth-child(6n+6), .mt-cards > .wp-block-column:nth-child(6n+6) { --acc: #dc2626; --acc-soft: #fef2f2; }

.mt-card, .mt-tile { position: relative; isolation: isolate; background: #fff; transition: transform .25s ease, border-color .25s, box-shadow .25s, background-color .25s; }
.mt-card::before, .mt-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(150deg, var(--acc-soft, #eff6ff) 0%, rgb(255 255 255 / 0) 75%); opacity: 0; transition: opacity .25s; pointer-events: none; z-index: -1; }
.mt-card > *, .mt-tile > * { position: relative; }
.mt-tile > .wp-block-heading { position: static; } /* keep the whole-tile link and arrow anchored to the tile */
.mt-card:hover, .mt-tile:hover, .mt-tile:focus-within { transform: translateY(-4px); border-color: var(--acc, #2563eb); box-shadow: 0 18px 38px -20px var(--acc, #2563eb), 0 2px 6px rgb(15 23 42 / .05); }
.mt-card:hover::before, .mt-tile:hover::before, .mt-tile:focus-within::before { opacity: 1; }
.mt-card-label { color: var(--acc, #2563eb) !important; }
.mt-tile h3 a::before { color: var(--acc, #2563eb); transition: transform .25s; }
.mt-tile:hover h3 a, .mt-tile:focus-within h3 a { color: var(--acc, #2563eb); }
.mt-tile:hover h3 a::before { transform: translateX(5px); }
.mt-card-link a { color: var(--acc, #2563eb); }
.mt-card-img img { transition: transform .5s ease; }
.mt-card:hover .mt-card-img img { transform: scale(1.05); }

.mt-emoji { display: grid; place-items: center; width: 54px; height: 54px; margin-left: 0 !important; margin-right: auto !important; margin-bottom: 14px !important; border-radius: 16px; background: var(--acc-soft, #eff6ff); font-size: 28px; line-height: 1; box-shadow: inset 0 0 0 1px rgb(15 23 42 / .04); transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .25s; }
.mt-card .mt-emoji, .mt-tile .mt-emoji { font-size: 28px !important; padding: 0 !important; width: 54px !important; }
.mt-card:hover .mt-emoji, .mt-tile:hover .mt-emoji { transform: scale(1.12) rotate(-6deg); background: #fff; box-shadow: 0 8px 18px -8px var(--acc, #2563eb); }
@media (prefers-reduced-motion: reduce) { .mt-card, .mt-tile, .mt-emoji, .mt-card-img img { transition: none; } .mt-card:hover, .mt-tile:hover { transform: none; } .mt-card .mt-emoji, .mt-tile .mt-emoji { font-size: 28px !important; padding: 0 !important; width: 54px !important; }
.mt-card:hover .mt-emoji, .mt-tile:hover .mt-emoji { transform: none; } }

/* ---------- v1.6: product pictures (Gallery block with class mt-products) */
.wp-block-gallery.mt-products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px !important; margin-top: 8px !important; margin-bottom: 30px !important; }
.wp-block-gallery.mt-products:has(> :nth-child(4):last-child), .wp-block-gallery.mt-products:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, 1fr); }
.wp-block-gallery.mt-products > .wp-block-image { width: auto !important; margin: 0 !important; flex-direction: column !important; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.wp-block-gallery.mt-products > .wp-block-image:hover { transform: translateY(-4px); border-color: #cbd5e1; box-shadow: var(--wp--custom--shadow); }
.wp-block-gallery.mt-products > .wp-block-image img { aspect-ratio: 1 / 1; width: 100%; height: auto !important; object-fit: cover; transition: transform .5s ease; }
.wp-block-gallery.mt-products > .wp-block-image:hover img { transform: scale(1.04); }
.wp-block-gallery.mt-products > .wp-block-image figcaption { position: static !important; background: none !important; color: var(--wp--preset--color--ink) !important; text-shadow: none !important; padding: 12px 14px !important; margin: 0 !important; font-size: .95rem !important; font-weight: 600; text-align: left !important; max-height: none !important; overflow: visible !important; }
.wp-block-gallery.mt-products > .wp-block-image::before { display: none !important; } /* core caption gradient */
@media (max-width: 899px) { .wp-block-gallery.mt-products, .wp-block-gallery.mt-products:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 599px) { .wp-block-gallery.mt-products { gap: 10px !important; } .wp-block-gallery.mt-products > .wp-block-image figcaption { font-size: .85rem !important; padding: 9px 10px !important; } }

/* ---------- v1.6: trust badge under the hero buttons */
.mt-trust { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 18px; padding: 9px 16px 9px 12px; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; box-shadow: 0 4px 14px -6px rgb(15 23 42 / .18); color: var(--wp--preset--color--ink-2) !important; text-decoration: none !important; font-size: .95rem; line-height: 1.3; transition: box-shadow .2s, transform .2s; }
.mt-trust:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgb(15 23 42 / .28); }
.mt-trust-stars { color: #f59e0b; letter-spacing: 1px; font-size: 1.05rem; }
.mt-trust-txt strong { color: var(--wp--preset--color--ink); }
.mt-trust + .mt-chips { margin-top: 14px !important; }
.mt-g { flex: none; display: inline-block; vertical-align: -3px; }
@media (max-width: 599px) { .mt-trust { border-radius: 16px; font-size: .9rem; } }

/* ---------- v1.6: reviews section */
.mt-sec-reviews { background: linear-gradient(180deg, #fff 0%, var(--wp--preset--color--bg-alt) 100%); }
.mt-rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.mt-rv-head h2 { margin: .25em 0 0; }
.mt-rv-score { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 18px; box-shadow: var(--wp--custom--shadow); color: var(--wp--preset--color--ink) !important; text-decoration: none !important; }
.mt-rv-num { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.mt-rv-score-txt { display: flex; flex-direction: column; font-size: .9rem; color: var(--wp--preset--color--muted); }
.mt-rv-stars { color: #f59e0b; letter-spacing: 2px; font-size: 1.1rem; line-height: 1.2; }
.mt-rv-stars-off { color: #e2e8f0; }
.mt-rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.mt-rv-card { position: relative; margin: 0; padding: 24px; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius-lg); box-shadow: 0 1px 2px rgb(15 23 42 / .05); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; gap: 10px; }
.mt-rv-card::after { content: "”"; position: absolute; right: 20px; top: 6px; font-size: 5rem; line-height: 1; font-weight: 800; color: #f1f5f9; pointer-events: none; }
.mt-rv-card:hover { transform: translateY(-4px); box-shadow: var(--wp--custom--shadow); }
.mt-rv-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.mt-rv-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: hsl(var(--h) 70% 45%); color: #fff; font-weight: 800; font-size: 1.1rem; }
.mt-rv-who { display: flex; flex-direction: column; line-height: 1.3; }
.mt-rv-who span { font-size: .85rem; color: var(--wp--preset--color--muted); display: inline-flex; align-items: center; gap: 5px; }
.mt-rv-text { margin: 0; padding: 0; border: 0; position: relative; z-index: 1; }
.mt-rv-text p { margin: 0; font-size: 1.02rem; color: var(--wp--preset--color--ink-2); }
.mt-rv-actions { margin-top: 26px; gap: 10px; }
.mt-rv-live { margin-top: 4px; }
@media (max-width: 599px) {
	.mt-rv-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
	.mt-rv-grid::-webkit-scrollbar { display: none; }
	.mt-rv-card { flex: 0 0 84%; scroll-snap-align: center; }
	.mt-rv-num { font-size: 2rem; }
}

/* ---------- v1.6: highlighted review (pull-quote) */
.mt-pq { position: relative; margin: 34px 0 6px; padding: 30px 32px 26px 96px; background: linear-gradient(135deg, #fff7ed 0%, #fff 55%, #eff6ff 100%); border: 1px solid #fde68a; border-left: 6px solid var(--wp--preset--color--red); border-radius: var(--wp--custom--radius-lg); }
.mt-pq-mark { position: absolute; left: 24px; top: 6px; font-size: 6.5rem; line-height: 1; font-weight: 800; color: var(--wp--preset--color--red); opacity: .9; font-family: Georgia, serif; }
.mt-pq-slides { display: grid; }
.mt-pq-slide { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; visibility: hidden; }
.mt-pq-slide.is-active { opacity: 1; transform: none; visibility: visible; }
.mt-pq-dots { display: flex; gap: 8px; margin-top: 16px; }
.mt-pq-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgb(15 23 42 / .2); cursor: pointer; transition: width .3s, background .3s; }
.mt-pq-dot.is-active { width: 24px; background: var(--wp--preset--color--red); }
.mt-pq-dot:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mt-pq-slide { transition: none; transform: none; } }
.mt-pq blockquote { margin: 0; padding: 0; border: 0; }
.mt-pq blockquote p { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 600; line-height: 1.45; color: var(--wp--preset--color--ink); letter-spacing: -.01em; }
.mt-pq figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .95rem; color: var(--wp--preset--color--muted); }
.mt-pq figcaption strong { color: var(--wp--preset--color--ink); }
.mt-pq figcaption span:last-child { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 599px) { .mt-pq { padding: 54px 20px 20px; } .mt-pq-mark { left: 16px; top: -4px; font-size: 5rem; } }

/* ---------- blog (1.7.0) */
.mt-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mt-cat-chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--wp--preset--color--line); background: #fff; color: var(--wp--preset--color--ink-2); text-decoration: none; font-size: .92rem; font-weight: 500; }
.mt-cat-chips a:hover { border-color: var(--wp--preset--color--blue); color: var(--wp--preset--color--blue); }
.mt-cat-chips a[aria-current="page"] { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff; }

.mt-post-grid { display: grid !important; gap: 20px !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) !important; padding: 0; margin: 0; list-style: none; }
.mt-post-grid > li { margin: 0 !important; min-width: 0; }
.mt-post-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; margin: 0; }
.mt-post-card:hover { border-color: var(--wp--preset--color--blue); box-shadow: var(--wp--custom--shadow); }
.mt-post-card .wp-block-post-featured-image, .mt-post-card > a { margin: 0 !important; display: block; }
.mt-post-card img, .mt-post-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mt-post-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mt-post-card-body > * { margin: 0 !important; }
.mt-post-card .mt-card-label a { color: inherit; text-decoration: none; }
.mt-post-card h2, .mt-post-card h3 { font-size: 1.15rem; line-height: 1.3; text-wrap: balance; }
.mt-post-card h2 a, .mt-post-card h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.mt-post-card h2 a:hover, .mt-post-card h3 a:hover { color: var(--wp--preset--color--blue); }
.mt-post-card p, .mt-post-card-excerpt { color: var(--wp--preset--color--ink-2); font-size: .95rem; }
.mt-post-card-excerpt .wp-block-post-excerpt__more-text { display: none; }
.mt-post-card-date { margin-top: auto !important; color: var(--wp--preset--color--muted); font-size: .85rem; }
.mt-pagination { margin-top: 40px; gap: 6px; }
.mt-pagination a, .mt-pagination .current { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--wp--preset--color--line); text-decoration: none; }
.mt-pagination .current { background: var(--wp--preset--color--ink); color: #fff; border-color: var(--wp--preset--color--ink); }

/* single post */
.single-post .mt-post-hero::before, .single-post .mt-post-hero::after { display: none; }
.mt-crumbs { display: flex; gap: 8px; font-size: .9rem; color: var(--wp--preset--color--muted); }
.mt-crumbs a { color: var(--wp--preset--color--blue); text-decoration: none; }
.mt-post-hero h1 { margin-top: .35em; margin-bottom: .4em; text-wrap: balance; }
.mt-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--wp--preset--color--muted); font-size: .92rem; margin: 0; }
.mt-post-cat { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--blue); text-decoration: none; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.mt-post-body { font-size: 1.06rem; line-height: 1.7; }
.mt-post-body .mt-post-photo { margin: 0 0 2rem; }
.mt-post-body .mt-post-photo img { border-radius: var(--wp--custom--radius-lg); }
.mt-post-body h2 { font-size: 1.45rem; margin-top: 2em; margin-bottom: .5em; }
.mt-post-body h3 { font-size: 1.15rem; margin-top: 1.6em; }
.mt-post-body ul, .mt-post-body ol { padding-left: 1.3em; }
.mt-tip { background: var(--wp--preset--color--bg-alt); border-left: 4px solid var(--wp--preset--color--blue); padding: 14px 18px; border-radius: 0 12px 12px 0; }
.mt-blog-cta { margin: 48px 0 0; padding: 26px; border-radius: var(--wp--custom--radius-lg); background: var(--wp--preset--color--ink); color: #fff; display: grid; gap: 20px; grid-template-columns: 1fr auto; align-items: center; }
.mt-blog-cta h2 { color: #fff; margin: 4px 0 8px !important; font-size: 1.35rem; }
.mt-blog-cta p { margin: 0 0 12px; color: #cbd5e1; font-size: 1rem; }
.mt-blog-cta .mt-card-label { color: #93b4ff; margin: 0; }
.mt-blog-cta .mt-pill { background: rgb(255 255 255 / .1); color: #fff; }
.mt-blog-cta-btns { display: flex; flex-direction: column; gap: 10px; }
.mt-blog-cta-btns a { text-align: center; text-decoration: none; white-space: nowrap; }
.mt-blog-cta-btns .mt-btn-outline { background: transparent; border: 1.5px solid rgb(255 255 255 / .5); color: #fff; box-shadow: none; }
.mt-blog-cta-btns .mt-btn-outline:hover { border-color: #fff; }
@media (max-width: 680px) { .mt-blog-cta { grid-template-columns: 1fr; } .mt-blog-cta-btns a { white-space: normal; } }
.mt-related { margin-top: 56px; }
.mt-related h2 { margin-top: 0 !important; }
.mt-related .mt-post-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)) !important; }
