/*
Theme Name: MrBoxed
Theme URI: https://mrboxed.com
Description: Storage marketplace theme for MrBoxed — find, compare and reserve self-storage and vehicle storage across Canada. CMS-driven; pairs with the MrBoxed Core plugin.
Author: MrBoxed
Version: 1.7.0
Requires at least: 6.2
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: mrboxed
*/

/* ============================================================
   MrBoxed design tokens
   Direction: "space you can trust" — measured, secure, modern.
   Anchor: deep midnight navy (security/trust).
   Signal: warm amber-orange, used ONLY on the reserve moment.
   Base: crisp near-white paper.
   Type: Sora (structural display) / Inter (body) / JetBrains Mono (dimensions & prices).
   ============================================================ */
:root {
	--mb-navy:      #0e1b2c;   /* anchor */
	--mb-navy-2:    #16283f;   /* raised navy surfaces */
	--mb-navy-3:    #24395a;
	--mb-ink:       #16202b;   /* body text on light */
	--mb-slate:     #56657a;   /* secondary text */
	--mb-line:      #dde3ec;   /* hairlines */
	--mb-paper:     #f6f8fb;   /* page base */
	--mb-card:      #ffffff;   /* card surface */
	--mb-signal:    #ff7a1a;   /* reserve / primary action */
	--mb-signal-2:  #e8630b;   /* signal hover */
	--mb-teal:      #12b3a6;   /* availability / success */
	--mb-teal-ink:  #0a5d56;
	--mb-amber-bg:  #fff3e8;   /* signal tint background */

	--mb-radius:    14px;
	--mb-radius-sm: 10px;
	--mb-radius-lg: 22px;
	--mb-shadow:    0 1px 2px rgba(14,27,44,.06), 0 8px 24px rgba(14,27,44,.08);
	--mb-shadow-lg: 0 18px 50px rgba(14,27,44,.18);

	--mb-display: 'Sora', system-ui, -apple-system, sans-serif;
	--mb-body:    'Inter', system-ui, -apple-system, sans-serif;
	--mb-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

	--mb-wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--mb-body);
	color: var(--mb-ink);
	background: var(--mb-paper);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--mb-display);
	color: var(--mb-navy);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 .5em;
	font-weight: 700;
}

a { color: var(--mb-navy); text-decoration: none; }
a:hover { color: var(--mb-signal-2); }

img { max-width: 100%; height: auto; display: block; }

.mb-wrap { max-width: var(--mb-wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.mb-btn {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--mb-body); font-weight: 600; font-size: 15px;
	padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
	cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
	line-height: 1;
}
.mb-btn:active { transform: translateY(1px); }
.mb-btn--signal { background: var(--mb-signal); color: #fff; box-shadow: 0 6px 18px rgba(255,122,26,.35); }
.mb-btn--signal:hover { background: var(--mb-signal-2); color: #fff; }
.mb-btn--navy { background: var(--mb-navy); color: #fff; }
.mb-btn--navy:hover { background: var(--mb-navy-2); color: #fff; }
.mb-btn--ghost { background: transparent; border-color: var(--mb-line); color: var(--mb-navy); }
.mb-btn--ghost:hover { border-color: var(--mb-navy); color: var(--mb-navy); }
.mb-btn--block { width: 100%; justify-content: center; }
.mb-btn--lg { padding: 15px 28px; font-size: 16px; }

/* ---------- Chips / badges ---------- */
.mb-chip {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12.5px; font-weight: 600; padding: 5px 11px;
	border-radius: 999px; background: #eef2f8; color: var(--mb-slate);
}
.mb-chip--avail { background: #e5f7f4; color: var(--mb-teal-ink); }
.mb-chip--promo { background: var(--mb-amber-bg); color: var(--mb-signal-2); }
.mb-chip--climate { background: #eaf1ff; color: #2b5bd7; }

.mb-price { font-family: var(--mb-mono); font-weight: 700; color: var(--mb-navy); }
.mb-price small { font-family: var(--mb-body); font-weight: 500; color: var(--mb-slate); font-size: 13px; }

/* ---------- Stars ---------- */
.mrbx-stars { color: #cbd3df; letter-spacing: 1px; font-size: 14px; }
.mrbx-star.is-full, .mrbx-star.is-half { color: var(--mb-signal); }

/* ---------- Cards ---------- */
.mb-card {
	background: var(--mb-card); border: 1px solid var(--mb-line);
	border-radius: var(--mb-radius); box-shadow: var(--mb-shadow);
	overflow: hidden;
}

/* ---------- Header ---------- */
.mb-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(246,248,251,.86); backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--mb-line);
}
.mb-header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.mb-logo { font-family: var(--mb-display); font-weight: 800; font-size: 21px; color: var(--mb-navy); letter-spacing: -.03em; display: flex; align-items: center; gap: 9px; }
.mb-logo__mark { width: 30px; height: 30px; border-radius: 8px; background: var(--mb-navy); position: relative; flex: none; }
.mb-logo__mark::before { content:""; position:absolute; inset:7px 7px auto 7px; height:5px; background: var(--mb-signal); border-radius:2px; }
.mb-logo__mark::after { content:""; position:absolute; inset:15px 7px 7px 7px; background: #24395a; border-radius:2px; }
.mb-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.mb-nav a { font-size: 15px; font-weight: 500; color: var(--mb-navy); }
.mb-nav a:hover { color: var(--mb-signal-2); }
.mb-header__cta { display: flex; gap: 10px; align-items: center; }
.mb-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.mb-burger span { display:block; width:22px; height:2px; background: var(--mb-navy); margin:4px 0; border-radius:2px; }

/* ---------- Footer ---------- */
.mb-footer { background: var(--mb-navy); color: #c3cede; margin-top: 80px; padding: 56px 0 30px; }
.mb-footer a { color: #c3cede; }
.mb-footer a:hover { color: #fff; }
.mb-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.mb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.mb-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.mb-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: 13px; color: #8fa0b4; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* accessibility */
:focus-visible { outline: 3px solid var(--mb-signal); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* ---------- Responsive header ---------- */
@media (max-width: 900px) {
	.mb-nav { display: none; }
	.mb-burger { display: block; }
	.mb-nav.is-open {
		display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
		background: var(--mb-card); border-bottom: 1px solid var(--mb-line); padding: 16px 24px; gap: 14px; align-items: flex-start;
	}
	.mb-footer__grid { grid-template-columns: 1fr 1fr; }
}
