/* Urban Repairs — CTA button system (2026-11-23, rev. "premium CTA").
   One look for Book a Repair / Call / WhatsApp on every page:
     Book a Repair = primary   (muted amber #D98224, dark text, calendar icon)
     Call          = secondary (charcoal #242424, white text + icon)
     WhatsApp      = secondary (warm ivory #FFF9F1, dark text, green icon, thin border)
   Buttons are matched by what they do (data-book / tel: / wa.me), so every older
   class variant is covered. Links, numbers and data-track attributes are untouched.
   Brand landing pages (.bl-btn in ur-brand-landing.css) use the same variables. */

:root{
  --ur-cta-book:#D98224;--ur-cta-book-hover:#C9761C;--ur-cta-book-active:#B96A16;
  --ur-cta-call:#242424;--ur-cta-call-hover:#383838;--ur-cta-call-active:#111111;
  --ur-cta-wa-bg:#FFF9F1;--ur-cta-wa-hover:#FBF0E2;--ur-cta-wa-active:#F6E7D3;--ur-cta-wa-icon:#16834A;
  --ur-cta-ink:#242424;--ur-cta-on-dark:#FFFFFF;--ur-cta-border:#E8E2DA;
  --ur-cta-radius:18px;--ur-cta-h:50px;--ur-cta-speed:180ms;
}

/* ---------- groups (hero / location hero / dark CTA band / home contact box) ---------- */
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions){display:flex!important;flex-wrap:wrap!important;gap:10px!important;max-width:none!important;align-items:stretch}
html:root body :is(section.cta .actions,.callcta .cc3){display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
html:root body section.cta .actions{min-width:min(340px,100%)!important}

/* ---------- shared shape ---------- */
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>:is([data-book],a[href^="tel:"],a[href*="wa.me"]){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;
  flex:0 0 auto!important;width:auto!important;min-width:0!important;min-height:var(--ur-cta-h)!important;height:auto!important;
  padding:0 20px!important;margin:0!important;border-radius:var(--ur-cta-radius)!important;border-width:1px!important;border-style:solid!important;
  font:600 16px/1.2 var(--font-head,"Libre Franklin",Arial,sans-serif)!important;letter-spacing:0!important;text-transform:none!important;
  text-align:center!important;text-decoration:none!important;white-space:nowrap!important;box-shadow:none!important;transform:none!important;
  transition:background-color var(--ur-cta-speed) ease,border-color var(--ur-cta-speed) ease,color var(--ur-cta-speed) ease!important;cursor:pointer}
html:root body :is(section.cta .actions,.callcta .cc3)>:is([data-book],a[href^="tel:"],a[href*="wa.me"]){width:100%!important}

/* one-line labels: hide the small helper line, keep the main text */
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>* .t{display:inline!important;text-align:center!important}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>* .t small{display:none!important}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>* .t strong{display:inline!important;font:inherit!important;letter-spacing:0!important;color:inherit!important}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>a[href^="tel:"] .t strong::before{content:"Call "}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>a[href*="wa.me"] .t strong::before{content:"WhatsApp "}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>* .arr{display:none!important}

/* icons: one size, no circles, no animation */
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>*>svg{
  width:18px!important;height:18px!important;padding:0!important;margin:0!important;border-radius:0!important;
  background:none!important;box-shadow:none!important;animation:none!important;flex:none!important;color:currentColor!important}
/* call buttons that have no icon in their markup get one */
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>a[href^="tel:"]:not(:has(>svg))::before{content:"";width:18px;height:18px;flex:none;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3.5h3.2l1.6 4.3-2.1 1.3a11 11 0 0 0 5.2 5.2l1.3-2.1 4.3 1.6V17a2.5 2.5 0 0 1-2.7 2.5C9.6 19 5 14.4 4.5 8.2A2.5 2.5 0 0 1 5 3.5Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3.5h3.2l1.6 4.3-2.1 1.3a11 11 0 0 0 5.2 5.2l1.3-2.1 4.3 1.6V17a2.5 2.5 0 0 1-2.7 2.5C9.6 19 5 14.4 4.5 8.2A2.5 2.5 0 0 1 5 3.5Z'/%3E%3C/svg%3E") center/contain no-repeat}

/* ---------- colours + order: Book (primary) → Call → WhatsApp ---------- */
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>[data-book]{order:1!important;background:var(--ur-cta-book)!important;color:var(--ur-cta-ink)!important;border-color:var(--ur-cta-book)!important}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>[data-book]:hover{background:var(--ur-cta-book-hover)!important;border-color:var(--ur-cta-book-hover)!important}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>[data-book]:active{background:var(--ur-cta-book-active)!important;border-color:var(--ur-cta-book-active)!important}

html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>a[href^="tel:"]{order:2!important;background:var(--ur-cta-call)!important;color:var(--ur-cta-on-dark)!important;border-color:var(--ur-cta-call)!important}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>a[href^="tel:"]:hover{background:var(--ur-cta-call-hover)!important;border-color:var(--ur-cta-call-hover)!important}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>a[href^="tel:"]:active{background:var(--ur-cta-call-active)!important}

html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>a[href*="wa.me"]{order:3!important;background:var(--ur-cta-wa-bg)!important;color:var(--ur-cta-ink)!important;border-color:var(--ur-cta-border)!important}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>a[href*="wa.me"]>svg{color:var(--ur-cta-wa-icon)!important}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>a[href*="wa.me"]:hover{background:var(--ur-cta-wa-hover)!important}
html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>a[href*="wa.me"]:active{background:var(--ur-cta-wa-active)!important}

/* on the dark CTA band the charcoal Call button gets a light outline so it stays visible */
html:root body section.cta .actions>a[href^="tel:"]{border-color:rgba(255,255,255,.28)!important}
html:root body section.cta .actions>a[href^="tel:"]:hover{border-color:rgba(255,255,255,.5)!important}

html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3)>:is([data-book],a):focus-visible{outline:3px solid #2563eb!important;outline-offset:2px!important}

/* ---------- sticky mobile bottom bar: Call · WhatsApp · Book Repair ---------- */
html:root body nav.bar[aria-label]{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1.25fr)!important;gap:6px!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important}
html:root body nav.bar[aria-label]>:is(a,button){min-height:46px!important;padding:0 8px!important;border-radius:14px!important;border-width:1px!important;border-style:solid!important;
  gap:6px!important;font-size:14px!important;font-weight:600!important;box-shadow:none!important;transition:background-color var(--ur-cta-speed) ease,border-color var(--ur-cta-speed) ease!important;opacity:1!important}
html:root body nav.bar[aria-label]>:is(a,button) svg{width:17px!important;height:17px!important}
html:root body nav.bar[aria-label] .call[data-track][href]{background:var(--ur-cta-call)!important;color:var(--ur-cta-on-dark)!important;border-color:var(--ur-cta-call)!important}
html:root body nav.bar[aria-label] .call[data-track][href]:active{background:var(--ur-cta-call-active)!important}
html:root body nav.bar[aria-label] .wa[data-track][href]{background:var(--ur-cta-wa-bg)!important;color:var(--ur-cta-ink)!important;border-color:var(--ur-cta-border)!important}
html:root body nav.bar[aria-label] .wa[data-track][href] svg{color:var(--ur-cta-wa-icon)!important}
html:root body nav.bar[aria-label] .wa[data-track][href]:active{background:var(--ur-cta-wa-active)!important}
html:root body nav.bar[aria-label] .book[data-book][type]{background:var(--ur-cta-book)!important;color:var(--ur-cta-ink)!important;border-color:var(--ur-cta-book)!important}
html:root body nav.bar[aria-label] .book[data-book][type]:active{background:var(--ur-cta-book-active)!important}
html:root body nav.bar[aria-label]>:is(a,button):focus-visible{outline:3px solid #2563eb!important;outline-offset:1px!important}

/* ---------- phones: stacked full-width hero buttons ---------- */
@media (max-width:600px){
  html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions){display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions)>:is([data-book],a[href^="tel:"],a[href*="wa.me"]){width:100%!important}
}
@media (max-width:360px){html:root body nav.bar[aria-label]>:is(a,button){font-size:13px!important;padding:0 6px!important;gap:5px!important}}
@media (prefers-reduced-motion:reduce){html:root body :is(.hero .hero-actions,.hero .actions,.fhero .actions,section.cta .actions,.callcta .cc3,nav.bar)>*{transition:none!important}}
