/* ─── AL Header ─── */
.al-topbar { background: var(--ink); color: #a8a8b2; font-size: 13px; }
.al-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.al-topbar a { color: #e6e6ea; text-decoration: none; }
.al-topbar a:hover { color: var(--gold); }
.al-topbar__meta { display: flex; align-items: center; gap: 24px; }
.al-topbar__meta span { display: inline-flex; align-items: center; gap: 8px; }
.al-topbar svg { width: 14px; height: 14px; flex: none; stroke: var(--gold); }

.al-header { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
/* the row needs to fit .al-wrap (1280) at every desktop width, not just the viewport */
.al-header__in { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
.al-logo { flex: none; }
.al-logo img { width: 160px; height: 46px; }

.al-nav { margin-left: auto; }
.al-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.al-nav a {
	display: flex; align-items: center; gap: 6px; text-decoration: none;
	font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink);
	padding: 10px 8px; border-radius: var(--r); white-space: nowrap;
	transition: color .16s ease, background .16s ease;
}
.al-nav > ul > li:hover > a { color: var(--red); background: var(--red-soft); }
.al-nav .al-caret { width: 11px; height: 11px; stroke: currentColor; opacity: .55; transition: transform .2s ease; }
.al-nav li:hover > a .al-caret { transform: rotate(180deg); }

.al-has-sub { position: relative; }
.al-sub {
	position: absolute; top: calc(100% + 4px); left: 0; min-width: 258px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: var(--shadow-2); padding: 8px; list-style: none; margin: 0;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.al-has-sub:hover > .al-sub, .al-has-sub:focus-within > .al-sub { opacity: 1; visibility: visible; transform: none; }
.al-sub a { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 11px 13px; }
.al-sub a:hover { background: var(--bone); color: var(--ink); }
.al-sub a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); flex: none; opacity: 0; transition: opacity .15s ease; }
.al-sub a:hover::before { opacity: 1; }

.al-header__cta { display: flex; align-items: center; gap: 10px; flex: none; margin-left: 4px; }
.al-header__cta .al-btn { padding: 13px 18px; font-size: 14.5px; }
.al-header__phone { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.al-header__phone i {
	width: 38px; height: 38px; border-radius: 50%; background: var(--red-soft);
	display: grid; place-items: center; flex: none;
}
.al-header__phone svg { width: 17px; height: 17px; stroke: var(--red); }
.al-header__phone b { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }

.al-burger { display: none; flex: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.al-burger span { display: block; width: 19px; height: 2px; background: var(--ink); position: relative; transition: background .18s ease; }
.al-burger span::before, .al-burger span::after { content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink); transition: transform .22s ease; }
.al-burger span::before { top: -6px; }
.al-burger span::after  { top: 6px; }
.al-burger[aria-expanded="true"] span { background: transparent; }
.al-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.al-burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* Three steps, each measured against .al-wrap rather than the viewport:
   base fits 1280, this fits ~1212, and below 1270 only hiding the number fits. */
@media (max-width: 1340px) {
	.al-header__in { gap: 12px; }
	.al-nav a { padding: 10px 7px; font-size: 13.5px; }
	.al-header__cta { gap: 8px; }
	.al-header__cta .al-btn { padding: 12px 16px; font-size: 14px; }
	.al-header__phone b { font-size: 14.5px; }
	.al-logo img { width: 150px; height: 43px; }
}
@media (max-width: 1270px) { .al-header__phone b { display: none; } }
/* 1000 -> 1100 -> 1180: the desktop nav is 753px wide and does not fit .al-wrap below ~1180 */
@media (max-width: 1180px) {
	:root { --header-h: 74px; }
	/* no backdrop-filter: it makes .al-header the containing block for the fixed nav panel,
	   which then sizes to the header instead of the viewport */
	.al-header { backdrop-filter: none; background: rgba(255,255,255,.97); }
	/* .al-nav goes position:fixed here, so its margin-left:auto no longer pushes the
	   CTA group right — move the auto margin onto the group itself. */
	.al-header__cta { margin-left: auto; }
	.al-burger { display: flex; }
	.al-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; margin: 0; padding: 18px 26px 40px; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform .28s cubic-bezier(.3,.7,.3,1); }
	.al-nav[data-open="true"] { transform: none; }
	.al-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.al-nav > ul > li { border-bottom: 1px solid var(--line-2); }
	.al-nav a { padding: 16px 4px; font-size: 17px; border-radius: 0; justify-content: space-between; }
	.al-nav > ul > li:hover > a { background: transparent; }
	.al-sub {
		position: static; opacity: 1; visibility: visible; transform: none;
		display: none; margin: 0 0 14px; padding: 6px;
		background: var(--bone); border: 1px solid var(--line-2); border-radius: var(--r);
		box-shadow: none;
	}
	/* the top-level rows use space-between for their caret; sub links have none, so it
	   pushed their text to the right edge */
	.al-sub a {
		justify-content: flex-start; gap: 11px; padding: 12px 12px;
		font-family: var(--font); font-size: 15px; font-weight: 600;
		color: var(--ink-2); border-radius: 10px;
	}
	.al-sub a::before { display: block; opacity: .5; }
	.al-sub a:hover, .al-sub a:active { background: #fff; color: var(--ink); }
	.al-sub a:hover::before { opacity: 1; }
	.al-sub [aria-current] { background: #fff; color: var(--red); }
	.al-sub [aria-current]::before { opacity: 1; }
	.al-has-sub[data-open="true"] > .al-sub { display: block; }
	.al-has-sub[data-open="true"] > a { color: var(--red); }
	.al-has-sub[data-open="true"] > a .al-caret { transform: rotate(180deg); opacity: 1; }
	.al-topbar__meta span:not(:last-child) { display: none; }
}
@media (max-width: 620px) {
	.al-logo img { width: 150px; height: 43px; }
	.al-header__in { gap: 10px; }
	.al-topbar__in > span:first-child { display: none; }
	.al-topbar__meta { margin-inline: auto; }
	/* it was pushing the burger off-screen; the sticky call bar covers calling here */
	.al-header__cta .al-btn--call { display: none; }
}
