/* ==========================================================================
   Body Mind Yoga — theme styles (header, navigation, notice, footer, base)
   Page sections are built in Elementor using the matching bmy-* global
   classes and variables.
   ========================================================================== */

:root {
	--bmy-purple-deep: #43206d;
	--bmy-purple: #5e367e;
	--bmy-purple-ink: #2e1650;
	--bmy-lilac: #d6c5e2;
	--bmy-lilac-pale: #f4eff8;
	--bmy-page: #fcfafd;
	--bmy-text: #302a35;
	--bmy-text-2: #625a68;
	--bmy-border: #e5ddea;
	--bmy-radius: 12px;
	--bmy-radius-btn: 8px;
	--bmy-container: 1120px;
	--bmy-reading: 720px;
	--bmy-shadow: 0 1px 2px rgba(67, 32, 109, .06), 0 8px 24px -12px rgba(67, 32, 109, .18);
	--bmy-font-body: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bmy-font-head: "Comfortaa", var(--bmy-font-body);
	--bmy-admin-bar: 0px;
}
.admin-bar { --bmy-admin-bar: 32px; }
@media (max-width: 782px) { .admin-bar { --bmy-admin-bar: 46px; } }

/* Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
body.bmy-refresh {
	margin: 0;
	background: var(--bmy-page);
	color: var(--bmy-text);
	font-family: var(--bmy-font-body);
	font-size: 18px;
	line-height: 1.6;
}
.bmy-refresh img { max-width: 100%; height: auto; }
.bmy-refresh a { color: var(--bmy-purple); }
.bmy-refresh a:hover { color: var(--bmy-purple-deep); }
.bmy-refresh :focus-visible { outline: 3px solid var(--bmy-purple); outline-offset: 3px; border-radius: 4px; }
.bmy-skip {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--bmy-purple-deep); color: #fff !important;
	padding: 10px 16px; border-radius: var(--bmy-radius-btn); text-decoration: none;
}
.bmy-skip:focus { top: calc(var(--bmy-admin-bar) + 12px); }
.bmy-i { display: inline-block; flex-shrink: 0; vertical-align: middle; }

.bmy-container { width: 100%; max-width: calc(var(--bmy-container) + 48px); margin: 0 auto; padding: 0 24px; }
.bmy-section { padding: 64px 0; }
@media (max-width: 760px) { .bmy-container { padding: 0 16px; } .bmy-section { padding: 44px 0; } }

/* Buttons and links ---------------------------------------------------- */
.bmy-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border: 2px solid var(--bmy-purple); border-radius: var(--bmy-radius-btn);
	background: var(--bmy-purple); color: #fff !important;
	font: 600 17px/1 var(--bmy-font-body); text-decoration: none; white-space: nowrap;
	cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.bmy-button:hover { background: var(--bmy-purple-deep); border-color: var(--bmy-purple-deep); }
.bmy-button--light { background: #fff; border-color: #fff; color: var(--bmy-purple-deep) !important; }
.bmy-button--light:hover { background: var(--bmy-lilac-pale); border-color: var(--bmy-lilac-pale); }
.bmy-button--sm { min-height: 44px; padding: 0 16px; font-size: 16px; }
.bmy-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.bmy-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bmy-link .bmy-i { transition: transform .15s; }
.bmy-link:hover .bmy-i { transform: translateX(3px); }

/* Contact strip -------------------------------------------------------- */
.bmy-strip { background: var(--bmy-purple-deep); color: #fff; font-size: 15px; }
.bmy-strip .bmy-container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.bmy-strip a { color: #fff !important; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.bmy-strip a:hover { text-decoration: underline; }
.bmy-strip__contact { display: flex; gap: 20px; }
.bmy-strip__note { opacity: .85; }
@media (max-width: 760px) {
	.bmy-strip__note { display: none; }
	.bmy-strip .bmy-container { justify-content: center; }
	.bmy-strip__contact { gap: 14px; font-size: 14px; }
}
@media (max-width: 400px) { .bmy-strip__email { display: none !important; } }

/* Header and navigation ------------------------------------------------ */
.bmy-header {
	position: sticky; top: var(--bmy-admin-bar); z-index: 50;
	background: #fff; border-bottom: 1px solid var(--bmy-border);
}
.bmy-header .bmy-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.bmy-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.bmy-brand__lotus { width: 54px; }
.bmy-brand__word { width: 140px; }

.bmy-nav { display: flex; align-items: center; gap: 4px; }
.bmy-nav__list { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.bmy-nav__item { position: relative; }
.bmy-nav__link {
	display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 11px;
	background: none; border: 0; border-radius: 6px; cursor: pointer; white-space: nowrap;
	color: var(--bmy-text) !important; font: 600 16px/1 var(--bmy-font-body); text-decoration: none;
}
.bmy-nav__link:hover,
.bmy-nav__link[aria-expanded="true"],
.bmy-nav__link[aria-current="page"] { background: var(--bmy-lilac-pale); color: var(--bmy-purple-deep) !important; }
.bmy-chev { transition: transform .15s; }
.bmy-nav__link[aria-expanded="true"] .bmy-chev { transform: rotate(180deg); }
.bmy-sub {
	display: none; position: absolute; left: 0; top: calc(100% + 6px); min-width: 250px;
	margin: 0; padding: 8px; list-style: none;
	background: #fff; border: 1px solid var(--bmy-border); border-radius: var(--bmy-radius); box-shadow: var(--bmy-shadow);
}
.bmy-sub.is-open { display: block; }
.bmy-sub a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--bmy-text) !important; font-size: 16px; line-height: 1.3; text-decoration: none; }
.bmy-sub a:hover, .bmy-sub a[aria-current="page"] { background: var(--bmy-lilac-pale); color: var(--bmy-purple-deep) !important; }
.bmy-nav__cta { margin-left: 10px; }
.bmy-menu-btn { display: none; }

@media (max-width: 1200px) {
	.bmy-menu-btn {
		display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
		background: #fff; border: 1.5px solid var(--bmy-border); border-radius: var(--bmy-radius-btn);
		color: var(--bmy-purple-deep); font: 600 16px/1 var(--bmy-font-body); cursor: pointer;
	}
	.bmy-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; padding: 12px 16px 20px;
		max-height: calc(100vh - 80px - var(--bmy-admin-bar)); overflow: auto;
		background: #fff; border-bottom: 1px solid var(--bmy-border); box-shadow: var(--bmy-shadow);
	}
	.bmy-nav.is-open { display: flex; }
	.bmy-nav__list { flex-direction: column; }
	.bmy-nav__link { width: 100%; justify-content: space-between; min-height: 48px; font-size: 17px; }
	.bmy-sub { position: static; min-width: 0; padding: 0 0 8px 12px; border: 0; box-shadow: none; }
	.bmy-nav__cta { margin: 12px 0 0; width: 100%; }
}
@media (max-width: 420px) { .bmy-brand__word { width: 120px; } .bmy-brand__lotus { width: 44px; } }

/* Term notice ---------------------------------------------------------- */
.bmy-notice { background: var(--bmy-lilac-pale); border-bottom: 1px solid var(--bmy-border); }
.bmy-notice[hidden] { display: none; }
.bmy-notice .bmy-container {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px;
	min-height: 52px; padding-top: 10px; padding-bottom: 10px; text-align: center; font-size: 17px;
}
.bmy-notice__tag {
	padding: 4px 10px; border-radius: 999px; background: var(--bmy-purple-deep); color: #fff;
	font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

/* Plain content (non-Elementor pages and posts) ------------------------ */
.bmy-prose { max-width: calc(var(--bmy-reading) + 48px); }
.bmy-prose h1, .bmy-prose h2, .bmy-prose h3 {
	font-family: var(--bmy-font-head); color: var(--bmy-purple-deep); font-weight: 700; line-height: 1.2; letter-spacing: -.01em;
}
.bmy-prose h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 0 0 .6em; }
.bmy-prose h2 { font-size: clamp(24px, 3vw, 30px); margin: 1.6em 0 .5em; }
.bmy-prose h3 { font-size: 20px; margin: 1.4em 0 .4em; }
.bmy-post-list { display: grid; gap: 20px; margin-top: 24px; }
.bmy-post-card { background: #fff; border: 1px solid var(--bmy-border); border-radius: var(--bmy-radius); padding: 24px; }
.bmy-post-card h2 { margin: 0 0 8px; font-size: 22px; }
.bmy-post-card h2 a { text-decoration: none; color: inherit; }
.bmy-post-card__date { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bmy-purple); }

/* Footer --------------------------------------------------------------- */
.bmy-footer { background: var(--bmy-purple-ink); color: rgba(255, 255, 255, .82); font-size: 16px; }
.bmy-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.bmy-footer a:hover { color: #fff; text-decoration: underline; }
.bmy-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding: 56px 0 40px; }
.bmy-footer h2 { margin: 0 0 14px; color: #fff; font: 700 15px/1.3 var(--bmy-font-body); letter-spacing: .08em; text-transform: uppercase; }
.bmy-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bmy-footer__logo { width: 120px; margin-bottom: 16px; }
.bmy-footer__blurb { margin: 0; max-width: 22em; }
.bmy-footer__cta { margin-top: 18px; }
.bmy-footer .bmy-button--light:hover { text-decoration: none; }
.bmy-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(255, 255, 255, .65);
}
@media (max-width: 900px) { .bmy-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .bmy-footer__grid { grid-template-columns: 1fr; gap: 28px; } }
.bmy-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bmy-footer__brand { display: flex; align-items: center; gap: 28px; margin-bottom: 16px; }
.bmy-footer__brand .bmy-footer__logo { margin-bottom: 0; }
.bmy-footer__badge-wrap { flex-shrink: 0; }
.bmy-footer__badge-wrap a { display: inline-block; border-radius: 50%; }
.bmy-footer__badge { display: block; width: 110px; max-width: 100%; height: auto; border: 0; transition: transform .15s; }
.bmy-footer__badge-wrap a:hover .bmy-footer__badge { transform: scale(1.04); }
