/* Alan Bush 360 — v4.18 refined premium experience.
   Targeted enhancement layer; original layout, data flows and CTAs remain intact. */
:root{--abx-navy:#102b43;--abx-teal:#138b90;--abx-gold:#cfab68;--abx-focus:#ffdf8e;--abx-ease:cubic-bezier(.2,.65,.2,1)}

/* HEROES: keep text above the visual and preserve individual page photography. */
:is(.hero,.topic-hero,.bc-hero,.hc-hero,.credentials-hero){
  position:relative;isolation:isolate;overflow:hidden;
}
:is(.hero,.topic-hero,.bc-hero,.hc-hero,.credentials-hero)::after{
  content:"";position:absolute;inset:auto -12% -140px auto;width:clamp(270px,36vw,650px);height:clamp(270px,36vw,650px);
  border-radius:50%;background:radial-gradient(circle,rgba(131,224,215,.16),rgba(207,171,104,.07) 37%,transparent 67%);
  pointer-events:none;z-index:0;animation:abxHeroBreathe 12s ease-in-out infinite alternate;
}
:is(.hero,.topic-hero,.bc-hero,.hc-hero,.credentials-hero) > *{position:relative;z-index:1}
:is(.hero,.topic-hero,.bc-hero,.hc-hero,.credentials-hero) h1{
  letter-spacing:-.035em;text-wrap:balance;text-shadow:0 10px 30px rgba(0,15,30,.14);
}
:is(.hero,.topic-hero,.bc-hero,.hc-hero,.credentials-hero) p{max-width:68ch}
:is(.hero,.topic-hero,.bc-hero,.hc-hero,.credentials-hero) :is(.hero-content,.topic-hero-inner,.bc-hero-inner,.hc-hero-inner,.credentials-hero-inner){
  animation:abxHeroEnter .75s var(--abx-ease) both;
}
@keyframes abxHeroEnter{from{opacity:.7;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes abxHeroBreathe{from{opacity:.65;transform:translateY(0) scale(.9)}to{opacity:1;transform:translateY(-30px) scale(1.15)}}

/* Buttons and links — tactile, visually consistent, clear focus state. */
a:is(.btn,.bc-btn,.nav-cta,.biz-tile-cta),button:is(.btn,.bc-btn,.unified-nav-toggle),
.ab360-gateway-actions a,.ab360-business-hub-link a{
  position:relative;isolation:isolate;overflow:hidden;
  transition:transform .23s var(--abx-ease),box-shadow .23s ease,filter .23s ease,border-color .23s ease !important;
  -webkit-tap-highlight-color:transparent;
}
a:is(.btn,.bc-btn,.nav-cta,.biz-tile-cta)::after,
button:is(.btn,.bc-btn)::after{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
  background:linear-gradient(110deg,transparent 22%,rgba(255,255,255,.20) 47%,transparent 72%);
  transform:translateX(-120%);transition:transform .65s ease;
}
@media(hover:hover){
  a:is(.btn,.bc-btn,.nav-cta,.biz-tile-cta):hover,
  button:is(.btn,.bc-btn):hover,
  .ab360-gateway-actions a:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(6,34,55,.22);filter:brightness(1.055)}
  a:is(.btn,.bc-btn,.nav-cta,.biz-tile-cta):hover::after,
  button:is(.btn,.bc-btn):hover::after{transform:translateX(120%)}
}
a:is(.btn,.bc-btn,.nav-cta,.biz-tile-cta):active,
button:is(.btn,.bc-btn):active{transform:translateY(0) scale(.985)}
:is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--abx-focus) !important;outline-offset:4px}

/* Premium section breaks without adding clutter or large panels. */
main :is(.section,.topic-overview,.topic-steps,.related-topics,.bc-wrap,.goall-resources,.outcome-paths){scroll-margin-top:95px}
main :is(.section,.topic-overview,.topic-steps,.related-topics,.bc-wrap,.goall-resources,.outcome-paths) > :is(h2,.section-heading,.bc-heading):first-child{
  position:relative;
}
main :is(.section,.topic-overview,.topic-steps,.related-topics,.bc-wrap,.goall-resources,.outcome-paths) > :is(h2,.section-heading,.bc-heading):first-child::before{
  content:"";position:absolute;top:-14px;left:0;width:64px;height:3px;border-radius:999px;
  background:linear-gradient(90deg,var(--abx-teal),var(--abx-gold));opacity:.85;
}
/* Avoid lines above centered headings and within the footer. */
main :is(.section,.topic-overview,.topic-steps,.related-topics,.bc-wrap,.goall-resources,.outcome-paths) > :is(h2,.section-heading,.bc-heading)[style*="text-align:center"]::before{left:calc(50% - 32px)}

/* Card images and CTAs remain legible against every source photograph. */
.ab360-premium-card.ab360-card-photo{background-position:center 36%!important}
.ab360-premium-card.ab360-card-photo::before{
  background:linear-gradient(180deg,rgba(7,24,40,.06) 0%,rgba(7,24,40,.25) 27%,rgba(7,24,40,.79) 73%,rgba(7,24,40,.96) 100%)!important;
}
.ab360-premium-card.ab360-card-photo :is(a:not(.btn),.link-pill){text-shadow:0 1px 7px rgba(0,0,0,.35)}
.ab360-premium-card.ab360-card-photo :is(.btn,.bc-btn):focus-visible{outline-color:#ffe8a9!important}
.ab360-premium-card.ab360-card-photo :is(h2,h3,p,span,strong,a){overflow-wrap:break-word}

/* Dark, photographic feature areas use calm light edges instead of decorative arrows. */
.ab360-business-gateway,.bc-diagnostic,.nflc-feature{
  box-shadow:0 22px 55px rgba(4,28,48,.13);
}
.ab360-business-gateway{border:1px solid rgba(200,227,230,.16)}
.ab360-business-gateway :is(h2,h3){text-wrap:balance}

/* Consistent content enter for non-card hero actions only: no scroll hijacking. */
.abx-fade-in{animation:abxHeroEnter .7s var(--abx-ease) both}

@media(max-width:720px){
  :is(.hero,.topic-hero,.bc-hero,.hc-hero,.credentials-hero)::after{width:260px;height:260px;right:-90px;bottom:-130px}
  :is(.hero,.topic-hero,.bc-hero,.hc-hero,.credentials-hero) h1{text-wrap:wrap}
  :is(.hero,.topic-hero,.bc-hero,.hc-hero,.credentials-hero) :is(.hero-actions,.bc-actions){gap:10px}
}
@media(prefers-reduced-motion:reduce){
  :is(.hero,.topic-hero,.bc-hero,.hc-hero,.credentials-hero)::after,
  :is(.hero,.topic-hero,.bc-hero,.hc-hero,.credentials-hero) :is(.hero-content,.topic-hero-inner,.bc-hero-inner,.hc-hero-inner,.credentials-hero-inner),
  .abx-fade-in{animation:none!important;transform:none!important}
  a:is(.btn,.bc-btn,.nav-cta,.biz-tile-cta),button:is(.btn,.bc-btn),.ab360-gateway-actions a{transition:none!important;transform:none!important}
  a:is(.btn,.bc-btn,.nav-cta,.biz-tile-cta)::after,button:is(.btn,.bc-btn)::after{display:none!important}
}
