/*
Theme Name: Move360
Theme URI: https://move360.co.za
Author: Move360
Description: Custom theme recreating the Move360 Squarespace design — Archivo Black headings, Space Grotesk body, black/white/light/navy sections, pill buttons. WooCommerce ready.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: move360
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/archivo-black-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/archivo-black-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --m360-black: #000000;
  --m360-white: #ffffff;
  --m360-light: #e0e0db;
  --m360-navy: #253551;
  --m360-font-heading: 'Archivo Black', 'Arial Black', sans-serif;
  --m360-font-body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --m360-pad-x: 4vw;
  --m360-pad-y: clamp(3.5rem, 7.5vw, 6.5rem);
  --m360-header-h: 110px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--m360-light);
  color: #000;
  font-family: var(--m360-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--m360-font-heading);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2.6rem, 5vw, 3.75rem); }
/* H1s that must look like a smaller heading (SEO structure without visual change) */
h1.m360-h1-as-h2 { font-size: clamp(2.1rem, 3.5vw, 2.73rem); }
h1.m360-h1-as-h3 { font-size: clamp(1.7rem, 2.8vw, 2.15rem); }
h2 { font-size: clamp(2.1rem, 3.5vw, 2.73rem); }
h3 { font-size: clamp(1.7rem, 2.8vw, 2.15rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.58rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.m360-large, .sqsrte-large, .has-large-font-size { font-size: 1.2rem !important; line-height: 1.5; }
.m360-small, .sqsrte-small, .has-small-font-size { font-size: 0.875rem !important; }
ol, ul { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }

/* ---------- Sections ---------- */
.m360-section {
  padding: var(--m360-pad-y) var(--m360-pad-x);
}
.m360-section--black, .wp-block-group.is-style-m360-black { background: var(--m360-black); color: var(--m360-white); }
.m360-section--white, .wp-block-group.is-style-m360-white { background: var(--m360-white); color: #000; }
.m360-section--light, .wp-block-group.is-style-m360-light { background: var(--m360-light); color: #000; }
.m360-section--navy, .wp-block-group.is-style-m360-navy { background: var(--m360-navy); color: var(--m360-white); }
/* style-pill groups get section padding + button colours automatically */
.wp-block-group[class*="is-style-m360-"] { padding: var(--m360-pad-y) var(--m360-pad-x); }
.is-style-m360-black .wp-block-button__link, .is-style-m360-navy .wp-block-button__link { background: var(--m360-white); color: #000; }

/* first content section clears the absolute header (matches live-site clearance) */
.entry-content > :first-child {
  padding-top: calc(var(--m360-header-h) + clamp(3rem, 7vw, 6.5rem));
}

/* Hero cover sections */
.wp-block-cover.m360-hero {
  min-height: 72vh;
  padding: var(--m360-pad-y) var(--m360-pad-x);
}
.wp-block-cover.m360-hero--tall { min-height: 88vh; }
.wp-block-cover.m360-hero--short { min-height: 46vh; padding-top: calc(var(--m360-header-h) + 2rem); }
.wp-block-cover.m360-hero--mid { min-height: 60vh; padding-top: calc(var(--m360-header-h) + 2rem); }
.wp-block-cover.m360-hero--bl { min-height: 66vh; align-items: flex-end; padding-bottom: 3.5rem; }
.wp-block-cover.m360-hero--bl .wp-block-cover__inner-container { margin-left: 0; }

/* Thin divider lines used around the conditions lists */
.m360-hr { border: 0; border-top: 1px solid color-mix(in srgb, currentColor 45%, transparent); margin: 1.2rem 0; }

/* Cropped 3-across gallery (strength page) */
.m360-gallery { gap: 14px !important; }
.m360-gallery .wp-block-image { margin-bottom: 14px; }
.m360-gallery img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }

/* Centered narrow form (strength get-in-touch) */
.m360-form-narrow .wpcf7 form { max-width: 570px; margin: 0 auto; }

/* Slim tinted divider strip (pilates) */
.m360-section.m360-slim { padding-top: 1.75rem; padding-bottom: 1.75rem; }

/* Rounded feature image (pilates "what we offer") */
.m360-radius img { border-radius: 12px; }

/* Past-event cards: cropped images, centered captions */
.m360-eventcards img { aspect-ratio: 12 / 13; object-fit: cover; width: 100%; }
.m360-eventcards h4, .m360-eventcards p { text-align: center; }
.m360-eventcards h4 { margin-top: 0.9em; }

/* Square-cornered images everywhere, like the live site */
.entry-content .wp-block-image img,
.entry-content .wp-block-cover__image-background,
.m360-rounded img { border-radius: 0; }

/* Full-bleed split hero (training page): text left, image flush to the right edge */
.m360-split { padding: 0 !important; overflow: hidden; }
.m360-split > .wp-block-columns { gap: clamp(2rem, 4vw, 4rem); max-width: none; margin: 0; }
.m360-split .wp-block-column:first-child {
  padding: calc(var(--m360-header-h) + clamp(2rem, 4vw, 3.5rem)) 0 var(--m360-pad-y) var(--m360-pad-x);
  max-width: 660px;
}
.m360-split .wp-block-column:last-child { display: flex; margin-top: var(--m360-header-h); }
.m360-split .wp-block-column:last-child .wp-block-image { margin: 0; width: 100%; display: flex; }
.m360-split .wp-block-column:last-child img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 781px) {
  .m360-split .wp-block-column:first-child { padding-right: var(--m360-pad-x); max-width: none; }
}

/* Reverse split (recovery): image flush left, content right */
.m360-split--rev .wp-block-column:first-child { padding: 0; max-width: none; display: flex; margin-top: var(--m360-header-h); }
.m360-split--rev .wp-block-column:first-child .wp-block-image { margin: 0; width: 100%; display: flex; }
.m360-split--rev .wp-block-column:first-child img { width: 100%; height: 100%; object-fit: cover; }
.m360-split--rev .wp-block-column:last-child {
  display: block; margin-top: 0;
  padding: calc(var(--m360-header-h) + clamp(2rem, 4vw, 3.5rem)) var(--m360-pad-x) var(--m360-pad-y) 0;
  max-width: 760px;
}
@media (max-width: 781px) {
  .m360-split--rev .wp-block-column:last-child { padding-left: var(--m360-pad-x); max-width: none; }
}

/* Recovery plan columns: centered text, cropped images */
.m360-plans img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.m360-plans h4, .m360-plans p { text-align: center; }

/* Left-anchored copy inside wide hero covers (hybrid) */
.m360-hero--text-left .wp-block-cover__inner-container > * { margin-left: 0 !important; max-width: 760px; }

/* Class cards: name overlaps the bottom of the image */
.m360-classcards img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.m360-classcards h4 { margin: -1.55em 0 0.9em 0.35em; position: relative; text-shadow: 0 1px 8px rgba(0,0,0,.45); }

/* Self-hosted video blocks */
.wp-block-video { margin: 0; }
.wp-block-video video { width: 100%; height: auto; display: block; background: #000; }

/* Portrait (phone-recorded) videos: cap the height so they don't dominate the row */
.m360-video-portrait { display: flex; justify-content: center; }
.m360-video-portrait video {
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 560px);
  border-radius: 12px;
}

/* App store badges: stacked, fixed width */
.m360-badges .wp-block-image { margin: 0 0 0.8rem; }
.m360-badges img { width: 160px; height: auto; }

/* ---------- Buttons ---------- */
.wp-block-button__link,
.m360-btn,
button.wp-element-button,
.wc-block-components-button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit,
.wpcf7 input[type="submit"] {
  display: inline-block;
  font-family: var(--m360-font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 0;
  border-radius: 300px;
  padding: 1.15em 2em;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
  background: var(--m360-navy);
  color: var(--m360-white);
}
.wp-block-button__link:hover, .m360-btn:hover, .wpcf7 input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover { opacity: .82; color: var(--m360-white); }

/* buttons on dark sections are white with black text */
.m360-section--black .wp-block-button__link,
.m360-section--black .m360-btn,
.m360-section--black .wpcf7 input[type="submit"],
.m360-section--navy .wp-block-button__link,
.m360-section--navy .m360-btn,
.m360-section--navy .wpcf7 input[type="submit"],
.wp-block-cover .wp-block-button__link,
.wp-block-cover .m360-btn {
  background: var(--m360-white);
  color: #000;
}
.m360-section--black .wp-block-button__link:hover,
.m360-section--navy .wp-block-button__link:hover,
.wp-block-cover .wp-block-button__link:hover { color: #000; }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  padding: 0 var(--m360-pad-x);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--m360-header-h);
  padding: 14px 0;
}
.site-logo {
  font-family: var(--m360-font-heading);
  font-size: 1.48rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-header .custom-logo-link { display: inline-flex; }
.site-header .custom-logo { max-height: 56px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 0.4rem; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block;
  padding: 0.45em 0.75em;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.95;
}
.site-nav a:hover { opacity: 0.65; }
.site-nav .current-menu-item a,
.site-nav .current_page_item a { text-decoration: underline; text-underline-offset: 6px; }
.site-header__cta { padding: 0.9em 1.6em; font-size: 0.95rem; white-space: nowrap; }

/* header cart icon + count badge */
.m360-cart { position: relative; display: inline-flex; align-items: center; color: inherit; padding: 4px; }
.m360-cart svg { width: 24px; height: 24px; }
.m360-cart__count {
  position: absolute; top: -5px; right: -6px;
  min-width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border-radius: 300px;
  background: var(--m360-navy); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
}
.m360-header--dark .m360-cart__count { background: #fff; color: #000; }
.m360-cart--empty { display: none !important; }
/* mobile: cart lives inside the burger menu, not the top bar */
@media (max-width: 1100px) {
  .site-header .m360-cart { display: none !important; }
}
.m360-cart-mobile__count { font-family: var(--m360-font-body); font-size: 1rem; font-weight: 700; opacity: .8; }

/* colour schemes: dark hero pages get white header text */
.m360-header--dark .site-header { color: #fff; }
.m360-header--dark .site-header .site-header__cta { background: #fff; color: #000; }
.m360-header--light .site-header { color: #000; }
.m360-header--light .site-header .site-header__cta { background: var(--m360-navy); color: #fff; }

/* burger */
.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.burger span { display: block; height: 2px; width: 100%; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--m360-black);
  color: #fff;
  padding: calc(var(--m360-header-h) + 1rem) var(--m360-pad-x) 2rem;
  overflow: auto;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav a {
  display: block;
  padding: 0.7em 0;
  font-family: var(--m360-font-heading);
  font-size: 1.6rem;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.mobile-nav .m360-btn { margin-top: 1.5rem; }
body.nav-open { overflow: hidden; }
body.nav-open .mobile-nav { display: block; }
body.nav-open .site-header { position: fixed; color: #fff; }
body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
  .site-nav, .site-header__cta { display: none; }
  .burger { display: flex; }
}

/* ---------- Accordion (details block) ---------- */
.entry-content details {
  border-top: 1px solid;
  border-color: color-mix(in srgb, currentColor 25%, transparent);
  padding: 0;
}
.entry-content details:last-of-type { border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.entry-content details > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}
.entry-content details > summary::-webkit-details-marker { display: none; }
.entry-content details > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
  transition: transform .2s ease;
}
.entry-content details[open] > summary::after { transform: rotate(45deg); }
.entry-content details > :not(summary) { padding: 0 0 20px; margin: 0; }
.entry-content details p { font-weight: 500; }
/* caps style used on the home page accordion */
.m360-accordion-caps details > summary {
  font-family: var(--m360-font-heading);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 24px 0;
}

/* ---------- Marquee ---------- */
.m360-marquee {
  background: var(--m360-white);
  color: #000;
  overflow: hidden;
  padding: 1.1rem 0;
  white-space: nowrap;
}
.m360-marquee__track {
  display: inline-flex;
  gap: 3rem;
  padding-left: 100%;
  animation: m360-scroll 18s linear infinite;
  font-family: var(--m360-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
@keyframes m360-scroll {
  to { transform: translateX(-100%); }
}

/* ---------- Timetables: plain left-aligned text columns like the live site ---------- */
.m360-timetable { gap: 1.5rem !important; }
.m360-timetable .wp-block-column p { margin-bottom: 0.55em; font-weight: 500; font-size: 0.95rem; text-align: left !important; }
.m360-timetable .wp-block-column p strong { font-weight: 700; }

/* ---------- Pricing cards ---------- */
.m360-card {
  background: var(--m360-navy);
  color: #fff;
  border-radius: 18px;
  padding: 2rem 1.6rem;
  height: 100%;
}
.m360-card h4 { margin-top: 0; }

/* ---------- Icon rows (physio): flat pictograms, centered captions ---------- */
.m360-icons { text-align: center; }
.m360-icons .wp-block-column > .wp-block-image img {
  width: clamp(90px, 10vw, 150px);
  height: auto;
  margin: 0 auto 0.8rem;
}
.m360-icons .wp-block-image { display: flex; justify-content: center; }
.m360-icons p { text-align: center; }

/* Navy accent text */
.m360-accent { color: var(--m360-navy); }

/* Pricing cards: navy header bar + light body (physio) */
.m360-price-card { margin-bottom: 1.5rem; }
.m360-price-card__head {
  background: var(--m360-navy);
  color: #fff;
  text-align: center;
  font-family: var(--m360-font-heading);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  padding: 0.45em 0.5em;
}
.m360-price-card__body {
  background: #efeee9;
  color: #000;
  text-align: center;
  padding: 1.6rem 1.1rem 2.4rem;
}
.m360-price-card__body h4 { font-size: 1.2rem; margin: 0.9em 0 0.5em; }
.m360-price-card__body p { font-weight: 500; margin-bottom: 0.6em; }
.m360-price-card__body .m360-tiny { font-size: 0.72rem; font-weight: 600; }
.m360-price-card__body .m360-price { font-family: var(--m360-font-heading); font-size: 1.35rem; margin: 0.2em 0 0.6em; }

/* ---------- Forms (Contact Form 7, styled like the Squarespace form) ---------- */
.wpcf7 form { max-width: 720px; }
.wpcf7 label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 1.1rem; }
.wpcf7 label.m360-half { display: inline-block; width: calc(50% - 0.6rem); vertical-align: top; }
.wpcf7 label.m360-half + label.m360-half { margin-left: 1rem; }
.wpcf7 label small, .wpcf7 .m360-req { font-weight: 500; opacity: .65; font-size: .85em; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea, .wpcf7 select {
  width: 100%;
  margin-top: 0.4rem;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: color-mix(in srgb, currentColor 10%, transparent);
  color: inherit;
  font-family: var(--m360-font-body);
  font-size: 1rem;
  font-weight: 500;
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: 1px solid color-mix(in srgb, currentColor 50%, transparent); }

/* Service picker dropdown — replaces the old checkbox list */
.wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  /* white chevron for the dark sections the forms sit on */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}
.m360-section--white .wpcf7 select,
.m360-section--light .wpcf7 select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23222222' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}
/* the dropdown list itself is OS-rendered — keep it readable */
.wpcf7 select option { color: #000; background: #fff; }

/* Site-wide safety net: an open <select> popup is drawn by the OS and doesn't
   inherit a dark section's white text, so options must set their own colours or
   they render white-on-white. Applies to WooCommerce, forms and any new select. */
select option,
select optgroup {
  color: #000;
  background-color: #fff;
}
.wpcf7 .wpcf7-checkbox { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.6rem; }
.wpcf7 .wpcf7-checkbox .wpcf7-list-item { margin: 0; display: flex; align-items: center; gap: 0.5rem; }
.wpcf7 .wpcf7-checkbox label { display: flex; align-items: center; gap: 0.55rem; margin: 0; text-transform: uppercase; font-size: 0.8rem; font-weight: 600; }
.wpcf7 input[type="checkbox"] {
  appearance: none;
  color: inherit;
  width: 15px; height: 15px;
  border: 1px solid color-mix(in srgb, currentColor 65%, transparent);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  cursor: pointer;
}
.wpcf7 input[type="checkbox"]:checked { background: currentColor; box-shadow: inset 0 0 0 3px color-mix(in srgb, currentColor 20%, transparent); }
.wpcf7 input[type="submit"] { margin-top: 0.5rem; min-width: 0; }
.wpcf7-response-output { border-radius: 10px; padding: 0.8em 1em; }

/* ---------- Footer (brand + contact + location left, map right) ---------- */
.site-footer {
  background: var(--m360-white);
  color: #000;
  padding: var(--m360-pad-y) var(--m360-pad-x) 4rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  max-width: 1360px;
  margin: 0 auto;
  align-items: start;
}
.site-footer__brand {
  font-family: var(--m360-font-heading);
  font-size: clamp(1.9rem, 2.8vw, 2.15rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.4rem;
}
.site-footer h4 { font-size: 1.25rem; margin: 1.6rem 0 1rem; }
.site-footer p { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.9em; }
.site-footer a { text-decoration: underline; }
.site-footer__map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .site-footer__map iframe { height: 300px; }
}

/* ---------- WooCommerce skin: match site design, kill the default purple ---------- */

/* Black title banner on shop pages (fills the transparent-header zone) */
.m360-shop-hero {
  background: var(--m360-black);
  color: #fff;
  padding: calc(var(--m360-header-h) + clamp(2.5rem, 5vw, 4rem)) var(--m360-pad-x) clamp(2rem, 4vw, 3rem);
}
.m360-shop-hero h1, .m360-shop-hero p {
  margin: 0;
  max-width: 1360px;
  margin-inline: auto;
}
.m360-shop-hero--slim {
  padding-bottom: 1.4rem;
  padding-top: calc(var(--m360-header-h) + 1.4rem);
}
.m360-shop-hero--slim p {
  font-family: var(--m360-font-heading);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  opacity: .85;
}
.woocommerce-page .m360-plain-wrap { padding-top: 2.5rem; }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #respond input#submit.disabled, .woocommerce a.button.disabled, .woocommerce button.button.disabled, .woocommerce input.button.disabled,
.woocommerce button.button.alt.disabled,
.woocommerce #payment #place_order,
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  background: var(--m360-navy) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 300px !important;
  font-family: var(--m360-font-body) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 1em 1.8em;
  transition: opacity .15s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover { opacity: .82; background: var(--m360-navy) !important; color: #fff !important; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled, .woocommerce button.button.alt.disabled { opacity: .45; }

/* Dropdowns (variations, sorting, checkout selects): styled like the site's inputs */
.woocommerce select, .woocommerce-ordering select, form.cart .variations select {
  appearance: none;
  -webkit-appearance: none;
  background-color: color-mix(in srgb, currentColor 6%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23222' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 10px;
  padding: 10px 40px 10px 14px;
  font-family: var(--m360-font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: inherit;
  cursor: pointer;
}
.woocommerce select:focus { outline: 1px solid color-mix(in srgb, currentColor 50%, transparent); }

/* Quantity input */
.woocommerce .quantity .qty {
  width: 80px;
  padding: 10px 6px 10px 14px;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 10px;
  background: transparent;
  font-family: var(--m360-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  color: inherit;
}
.wc-block-components-quantity-selector { border-radius: 10px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); }
.wc-block-components-quantity-selector input, .wc-block-components-quantity-selector button { font-family: var(--m360-font-body); }

/* Variation rows + single product typography */
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td { padding: 0 0 0.9em; vertical-align: middle; text-align: left; }
.woocommerce div.product form.cart .variations label { font-weight: 700; margin: 0; }
.woocommerce div.product form.cart .reset_variations { font-size: 0.85rem; opacity: .65; }
.woocommerce div.product .product_title { font-size: clamp(1.7rem, 2.8vw, 2.15rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--m360-navy); font-weight: 700; font-size: 1.25rem; }
.woocommerce-variation-price { margin-bottom: 1.1rem; }

/* Product tabs: strip Woo's purple-grey chrome, navy underline style */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 1.6em !important;
  border-bottom: 1px solid color-mix(in srgb, var(--m360-navy) 25%, transparent);
  overflow: visible;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 0.85em 1.2em;
  font-family: var(--m360-font-body);
  font-weight: 600 !important;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: inherit !important;
  opacity: .55;
  border-bottom: 3px solid transparent;
  transition: opacity .15s ease;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { opacity: .85; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  opacity: 1;
  border-bottom-color: var(--m360-navy);
}
.woocommerce div.product .woocommerce-tabs .panel h2 {
  font-size: 1.25rem;
  margin-bottom: 0.7em;
}
.woocommerce table.woocommerce-product-attributes { border: 0; }
.woocommerce table.woocommerce-product-attributes th,
.woocommerce table.woocommerce-product-attributes td { border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); font-style: normal; padding: .6em .5em; }

/* Checkout/cart block inputs + notices */
.wc-block-components-text-input input, .wc-block-components-form .wc-block-components-text-input input {
  border-radius: 10px;
  font-family: var(--m360-font-body);
}
.woocommerce-message, .woocommerce-info { border-top-color: var(--m360-navy); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--m360-navy); }
.woocommerce-breadcrumb { font-size: .85rem; }

/* ---------- WooCommerce basics ---------- */
.woocommerce-page .site-main, .m360-plain-wrap {
  padding: calc(var(--m360-header-h) + 2rem) var(--m360-pad-x) var(--m360-pad-y);
  max-width: 1360px;
  margin: 0 auto;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--m360-font-body); font-weight: 700; font-size: 1.05rem; }
.woocommerce ul.products li.product img { border-radius: 8px; }

/* Product grid: real CSS grid so every card is the same size (Woo default is floats) */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 0 0 2rem;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }

/* Product cards: boxed, alternating tint, equal height, button pinned to bottom */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1rem 1.4rem;
  box-sizing: border-box;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  display: flex;
  flex-direction: column;
}
.woocommerce ul.products li.product:nth-child(even) {
  background: color-mix(in srgb, var(--m360-navy) 8%, #fff);
}
.woocommerce ul.products li.product img { margin-bottom: 0.9rem; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product > .button { margin-top: auto; align-self: flex-start; }
.woocommerce ul.products li.product .woocommerce-loop-product__link { display: block; margin-bottom: 0.9rem; }

/* Sorting dropdown options popup (browsers apply this only partially) */
.woocommerce select option { font-family: var(--m360-font-body); }
.woocommerce div.product p.price, .woocommerce ul.products li.product .price { color: var(--m360-navy); font-weight: 700; }
.woocommerce span.onsale { background: var(--m360-navy); border-radius: 300px; padding: 0.4em 1em; }
.woocommerce .woocommerce-loop-category__title mark { background: none; color: inherit; opacity: .55; font-weight: 500; }

/* Shop-by-category banner strip (distinct from product cards) */
.m360-cat-strip { margin: 0 0 3rem; }
.m360-cat-strip h4 { margin-bottom: 1rem; }
.m360-cat-strip__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.m360-cat-card { position: relative; display: block; overflow: hidden; text-decoration: none; }
.m360-cat-card img { width: 100%; height: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; transition: transform .25s ease; }
.m360-cat-card:hover img { transform: scale(1.05); }
.m360-cat-card span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: .4em;
  background: rgba(0,0,0,.4);
  color: #fff;
  font-family: var(--m360-font-heading);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 1rem;
}
.m360-cat-card small { font-family: var(--m360-font-body); font-size: .8rem; font-weight: 600; opacity: .8; }

/* ---------- Live-site parity details ---------- */

/* Squarespace text blocks are narrow; cap centered copy like the live site */
.m360-section p.has-text-align-center { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Centered CTA button rows: wide pill pairs with a big gutter */
.wp-block-buttons.is-content-justification-center { gap: clamp(1.5rem, 8vw, 7rem); margin: 1.5rem 0 1rem; }
.wp-block-buttons.is-content-justification-center .wp-block-button__link { min-width: min(280px, 70vw); }

/* Instagram grid section */
.m360-ig-head { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.4rem; }
.m360-ig-head h4 { margin: 0; }
.m360-ig-head svg { width: 22px; height: 22px; }
.m360-ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.m360-ig-grid a { display: block; }
.m360-ig-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 781px) { .m360-ig-grid { grid-template-columns: repeat(2, 1fr); } }

/* Floating WhatsApp bubble (bottom right, like the live site) */
.m360-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .15s ease;
}
.m360-wa:hover { transform: scale(1.06); }
.m360-wa svg { width: 26px; height: 26px; }

/* ---------- Utilities ---------- */
.m360-center { text-align: center; }
.alignfull { width: 100%; }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.entry-content > * { margin-block-start: 0; }

/* Gutenberg spacing sanity inside sections — the live site uses wide gutters */
.m360-section .wp-block-columns { gap: clamp(2rem, 5.5vw, 5rem); }
@media (max-width: 781px) {
  .m360-section .wp-block-columns { gap: 1.5rem; }
}

/* Hero media: top-aligned columns with a tall, cover-cropped portrait image.
   Shared by the Home and Training heroes so both crop identically. */
.entry-content > .wp-block-group:first-child .wp-block-columns { align-items: flex-start; }
.entry-content > .wp-block-group:first-child .wp-block-column { align-self: flex-start !important; }
.m360-portrait img {
  width: 100%;
  aspect-ratio: 5 / 9;
  object-fit: cover;
}
