/* bb-landing-lux-20261120: shared presentation layer for Cleaning landing pages (page cleanup batch A, 2026-11-21).
   Design only: no wording, link, form, schema or GA4 changes. Linked from:
   commercial-cleaning, how-much-does-office-cleaning-cost-austin, vacant-commercial-space-cleaning-austin,
   post-construction-cleaning-austin-tx (batch R). Restaurant rules below stay inert (its head is byte-pinned by a Grok test).
   Reference: homepage brass CTA (#b89b6a on dark ink #0b0b0b) and its compact header. */

:root{--bbl-ink:#12151b;--bbl-brass:#b89b6a;--bbl-brass-hi:#c9ad7c;--bbl-cream:#f3efe6;--bbl-btn-ink:#0b0b0b;--bbl-gutter:20px}
html,body{overflow-x:clip}

/* ---------- One header style (all pages) ---------- */
html body header.topbar{background:var(--bbl-ink)!important;position:sticky;top:0;z-index:60;border-bottom:1px solid rgba(184,155,106,.28)}
html body header.topbar>nav{position:static!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;width:min(1160px,calc(100% - 2 * var(--bbl-gutter)))!important;margin:0 auto!important;min-height:76px;padding:0!important}
html body header.topbar>nav>a:first-child{display:block;flex:0 0 auto;line-height:0;color:#fff}
html body header.topbar>nav>a:first-child img{display:block!important;width:auto!important;height:52px!important;max-width:none!important;object-fit:contain;filter:brightness(0) invert(1)}
/* Full logo everywhere (the office page ships the bear emblem only; vacant ships the wide lockup). */
html body header.topbar>nav>a:first-child img[src*="bear-emblem"],
html body header.topbar>nav>a:first-child img[src*="finals-horz"]{content:url("/assets/cleaning-brand/09-bailey-and-bear-commercial-cleaning-logo.png")}
/* Post-construction header ships a text-only home link: show the same logo; the words stay in the markup for assistive tech. */
html body header.topbar>nav>a:first-child:not(:has(img)){width:113px;height:52px;font-size:0!important;color:transparent!important;background:url("/assets/cleaning-brand/09-bailey-and-bear-commercial-cleaning-logo.png") left center/contain no-repeat;filter:brightness(0) invert(1)}

html body header.topbar .nav-links,
html body header.topbar .links{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:22px!important;width:auto!important;overflow:visible!important;padding:0!important;margin:0 0 0 auto}
html body header.topbar .nav-links a,
html body header.topbar .links a{color:var(--bbl-cream)!important;opacity:1!important;font-family:'Manrope',system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important;font-weight:700!important;font-size:.76rem!important;letter-spacing:.09em!important;text-transform:uppercase!important;text-decoration:none!important;white-space:nowrap;text-shadow:none!important}
html body header.topbar .nav-links a:not(.bb-navtel):hover,
html body header.topbar .links a:not(.bb-navtel):hover{color:#e6d3ad!important}

/* Header call button: brass, like the homepage. */
html body header.topbar a.bb-navtel{position:static!important;order:50;display:inline-flex!important;align-items:center;min-height:40px;padding:0 18px!important;border-radius:999px!important;background:var(--bbl-brass)!important;border:1px solid var(--bbl-brass)!important;color:var(--bbl-btn-ink)!important;font-weight:800!important;font-size:.8rem!important;letter-spacing:.04em!important;box-shadow:0 10px 24px -14px rgba(184,155,106,.8)}
html body header.topbar a.bb-navtel:hover{background:var(--bbl-brass-hi)!important;color:var(--bbl-btn-ink)!important}
html body header.topbar a:focus-visible{outline:2px solid var(--bbl-brass)!important;outline-offset:3px}

/* Mobile: one row, 64px: logo | Call | menu. Links open from the menu icon (tap or keyboard focus). */
@media (max-width:860px){
  html body header.topbar>nav{min-height:63px;height:63px;gap:10px!important}
  html body header.topbar>nav>a:first-child img{height:44px!important}
  html body header.topbar>nav>a:first-child:not(:has(img)){width:96px;height:44px}
  html body header.topbar .nav-links,
  html body header.topbar .links{gap:6px!important}
  html body header.topbar a.bb-navtel{min-height:40px;padding:0 14px!important;font-size:.74rem!important}
  html body header.topbar .nav-links::after,
  html body header.topbar .links::after{content:"";order:60;flex:0 0 44px;width:44px;height:44px;cursor:pointer;
    background:linear-gradient(var(--bbl-cream),var(--bbl-cream)) center 15px/22px 2px no-repeat,
               linear-gradient(var(--bbl-cream),var(--bbl-cream)) center 21px/22px 2px no-repeat,
               linear-gradient(var(--bbl-cream),var(--bbl-cream)) center 27px/22px 2px no-repeat}
  /* closed: links visually hidden but still focusable */
  html body header.topbar .nav-links a:not(.bb-navtel),
  html body header.topbar .links a:not(.bb-navtel){position:absolute!important;left:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  /* open */
  html body header.topbar .nav-links:hover a:not(.bb-navtel),
  html body header.topbar .links:hover a:not(.bb-navtel),
  html body header.topbar .nav-links:focus-within a:not(.bb-navtel),
  html body header.topbar .links:focus-within a:not(.bb-navtel){left:0;right:0;width:auto;height:48px;clip-path:none;display:flex;align-items:center;padding:0 24px;background:var(--bbl-ink);border-top:1px solid rgba(243,239,230,.1);font-size:.82rem!important}
  html body header.topbar .nav-links:hover::after,
  html body header.topbar .links:hover::after,
  html body header.topbar .nav-links:focus-within::after,
  html body header.topbar .links:focus-within::after{background:linear-gradient(45deg,transparent 46%,var(--bbl-cream) 46%,var(--bbl-cream) 54%,transparent 54%) center/22px 22px no-repeat,linear-gradient(-45deg,transparent 46%,var(--bbl-cream) 46%,var(--bbl-cream) 54%,transparent 54%) center/22px 22px no-repeat}
  html body header.topbar :is(.nav-links,.links) a:not(.bb-navtel):nth-child(1){top:64px}
  html body header.topbar :is(.nav-links,.links) a:not(.bb-navtel):nth-child(2){top:112px}
  html body header.topbar :is(.nav-links,.links) a:not(.bb-navtel):nth-child(3){top:160px}
  html body header.topbar :is(.nav-links,.links) a:not(.bb-navtel):nth-child(4){top:208px}
  html body header.topbar :is(.nav-links,.links) a:not(.bb-navtel):nth-child(5){top:256px}
  html body header.topbar :is(.nav-links,.links) a:not(.bb-navtel):nth-child(6){top:304px}
  html body header.topbar :is(.nav-links,.links) a:not(.bb-navtel):nth-child(7){top:352px}
  html body header.topbar :is(.nav-links,.links) a:not(.bb-navtel):nth-child(8){top:400px}
}

/* ---------- Brass call / quote buttons (not green) ---------- */
html body main .button:not(.alt),
html body main a.button.primary,
html body main .cta .button,
html body main a[style*="#0a6b55"],
html body main a[style*="#0A6B55"]{background:var(--bbl-brass)!important;border:1px solid var(--bbl-brass)!important;color:var(--bbl-btn-ink)!important;border-radius:2px!important;box-shadow:0 10px 28px -14px rgba(184,155,106,.7)}
html body main .button:not(.alt):hover,
html body main a[style*="#0a6b55"]:hover{background:var(--bbl-brass-hi)!important;border-color:var(--bbl-brass-hi)!important;color:var(--bbl-btn-ink)!important}
html body main .hero .button.alt:hover{border-color:var(--bbl-brass)!important;color:#e6d3ad!important;background:rgba(184,155,106,.08)!important}

/* ---------- H1 in the first screen (font-size/clamp only) ---------- */
html body main .hero h1{font-size:clamp(2.1rem,1.35rem + 3.1vw,3.9rem)!important;line-height:1.06}

/* ---------- /commercial-cleaning: hero first, cream answer box under it (order only) ---------- */
html body main:has(> .aeo-answer + .hub-intro-exact){display:flex;flex-direction:column}
html body main:has(> .aeo-answer + .hub-intro-exact)>.hero{order:-1;min-height:0!important}
html body main:has(> .aeo-answer + .hub-intro-exact)>.aeo-answer{margin-top:28px}

/* ---------- Restaurant + post-construction: one logo, header only ---------- */
html body main>.hero>img[src="/assets/cleaning-logo.png"]{display:none!important}

/* ---------- Post-construction: full-width hero, no boxed card ---------- */
html body main>.hero:has(+ #final-clean-answer-20261119){margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;border-radius:0!important;box-shadow:none!important;max-width:none!important}
html body main>.hero:has(+ #final-clean-answer-20261119)>*{width:min(1160px,calc(100% - 2 * var(--bbl-gutter)))!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}

/* ---------- "Get a Fast Quote" pill never covers text ---------- */
/* Phones: dock it into the bottom call-bar row (the page already reserves that strip). */
@media (max-width:767px){
  html body #bb-callbar{right:118px!important;grid-template-columns:minmax(0,1fr) 74px!important}
  html body #bb-callbar a{padding:0 6px!important;font-size:14px!important;white-space:nowrap}
  html body #bb-callbar svg{margin-right:6px!important}
  html body #bb-qq{right:0!important;bottom:0!important;z-index:96}
  html body #bb-qq-tab{width:118px;min-height:57px;padding:6px 10px!important;border-radius:0!important;background:var(--bbl-brass)!important;color:var(--bbl-btn-ink)!important;font-size:11px!important;line-height:1.25;white-space:normal;box-shadow:none!important;border-top:1px solid #8a7f6e!important;padding-bottom:calc(6px + env(safe-area-inset-bottom))!important}
  html body #bb-qq.bb-qq-dock-hidden:not(.bb-qq-open){opacity:1!important;pointer-events:auto!important;transform:none!important}
  html body:not(.bb-callbar-on){padding-bottom:calc(58px + env(safe-area-inset-bottom))}
}
/* Tablet/desktop: slim vertical tab in the right gutter; widen the gutter where the page has none. */
@media (min-width:768px){
  html body #bb-qq{right:0!important;bottom:96px!important}
  html body #bb-qq-tab{writing-mode:vertical-rl;transform:rotate(180deg);padding:18px 11px!important;border-radius:0 4px 4px 0!important;background:var(--bbl-ink)!important;color:var(--bbl-cream)!important;border:1px solid rgba(184,155,106,.6)!important;border-left:0!important;font-size:11px!important;letter-spacing:.14em!important;box-shadow:0 10px 26px rgba(0,0,0,.24)}
  html body #bb-qq-tab:hover{transform:rotate(180deg)!important;background:#1d222b!important}
  html body #bb-qq-panel{right:46px!important;bottom:0!important}
}
@media (min-width:768px) and (max-width:1259px){
  :root{--bbl-gutter:56px}
  html body main{width:min(1160px,calc(100% - 2 * var(--bbl-gutter)))!important}
  html body main .hero>*{width:min(1160px,calc(100vw - 2 * var(--bbl-gutter)),100%)!important}
  html body footer{padding-right:48px!important}
}

/* ---------- Header "Text us" (sms:) button: hidden on phones (<=480px) so the header row fits; #bb-callbar keeps Text (2026-11-21) ---------- */
@media (max-width:480px){html body header.topbar>nav>a[href^="sms:"]{display:none!important}}
