/* ==========================================================================
   Leadline conversion tools: announcement bar, pop-up, side tab, bottom bar.
   ========================================================================== */

/* ---------- Announcement bar ---------- */
.ll-notice {
	position: relative;
	padding: 9px 48px;
	background: var(--ll-accent);
	color: var(--ll-on-accent);
	text-align: center;
	font-size: 0.8125rem;
	line-height: 1.4;
}
.ll-notice[hidden] { display: none; }
.ll-notice__text { margin: 0; }
.ll-notice__text a { margin-left: 6px; color: inherit; font-weight: 600; }
.ll-notice__close {
	position: absolute;
	top: 50%;
	right: 12px;
	width: 32px;
	height: 32px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
}

/* ---------- Pop-up ---------- */
.ll-modal {
	width: min(560px, calc(100% - 24px));
	max-width: none;
	max-height: calc(100dvh - 24px);
	padding: 0;
	border: 0;
	border-top: 3px solid var(--ll-accent);
	border-radius: var(--ll-radius);
	background: var(--ll-base);
	color: var(--ll-text);
	box-shadow: 0 24px 70px rgba(10, 14, 30, 0.35);
	overflow: auto;
}
.ll-modal::backdrop { background: color-mix(in srgb, var(--ll-primary) 70%, transparent); }
.ll-modal[open] { animation: ll-pop .22s ease-out; }
@keyframes ll-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ll-modal[open] { animation: none; } }
.ll-modal__inner { position: relative; padding: 36px 24px 28px; }
@media (min-width: 600px) { .ll-modal__inner { padding: 44px 40px 36px; } }
.ll-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	color: var(--ll-text);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.ll-modal__close:hover, .ll-modal__close:focus-visible { color: var(--ll-accent); }
.ll-modal__eyebrow {
	margin: 0 0 10px;
	color: var(--ll-muted);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.ll-modal__title {
	margin: 0 0 10px;
	color: var(--ll-primary);
	font-family: var(--ll-heading-font);
	font-size: clamp(2rem, 5vw, 2.5rem);
	font-weight: 400;
	line-height: 1.05;
}
.ll-modal__title:focus { outline: none; }
.ll-modal__text { margin: 0 0 22px; color: var(--ll-muted); font-size: 0.9375rem; line-height: 1.6; }
html.ll-modal-open { overflow: hidden; }

/* ---------- Side tab (large screens) ---------- */
.ll-side-tab {
	position: fixed;
	right: 0;
	top: 50%;
	z-index: 90;
	display: none;
	padding: 22px 12px;
	background: var(--ll-primary);
	color: var(--ll-on-primary);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	transform: translateY(-50%);
	box-shadow: -2px 2px 12px rgba(10, 14, 30, 0.2);
	transition: background-color .2s, color .2s;
}
.ll-side-tab span { display: block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.ll-side-tab:hover, .ll-side-tab:focus-visible { background: var(--ll-accent); color: var(--ll-on-accent); }
@media (min-width: 1360px) { .ll-side-tab { display: block; } }

/* ---------- Bottom bar (phones / tablets) ---------- */
.ll-mobile-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
	background: var(--ll-base);
	box-shadow: 0 -4px 16px rgba(10, 14, 30, 0.12);
}
.ll-mobile-bar a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px;
	border-radius: var(--ll-radius);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}
.ll-mobile-bar .ll-icon { width: 16px; height: 16px; }
.ll-mobile-bar__call { border: 1px solid var(--ll-primary); color: var(--ll-primary); }
.ll-mobile-bar__book { background: var(--ll-primary); color: var(--ll-on-primary); }
.ll-has-mobile-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
.has-modal-open .ll-mobile-bar { display: none; }
@media (min-width: 1024px) {
	.ll-mobile-bar { display: none; }
	.ll-has-mobile-bar { padding-bottom: 0; }
}
