/* ==========================================================================
   Maison Pilates - theme styles
   All colours, fonts and sizes come from the CSS variables that the
   Maison Options panel writes into :root.
   ========================================================================== */

/* -------------------------------------------------------------- Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--m-bg);
	color: var(--m-text);
	font-family: var(--m-font-body);
	font-size: var(--m-fs-body);
	line-height: var(--m-lh-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--m-accent); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--m-accent-hover); }
button { font: inherit; cursor: pointer; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--m-title);
	font-weight: 400;
	line-height: 1.2;
}
h1 { font-family: var(--m-font-heading); font-size: var(--m-fs-h1); }
h2 { font-family: var(--m-font-heading); font-size: var(--m-fs-h2); }
h3 { font-family: var(--m-font-heading); font-size: var(--m-fs-h3); }
h4, h5 { font-family: var(--m-font-sub); font-size: var(--m-fs-h4); font-weight: 600; }
h6 { font-family: var(--m-font-sub); font-size: var(--m-fs-h6); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 10px; left: 10px;
	width: auto; height: auto; clip: auto;
	z-index: 9999; padding: 12px 20px;
	background: var(--m-dark); color: var(--m-dark-title);
}

/* ---------------------------------------------------------- Containers */
.m-container {
	width: 100%;
	max-width: var(--m-container);
	margin-inline: auto;
	padding-inline: 80px;
}
.m-container--narrow { max-width: 900px; }
.m-section { padding-block: clamp(56px, 7vw, 104px); }
.m-center { text-align: center; margin-top: 48px; }
.m-center-text { text-align: center; }

/* -------------------------------------------------------------- Buttons */
.m-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 36px;
	border: 1px solid transparent;
	font-family: var(--m-font-sub);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.2;
	border-radius: 0;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.m-btn--solid { background: var(--m-title); color: var(--m-bg); border-color: var(--m-title); }
.m-btn--solid:hover { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.m-btn--outline { background: transparent; color: var(--m-title); border-color: var(--m-title); }
.m-btn--outline:hover { background: var(--m-title); color: var(--m-bg); }
.m-btn--light { background: var(--m-bg); color: var(--m-title); border-color: var(--m-bg); }
.m-btn--light:hover { background: var(--m-title); color: var(--m-bg); border-color: var(--m-title); }

/* --------------------------------------------------------------- Header */
.m-header {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 90;
	transition: background-color .35s ease, transform .35s ease, padding .35s ease;
}
.m-header--dark { background: var(--m-dark); }
body.has-transparent-header .m-header { background: transparent; }
body.has-transparent-header .m-header.is-stuck,
.m-header.is-stuck { background: var(--m-dark); }

.m-header--sticky.is-stuck {
	position: fixed;
	top: 0;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
	animation: m-slide-down .35s ease both;
}
body.admin-bar .m-header--sticky.is-stuck { top: 32px; }
@keyframes m-slide-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.m-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-height: 92px;
}
.m-logo img { width: var(--m-logo-w); max-height: 70px; object-fit: contain; }
.m-logo-name {
	font-family: var(--m-font-sub);
	font-size: 20px;
	letter-spacing: .22em;
	text-transform: lowercase;
	color: var(--m-dark-title);
}

/* ----------------------------------------------------------------- Menu */
.m-nav { display: flex; align-items: center; gap: 28px; }
.m-menu {
	display: flex;
	align-items: center;
	gap: 30px;
	list-style: none;
}
.m-menu li { position: relative; }
.m-menu > li > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 0;
	font-family: var(--m-font-sub);
	font-size: 15px;
	font-weight: 500;
	color: var(--m-dark-title);
	letter-spacing: .01em;
}
.m-menu > li > a:hover,
.m-menu > li.current-menu-item > a { color: var(--m-accent); }

.m-caret {
	width: 8px; height: 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}
.m-submenu-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; }

.m-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	min-width: 220px;
	padding: 14px 0;
	list-style: none;
	background: var(--m-dark-alt);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all .25s ease;
	z-index: 20;
}
.m-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.m-menu .sub-menu a {
	display: block;
	padding: 9px 22px;
	font-family: var(--m-font-sub);
	font-size: 14px;
	color: var(--m-dark-title);
}
.m-menu .sub-menu a:hover { color: var(--m-accent); }

.m-burger { display: none; background: none; border: 0; padding: 10px; }
.m-burger-box { display: block; width: 26px; height: 16px; position: relative; }
.m-burger-line,
.m-burger-line::before,
.m-burger-line::after {
	position: absolute; left: 0;
	width: 26px; height: 2px;
	background: var(--m-dark-title);
	transition: transform .3s ease, opacity .3s ease;
}
.m-burger-line { top: 7px; }
.m-burger-line::before { content: ""; top: -7px; }
.m-burger-line::after { content: ""; top: 7px; }
.m-burger.is-open .m-burger-line { background: transparent; }
.m-burger.is-open .m-burger-line::before { transform: translateY(7px) rotate(45deg); }
.m-burger.is-open .m-burger-line::after { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------- Hero */
.m-main { padding-top: 0; }
.m-hero {
	position: relative;
	display: flex;
	align-items: center;
	background-color: var(--m-hero-bg);
	background-repeat: no-repeat;
	padding-block: 160px 90px;
	overflow: hidden;
}
/* Desktop: artwork sits on the right, the page colour takes the bottom band. */
@media (min-width: 992px) {
	.m-hero {
		background-image: var(--m-hero-img), linear-gradient(to bottom, var(--m-hero-bg) 0 72.41%, var(--m-bg) 72.41% 100%);
		background-size: auto 100%, 100% 100%;
		background-position: right bottom, center center;
		background-repeat: no-repeat, no-repeat;
		padding-block: 110px 170px;
		min-height: min(46vw, 880px);
		justify-content: center;
	}
}
/* Tablet and phone: copy first, artwork stacked underneath. */
@media (max-width: 991px) {
	.m-hero {
		background-image: none;
		min-height: 0;
		align-items: flex-start;
		flex-direction: column;
		padding: 120px 0 0;
	}
	.m-hero::after {
		content: "";
		display: block;
		align-self: stretch;
		width: auto;
		height: 0;
		padding-bottom: 93.75%;
		margin-top: 18px;
		background-image: var(--m-hero-img);
		background-size: 166.7% auto;
		background-position: right bottom;
		background-repeat: no-repeat;
	}
}
@media (min-width: 576px) and (max-width: 991px) {
	.m-hero::after { padding-bottom: 82%; }
}
.m-hero-overlay { display: none; }
.m-hero .m-container { position: relative; z-index: 2; }
.m-hero-inner { max-width: 760px; }
.m-hero-eyebrow {
	font-family: var(--m-font-sub);
	font-size: clamp(16px, 1.8vw, 24px);
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--m-bg);
	margin-bottom: .6em;
}
.m-hero-title {
	font-family: var(--m-font-heading);
	font-size: clamp(40px, 4.8vw, 66px);
	color: var(--m-bg);
	margin-bottom: 36px;
	line-height: 1.12;
}

/* ------------------------------------------------------- Section header */
.m-sec-head { margin-bottom: 44px; }
.m-sec-head--center { text-align: center; max-width: 760px; margin-inline: auto; }
.m-sec-head--left { text-align: left; }
.m-eyebrow {
	font-family: var(--m-font-sub);
	font-size: var(--m-fs-h6);
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--m-title);
	margin-bottom: .9em;
}
.m-sec-title {
	font-family: var(--m-font-heading);
	font-size: clamp(32px, 4vw, var(--m-fs-h2));
	color: var(--m-title);
	line-height: 1.15;
	margin-bottom: .4em;
}
.m-sec-title--sub {
	font-family: var(--m-font-sub);
	font-size: clamp(24px, 2.4vw, 34px);
	font-weight: 600;
	letter-spacing: .005em;
}
.m-sec-intro { max-width: 760px; margin-inline: auto; }
.m-sec-head--left .m-sec-intro { margin-inline: 0; }
.m-lead { font-size: calc(var(--m-fs-body) + 2px); color: var(--m-title); }

/* ------------------------------------------------------- Format cards */
.m-format-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px;
}
.m-format-media { display: block; overflow: hidden; }
.m-format-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .6s ease;
}
.m-format-card:hover .m-format-media img { transform: scale(1.05); }
.m-format-title {
	margin: 0;
	padding: 22px 16px;
	background: var(--m-title);
	text-align: center;
}
.m-format-title a {
	font-family: var(--m-font-sub);
	font-size: clamp(18px, 1.6vw, 24px);
	font-weight: 700;
	color: var(--m-bg);
}
.m-format-title a:hover { color: var(--m-accent); }
.m-format-text { margin-top: 22px; text-align: center; }

/* ------------------------------------------------------------- Marquee */
.m-marquee {
	overflow: hidden;
	padding-block: 10px;
	border-block: 0;
	-webkit-user-select: none;
	user-select: none;
}
.m-marquee-track {
	display: flex;
	width: max-content;
	animation: m-marquee var(--m-marquee-speed) linear infinite;
}
.m-marquee-group { display: flex; }
.m-marquee-item {
	font-family: var(--m-font-heading);
	font-size: clamp(42px, 6vw, 86px);
	color: var(--m-border);
	padding-inline: 28px;
	white-space: nowrap;
	line-height: 1.3;
}
@keyframes m-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.m-marquee-track { animation: none; }
}

/* ---------------------------------------------------------------- Split */
.m-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}
.m-split--reverse .m-split-media { order: 2; }
.m-split--contact { grid-template-columns: 1fr 1.1fr; align-items: start; }
.m-split-body > p { margin-bottom: 1.3em; }
.m-split-body .m-btn { margin-top: 12px; }

.m-philo-img img,
.m-studio-img img,
.m-story-img img,
.m-class-img img,
.m-faq-img img {
	width: 100%;
	object-fit: cover;
}
.m-split-media { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.m-split-media > *:only-child { grid-column: 1 / -1; }
.m-philo-img--1 { grid-column: 1 / -1; }
.m-philo-img img { aspect-ratio: 4 / 3; }
.m-studio-img img { aspect-ratio: 534 / 610; }
.m-story-img img,
.m-class-img img { aspect-ratio: 4 / 5; }
.m-faq-img img { aspect-ratio: 3 / 4; }

/* Sections that have no image use the full width. */
.m-class-section--text .m-split { grid-template-columns: 1fr; }
.m-class-section--text .m-split-body { max-width: 900px; }

/* ------------------------------------------------------- Schedule table */
.m-schedule-title {
	font-family: var(--m-font-heading);
	font-size: clamp(30px, 3.6vw, 52px);
	text-align: center;
	max-width: 900px;
	margin: 0 auto 54px;
	line-height: 1.25;
}
.m-schedule-title span { display: block; }

.m-table { width: 100%; }
.m-table-head,
.m-table-row {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 60px;
	gap: 20px;
	align-items: center;
}
.m-table-head {
	padding-bottom: 18px;
	border-bottom: 1px solid var(--m-border);
	font-family: var(--m-font-sub);
	font-size: 17px;
	font-weight: 500;
	color: var(--m-title);
}
.m-table-row {
	padding-block: 34px;
	border-bottom: 1px solid var(--m-border);
}
.m-table-name {
	font-family: var(--m-font-sub);
	font-size: clamp(20px, 2vw, 28px);
	font-weight: 500;
	margin-bottom: 14px;
}
.m-table-instructor {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var(--m-font-sub);
	font-size: 15px;
	color: var(--m-title);
}
.m-avatar {
	width: 44px; height: 44px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
	background: var(--m-bg-alt);
}
.m-avatar img { width: 100%; height: 100%; object-fit: cover; }
.m-avatar--lg { width: 64px; height: 64px; }

.m-table-days span,
.m-table-times span { display: block; margin-bottom: 10px; }
.m-table-days span:last-child,
.m-table-times span:last-child { margin-bottom: 0; }

.m-table-link { text-align: right; }
.m-arrow-right,
.m-arrow-up {
	display: inline-block;
	width: 34px; height: 10px;
	position: relative;
	color: var(--m-title);
}
.m-arrow-right::before {
	content: "";
	position: absolute; top: 50%; left: 0;
	width: 100%; height: 1px;
	background: currentColor;
}
.m-arrow-right::after {
	content: "";
	position: absolute; top: 50%; right: 0;
	width: 9px; height: 9px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}
.m-table-link a { display: inline-block; transition: transform .3s ease; }
.m-table-link a:hover { transform: translateX(6px); }

/* ----------------------------------------------------------------- Stats */
.m-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	text-align: center;
}
.m-stat-number {
	font-family: var(--m-font-heading);
	font-size: clamp(44px, 5vw, 76px);
	color: var(--m-title);
	margin-bottom: .2em;
}
.m-stat-label {
	font-family: var(--m-font-sub);
	font-size: 15px;
	color: var(--m-title);
	margin: 0;
}

/* -------------------------------------------------------- Google reviews */
.m-slider { position: relative; max-width: 900px; margin-inline: auto; text-align: center; }
.m-slider-track { position: relative; }
.m-slide { display: none; }
.m-slide.is-active { display: block; animation: m-fade .5s ease both; }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
.m-slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.m-dot {
	width: 9px; height: 9px;
	border-radius: 50%;
	border: 1px solid var(--m-title);
	background: transparent;
	padding: 0;
}
.m-dot.is-active { background: var(--m-title); }

/* Star row */
.m-stars { display: inline-flex; gap: 3px; line-height: 1; }
.m-star {
	width: 17px;
	height: 17px;
	background: var(--m-border);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.2l2.95 5.98 6.6.96-4.77 4.65 1.12 6.57L12 17.26l-5.9 3.1 1.12-6.57L2.45 9.14l6.6-.96L12 2.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'%3E%3Cpath d='M12 2.2l2.95 5.98 6.6.96-4.77 4.65 1.12 6.57L12 17.26l-5.9 3.1 1.12-6.57L2.45 9.14l6.6-.96L12 2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.m-star.is-full { background: #E8A33D; }
.m-star.is-half { background: linear-gradient(90deg, #E8A33D 50%, var(--m-border) 50%); }

/* Rating summary */
.m-review-summary {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px 22px;
	margin-bottom: 44px;
	padding: 22px 28px;
	border: 1px solid var(--m-border);
	border-radius: 14px;
	background: var(--m-bg-alt);
}
.m-review-score {
	font-family: var(--m-font-sub);
	font-size: 44px;
	font-weight: 600;
	line-height: 1;
	color: var(--m-title);
}
.m-review-summary-body { display: flex; flex-direction: column; gap: 7px; }
.m-review-count {
	font-family: var(--m-font-sub);
	font-size: 14px;
	letter-spacing: .02em;
	color: var(--m-meta);
}
.m-review-cta { margin-left: auto; }

/* Cards */
.m-review-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 24px;
}
.m-review-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	padding: 26px 26px 22px;
	border: 1px solid var(--m-border);
	border-radius: 14px;
	background: #fff;
	transition: transform .25s ease, box-shadow .25s ease;
}
.m-review-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(79, 57, 37, .1);
}
.m-review-text {
	flex: 1;
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--m-text);
}
.m-review-by {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid var(--m-border);
}
.m-review-avatar {
	width: 42px;
	height: 42px;
	flex: none;
	border-radius: 50%;
	overflow: hidden;
	display: grid;
	place-items: center;
}
.m-review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.m-review-avatar--letter {
	background: var(--m-accent);
	color: #fff;
	font-family: var(--m-font-sub);
	font-size: 18px;
	font-weight: 600;
}
.m-review-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-review-name {
	font-family: var(--m-font-sub);
	font-size: 15px;
	font-weight: 600;
	color: var(--m-title);
}
.m-review-name a { color: inherit; text-decoration: none; }
.m-review-name a:hover { text-decoration: underline; }
.m-review-date { font-size: 13px; color: var(--m-meta); }
.m-review-source {
	margin-left: auto;
	align-self: flex-start;
	font-family: var(--m-font-sub);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--m-meta);
}

/* --------------------------------------------------------- Coming soon */
.m-soon .m-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}
.m-soon-badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 7px 16px;
	border: 1px solid var(--m-accent);
	border-radius: 999px;
	font-family: var(--m-font-sub);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--m-accent);
}
.m-soon-title {
	font-family: var(--m-font-heading);
	font-size: clamp(38px, 4.4vw, 64px);
	line-height: 1.1;
	margin-bottom: 22px;
	color: var(--m-title);
}
.m-soon-text { font-size: 16px; line-height: 1.75; }
.m-soon-media { margin: 0; }
.m-soon-media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 16px;
}
@media (max-width: 991px) {
	.m-soon .m-container { grid-template-columns: 1fr; gap: 36px; }
	.m-soon-media { order: -1; }
	.m-soon-media img { aspect-ratio: 16 / 10; }
}

/* ------------------------------------------------------- Class list cards */
.m-classlist {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}
.m-classlist-card {
	padding: 30px 28px;
	border: 1px solid var(--m-border);
	border-radius: 14px;
	background: var(--m-bg-alt);
	transition: transform .25s ease, box-shadow .25s ease;
}
.m-classlist-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(79, 57, 37, .1);
}
.m-classlist-name {
	margin: 0 0 12px;
	font-family: var(--m-font-sub);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--m-title);
}
.m-classlist-text { margin: 0; font-size: 15px; line-height: 1.7; }

/* -------------------------------------------------- Mariana Tek embeds */
.m-mt-embed {
	width: 100%;
	min-height: 420px;
}
.m-mt-embed iframe {
	width: 100% !important;
	border: 0;
}
.m-mt-section .m-sec-head { margin-bottom: 36px; }
.m-sched { padding-top: 0; }
.m-sched-intro { padding-bottom: 0; }
.m-mt-missing {
	padding: 22px 24px;
	border: 1px dashed var(--m-border);
	border-radius: 12px;
	background: var(--m-bg-alt);
	color: var(--m-meta);
	text-align: center;
}

/* ------------------------------------------------------------------- CTA */
.m-cta {
	position: relative;
	background-size: cover;
	background-position: center;
}
.m-cta-overlay { position: absolute; inset: 0; background: rgba(39, 36, 34, .72); }
.m-cta .m-container { position: relative; z-index: 2; }
.m-cta-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.m-cta-title {
	font-family: var(--m-font-heading);
	font-size: clamp(30px, 3.6vw, 52px);
	color: var(--m-bg);
	margin-bottom: 36px;
}

/* ------------------------------------------------------------------ Form */
.m-form-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.m-field { margin: 0; }
.m-field--full { grid-column: 1 / -1; }
.m-field label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--m-font-sub);
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.m-form input[type="text"],
.m-form input[type="email"],
.m-form input[type="tel"],
.m-form input[type="search"],
.m-form textarea {
	width: 100%;
	padding: 15px 18px;
	border: 1px solid var(--m-border);
	background: transparent;
	color: inherit;
	font-family: var(--m-font-body);
	font-size: 15px;
	border-radius: 0;
	transition: border-color .25s ease;
}
.m-form textarea { resize: vertical; min-height: 130px; }
.m-form input:focus,
.m-form textarea:focus { outline: none; border-color: var(--m-accent); }
.m-form--dark { color: var(--m-bg); }
.m-form--dark .m-field label { color: var(--m-bg); }
.m-form--dark input,
.m-form--dark textarea { border-color: rgba(236, 234, 230, .35); color: var(--m-bg); }
.m-form--dark input::placeholder,
.m-form--dark textarea::placeholder { color: rgba(236, 234, 230, .6); }
.m-form--dark .m-btn--solid { background: var(--m-bg); color: var(--m-title); border-color: var(--m-bg); }
.m-form--dark .m-btn--solid:hover { background: var(--m-accent); color: #fff; border-color: var(--m-accent); }

.m-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 22px 0;
	font-size: 14px;
	text-align: left;
}
.m-consent input { margin-top: 4px; }
.m-form-honey { display: none; }
.m-form-note { padding: 14px 18px; margin-bottom: 20px; font-size: 15px; }
.m-form-note--ok { background: rgba(97, 160, 112, .18); color: #2f6b40; }
.m-form-note--fail { background: rgba(190, 70, 60, .15); color: #9b2f28; }
.m-form--dark .m-form-note--ok,
.m-form--dark .m-form-note--fail { color: var(--m-bg); }

/* --------------------------------------------------------------- Journal */
.m-post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px;
}
.m-post-media { display: block; overflow: hidden; }
.m-post-media img {
	width: 100%;
	aspect-ratio: 924 / 676;
	object-fit: cover;
	transition: transform .6s ease;
}
.m-post-card:hover .m-post-media img { transform: scale(1.05); }
.m-post-body { padding-top: 20px; }
.m-post-cat {
	display: inline-block;
	margin-bottom: 12px;
	font-family: var(--m-font-sub);
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--m-accent);
}
.m-post-title {
	font-family: var(--m-font-sub);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 12px;
}
.m-post-title a { color: var(--m-title); }
.m-post-title a:hover { color: var(--m-accent); }
.m-post-excerpt { margin-bottom: 12px; }
.m-post-meta {
	display: flex;
	gap: 18px;
	margin: 0;
	font-size: 14px;
	color: var(--m-meta);
}

/* ------------------------------------------------------------- Instagram */
.m-insta { padding-block: clamp(48px, 6vw, 86px) 0; }
.m-insta-title {
	text-align: center;
	font-family: var(--m-font-sub);
	font-size: var(--m-fs-h6);
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	margin-bottom: 36px;
}
.m-insta-title a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.m-insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.m-insta-tile { position: relative; display: block; overflow: hidden; }
.m-insta-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s ease; }
.m-insta-tile:hover img { transform: scale(1.06); }
.m-insta-icon {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(39, 36, 34, .45);
	color: #fff; font-size: 26px;
	opacity: 0; transition: opacity .3s ease;
}
.m-insta-tile:hover .m-insta-icon { opacity: 1; }

/* ---------------------------------------------------------- Page banner */
.m-pagehead {
	position: relative;
	min-height: var(--m-pagehead-h);
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	padding-block: 150px 60px;
}
.m-pagehead-overlay { position: absolute; inset: 0; background: rgba(39, 36, 34, .45); }
.m-pagehead .m-container { position: relative; z-index: 2; text-align: center; }
.m-pagehead-title {
	font-family: var(--m-font-heading);
	font-size: clamp(38px, 5vw, 68px);
	color: var(--m-bg);
	margin: 0;
}

/* ------------------------------------------------------------------ Team */
.m-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.m-team-media { display: block; overflow: hidden; }
.m-team-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s ease; }
.m-team-card:hover .m-team-media img { transform: scale(1.05); }
.m-team-name {
	margin: 20px 0 4px;
	font-family: var(--m-font-sub);
	font-size: 20px;
	font-weight: 600;
}
.m-team-role { margin: 0; font-size: 14px; color: var(--m-meta); }

/* --------------------------------------------------------------- Gallery */
.m-gallery-title {
	font-family: var(--m-font-heading);
	font-size: clamp(30px, 3.8vw, 57px);
	text-align: center;
	max-width: 1000px;
	margin: 0 auto .6em;
	line-height: 1.3;
}
.m-gallery-lead { text-align: center; max-width: 760px; margin-inline: auto; }

.m-gallery-block-a {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-bottom: 30px;
}
.m-gallery-block-a--left .m-gallery-quad { order: 2; }
.m-gallery-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.m-gallery-block-b { display: grid; grid-template-columns: repeat(var(--m-gallery-cols, 4), 1fr); gap: 30px; }
.m-gallery-item { display: block; overflow: hidden; }
.m-gallery-item img {
	width: 100%;
	aspect-ratio: 280 / 344;
	object-fit: cover;
	transition: transform .6s ease;
}
.m-gallery-item--feature img { aspect-ratio: 591 / 724; height: 100%; }
.m-gallery-item:hover img { transform: scale(1.05); }

/* ------------------------------------------------------------- Pricing */
.m-tabs-nav {
	display: inline-flex;
	gap: 4px;
	padding: 5px;
	margin: 0 auto 44px;
	border: 1px solid var(--m-border);
	justify-content: center;
}
.m-tabs { text-align: center; }
.m-tab {
	padding: 12px 30px;
	border: 0;
	background: transparent;
	font-family: var(--m-font-sub);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--m-title);
	transition: background-color .25s ease, color .25s ease;
}
.m-tab.is-active { background: var(--m-title); color: var(--m-bg); }
.m-tab-panel { display: none; text-align: left; }
.m-tab-panel.is-active { display: block; }

.m-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.m-plan {
	position: relative;
	padding: 44px 34px;
	border: 1px solid var(--m-border);
	background: var(--m-bg-alt);
	display: flex;
	flex-direction: column;
}
.m-plan--featured { background: var(--m-dark); border-color: var(--m-dark); }
.m-plan--featured .m-plan-name,
.m-plan--featured .m-plan-amount,
.m-plan--featured .m-plan-features li { color: var(--m-bg); }
.m-plan--featured .m-plan-features li::before { background: var(--m-accent); }
.m-plan-badge {
	position: absolute;
	top: 18px; right: 18px;
	padding: 6px 14px;
	background: var(--m-accent);
	color: #fff;
	font-family: var(--m-font-sub);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.m-plan-name { font-family: var(--m-font-sub); font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.m-plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 26px; }
.m-plan-amount { font-family: var(--m-font-heading); font-size: 46px; color: var(--m-title); line-height: 1; }
.m-plan-period { font-size: 14px; color: var(--m-meta); }
.m-plan-features { list-style: none; margin-bottom: 30px; }
.m-plan-features li { position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 15px; }
.m-plan-features li::before {
	content: "";
	position: absolute; left: 0; top: 10px;
	width: 8px; height: 8px;
	background: var(--m-title);
	border-radius: 50%;
}
.m-plan .m-btn { margin-top: auto; }
.m-plan--featured .m-btn--outline { color: var(--m-bg); border-color: rgba(236, 234, 230, .5); }
.m-plan--featured .m-btn--outline:hover { background: var(--m-bg); color: var(--m-title); }

.m-mem-slide { position: relative; width: 420px; flex: 0 0 auto; padding-inline: 15px; }
.m-mem-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.m-mem-slide figcaption {
	margin-top: 14px;
	font-family: var(--m-font-sub);
	font-size: 16px;
	color: var(--m-title);
	text-align: center;
}
.m-marquee--images .m-marquee-track { animation-duration: calc(var(--m-marquee-speed) * 1.6); }

/* ------------------------------------------------------------- Accordion */
.m-accordion { border-top: 1px solid var(--m-border); }
.m-acc-item { border-bottom: 1px solid var(--m-border); }
.m-acc-q {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
	padding: 22px 0;
	background: none;
	border: 0;
	text-align: left;
	color: var(--m-title);
}
.m-acc-num {
	font-family: var(--m-font-sub);
	font-size: 13px;
	color: var(--m-meta);
	padding-top: 4px;
}
.m-acc-text {
	flex: 1;
	font-family: var(--m-font-sub);
	font-size: clamp(15px, 1.4vw, 18px);
	font-weight: 500;
	line-height: 1.45;
}
.m-acc-icon {
	position: relative;
	width: 16px; height: 16px;
	flex: 0 0 auto;
	margin-top: 4px;
}
.m-acc-icon::before,
.m-acc-icon::after {
	content: "";
	position: absolute;
	background: currentColor;
	transition: transform .3s ease, opacity .3s ease;
}
.m-acc-icon::before { top: 7px; left: 0; width: 16px; height: 1.5px; }
.m-acc-icon::after { top: 0; left: 7px; width: 1.5px; height: 16px; }
.m-acc-item.is-open .m-acc-icon::after { transform: scaleY(0); opacity: 0; }
.m-acc-a {
	overflow: hidden;
	max-height: 0;
	transition: max-height .35s ease;
}
.m-acc-item.is-open .m-acc-a { max-height: 2000px; } /* JS sets the exact height */
.m-acc-a-inner { padding: 0 0 24px 44px; }
.m-acc-a-inner p { margin: 0; }

/* ----------------------------------------------------------- Contact page */
.m-contact-map iframe { width: 100%; height: 420px; border: 0; display: block; }
.m-contact-list { list-style: none; margin: 28px 0; }
.m-contact-item { margin-bottom: 14px; }
.m-contact-item a { color: var(--m-title); }
.m-contact-item a:hover { color: var(--m-accent); }
.m-contact-item--phone a { font-family: var(--m-font-sub); font-size: 20px; font-weight: 600; }

.m-socials { display: flex; gap: 12px; margin-top: 24px; }
.m-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border: 1px solid var(--m-border);
	color: var(--m-title);
	font-size: 17px;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.m-social:hover { background: var(--m-title); border-color: var(--m-title); color: var(--m-bg); }

/* ---------------------------------------------------------------- Footer */
.m-footer {
	background: var(--m-dark);
	color: var(--m-dark-text);
	padding-block: clamp(54px, 6vw, 84px) 0;
}
.m-footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.2fr;
	gap: 44px;
	padding-bottom: 54px;
}
.m-footer-logo { display: inline-block; margin-bottom: 28px; }
.m-footer-logo img { width: var(--m-logo-w); max-height: 70px; object-fit: contain; }
.m-footer-title {
	font-family: var(--m-font-sub);
	font-size: 19px;
	font-weight: 600;
	color: var(--m-dark-title);
	margin-bottom: 18px;
}
.m-footer-contact,
.m-footer-address,
.m-footer-hours { margin-bottom: 14px; font-size: 15px; }
.m-footer-contact a,
.m-footer-address a { color: var(--m-dark-text); }
.m-footer-contact a:hover,
.m-footer-address a:hover { color: var(--m-accent); }
.m-footer-sep { padding-inline: 4px; }
.m-footer .m-social { border-color: rgba(236, 234, 230, .25); color: var(--m-dark-title); }
.m-footer .m-social:hover { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }

.m-footer-menu { list-style: none; }
.m-footer-menu li { margin-bottom: 12px; }
.m-footer-menu a { color: var(--m-dark-text); font-size: 15px; }
.m-footer-menu a:hover { color: var(--m-accent); }

.m-map iframe { width: 100%; height: 230px; border: 0; display: block; filter: saturate(.85); }

.m-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	padding-block: 26px;
	border-top: 1px solid rgba(236, 234, 230, .12);
	font-size: 14px;
}
.m-footer-bottom p { margin: 0; }

body.has-sticky-header { scroll-padding-top: 110px; }

/* --------------------------------------------------------------- To top */
.m-totop {
	position: fixed;
	right: 24px; bottom: 24px;
	width: 46px; height: 46px;
	display: flex; align-items: center; justify-content: center;
	background: var(--m-dark);
	border: 0;
	color: var(--m-dark-title);
	opacity: 0; visibility: hidden;
	transform: translateY(12px);
	transition: all .3s ease;
	z-index: 80;
}
.m-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.m-arrow-up {
	width: 10px; height: 10px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(45deg) translate(2px, 2px);
}

/* ---------------------------------------------------------------- Blog */
.m-entry { color: var(--m-text); }
.m-entry h1, .m-entry h2, .m-entry h3 { margin-top: 1.4em; }
.m-entry img { margin-block: 1.4em; }
.m-entry blockquote {
	margin: 1.6em 0;
	padding-left: 24px;
	border-left: 2px solid var(--m-accent);
	font-family: var(--m-font-sub);
	font-size: 18px;
	color: var(--m-title);
}
.m-single-thumb { margin-bottom: 36px; }
.m-post-meta--single { justify-content: flex-start; margin-bottom: 20px; }
.m-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--m-border);
	font-family: var(--m-font-sub);
	font-size: 15px;
}
.m-tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.m-tags a {
	padding: 6px 14px;
	border: 1px solid var(--m-border);
	font-size: 13px;
	color: var(--m-title);
}
.m-searchform { display: flex; gap: 10px; }
.m-searchform input {
	flex: 1;
	padding: 14px 18px;
	border: 1px solid var(--m-border);
	background: transparent;
	font-family: var(--m-font-body);
}
.m-empty { text-align: center; }
.navigation.pagination { margin-top: 56px; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 8px; font-family: var(--m-font-sub); font-size: 15px; }
.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px; height: 44px;
	padding-inline: 10px;
	border: 1px solid var(--m-border);
	color: var(--m-title);
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover { background: var(--m-title); color: var(--m-bg); border-color: var(--m-title); }

.m-comments { margin-top: 56px; }
.m-comment-list { list-style: none; }
.m-comment-list .comment-body { padding: 22px 0; border-bottom: 1px solid var(--m-border); }
.m-comments input[type="text"],
.m-comments input[type="email"],
.m-comments input[type="url"],
.m-comments textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--m-border);
	background: transparent;
	font-family: var(--m-font-body);
}
.m-comments .submit {
	padding: 16px 36px;
	border: 1px solid var(--m-title);
	background: var(--m-title);
	color: var(--m-bg);
	font-family: var(--m-font-sub);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.m-sidebar .widget { margin-bottom: 36px; }
.widget-title { font-family: var(--m-font-sub); font-size: 18px; font-weight: 600; margin-bottom: 14px; }

/* ------------------------------------------------------------ Preloader */
.m-preloader {
	position: fixed; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: var(--m-bg);
	z-index: 999;
	transition: opacity .5s ease, visibility .5s ease;
}
.m-preloader.is-done { opacity: 0; visibility: hidden; }
.m-preloader-mark {
	width: 42px; height: 42px;
	border: 2px solid var(--m-border);
	border-top-color: var(--m-title);
	border-radius: 50%;
	animation: m-spin .8s linear infinite;
}
@keyframes m-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------- Animations */
[data-anim] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-anim].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	[data-anim] { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------------------ Lightbox */
.m-lightbox {
	position: fixed; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(39, 36, 34, .92);
	z-index: 200;
	padding: 24px;
	opacity: 0; visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
}
.m-lightbox.is-open { opacity: 1; visibility: visible; }
.m-lightbox img { max-width: min(1100px, 92vw); max-height: 88vh; object-fit: contain; }
.m-lightbox-close {
	position: absolute; top: 20px; right: 24px;
	width: 42px; height: 42px;
	background: none; border: 0;
	color: var(--m-bg); font-size: 28px; line-height: 1;
}

/* --------------------------------------------------------- Breakpoints */
/* 1440 and below: the design's own width, then one step at a time. */
@media (max-width: 1439px) {
	.m-container { padding-inline: 64px; }
}

@media (max-width: 1280px) {
	.m-container { padding-inline: 48px; }
	.m-insta-grid { grid-template-columns: repeat(6, 1fr); }
	.m-review-grid { gap: 20px; }
	.m-mem-slide { width: 380px; }
}

@media (max-width: 1100px) {
	.m-container { padding-inline: 40px; }
	.m-format-grid,
	.m-post-grid,
	.m-team-grid,
	.m-plan-grid { grid-template-columns: repeat(2, 1fr); }
	.m-stats-grid { grid-template-columns: repeat(2, 1fr); }
	.m-insta-grid { grid-template-columns: repeat(3, 1fr); }
	.m-gallery-block-b { grid-template-columns: repeat(2, 1fr); }
	.m-footer-grid { grid-template-columns: 1fr 1fr; }
	.m-footer-col--map { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
	.m-container { padding-inline: 32px; }
	.m-burger { display: block; }
	.m-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(340px, 86vw);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 100px 28px 40px;
		background: var(--m-dark);
		transform: translateX(100%);
		transition: transform .35s ease;
		overflow-y: auto;
		z-index: 95;
	}
	.m-nav.is-open { transform: translateX(0); }
	.m-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.m-menu > li { border-bottom: 1px solid rgba(236, 234, 230, .12); }
	.m-menu > li > a { padding: 14px 0; justify-content: space-between; }
	.m-menu > li > a .m-caret { display: none; }
	.m-submenu-toggle {
		display: block;
		position: absolute;
		top: 6px; right: 0;
		color: var(--m-dark-title);
	}
	.m-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: transparent;
		max-height: 0;
		overflow: hidden;
		padding: 0;
		transition: max-height .3s ease;
	}
	.m-menu li.is-open > .sub-menu { max-height: 1200px; padding-bottom: 10px; }
	.m-menu .sub-menu a { padding: 10px 14px; }
	.m-nav-cta { margin-top: 24px; }

	.m-split,
	.m-split--contact { grid-template-columns: 1fr; }
	.m-split--reverse .m-split-media { order: 0; }
	.m-table-head { display: none; }
	.m-table-row { grid-template-columns: 1fr 1fr; row-gap: 16px; }
	.m-table-format { grid-column: 1 / -1; }
	.m-table-link { grid-column: 1 / -1; text-align: left; }
	.m-form-grid { grid-template-columns: 1fr 1fr; }
	.m-gallery-block-a { grid-template-columns: 1fr; }
	.m-gallery-block-a--left .m-gallery-quad { order: 0; }
	.m-gallery-item--feature img { aspect-ratio: 4 / 3; }
	.m-contact-map iframe { height: 320px; }
}

@media (max-width: 820px) {
	.m-container { padding-inline: 24px; }
	.m-insta-grid { grid-template-columns: repeat(3, 1fr); }
	.m-gallery-quad { grid-template-columns: repeat(2, 1fr); }
	.m-mem-slide { width: 340px; }
	.m-review-card { padding: 22px 22px 18px; }
	.m-review-summary { gap: 12px 18px; padding: 20px 22px; }
}

@media (max-width: 640px) {
	.m-container { padding-inline: 20px; }
	.m-format-grid,
	.m-post-grid,
	.m-team-grid,
	.m-plan-grid,
	.m-stats-grid,
	.m-form-grid { grid-template-columns: 1fr; }
	.m-insta-grid { grid-template-columns: repeat(2, 1fr); }
	.m-gallery-quad,
	.m-gallery-block-b { grid-template-columns: 1fr 1fr; gap: 16px; }
	.m-gallery-block-a { gap: 16px; margin-bottom: 16px; }
	.m-footer-grid { grid-template-columns: 1fr; }
	.m-hero .m-container { width: 100%; }
	.m-table-row { grid-template-columns: 1fr; }
	.m-acc-a-inner { padding-left: 0; }
	.m-mem-slide { width: 280px; }
	.m-btn { padding: 14px 28px; font-size: 14px; }
}

@media (max-width: 480px) {
	.m-container { padding-inline: 18px; }
	.m-insta-grid { grid-template-columns: repeat(2, 1fr); }
	.m-gallery-quad,
	.m-gallery-block-b { grid-template-columns: 1fr; }
	.m-stats-grid { grid-template-columns: 1fr; }
	.m-mem-slide { width: 250px; }
	.m-review-summary { flex-direction: column; text-align: center; }
	.m-review-cta { margin-left: 0; width: 100%; text-align: center; }
	.m-review-summary-body { align-items: center; }
	.m-section { padding-block: clamp(44px, 11vw, 64px); }
	.m-main .m-btn { width: 100%; text-align: center; }
	.m-hero { padding: 104px 0 0; }
}
