/*
Theme Name: MJ Kidz
Theme URI: https://www.mjkidz.com
Author: MJ Kidz Speech & OT
Description: Block theme for MJ Kidz Speech & OT — the "sticker" look (flat colour, 3px black outlines, hard offset shadows). Every section is a pattern you can insert, rearrange and restyle in the Site Editor.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mjkidz
Tags: block-patterns, full-site-editing, block-styles, style-variations, wide-blocks, blog, one-column, custom-colors, custom-logo, editor-style
*/

/* ---------- Header ---------- */
.mjk-header{position:sticky;top:0;z-index:100}
body.admin-bar .mjk-header{top:32px}
@media (max-width:782px){body.admin-bar .mjk-header{top:46px}}
.mjk-header .wp-block-navigation .wp-block-navigation-item__content{padding:8px 14px;border:3px solid transparent;border-radius:999px}
.mjk-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.mjk-header .wp-block-navigation .current-menu-item>.wp-block-navigation-item__content{border-color:#000;background:var(--wp--preset--color--sky)}
.mjk-header .wp-block-navigation__submenu-container{border:3px solid #000!important;border-radius:16px;box-shadow:6px 6px 0 #000;padding:8px!important}
.mjk-utility a{color:inherit;text-decoration:none}

/* ---------- Buttons: hover lifts, press sinks into the shadow ---------- */
.wp-element-button,.wp-block-button__link{transition:transform var(--wp--custom--dur-fast) var(--wp--custom--ease-out),box-shadow var(--wp--custom--dur-fast) var(--wp--custom--ease-out),filter var(--wp--custom--dur-fast) linear}
.wp-element-button:hover,.wp-block-button__link:hover{transform:translate(-1px,-1px);filter:brightness(1.06)}
.wp-element-button:active,.wp-block-button__link:active{transform:translate(3px,3px);box-shadow:2px 2px 0 #000!important}
.wp-block-button.is-style-teal .wp-block-button__link{background:var(--wp--preset--color--teal);color:#000}
.wp-block-button.is-style-yellow .wp-block-button__link{background:var(--wp--preset--color--yellow);color:#000}
.wp-block-button.is-style-green .wp-block-button__link{background:var(--wp--preset--color--green);color:#000}
.wp-block-button.is-style-white .wp-block-button__link{background:#fff;color:#000}
.wp-block-button.is-style-ghost .wp-block-button__link{background:transparent;color:#000;box-shadow:none}
.wp-block-button.is-style-text-link .wp-block-button__link{background:transparent;color:var(--wp--preset--color--red-dark);border:0;box-shadow:none;padding:0;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
:where(.wp-block-button.is-style-small) .wp-block-button__link{padding:8px 18px;font-size:15px;border-width:2px;box-shadow:3px 3px 0 #000}
.wp-block-button.is-style-large .wp-block-button__link,.wp-block-button.is-style-large-full .wp-block-button__link,.wp-block-button.is-style-ghost-large .wp-block-button__link{padding:18px 40px;font-size:22px;box-shadow:7px 7px 0 #000}
.wp-block-button.is-style-ghost-large .wp-block-button__link{background:transparent;color:#000}
.wp-block-button.is-style-large-full,.wp-block-button.is-style-teal-full{width:100%;flex-basis:100%}
.wp-block-button.is-style-large-full .wp-block-button__link,.wp-block-button.is-style-teal-full .wp-block-button__link{width:100%}
.wp-block-button.is-style-teal-full .wp-block-button__link{background:var(--wp--preset--color--teal);color:#000}
.wp-block-button.is-style-tab .wp-block-button__link,.wp-block-button.is-style-tab-active .wp-block-button__link{background:#fff;color:#000;font-size:17px;padding:10px 22px;box-shadow:none}
.wp-block-button.is-style-tab-active .wp-block-button__link{background:var(--wp--preset--color--yellow);box-shadow:4px 4px 0 #000;transform:translate(-1px,-1px)}
:focus-visible{outline:3px solid #000;outline-offset:3px}

/* ---------- Sticker surfaces ---------- */
.is-style-sticker-card{border:3px solid #000;border-radius:24px;box-shadow:6px 6px 0 #000;padding:var(--wp--preset--spacing--50)}
.is-style-sticker-card:where(:not(.has-background)){background:#fff}
.is-style-sticker-card-lift{border:3px solid #000;border-radius:24px;box-shadow:6px 6px 0 #000;padding:var(--wp--preset--spacing--50);transition:transform var(--wp--custom--dur) var(--wp--custom--ease-bounce),box-shadow var(--wp--custom--dur) var(--wp--custom--ease-out)}
.is-style-sticker-card-lift:where(:not(.has-background)){background:#fff}
.is-style-sticker-card-lift:hover{transform:translate(-3px,-3px);box-shadow:9px 9px 0 #000}
.is-style-tilt-left{transform:rotate(-1deg)}
.is-style-tilt-right{transform:rotate(1deg)}
.is-style-outlined-band{border-top:3px solid #000;border-bottom:3px solid #000}
.is-style-speech-bubble,.is-style-speech-bubble-right{position:relative;border:3px solid #000;border-radius:36px;box-shadow:6px 6px 0 #000;padding:var(--wp--preset--spacing--50);margin-bottom:28px!important}
.is-style-speech-bubble:where(:not(.has-background)),.is-style-speech-bubble-right:where(:not(.has-background)){background:#fff}
.is-style-speech-bubble::after,.is-style-speech-bubble-right::after{content:"";position:absolute;bottom:-23px;left:44px;width:28px;height:24px;background:inherit;border-right:3px solid #000;border-bottom:3px solid #000;clip-path:polygon(0 0,100% 0,100% 100%);}
.is-style-speech-bubble-right::after{left:auto;right:44px;transform:scaleX(-1)}
.wp-block-quote.is-style-speech-bubble{border-left:3px solid #000}

/* ---------- Images ---------- */
.wp-block-image.is-style-sticker-frame img{border:3px solid #000;border-radius:24px;box-shadow:6px 6px 0 #000}
.wp-block-image.is-style-sticker-circle img{border:3px solid #000;border-radius:999px;box-shadow:6px 6px 0 #000;aspect-ratio:1;object-fit:cover}
.wp-block-image.is-style-coin img{width:72px;height:72px;padding:10px;background:#fff;border:3px solid #000;border-radius:999px;box-sizing:border-box}
.wp-block-image.is-style-no-frame img,.wp-block-image.is-style-graphic img{border-radius:0}
.wp-block-post-featured-image img{border:3px solid #000}

/* ---------- Text ---------- */
.is-style-eyebrow{font-weight:900;font-size:13px;letter-spacing:.14em;text-transform:uppercase}
.is-style-badge{display:inline-block;font-weight:900;font-size:13px;letter-spacing:.06em;text-transform:uppercase;padding:5px 14px;border:2px solid #000;border-radius:999px;background:var(--wp--preset--color--yellow);color:#000}
.wp-block-separator.wp-block-separator.is-style-ink-rule{border:0;border-top:3px solid #000;opacity:1;width:100%}
.wp-block-separator.is-style-squiggle{border:0;height:18px;background:url("assets/graphics/squiggle.svg") left center/auto 100% repeat-x;opacity:1;width:160px;margin-left:0}

/* ---------- Lists ---------- */
.wp-block-list.is-style-pills{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.wp-block-list.is-style-pills li{background:#fff;border:2px solid #000;border-radius:999px;padding:6px 16px;font-weight:700;font-size:15px;margin:0}
.wp-block-list.is-style-checks{list-style:none;padding:0}
.wp-block-list.is-style-checks li{position:relative;padding-left:38px;margin-bottom:10px}
.wp-block-list.is-style-checks li::before{content:"";position:absolute;left:0;top:2px;width:24px;height:24px;border:3px solid #000;border-radius:8px;background:var(--wp--preset--color--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;box-sizing:border-box}

/* ---------- FAQ accordion ---------- */
.wp-block-details.is-style-faq{width:100%;box-sizing:border-box}
.wp-block-details.is-style-faq{background:#fff;border:3px solid #000;border-radius:24px;box-shadow:3px 3px 0 #000;padding:18px 24px}
.wp-block-details.is-style-faq summary{font-family:var(--wp--preset--font-family--display);font-weight:600;font-size:20px;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px}
.wp-block-details.is-style-faq summary::-webkit-details-marker{display:none}
.wp-block-details.is-style-faq summary::after{content:"+";font-size:28px;line-height:.8;transition:transform var(--wp--custom--dur) var(--wp--custom--ease-bounce)}
.wp-block-details.is-style-faq[open] summary::after{transform:rotate(45deg)}
.wp-block-details.is-style-faq[open]{background:var(--wp--preset--color--butter)}

/* ---------- Blog ---------- */
.wp-block-post-template>li>.wp-block-group{height:100%;box-sizing:border-box}
.wp-block-image.is-style-coin{flex-shrink:0}
.wp-block-post-terms.is-style-pill a{display:inline-block;background:var(--wp--preset--color--sky);border:2px solid #000;border-radius:999px;padding:3px 12px;color:#000;text-decoration:none}
.wp-block-categories.is-style-pills{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.wp-block-categories.is-style-pills li a{display:inline-block;background:#fff;border:2px solid #000;border-radius:999px;padding:6px 16px;font-weight:800;color:#000;text-decoration:none}
.wp-block-categories.is-style-pills li a:hover{background:var(--wp--preset--color--yellow)}
.wp-block-query-pagination a,.wp-block-query-pagination .current{display:inline-block;min-width:44px;text-align:center;border:3px solid #000;border-radius:999px;padding:6px 14px;background:#fff;color:#000;text-decoration:none;font-weight:800}
.wp-block-query-pagination .current{background:var(--wp--preset--color--yellow)}
.wp-block-search__input{border:3px solid #000!important;border-radius:999px!important;padding:10px 18px!important}

/* ---------- Footer ---------- */
.wp-block-list.mjk-plain-list{list-style:none;padding-left:0}
.wp-block-list.mjk-plain-list li{margin-bottom:6px}
.mjk-footer a{color:#000}
.mjk-footer .wp-block-navigation a{text-decoration:none}

/* ---------- Responsive grids: 1 column on phones, 2 on tablets ---------- */
@media (max-width:781px){
  .wp-block-group.is-layout-grid{grid-template-columns:1fr!important}
  .is-style-tilt-left,.is-style-tilt-right,.mjk-tilt-l,.mjk-tilt-r{transform:none}
  .mjk-band .wp-block-group.is-layout-flex{flex-wrap:wrap!important}
}
@media (min-width:782px) and (max-width:1080px){
  .wp-block-group.is-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ---------- Website A layout ---------- */
.mjk-left>*:not(.alignfull){max-width:var(--wp--style--global--wide-size)!important}
.mjk-band>.mjk-left{max-width:var(--wp--style--global--wide-size)}
.mjk-measure{max-width:58ch}
.mjk-strong{font-weight:600}
.mjk-hero h1{line-height:1.02}
.mjk-header{border-bottom:3px solid #000}
.mjk-tilt-l{transform:rotate(-1deg)}
.mjk-tilt-r{transform:rotate(1deg)}
.mjk-tilt-l:hover,.mjk-tilt-r:hover{transform:rotate(0) translate(-3px,-3px)}
.mjk-shadow-lg{box-shadow:10px 10px 0 #000!important}
.mjk-card-title a{color:#000;text-decoration:none}
.mjk-card-foot{margin-top:auto!important;padding-top:10px}
.wp-block-group.is-layout-grid>.is-style-sticker-card-lift,.wp-block-group.is-layout-grid>.is-style-sticker-card{height:100%;box-sizing:border-box}
.is-style-badge.mjk-badge-green{background:var(--wp--preset--color--green)}
.is-style-badge.mjk-badge-paper{background:#fff}
.is-style-badge.mjk-badge-red{background:var(--wp--preset--color--red);color:#fff}
.wp-block-image.is-style-coin.mjk-coin-teal img{background:var(--wp--preset--color--teal);box-shadow:4px 4px 0 #000;width:56px;height:56px}
.mjk-step-num{width:56px;height:56px;border-radius:999px;background:var(--wp--preset--color--red);color:#fff;border:3px solid #000;box-shadow:4px 4px 0 #000;display:flex;align-items:center;justify-content:center;font-family:var(--wp--preset--font-family--display);font-size:26px;font-weight:600;margin:0}
.mjk-quote{font-family:var(--wp--preset--font-family--display);font-size:24px;line-height:1.25;font-weight:500;color:#000}
.mjk-who{font-size:15px;font-weight:800;color:var(--wp--preset--color--ink-muted);margin:0}
.mjk-bubble-text{font-family:var(--wp--preset--font-family--display);font-size:19px;color:#000;margin:0}
.mjk-tile{border:3px solid #000;border-radius:16px;padding:12px 16px;gap:10px}
.mjk-tile-text{margin:0;font-weight:700;padding-left:30px;background:url("assets/graphics/icon-check.svg") left center/22px no-repeat}
.mjk-map{width:100%;height:150px;border:3px solid #000;border-radius:16px;display:block;background:var(--wp--preset--color--sky)}
.mjk-row{margin:0;font-weight:700;font-size:15px;padding-left:30px;background-position:left 2px;background-size:20px;background-repeat:no-repeat}
.mjk-row-pin{background-image:url("assets/graphics/icon-pin.svg")}
.mjk-row-phone{background-image:url("assets/graphics/icon-phone.svg")}
.mjk-row-clock{background-image:url("assets/graphics/icon-clock.svg")}
@media (min-width:782px){.mjk-sidebar>.wp-block-group,.mjk-sidebar>.wp-block-buttons{margin-bottom:var(--wp--preset--spacing--50)}}
.mjk-form-placeholder{border:3px dashed #000;border-radius:16px}
.mjk-footer-grid{grid-template-columns:180px 1fr!important}
@media (max-width:781px){.mjk-footer-grid{grid-template-columns:1fr!important}}
.mjk-price{font-family:var(--wp--preset--font-family--display);font-weight:600;margin:0}

/* ---------- Contact Form 7 (evaluation request form) ---------- */
.wpcf7 form{display:grid;gap:20px}
.wpcf7 .mjk-two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media (max-width:600px){.wpcf7 .mjk-two-col{grid-template-columns:1fr}}
.wpcf7 label{display:block;font-weight:800;font-size:15px;color:#000}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 select,.wpcf7 textarea{width:100%;box-sizing:border-box;margin-top:6px;font:inherit;font-size:17px;font-weight:600;color:#000;padding:12px 16px;background:#fff;border:3px solid #000;border-radius:16px;box-shadow:3px 3px 0 #000}
.wpcf7 select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M0 0h12L6 8z'/%3E%3C/svg%3E") right 16px center/12px no-repeat;padding-right:44px}
.wpcf7 .wpcf7-not-valid{border-color:var(--wp--preset--color--red)!important}
.wpcf7 .wpcf7-not-valid-tip{color:var(--wp--preset--color--red-dark);font-weight:700;font-size:14px}
.wpcf7 .wpcf7-list-item{margin:0 24px 0 0}
.wpcf7 input[type=radio],.wpcf7 input[type=checkbox]{width:22px;height:22px;accent-color:var(--wp--preset--color--green);vertical-align:middle;margin-right:8px}
.wpcf7 input[type=submit]{font-family:var(--wp--preset--font-family--display);font-weight:600;font-size:22px;padding:18px 40px;background:var(--wp--preset--color--red);color:#fff;border:3px solid #000;border-radius:999px;box-shadow:7px 7px 0 #000;cursor:pointer}
.wpcf7 input[type=submit]:active{transform:translate(3px,3px);box-shadow:2px 2px 0 #000}
.wpcf7 form .wpcf7-response-output{margin:0;border:3px solid #000!important;border-radius:24px;padding:16px 18px;font-weight:600;box-shadow:6px 6px 0 #000}
.wpcf7 form.sent .wpcf7-response-output{background:var(--wp--preset--color--green)}
.wpcf7 form.invalid .wpcf7-response-output,.wpcf7 form.failed .wpcf7-response-output{background:var(--wp--preset--color--red);color:#fff}

/* full-width bands sit flush against each other */
.wp-block-post-content>.alignfull,main>.alignfull,main>.wp-block-post-content{margin-block-start:0!important}
.mjk-left .wp-block-details.is-style-faq{max-width:760px}
.wp-block-buttons:has(>.is-style-teal-full),.wp-block-buttons:has(>.is-style-large-full){align-self:stretch;width:100%}
