/* Bombay Marketing theme shell: base elements, header, mobile menu, plain-page layouts.
 * Page designs (bm- classes) live in site.css. */

/* 1. Base elements (kept identical to the previous theme defaults so existing pages render the same) */
*, *:before, *:after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-kerning: normal; text-rendering: optimizeLegibility; max-width: 100vw; overflow-x: hidden; }
html, body { margin: 0; position: relative; }
body {
	background: #141414;
	color: #fff;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-size: 20px;
	line-height: 1.5em;
}
p { margin: 0 0 1em; }
a { color: #3359e0; text-decoration: none; transition: all .2s cubic-bezier(.68,.01,.58,.75); }
a strong { color: inherit; }
b, strong { font-weight: bolder; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
input, select, textarea { line-height: 1.5em; }
button { border: none; }
h1, h2, h3, h4, h5, h6 { color: #fcfafa; font-family: "Space Grotesk", system-ui, sans-serif; font-style: normal; }
h1 { font-size: 80px; font-weight: 600; text-transform: uppercase; line-height: 1.1em; letter-spacing: -.027em; margin: .67em 0; }
h2 { font-size: 56px; font-weight: 600; text-transform: uppercase; line-height: 1.2em; letter-spacing: -.027em; }
h3 { font-size: 32px; font-weight: 600; line-height: 1.2em; letter-spacing: -.027em; }
h4 { font-size: 24px; font-weight: 500; line-height: 1.3em; letter-spacing: -.027em; }
h5 { font-size: 20px; font-weight: 600; line-height: 1.3em; letter-spacing: -.015em; }
h6 { font-size: 16px; font-weight: 600; text-transform: uppercase; line-height: 1.2em; letter-spacing: -.027em; }
@media (max-width: 1024px) {
	body { font-size: 18px; }
	h1 { font-size: 60px; } h2 { font-size: 38px; } h3 { font-size: 26px; } h4 { font-size: 21px; } h5 { font-size: 18px; } h6 { font-size: 14px; }
}
@media (max-width: 767px) {
	body { font-size: 16px; }
	h1 { font-size: 40px; } h2 { font-size: 28px; } h3 { font-size: 22px; } h4 { font-size: 19px; } h5 { font-size: 16px; } h6 { font-size: 12px; }
}

.bm-skip { position: absolute; left: -9999px; top: 0; z-index: 10001; background: #ffc72c; color: #141414; padding: 10px 16px; font: 700 15px/1 "DM Sans", sans-serif; border-radius: 0 0 8px 0; }
.bm-skip:focus { left: 0; }

/* 2. Header (transparent over the dark hero; slides in fixed when scrolling up) */
.bm-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; color: #fff; }
.bm-header-in { max-width: 1170px; margin: 0 auto; padding: 0 0; height: 101px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bm-brand { display: inline-flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.bm-brand img { height: 44px; width: auto; display: block; }
.admin-bar .bm-header { top: 32px; }

.bm-header.is-fixed { position: fixed; background: rgba(20,20,20,.97); box-shadow: 0 6px 24px rgba(0,0,0,.25); transform: translateY(-100%); transition: transform .3s ease; }
.bm-header.is-fixed.is-shown { transform: translateY(0); }
.bm-header.is-fixed .bm-header-in { height: 76px; }
.bm-header.is-fixed .bm-brand img { height: 36px; }

.bm-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.bm-menu > li { position: relative; }
.bm-menu > li > a { display: flex; align-items: center; gap: 6px; height: 101px; padding: 0 18px; color: #fff; font: 500 18px/1 "Space Grotesk", system-ui, sans-serif; }
.bm-header.is-fixed .bm-menu > li > a { height: 76px; }
.bm-menu > li:last-child > a { padding-right: 0; }
.bm-menu > li > a:hover, .bm-menu > li:hover > a, .bm-menu > li > a:focus-visible { color: #b9b9b9; }
.bm-menu > .menu-item-has-children > a { padding-right: 34px; }
.bm-menu > .menu-item-has-children > a:after { content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.bm-menu .sub-menu { list-style: none; margin: 0; padding: 22px 0; position: absolute; top: calc(100% - 4px); left: -12px; min-width: 300px; background: #141414; border: 1px solid #242424; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
.bm-menu li:hover > .sub-menu, .bm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.bm-menu .sub-menu a { display: block; padding: 8px 32px; color: #fff; font: 500 16.5px/1.4 "Space Grotesk", system-ui, sans-serif; white-space: nowrap; }
.bm-menu .sub-menu a:hover, .bm-menu .sub-menu a:focus-visible { color: #ffc72c; }
.bm-menu .current-menu-item > a { color: #fff; }

.bm-burger { display: none; width: 44px; height: 44px; margin-right: -10px; background: transparent; color: #fff; cursor: pointer; padding: 12px; flex-direction: column; justify-content: space-between; }
.bm-burger span { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; }

@media (max-width: 1240px) {
	.bm-header-in { padding: 0 32px; }
	.bm-menu > li > a { padding: 0 12px; font-size: 16px; }
	.bm-menu > .menu-item-has-children > a { padding-right: 30px; }
	.bm-menu > .menu-item-has-children > a:after { right: 14px; }
}
@media (max-width: 1024px) {
	.bm-nav { display: none; }
	.bm-burger { display: flex; }
	.bm-header-in { height: 77px; padding: 0 24px; }
	.bm-brand img { height: 34px; }
	.bm-header.is-fixed .bm-header-in { height: 64px; }
	.bm-header.is-fixed .bm-brand img { height: 30px; }
}
@media (max-width: 782px) { .admin-bar .bm-header { top: 46px; } .admin-bar .bm-header.is-fixed { top: 0; } }

/* 3. Mobile menu */
.bm-mobile { position: fixed; inset: 0; z-index: 10000; background: #141414; color: #f3eee2; overflow-y: auto; padding: 0 14px 120px; }
.bm-mobile[hidden] { display: none; }
.bm-mobile:after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 22px; background: repeating-conic-gradient(#ffc72c 0 25%, #141414 0 50%) 0 0/22px 22px; }
.bm-mobile-head { padding: 0 10px; margin-bottom: 14px; height: 77px; display: flex; align-items: center; justify-content: space-between; }
.bm-mobile-head .bm-brand img { height: 34px; }
.bm-close { width: 44px; height: 44px; margin-right: -10px; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bm-mmenu, .bm-mmenu .sub-menu { list-style: none; margin: 0; padding: 0; }
.bm-mmenu > li { position: relative; border-bottom: 1.5px dashed rgba(243,238,226,.18); }
.bm-mmenu > li > a { display: block; padding: 16px 48px 16px 10px; color: #f3eee2; font: 800 34px/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.bm-mmenu .current-menu-item > a, .bm-mmenu a:active { color: #ffc72c; }
.bm-sub-toggle { position: absolute; right: 0; top: 10px; width: 48px; height: 48px; background: transparent; color: #f3eee2; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bm-sub-toggle svg { transition: transform .2s; }
.bm-sub-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.bm-mmenu .sub-menu { display: none; padding: 0 0 16px 10px; }
.bm-mmenu .is-open > .sub-menu { display: block; }
.bm-mmenu .sub-menu a { display: block; padding: 9px 0; color: #cfc8b8; font: 500 18px/1.35 "DM Sans", sans-serif; }
.bm-mmenu .sub-menu a:hover { color: #ffc72c; }
body.bm-menu-open { overflow: hidden; }

/* 4. Back to top */
.bm-top { position: fixed; right: 30px; bottom: 30px; z-index: 998; width: 40px; height: 40px; border-radius: 4px; background: #141414; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.bm-top.is-visible { opacity: 1; visibility: visible; }
@media (max-width: 767px) { .bm-top { display: none; } }

/* 5. Plain pages, posts, archives, search, 404 (rendered by the theme, not Elementor) */
.bm-main { display: block; }
.bm-main.bm-page { min-height: 50vh; }
.bm-prose { color: #2a2823; font-size: 17.5px; line-height: 1.75; }
.bm-prose > *:first-child { margin-top: 0; }
.bm-page .bm-prose h2, .bm-page .bm-prose h3, .bm-page .bm-prose h4 { font-family: "Bricolage Grotesque", sans-serif; color: #141414; font-weight: 800; letter-spacing: -.02em; text-transform: none !important; line-height: 1.15; margin: 1.8em 0 .5em; }
.bm-page .bm-prose h2 { font-size: clamp(26px, 3.2vw, 34px); }
.bm-page .bm-prose h3 { font-size: clamp(21px, 2.4vw, 25px); }
.bm-page .bm-prose h4 { font-size: 19px; }
.bm-prose p, .bm-prose li { color: #2a2823; }
.bm-prose ul, .bm-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.bm-prose li { margin: .35em 0; }
.bm-page .bm-prose a { color: #141414; text-decoration: underline; text-decoration-color: #ffc72c; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.bm-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid #ffc72c; }
.bm-prose img, .bm-prose-img { border-radius: 14px; border: 2px solid #141414; margin: 0 0 24px; }
.bm-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 16px; }
.bm-prose th, .bm-prose td { border: 1.5px solid #141414; padding: 10px 12px; text-align: left; }

.bm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.bm-card { background: #fffdf8; border: 2px solid #141414; border-radius: 18px; box-shadow: 5px 5px 0 #141414; padding: 26px; display: flex; flex-direction: column; }
.bm-card-meta { font: 700 12.5px/1 "DM Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #5b5649; margin: 0 0 14px; }
.bm-page .bm-card h2 { font: 800 22px/1.2 "Bricolage Grotesque", sans-serif; color: #141414; margin: 0 0 10px; }
.bm-page .bm-card h2 a { color: #141414; }
.bm-card p { color: #5b5649; font-size: 15.5px; line-height: 1.6; margin: 0 0 18px; flex: 1; }
.bm-page .bm-card-link { color: #141414; font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: #ffc72c; text-decoration-thickness: 3px; text-underline-offset: 3px; }
@media (max-width: 960px) { .bm-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bm-cards { grid-template-columns: 1fr; } }

.bm-pager { margin-top: 44px; }
.bm-pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-pager .page-numbers { display: inline-flex; min-width: 44px; height: 44px; padding: 0 14px; align-items: center; justify-content: center; border: 2px solid #141414; border-radius: 10px; color: #141414; font: 700 15px/1 "DM Sans", sans-serif; background: #fffdf8; }
.bm-pager .page-numbers.current { background: #ffc72c; }
.bm-pager .screen-reader-text, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.bm-empty { color: #2a2823; }
.bm-page .bm-empty h2 { font: 800 28px/1.2 "Bricolage Grotesque", sans-serif; color: #141414; text-transform: none; margin: 0 0 10px; }
.bm-page .bm-empty a { color: #141414; text-decoration: underline; text-decoration-color: #ffc72c; text-decoration-thickness: 3px; }
.bm-empty .search-form { display: flex; gap: 10px; max-width: 520px; margin-top: 24px; }
.bm-empty .search-form label { flex: 1; }
.bm-empty .search-field { width: 100%; font: 16px "DM Sans", sans-serif; color: #141414; background: #fffdf8; border: 2px solid #141414; border-radius: 12px; padding: 13px 16px; }
.bm-empty .search-submit { font: 700 16px "DM Sans", sans-serif; background: #ffc72c; color: #141414; border: 2px solid #141414; border-radius: 12px; padding: 13px 22px; cursor: pointer; }
.bm-main .bm-btns + .bm-empty { margin-top: 40px; }

/* 6. Keep Elementor's global button style (Site Settings > Buttons) off the theme's own controls */
html body .bm-burger, html body .bm-close, html body .bm-sub-toggle, html body .bm-top {
	background-color: transparent; color: #fff; border: none; border-radius: 0; box-shadow: none;
	font: inherit; text-transform: none; letter-spacing: normal; line-height: 1; min-height: 0;
}
html body .bm-burger { padding: 12px; }
html body .bm-close, html body .bm-sub-toggle { padding: 0; }
html body .bm-sub-toggle { color: #f3eee2; }
html body .bm-top { padding: 0; background-color: #141414; border-radius: 4px; }
html body .bm-burger:hover, html body .bm-burger:focus, html body .bm-close:hover, html body .bm-close:focus,
html body .bm-sub-toggle:hover, html body .bm-sub-toggle:focus { background-color: transparent; color: #ffc72c; }
html body .bm-top:hover, html body .bm-top:focus { background-color: #ffc72c; color: #141414; }
html body .bm-empty .search-submit { background-color: #ffc72c; color: #141414; border: 2px solid #141414; border-radius: 12px; padding: 13px 22px; font: 700 16px/1.2 "DM Sans", sans-serif; text-transform: none; }
html body .bm-empty .search-submit:hover, html body .bm-empty .search-submit:focus { background-color: #f5b400; color: #141414; }
