/* ============================================================
   SITE CHROME — footer + chat launcher + consent UI.
   Split out of footer.php's inline <style> blocks (Aug 2026
   refactor) so browsers cache this once instead of re-downloading
   ~39KB of inline chrome on every page view. Enqueued site-wide
   from functions.php as 'instant-restoration-chrome'.
   ============================================================ */

/* ---------- FOOTER — organized column layout ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 18px; }
main .section:last-of-type { padding-bottom: clamp(36px, 4vw, 56px); }

.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 36px 48px; align-items: start; }

/* Brand column */
.footer-brand-min { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-blurb { color: var(--ink-3); font-family: var(--sans); font-size: 13px; line-height: 1.6; margin: 14px 0 18px; max-width: 300px; }
.footer-call { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.footer-call-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.footer-call-num { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); transition: color 0.2s; }
.footer-call:hover .footer-call-num { color: var(--orange); }
.footer-email { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.footer-email:hover { color: var(--orange); }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--ink-2); transition: color 0.2s, border-color 0.2s, transform 0.2s; }
.footer-social a:hover { color: var(--orange); border-color: var(--orange-line); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

/* Link columns */
.footer-col-label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 14px; }
.footer-col-links { display: flex; flex-direction: column; gap: 9px; }
.footer-col-links a { color: var(--ink-2); font-size: 13.5px; font-family: var(--sans); text-decoration: none; transition: color 0.2s; width: fit-content; }
.footer-col-links a:hover { color: var(--orange); }
.footer-col-links .more { color: var(--ink-3); font-size: 12.5px; }

/* Bottom bars */
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-creds { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }
.footer-legal { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12px; }
.footer-legal a { color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--orange); }
.footer-legal .sep { color: var(--ink-4); }
.footer-fine { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-4); margin-top: 10px; }

@media (max-width: 960px) {
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 32px; }
	.footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.footer-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- CHAT — left-edge vertical tab, mirroring the BOOK NOW tab on
   the right edge. Overrides the legacy bottom-left pill + its mobile
   icon-only / repositioned rules in style.css (hence the !important flags).
   Same size/shape as .ir-book-pill. ---------- */
.chat-launcher {
	position: fixed !important;
	left: 0 !important;
	right: auto !important;
	top: 50% !important;
	bottom: auto !important;
	transform: translateY(-50%) !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 8px !important;
	width: auto !important;
	min-height: 0 !important;
	padding: 16px 9px !important;
	border-radius: 0 10px 10px 0 !important;
	background: var(--bg-2) !important;
	color: var(--ink) !important;
	border: 1px solid var(--line-2) !important;
	border-left: none !important;
	box-shadow: 4px 0 22px rgba(0, 0, 0, 0.35) !important;
	z-index: 60 !important;
	transition: transform 0.2s ease, filter 0.2s ease, background 0.2s !important;
}
.chat-launcher:hover { transform: translateY(-50%) scale(1.04) !important; filter: brightness(1.06); }
.chat-widget.open .chat-launcher { background: var(--bg-3) !important; }
.chat-launcher-icon { width: 20px !important; height: 20px !important; flex-shrink: 0; display: block; }
.chat-launcher-label,
.chat-widget:not(.open) .chat-launcher .chat-launcher-label {
	display: block !important;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--sans);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	line-height: 1;
	margin: 0;
}
.chat-launcher-dot {
	position: absolute;
	top: 8px;
	right: 8px;
	left: auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}
.chat-widget.open .chat-launcher-dot { display: none; }

/* MOBILE/TABLET (<1024px): the vertical tab covers hero text on narrow
   screens, so switch to a round icon button mirroring the call FAB. */
@media (max-width: 1023.98px) {
	.chat-launcher {
		left: auto !important;
		right: 16px !important;
		bottom: 24px !important;
		top: auto !important;
		transform: none !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 0 !important;
		width: 56px !important;
		height: 56px !important;
		padding: 0 !important;
		border-radius: 50% !important;
	}
	.chat-launcher:hover { transform: none !important; }
	.chat-launcher-label,
	.chat-widget:not(.open) .chat-launcher .chat-launcher-label { display: none !important; }
	.chat-launcher-icon { width: 24px !important; height: 24px !important; }
	.chat-launcher-dot { top: 6px !important; right: 6px !important; left: auto !important; }
}

/* ---------- IR CONSENT — first-party cookie consent UI.
   Hardcoded hex (not var()) so the banner holds even if style.css fails. ---------- */
#ir-consent-banner { position: fixed; z-index: 9000; left: 20px; bottom: 20px; max-width: 420px; background: #121212; border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 18px 20px 16px; box-shadow: 0 18px 48px rgba(0,0,0,0.55); font-family: "Montserrat", system-ui, sans-serif; }
#ir-consent-banner[hidden], #ir-consent-modal[hidden], #ir-consent-overlay[hidden] { display: none; }
.irc-eyebrow { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #ff4d03; font-weight: 700; margin-bottom: 8px; }
.irc-text { font-size: 13px; line-height: 1.55; color: #c8c6c2; margin: 0 0 12px; }
.irc-text a { color: #ff6422; text-decoration: underline; }
.irc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.irc-btn { font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; border-radius: 6px; padding: 9px 14px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.irc-primary { background: #ff4d03; border: 1px solid #ff4d03; color: #000; }
.irc-primary:hover { background: #ff6422; border-color: #ff6422; }
.irc-ghost { background: none; border: 1px solid rgba(255,255,255,0.24); color: #f6f5f3; }
.irc-ghost:hover { border-color: #ff4d03; color: #ff6422; }
.irc-x { position: absolute; top: 10px; right: 12px; background: none; border: none; color: #7d7a75; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; }
.irc-x:hover { color: #f6f5f3; }
#ir-consent-overlay { position: fixed; inset: 0; z-index: 9590; background: rgba(0,0,0,0.6); }
#ir-consent-modal { position: fixed; z-index: 9600; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100vw - 32px)); background: #121212; border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 24px 26px 22px; box-shadow: 0 24px 64px rgba(0,0,0,0.6); font-family: "Montserrat", system-ui, sans-serif; }
.irc-title { font-size: 18px; font-weight: 700; color: #f6f5f3; margin: 0 0 10px; letter-spacing: -0.01em; }
.irc-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; padding: 12px 14px; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; cursor: pointer; }
.irc-check input { width: 16px; height: 16px; min-width: 16px; margin-top: 1px; accent-color: #ff4d03; cursor: pointer; }
.irc-check span { font-size: 13.5px; font-weight: 600; color: #f6f5f3; line-height: 1.45; }
#ir-consent-modal .irc-row { justify-content: flex-end; }
@media (max-width: 720px) {
	#ir-consent-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
